Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.479 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.59 for python 2.5. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
| 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21 | set -o posix |
| 22 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 23 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 24 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 25 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 26 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27 | as_unset=unset |
| 28 | else |
| 29 | as_unset=false |
| 30 | fi |
| 31 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 32 | |
| 33 | # Work around bugs in pre-3.0 UWIN ksh. |
| 34 | $as_unset ENV MAIL MAILPATH |
| 35 | PS1='$ ' |
| 36 | PS2='> ' |
| 37 | PS4='+ ' |
| 38 | |
| 39 | # NLS nuisances. |
| 40 | for as_var in \ |
| 41 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 42 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 43 | LC_TELEPHONE LC_TIME |
| 44 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 45 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 46 | eval $as_var=C; export $as_var |
| 47 | else |
| 48 | $as_unset $as_var |
| 49 | fi |
| 50 | done |
| 51 | |
| 52 | # Required to use basename. |
| 53 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 54 | as_expr=expr |
| 55 | else |
| 56 | as_expr=false |
| 57 | fi |
| 58 | |
| 59 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 60 | as_basename=basename |
| 61 | else |
| 62 | as_basename=false |
| 63 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 64 | |
| 65 | |
| 66 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 67 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 68 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 69 | X"$0" : 'X\(//\)$' \| \ |
| 70 | X"$0" : 'X\(/\)$' \| \ |
| 71 | . : '\(.\)' 2>/dev/null || |
| 72 | echo X/"$0" | |
| 73 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 76 | s/.*/./; q'` |
| 77 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 78 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 79 | # PATH needs CR, and LINENO needs CR and PATH. |
| 80 | # Avoid depending upon Character Ranges. |
| 81 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 82 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 83 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 84 | as_cr_digits='0123456789' |
| 85 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 86 | |
| 87 | # The user is always right. |
| 88 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 89 | echo "#! /bin/sh" >conf$$.sh |
| 90 | echo "exit 0" >>conf$$.sh |
| 91 | chmod +x conf$$.sh |
| 92 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 93 | PATH_SEPARATOR=';' |
| 94 | else |
| 95 | PATH_SEPARATOR=: |
| 96 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 97 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 98 | fi |
| 99 | |
| 100 | |
| 101 | as_lineno_1=$LINENO |
| 102 | as_lineno_2=$LINENO |
| 103 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 104 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 105 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 106 | # Find who we are. Look in the path if we contain no path at all |
| 107 | # relative or not. |
| 108 | case $0 in |
| 109 | *[\\/]* ) as_myself=$0 ;; |
| 110 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 111 | for as_dir in $PATH |
| 112 | do |
| 113 | IFS=$as_save_IFS |
| 114 | test -z "$as_dir" && as_dir=. |
| 115 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 116 | done |
| 117 | |
| 118 | ;; |
| 119 | esac |
| 120 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 121 | # in which case we are not to be found in the path. |
| 122 | if test "x$as_myself" = x; then |
| 123 | as_myself=$0 |
| 124 | fi |
| 125 | if test ! -f "$as_myself"; then |
| 126 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 127 | { (exit 1); exit 1; }; } |
| 128 | fi |
| 129 | case $CONFIG_SHELL in |
| 130 | '') |
| 131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 132 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 133 | do |
| 134 | IFS=$as_save_IFS |
| 135 | test -z "$as_dir" && as_dir=. |
| 136 | for as_base in sh bash ksh sh5; do |
| 137 | case $as_dir in |
| 138 | /*) |
| 139 | if ("$as_dir/$as_base" -c ' |
| 140 | as_lineno_1=$LINENO |
| 141 | as_lineno_2=$LINENO |
| 142 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 143 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 144 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 145 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 146 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 147 | CONFIG_SHELL=$as_dir/$as_base |
| 148 | export CONFIG_SHELL |
| 149 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 150 | fi;; |
| 151 | esac |
| 152 | done |
| 153 | done |
| 154 | ;; |
| 155 | esac |
| 156 | |
| 157 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 158 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 159 | # line-number line before each line; the second 'sed' does the real |
| 160 | # work. The second script uses 'N' to pair each line-number line |
| 161 | # with the numbered line, and appends trailing '-' during |
| 162 | # substitution so that $LINENO is not a special case at line end. |
| 163 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 164 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 165 | sed '=' <$as_myself | |
| 166 | sed ' |
| 167 | N |
| 168 | s,$,-, |
| 169 | : loop |
| 170 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 171 | t loop |
| 172 | s,-$,, |
| 173 | s,^['$as_cr_digits']*\n,, |
| 174 | ' >$as_me.lineno && |
| 175 | chmod +x $as_me.lineno || |
| 176 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 177 | { (exit 1); exit 1; }; } |
| 178 | |
| 179 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 180 | # (the dirname of $[0] is not the place where we might find the |
| 181 | # original and so on. Autoconf is especially sensible to this). |
| 182 | . ./$as_me.lineno |
| 183 | # Exit status is that of the last command. |
| 184 | exit |
| 185 | } |
| 186 | |
| 187 | |
| 188 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 189 | *c*,-n*) ECHO_N= ECHO_C=' |
| 190 | ' ECHO_T=' ' ;; |
| 191 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 192 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 193 | esac |
| 194 | |
| 195 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 196 | as_expr=expr |
| 197 | else |
| 198 | as_expr=false |
| 199 | fi |
| 200 | |
| 201 | rm -f conf$$ conf$$.exe conf$$.file |
| 202 | echo >conf$$.file |
| 203 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 204 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 205 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 206 | if test -f conf$$.exe; then |
| 207 | # Don't use ln at all; we don't have any links |
| 208 | as_ln_s='cp -p' |
| 209 | else |
| 210 | as_ln_s='ln -s' |
| 211 | fi |
| 212 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 213 | as_ln_s=ln |
| 214 | else |
| 215 | as_ln_s='cp -p' |
| 216 | fi |
| 217 | rm -f conf$$ conf$$.exe conf$$.file |
| 218 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 219 | if mkdir -p . 2>/dev/null; then |
| 220 | as_mkdir_p=: |
| 221 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 222 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 223 | as_mkdir_p=false |
| 224 | fi |
| 225 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 226 | as_executable_p="test -f" |
| 227 | |
| 228 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 229 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 230 | |
| 231 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 232 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 233 | |
| 234 | |
| 235 | # IFS |
| 236 | # We need space, tab and new line, in precisely that order. |
| 237 | as_nl=' |
| 238 | ' |
| 239 | IFS=" $as_nl" |
| 240 | |
| 241 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 242 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 243 | |
| 244 | |
| 245 | # Name of the host. |
| 246 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 247 | # so uname gets run too. |
| 248 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 249 | |
| 250 | exec 6>&1 |
| 251 | |
| 252 | # |
| 253 | # Initializations. |
| 254 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 255 | ac_default_prefix=/usr/local |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 256 | ac_config_libobj_dir=. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 257 | cross_compiling=no |
| 258 | subdirs= |
| 259 | MFLAGS= |
| 260 | MAKEFLAGS= |
| 261 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 262 | |
| 263 | # Maximum number of lines to put in a shell here document. |
| 264 | # This variable seems obsolete. It should probably be removed, and |
| 265 | # only ac_max_sed_lines should be used. |
| 266 | : ${ac_max_here_lines=38} |
| 267 | |
| 268 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 269 | PACKAGE_NAME='python' |
| 270 | PACKAGE_TARNAME='python' |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 271 | PACKAGE_VERSION='2.5' |
| 272 | PACKAGE_STRING='python 2.5' |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 273 | PACKAGE_BUGREPORT='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 274 | |
| 275 | ac_unique_file="Include/object.h" |
| 276 | # Factoring default headers for most tests. |
| 277 | ac_includes_default="\ |
| 278 | #include <stdio.h> |
| 279 | #if HAVE_SYS_TYPES_H |
| 280 | # include <sys/types.h> |
| 281 | #endif |
| 282 | #if HAVE_SYS_STAT_H |
| 283 | # include <sys/stat.h> |
| 284 | #endif |
| 285 | #if STDC_HEADERS |
| 286 | # include <stdlib.h> |
| 287 | # include <stddef.h> |
| 288 | #else |
| 289 | # if HAVE_STDLIB_H |
| 290 | # include <stdlib.h> |
| 291 | # endif |
| 292 | #endif |
| 293 | #if HAVE_STRING_H |
| 294 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 295 | # include <memory.h> |
| 296 | # endif |
| 297 | # include <string.h> |
| 298 | #endif |
| 299 | #if HAVE_STRINGS_H |
| 300 | # include <strings.h> |
| 301 | #endif |
| 302 | #if HAVE_INTTYPES_H |
| 303 | # include <inttypes.h> |
| 304 | #else |
| 305 | # if HAVE_STDINT_H |
| 306 | # include <stdint.h> |
| 307 | # endif |
| 308 | #endif |
| 309 | #if HAVE_UNISTD_H |
| 310 | # include <unistd.h> |
| 311 | #endif" |
| 312 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 314 | ac_subst_files='' |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 315 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 316 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 317 | ac_init_help= |
| 318 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 319 | # The variables have the same names as the options, with |
| 320 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 321 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 322 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 323 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 324 | no_recursion= |
| 325 | prefix=NONE |
| 326 | program_prefix=NONE |
| 327 | program_suffix=NONE |
| 328 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 329 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 330 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 331 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 332 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 333 | x_includes=NONE |
| 334 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 335 | |
| 336 | # Installation directory options. |
| 337 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 338 | # and all the variables that are supposed to be based on exec_prefix |
| 339 | # by default will actually change. |
| 340 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 341 | bindir='${exec_prefix}/bin' |
| 342 | sbindir='${exec_prefix}/sbin' |
| 343 | libexecdir='${exec_prefix}/libexec' |
| 344 | datadir='${prefix}/share' |
| 345 | sysconfdir='${prefix}/etc' |
| 346 | sharedstatedir='${prefix}/com' |
| 347 | localstatedir='${prefix}/var' |
| 348 | libdir='${exec_prefix}/lib' |
| 349 | includedir='${prefix}/include' |
| 350 | oldincludedir='/usr/include' |
| 351 | infodir='${prefix}/info' |
| 352 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 353 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 354 | ac_prev= |
| 355 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 356 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 357 | # If the previous option needs an argument, assign it. |
| 358 | if test -n "$ac_prev"; then |
| 359 | eval "$ac_prev=\$ac_option" |
| 360 | ac_prev= |
| 361 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 362 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 365 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 366 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 368 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 369 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 371 | ac_prev=bindir ;; |
| 372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 373 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 374 | |
| 375 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 376 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 378 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 379 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 382 | ac_prev=cache_file ;; |
| 383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 385 | cache_file=$ac_optarg ;; |
| 386 | |
| 387 | --config-cache | -C) |
| 388 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 389 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 391 | ac_prev=datadir ;; |
| 392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 393 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 394 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 395 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 396 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 398 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 401 | { (exit 1); exit 1; }; } |
| 402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 403 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 404 | |
| 405 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 407 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 410 | { (exit 1); exit 1; }; } |
| 411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 412 | case $ac_option in |
| 413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 414 | *) ac_optarg=yes ;; |
| 415 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 417 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 420 | | --exec | --exe | --ex) |
| 421 | ac_prev=exec_prefix ;; |
| 422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 424 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 425 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 426 | |
| 427 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 428 | # Obsolete; use --with-gas. |
| 429 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 431 | -help | --help | --hel | --he | -h) |
| 432 | ac_init_help=long ;; |
| 433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 434 | ac_init_help=recursive ;; |
| 435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 436 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 437 | |
| 438 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 439 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 440 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 441 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 442 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 443 | -includedir | --includedir | --includedi | --included | --include \ |
| 444 | | --includ | --inclu | --incl | --inc) |
| 445 | ac_prev=includedir ;; |
| 446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 447 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 448 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 449 | |
| 450 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 451 | ac_prev=infodir ;; |
| 452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 453 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 454 | |
| 455 | -libdir | --libdir | --libdi | --libd) |
| 456 | ac_prev=libdir ;; |
| 457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 458 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 459 | |
| 460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 461 | | --libexe | --libex | --libe) |
| 462 | ac_prev=libexecdir ;; |
| 463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 464 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 465 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 466 | |
| 467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 468 | | --localstate | --localstat | --localsta | --localst \ |
| 469 | | --locals | --local | --loca | --loc | --lo) |
| 470 | ac_prev=localstatedir ;; |
| 471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 474 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 475 | |
| 476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 477 | ac_prev=mandir ;; |
| 478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 479 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 480 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 481 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 482 | # Obsolete; use --without-fp. |
| 483 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 484 | |
| 485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 486 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 487 | no_create=yes ;; |
| 488 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 491 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 492 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 495 | | --oldin | --oldi | --old | --ol | --o) |
| 496 | ac_prev=oldincludedir ;; |
| 497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 500 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 501 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 503 | ac_prev=prefix ;; |
| 504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 505 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 506 | |
| 507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 508 | | --program-pre | --program-pr | --program-p) |
| 509 | ac_prev=program_prefix ;; |
| 510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 512 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 513 | |
| 514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 515 | | --program-suf | --program-su | --program-s) |
| 516 | ac_prev=program_suffix ;; |
| 517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 519 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 520 | |
| 521 | -program-transform-name | --program-transform-name \ |
| 522 | | --program-transform-nam | --program-transform-na \ |
| 523 | | --program-transform-n | --program-transform- \ |
| 524 | | --program-transform | --program-transfor \ |
| 525 | | --program-transfo | --program-transf \ |
| 526 | | --program-trans | --program-tran \ |
| 527 | | --progr-tra | --program-tr | --program-t) |
| 528 | ac_prev=program_transform_name ;; |
| 529 | -program-transform-name=* | --program-transform-name=* \ |
| 530 | | --program-transform-nam=* | --program-transform-na=* \ |
| 531 | | --program-transform-n=* | --program-transform-=* \ |
| 532 | | --program-transform=* | --program-transfor=* \ |
| 533 | | --program-transfo=* | --program-transf=* \ |
| 534 | | --program-trans=* | --program-tran=* \ |
| 535 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 536 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 537 | |
| 538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 539 | | -silent | --silent | --silen | --sile | --sil) |
| 540 | silent=yes ;; |
| 541 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 543 | ac_prev=sbindir ;; |
| 544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 545 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 546 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 547 | |
| 548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 550 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 551 | | --sha | --sh) |
| 552 | ac_prev=sharedstatedir ;; |
| 553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 556 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 557 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 558 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 559 | -site | --site | --sit) |
| 560 | ac_prev=site ;; |
| 561 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 563 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 565 | ac_prev=srcdir ;; |
| 566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 567 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 568 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 570 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 571 | ac_prev=sysconfdir ;; |
| 572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 574 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 575 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 576 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 577 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 580 | |
| 581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 582 | verbose=yes ;; |
| 583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 584 | -version | --version | --versio | --versi | --vers | -V) |
| 585 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 586 | |
| 587 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 589 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 592 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 594 | case $ac_option in |
| 595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 596 | *) ac_optarg=yes ;; |
| 597 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 598 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 599 | |
| 600 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 602 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 605 | { (exit 1); exit 1; }; } |
| 606 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 607 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 608 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 609 | --x) |
| 610 | # Obsolete; use --with-x. |
| 611 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 612 | |
| 613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 614 | | --x-incl | --x-inc | --x-in | --x-i) |
| 615 | ac_prev=x_includes ;; |
| 616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 618 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 619 | |
| 620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 622 | ac_prev=x_libraries ;; |
| 623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 625 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 628 | Try \`$0 --help' for more information." >&2 |
| 629 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 630 | ;; |
| 631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 632 | *=*) |
| 633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 634 | # Reject names that are not valid shell variable names. |
| 635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 637 | { (exit 1); exit 1; }; } |
| 638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 639 | eval "$ac_envvar='$ac_optarg'" |
| 640 | export $ac_envvar ;; |
| 641 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 642 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 643 | # FIXME: should be removed in autoconf 3.0. |
| 644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 648 | ;; |
| 649 | |
| 650 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 651 | done |
| 652 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 653 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 655 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 656 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 657 | fi |
| 658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 659 | # Be sure to have absolute paths. |
| 660 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 661 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 662 | eval ac_val=$`echo $ac_var` |
| 663 | case $ac_val in |
| 664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 666 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 667 | esac |
| 668 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 670 | # Be sure to have absolute paths. |
| 671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 672 | localstatedir libdir includedir oldincludedir infodir mandir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 673 | do |
| 674 | eval ac_val=$`echo $ac_var` |
| 675 | case $ac_val in |
| 676 | [\\/$]* | ?:[\\/]* ) ;; |
| 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 678 | { (exit 1); exit 1; }; };; |
| 679 | esac |
| 680 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 682 | # There might be people who depend on the old broken behavior: `$host' |
| 683 | # used to hold the argument of --host etc. |
| 684 | # FIXME: To remove some day. |
| 685 | build=$build_alias |
| 686 | host=$host_alias |
| 687 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 689 | # FIXME: To remove some day. |
| 690 | if test "x$host_alias" != x; then |
| 691 | if test "x$build_alias" = x; then |
| 692 | cross_compiling=maybe |
| 693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 694 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 695 | elif test "x$build_alias" != "x$host_alias"; then |
| 696 | cross_compiling=yes |
| 697 | fi |
| 698 | fi |
| 699 | |
| 700 | ac_tool_prefix= |
| 701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 702 | |
| 703 | test "$silent" = yes && exec 6>/dev/null |
| 704 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 705 | |
| 706 | # Find the source files, if location was not specified. |
| 707 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 708 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 709 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 712 | X"$0" : 'X\(//\)[^/]' \| \ |
| 713 | X"$0" : 'X\(//\)$' \| \ |
| 714 | X"$0" : 'X\(/\)' \| \ |
| 715 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 716 | echo X"$0" | |
| 717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 719 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 720 | /^X\(\/\).*/{ s//\1/; q; } |
| 721 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 722 | srcdir=$ac_confdir |
| 723 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 724 | srcdir=.. |
| 725 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 726 | else |
| 727 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 728 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 729 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 730 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 732 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 735 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 736 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 737 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 740 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 742 | ac_env_build_alias_set=${build_alias+set} |
| 743 | ac_env_build_alias_value=$build_alias |
| 744 | ac_cv_env_build_alias_set=${build_alias+set} |
| 745 | ac_cv_env_build_alias_value=$build_alias |
| 746 | ac_env_host_alias_set=${host_alias+set} |
| 747 | ac_env_host_alias_value=$host_alias |
| 748 | ac_cv_env_host_alias_set=${host_alias+set} |
| 749 | ac_cv_env_host_alias_value=$host_alias |
| 750 | ac_env_target_alias_set=${target_alias+set} |
| 751 | ac_env_target_alias_value=$target_alias |
| 752 | ac_cv_env_target_alias_set=${target_alias+set} |
| 753 | ac_cv_env_target_alias_value=$target_alias |
| 754 | ac_env_CC_set=${CC+set} |
| 755 | ac_env_CC_value=$CC |
| 756 | ac_cv_env_CC_set=${CC+set} |
| 757 | ac_cv_env_CC_value=$CC |
| 758 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 759 | ac_env_CFLAGS_value=$CFLAGS |
| 760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 761 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 762 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 763 | ac_env_LDFLAGS_value=$LDFLAGS |
| 764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 765 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 767 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 770 | ac_env_CPP_set=${CPP+set} |
| 771 | ac_env_CPP_value=$CPP |
| 772 | ac_cv_env_CPP_set=${CPP+set} |
| 773 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 775 | # |
| 776 | # Report the --help message. |
| 777 | # |
| 778 | if test "$ac_init_help" = "long"; then |
| 779 | # Omit some internal or obsolete options to make the list less imposing. |
| 780 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 781 | cat <<_ACEOF |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 782 | \`configure' configures python 2.5 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 783 | |
| 784 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 785 | |
| 786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 787 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 788 | |
| 789 | Defaults for the options are specified in brackets. |
| 790 | |
| 791 | Configuration: |
| 792 | -h, --help display this help and exit |
| 793 | --help=short display options specific to this package |
| 794 | --help=recursive display the short help of all the included packages |
| 795 | -V, --version display version information and exit |
| 796 | -q, --quiet, --silent do not print \`checking...' messages |
| 797 | --cache-file=FILE cache test results in FILE [disabled] |
| 798 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 799 | -n, --no-create do not create output files |
| 800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 801 | |
| 802 | _ACEOF |
| 803 | |
| 804 | cat <<_ACEOF |
| 805 | Installation directories: |
| 806 | --prefix=PREFIX install architecture-independent files in PREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 807 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 809 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 810 | |
| 811 | By default, \`make install' will install all the files in |
| 812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 814 | for instance \`--prefix=\$HOME'. |
| 815 | |
| 816 | For better control, use the options below. |
| 817 | |
| 818 | Fine tuning of the installation directories: |
| 819 | --bindir=DIR user executables [EPREFIX/bin] |
| 820 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 821 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 826 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 827 | --includedir=DIR C header files [PREFIX/include] |
| 828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 829 | --infodir=DIR info documentation [PREFIX/info] |
| 830 | --mandir=DIR man documentation [PREFIX/man] |
| 831 | _ACEOF |
| 832 | |
| 833 | cat <<\_ACEOF |
| 834 | _ACEOF |
| 835 | fi |
| 836 | |
| 837 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 838 | case $ac_init_help in |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 839 | short | recursive ) echo "Configuration of python 2.5:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 840 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 841 | cat <<\_ACEOF |
| 842 | |
| 843 | Optional Features: |
| 844 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 845 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 846 | --enable-framework[=INSTALLDIR] |
| 847 | Build (MacOSX|Darwin) framework |
| 848 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 849 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 850 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 851 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 852 | --disable-ipv6 Disable ipv6 support |
| 853 | --enable-unicode[=ucs[24]] |
| 854 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 855 | |
| 856 | Optional Packages: |
| 857 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 858 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 859 | --without-gcc never use gcc |
| 860 | --with-cxx=<compiler> enable C++ support |
| 861 | --with-suffix=.exe set executable suffix |
| 862 | --with-pydebug build with Py_DEBUG defined |
| 863 | --with-libs='lib1 ...' link against additional libs |
| 864 | --with-signal-module disable/enable signal module |
| 865 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 866 | --with(out)-threads[=DIRECTORY] |
| 867 | disable/enable thread support |
| 868 | --with(out)-thread[=DIRECTORY] |
| 869 | deprecated; use --with(out)-threads |
| 870 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 871 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 872 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 873 | --with(out)-pymalloc disable/enable specialized mallocs |
| 874 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 875 | --with-fpectl enable SIGFPE catching |
| 876 | --with-libm=STRING math library |
| 877 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 878 | |
| 879 | Some influential environment variables: |
| 880 | CC C compiler command |
| 881 | CFLAGS C compiler flags |
| 882 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 883 | nonstandard directory <lib dir> |
| 884 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 885 | headers in a nonstandard directory <include dir> |
| 886 | CPP C preprocessor |
| 887 | |
| 888 | Use these variables to override the choices made by `configure' or to help |
| 889 | it to find libraries and programs with nonstandard names/locations. |
| 890 | |
| 891 | _ACEOF |
| 892 | fi |
| 893 | |
| 894 | if test "$ac_init_help" = "recursive"; then |
| 895 | # If there are subdirs, report their specific --help. |
| 896 | ac_popdir=`pwd` |
| 897 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 898 | test -d $ac_dir || continue |
| 899 | ac_builddir=. |
| 900 | |
| 901 | if test "$ac_dir" != .; then |
| 902 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 903 | # A "../" for each directory in $ac_dir_suffix. |
| 904 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 905 | else |
| 906 | ac_dir_suffix= ac_top_builddir= |
| 907 | fi |
| 908 | |
| 909 | case $srcdir in |
| 910 | .) # No --srcdir option. We are building in place. |
| 911 | ac_srcdir=. |
| 912 | if test -z "$ac_top_builddir"; then |
| 913 | ac_top_srcdir=. |
| 914 | else |
| 915 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 916 | fi ;; |
| 917 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 918 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 919 | ac_top_srcdir=$srcdir ;; |
| 920 | *) # Relative path. |
| 921 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 922 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 923 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 924 | |
| 925 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 926 | # the directories may not exist. |
| 927 | case `pwd` in |
| 928 | .) ac_abs_builddir="$ac_dir";; |
| 929 | *) |
| 930 | case "$ac_dir" in |
| 931 | .) ac_abs_builddir=`pwd`;; |
| 932 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 933 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 934 | esac;; |
| 935 | esac |
| 936 | case $ac_abs_builddir in |
| 937 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 938 | *) |
| 939 | case ${ac_top_builddir}. in |
| 940 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 941 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 942 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 943 | esac;; |
| 944 | esac |
| 945 | case $ac_abs_builddir in |
| 946 | .) ac_abs_srcdir=$ac_srcdir;; |
| 947 | *) |
| 948 | case $ac_srcdir in |
| 949 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 950 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 951 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 952 | esac;; |
| 953 | esac |
| 954 | case $ac_abs_builddir in |
| 955 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 956 | *) |
| 957 | case $ac_top_srcdir in |
| 958 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 959 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 960 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 961 | esac;; |
| 962 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 963 | |
| 964 | cd $ac_dir |
| 965 | # Check for guested configure; otherwise get Cygnus style configure. |
| 966 | if test -f $ac_srcdir/configure.gnu; then |
| 967 | echo |
| 968 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 969 | elif test -f $ac_srcdir/configure; then |
| 970 | echo |
| 971 | $SHELL $ac_srcdir/configure --help=recursive |
| 972 | elif test -f $ac_srcdir/configure.ac || |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 973 | test -f $ac_srcdir/configure.in; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 974 | echo |
| 975 | $ac_configure --help |
| 976 | else |
| 977 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 978 | fi |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 979 | cd $ac_popdir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 980 | done |
| 981 | fi |
| 982 | |
| 983 | test -n "$ac_init_help" && exit 0 |
| 984 | if $ac_init_version; then |
| 985 | cat <<\_ACEOF |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 986 | python configure 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 987 | generated by GNU Autoconf 2.59 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 988 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 989 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 990 | This configure script is free software; the Free Software Foundation |
| 991 | gives unlimited permission to copy, distribute and modify it. |
| 992 | _ACEOF |
| 993 | exit 0 |
| 994 | fi |
| 995 | exec 5>config.log |
| 996 | cat >&5 <<_ACEOF |
| 997 | This file contains any messages produced by compilers while |
| 998 | running configure, to aid debugging if configure makes a mistake. |
| 999 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 1000 | It was created by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1001 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1002 | |
| 1003 | $ $0 $@ |
| 1004 | |
| 1005 | _ACEOF |
| 1006 | { |
| 1007 | cat <<_ASUNAME |
| 1008 | ## --------- ## |
| 1009 | ## Platform. ## |
| 1010 | ## --------- ## |
| 1011 | |
| 1012 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1013 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1014 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1015 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1016 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1017 | |
| 1018 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1019 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1020 | |
| 1021 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1022 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1023 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1024 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1025 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1026 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1027 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1028 | |
| 1029 | _ASUNAME |
| 1030 | |
| 1031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1032 | for as_dir in $PATH |
| 1033 | do |
| 1034 | IFS=$as_save_IFS |
| 1035 | test -z "$as_dir" && as_dir=. |
| 1036 | echo "PATH: $as_dir" |
| 1037 | done |
| 1038 | |
| 1039 | } >&5 |
| 1040 | |
| 1041 | cat >&5 <<_ACEOF |
| 1042 | |
| 1043 | |
| 1044 | ## ----------- ## |
| 1045 | ## Core tests. ## |
| 1046 | ## ----------- ## |
| 1047 | |
| 1048 | _ACEOF |
| 1049 | |
| 1050 | |
| 1051 | # Keep a trace of the command line. |
| 1052 | # Strip out --no-create and --no-recursion so they do not pile up. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1053 | # Strip out --silent because we don't want to record it for future runs. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1054 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1055 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1056 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1057 | ac_configure_args0= |
| 1058 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1060 | ac_must_keep_next=false |
| 1061 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1063 | for ac_arg |
| 1064 | do |
| 1065 | case $ac_arg in |
| 1066 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1067 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1068 | | -silent | --silent | --silen | --sile | --sil) |
| 1069 | continue ;; |
| 1070 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1071 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1072 | esac |
| 1073 | case $ac_pass in |
| 1074 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1075 | 2) |
| 1076 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1077 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1078 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1079 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1080 | case $ac_arg in |
| 1081 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1082 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1083 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1084 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1085 | case "$ac_configure_args0 " in |
| 1086 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1087 | esac |
| 1088 | ;; |
| 1089 | -* ) ac_must_keep_next=true ;; |
| 1090 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1091 | fi |
| 1092 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1093 | # Get rid of the leading space. |
| 1094 | ac_sep=" " |
| 1095 | ;; |
| 1096 | esac |
| 1097 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1098 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1099 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1100 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1101 | |
| 1102 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1103 | # config.log. We remove comments because anyway the quotes in there |
| 1104 | # would cause problems or look ugly. |
| 1105 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1106 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1107 | trap 'exit_status=$? |
| 1108 | # Save into config.log some information that might help in debugging. |
| 1109 | { |
| 1110 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1112 | cat <<\_ASBOX |
| 1113 | ## ---------------- ## |
| 1114 | ## Cache variables. ## |
| 1115 | ## ---------------- ## |
| 1116 | _ASBOX |
| 1117 | echo |
| 1118 | # The following way of writing the cache mishandles newlines in values, |
| 1119 | { |
| 1120 | (set) 2>&1 | |
| 1121 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1122 | *ac_space=\ *) |
| 1123 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1124 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1125 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1126 | ;; |
| 1127 | *) |
| 1128 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1129 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1130 | ;; |
| 1131 | esac; |
| 1132 | } |
| 1133 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1134 | |
| 1135 | cat <<\_ASBOX |
| 1136 | ## ----------------- ## |
| 1137 | ## Output variables. ## |
| 1138 | ## ----------------- ## |
| 1139 | _ASBOX |
| 1140 | echo |
| 1141 | for ac_var in $ac_subst_vars |
| 1142 | do |
| 1143 | eval ac_val=$`echo $ac_var` |
| 1144 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1145 | done | sort |
| 1146 | echo |
| 1147 | |
| 1148 | if test -n "$ac_subst_files"; then |
| 1149 | cat <<\_ASBOX |
| 1150 | ## ------------- ## |
| 1151 | ## Output files. ## |
| 1152 | ## ------------- ## |
| 1153 | _ASBOX |
| 1154 | echo |
| 1155 | for ac_var in $ac_subst_files |
| 1156 | do |
| 1157 | eval ac_val=$`echo $ac_var` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1158 | echo "$ac_var='"'"'$ac_val'"'"'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1159 | done | sort |
| 1160 | echo |
| 1161 | fi |
| 1162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1163 | if test -s confdefs.h; then |
| 1164 | cat <<\_ASBOX |
| 1165 | ## ----------- ## |
| 1166 | ## confdefs.h. ## |
| 1167 | ## ----------- ## |
| 1168 | _ASBOX |
| 1169 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1170 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1171 | echo |
| 1172 | fi |
| 1173 | test "$ac_signal" != 0 && |
| 1174 | echo "$as_me: caught signal $ac_signal" |
| 1175 | echo "$as_me: exit $exit_status" |
| 1176 | } >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1177 | rm -f core *.core && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1178 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1179 | exit $exit_status |
| 1180 | ' 0 |
| 1181 | for ac_signal in 1 2 13 15; do |
| 1182 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1183 | done |
| 1184 | ac_signal=0 |
| 1185 | |
| 1186 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1187 | rm -rf conftest* confdefs.h |
| 1188 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1189 | echo >confdefs.h |
| 1190 | |
| 1191 | # Predefined preprocessor variables. |
| 1192 | |
| 1193 | cat >>confdefs.h <<_ACEOF |
| 1194 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1195 | _ACEOF |
| 1196 | |
| 1197 | |
| 1198 | cat >>confdefs.h <<_ACEOF |
| 1199 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1200 | _ACEOF |
| 1201 | |
| 1202 | |
| 1203 | cat >>confdefs.h <<_ACEOF |
| 1204 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1205 | _ACEOF |
| 1206 | |
| 1207 | |
| 1208 | cat >>confdefs.h <<_ACEOF |
| 1209 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1210 | _ACEOF |
| 1211 | |
| 1212 | |
| 1213 | cat >>confdefs.h <<_ACEOF |
| 1214 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1215 | _ACEOF |
| 1216 | |
| 1217 | |
| 1218 | # Let the site file select an alternate cache file if it wants to. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1219 | # Prefer explicitly selected file to automatically selected ones. |
| 1220 | if test -z "$CONFIG_SITE"; then |
| 1221 | if test "x$prefix" != xNONE; then |
| 1222 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1223 | else |
| 1224 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1225 | fi |
| 1226 | fi |
| 1227 | for ac_site_file in $CONFIG_SITE; do |
| 1228 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1229 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1230 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1231 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1232 | . "$ac_site_file" |
| 1233 | fi |
| 1234 | done |
| 1235 | |
| 1236 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1237 | # Some versions of bash will fail to source /dev/null (special |
| 1238 | # files actually), so we avoid doing that. |
| 1239 | if test -f "$cache_file"; then |
| 1240 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1241 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1242 | case $cache_file in |
| 1243 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1244 | *) . ./$cache_file;; |
| 1245 | esac |
| 1246 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1247 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1248 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1249 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1250 | >$cache_file |
| 1251 | fi |
| 1252 | |
| 1253 | # Check that the precious variables saved in the cache have kept the same |
| 1254 | # value. |
| 1255 | ac_cache_corrupted=false |
| 1256 | for ac_var in `(set) 2>&1 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1257 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1258 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1259 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1260 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1261 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1262 | case $ac_old_set,$ac_new_set in |
| 1263 | set,) |
| 1264 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1265 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1266 | ac_cache_corrupted=: ;; |
| 1267 | ,set) |
| 1268 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1269 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1270 | ac_cache_corrupted=: ;; |
| 1271 | ,);; |
| 1272 | *) |
| 1273 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1274 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1276 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1277 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1278 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1279 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1280 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1281 | fi;; |
| 1282 | esac |
| 1283 | # Pass precious variables to config.status. |
| 1284 | if test "$ac_new_set" = set; then |
| 1285 | case $ac_new_val in |
| 1286 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1287 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1288 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1289 | esac |
| 1290 | case " $ac_configure_args " in |
| 1291 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1292 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1293 | esac |
| 1294 | fi |
| 1295 | done |
| 1296 | if $ac_cache_corrupted; then |
| 1297 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1298 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1299 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1300 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1301 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1302 | fi |
| 1303 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1304 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1305 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1309 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1310 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1311 | |
| 1312 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1336 | |
| 1337 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1338 | |
| 1339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1340 | |
| 1341 | |
| 1342 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1343 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1344 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1345 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1346 | # with other autoconf-based packages that include Python.h |
| 1347 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1348 | rm confdefs.h |
| 1349 | mv confdefs.h.new confdefs.h |
| 1350 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1351 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 1352 | VERSION=2.5 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1353 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1354 | |
| 1355 | SOVERSION=1.0 |
| 1356 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1357 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1358 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1359 | |
| 1360 | cat >>confdefs.h <<\_ACEOF |
| 1361 | #define _GNU_SOURCE 1 |
| 1362 | _ACEOF |
| 1363 | |
| 1364 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1365 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1366 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1367 | # them. |
| 1368 | |
| 1369 | cat >>confdefs.h <<\_ACEOF |
| 1370 | #define _NETBSD_SOURCE 1 |
| 1371 | _ACEOF |
| 1372 | |
| 1373 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1374 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1375 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1376 | # them. |
| 1377 | |
| 1378 | cat >>confdefs.h <<\_ACEOF |
| 1379 | #define __BSD_VISIBLE 1 |
| 1380 | _ACEOF |
| 1381 | |
| 1382 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1383 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1384 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1385 | |
| 1386 | cat >>confdefs.h <<\_ACEOF |
| 1387 | #define _BSD_TYPES 1 |
| 1388 | _ACEOF |
| 1389 | |
| 1390 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1391 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1392 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1393 | # Arguments passed to configure. |
| 1394 | |
| 1395 | CONFIG_ARGS="$ac_configure_args" |
| 1396 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1397 | # Check whether --enable-framework or --disable-framework was given. |
| 1398 | if test "${enable_framework+set}" = set; then |
| 1399 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1400 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1401 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1402 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1403 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1404 | esac |
| 1405 | case $enableval in |
| 1406 | no) |
| 1407 | PYTHONFRAMEWORK= |
| 1408 | PYTHONFRAMEWORKDIR=no-framework |
| 1409 | PYTHONFRAMEWORKPREFIX= |
| 1410 | PYTHONFRAMEWORKINSTALLDIR= |
| 1411 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1412 | ;; |
| 1413 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1414 | PYTHONFRAMEWORK=Python |
| 1415 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1416 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1417 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1418 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1419 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1420 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1422 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1423 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1424 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1425 | PYTHONFRAMEWORKPREFIX= |
| 1426 | PYTHONFRAMEWORKINSTALLDIR= |
| 1427 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1429 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1430 | |
| 1431 | |
| 1432 | |
| 1433 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1434 | |
| 1435 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1436 | ## AC_HELP_STRING(--with-dyld, |
| 1437 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1438 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1439 | # Set name for machine-dependent library files |
| 1440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1441 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1442 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1443 | if test -z "$MACHDEP" |
| 1444 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1445 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1446 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1447 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1448 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1449 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1450 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1451 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1452 | ac_md_system=`echo $ac_sys_system | |
| 1453 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1454 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1455 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1456 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1457 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1458 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1459 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1460 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1461 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1462 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1463 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1464 | esac |
| 1465 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1466 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1467 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1468 | # disable features if it is defined, without any means to access these |
| 1469 | # features as extensions. For these systems, we skip the definition of |
| 1470 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1471 | # some feature, make sure there is no alternative way to access this |
| 1472 | # feature. Also, when using wildcards, make sure you have verified the |
| 1473 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1474 | # wildcard, and that the wildcard does not include future systems |
| 1475 | # (which may remove their limitations). |
| 1476 | case $ac_sys_system/$ac_sys_release in |
| 1477 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1478 | # 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] | 1479 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Martin v. Löwis | 9996828 | 2004-09-15 06:02:54 +0000 | [diff] [blame] | 1480 | OpenBSD/2.* | OpenBSD/3.[0123456]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1481 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1482 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1483 | # of union __?sigval. Reported by Stuart Bishop. |
| 1484 | SunOS/5.6) |
| 1485 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1486 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1487 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1488 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 1489 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1490 | define_xopen_source=no;; |
| 1491 | # 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] | 1492 | # 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] | 1493 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1494 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 1495 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 1496 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 1497 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 1498 | # This should hopefully be fixed in FreeBSD 4.9 |
| 1499 | FreeBSD/4.8* | Darwin/6* ) |
| 1500 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1501 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 1502 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 1503 | # 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] | 1504 | AIX/4) |
| 1505 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1506 | AIX/5) |
| 1507 | if test `uname -r` -eq 1; then |
| 1508 | define_xopen_source=no |
| 1509 | fi |
| 1510 | ;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1511 | esac |
| 1512 | |
| 1513 | if test $define_xopen_source = yes |
| 1514 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1515 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 1516 | # defined precisely as g++ defines it |
| 1517 | case $ac_sys_system/$ac_sys_release in |
| 1518 | SunOS/5.8|SunOS/5.9) |
| 1519 | |
| 1520 | cat >>confdefs.h <<\_ACEOF |
| 1521 | #define _XOPEN_SOURCE 500 |
| 1522 | _ACEOF |
| 1523 | |
| 1524 | ;; |
| 1525 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1526 | |
| 1527 | cat >>confdefs.h <<\_ACEOF |
| 1528 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1529 | _ACEOF |
| 1530 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1531 | ;; |
| 1532 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1533 | |
| 1534 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1535 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1536 | # several APIs are not declared. Since this is also needed in some |
| 1537 | # cases for HP-UX, we define it globally. |
| 1538 | |
| 1539 | |
| 1540 | cat >>confdefs.h <<\_ACEOF |
| 1541 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1542 | _ACEOF |
| 1543 | |
| 1544 | |
| 1545 | cat >>confdefs.h <<\_ACEOF |
| 1546 | #define _POSIX_C_SOURCE 200112L |
| 1547 | _ACEOF |
| 1548 | |
| 1549 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1550 | fi |
| 1551 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1552 | # |
| 1553 | # SGI compilers allow the specification of the both the ABI and the |
| 1554 | # ISA on the command line. Depending on the values of these switches, |
| 1555 | # different and often incompatable code will be generated. |
| 1556 | # |
| 1557 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1558 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1559 | # variable is also adjusted. |
| 1560 | # |
| 1561 | |
| 1562 | if test ! -z "$SGI_ABI" |
| 1563 | then |
| 1564 | CC="cc $SGI_ABI" |
| 1565 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1566 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1568 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1569 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1570 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1571 | # And add extra plat-mac for darwin |
| 1572 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1573 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1574 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1575 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1576 | if test -z "$EXTRAPLATDIR" |
| 1577 | then |
| 1578 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1579 | darwin) |
| 1580 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1581 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1582 | ;; |
| 1583 | *) |
| 1584 | EXTRAPLATDIR="" |
| 1585 | EXTRAMACHDEPPATH="" |
| 1586 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1587 | esac |
| 1588 | fi |
| 1589 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1590 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1591 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1592 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 1593 | # it may influence the way we can build extensions, so distutils |
| 1594 | # needs to check it |
| 1595 | |
| 1596 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
| 1597 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1598 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1599 | |
| 1600 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1601 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1602 | # just to get things to compile and link. Users are free to override OPT |
| 1603 | # when running configure or make. The build should not break if they do. |
| 1604 | # BASECFLAGS should generally not be messed with, however. |
| 1605 | |
| 1606 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1607 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1608 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1609 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1610 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1611 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1612 | if test "${with_gcc+set}" = set; then |
| 1613 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1614 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1615 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1616 | no) CC=cc |
| 1617 | without_gcc=yes;; |
| 1618 | yes) CC=gcc |
| 1619 | without_gcc=no;; |
| 1620 | *) CC=$withval |
| 1621 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1622 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1624 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1625 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1626 | AIX*) CC=cc_r |
| 1627 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1628 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1629 | case $BE_HOST_CPU in |
| 1630 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1631 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1632 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1633 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1634 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1635 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1636 | ;; |
| 1637 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1638 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1639 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1640 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1641 | ;; |
| 1642 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1643 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1644 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1645 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1646 | ;; |
| 1647 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1648 | AR="\$(srcdir)/Modules/ar_beos" |
| 1649 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1650 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1651 | Monterey*) |
| 1652 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1653 | without_gcc=;; |
| 1654 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1655 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1656 | fi; |
| 1657 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1658 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1659 | |
| 1660 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1661 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1662 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1663 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1664 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1665 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1666 | # Check whether --with-cxx or --without-cxx was given. |
| 1667 | if test "${with_cxx+set}" = set; then |
| 1668 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1669 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1670 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1671 | case $withval in |
| 1672 | no) CXX= |
| 1673 | with_cxx=no;; |
| 1674 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1675 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1676 | with_cxx=$withval;; |
| 1677 | esac |
| 1678 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1679 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1680 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1681 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1683 | fi; |
| 1684 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1685 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1686 | |
| 1687 | if test "$with_cxx" = "yes" |
| 1688 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1689 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1690 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1691 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1692 | fi |
| 1693 | |
| 1694 | |
| 1695 | |
| 1696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1697 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1698 | then |
| 1699 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1700 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1701 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1702 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1705 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1707 | else |
| 1708 | if test -n "$CXX"; then |
| 1709 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1710 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1712 | for as_dir in $PATH |
| 1713 | do |
| 1714 | IFS=$as_save_IFS |
| 1715 | test -z "$as_dir" && as_dir=. |
| 1716 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1718 | ac_cv_prog_CXX="$ac_prog" |
| 1719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1720 | break 2 |
| 1721 | fi |
| 1722 | done |
| 1723 | done |
| 1724 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1725 | fi |
| 1726 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1727 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1728 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1729 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1730 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1732 | echo "$as_me:$LINENO: result: no" >&5 |
| 1733 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1734 | fi |
| 1735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1736 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1737 | done |
| 1738 | test -n "$CXX" || CXX="notfound" |
| 1739 | |
| 1740 | if test "$CXX" = "notfound" |
| 1741 | then |
| 1742 | CXX= |
| 1743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1744 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1745 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1746 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1747 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1748 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1749 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1750 | /* confdefs.h. */ |
| 1751 | _ACEOF |
| 1752 | cat confdefs.h >>conftest.$ac_ext |
| 1753 | cat >>conftest.$ac_ext <<_ACEOF |
| 1754 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1756 | int |
| 1757 | main () |
| 1758 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1760 | ; |
| 1761 | return 0; |
| 1762 | } |
| 1763 | _ACEOF |
| 1764 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1765 | 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] | 1766 | # Try to create an executable without -o first, disregard a.out. |
| 1767 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1768 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1769 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
| 1770 | 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] | 1771 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1772 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1773 | (eval $ac_link_default) 2>&5 |
| 1774 | ac_status=$? |
| 1775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1776 | (exit $ac_status); }; then |
| 1777 | # Find the output, starting from the most likely. This scheme is |
| 1778 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1779 | # resort. |
| 1780 | |
| 1781 | # Be careful to initialize this variable, since it used to be cached. |
| 1782 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1783 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1784 | # b.out is created by i960 compilers. |
| 1785 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1786 | do |
| 1787 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1788 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1790 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1791 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1792 | # This is the source file. |
| 1793 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1794 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1795 | # We found the default executable, but exeext='' is most |
| 1796 | # certainly right. |
| 1797 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1798 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1799 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1800 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1801 | # but it would be cool to find out if it's true. Does anybody |
| 1802 | # maintain Libtool? --akim. |
| 1803 | export ac_cv_exeext |
| 1804 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1805 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1806 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1807 | esac |
| 1808 | done |
| 1809 | else |
| 1810 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1812 | |
| 1813 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1814 | See \`config.log' for more details." >&5 |
| 1815 | echo "$as_me: error: C++ compiler cannot create executables |
| 1816 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1817 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1818 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1819 | |
| 1820 | ac_exeext=$ac_cv_exeext |
| 1821 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1822 | echo "${ECHO_T}$ac_file" >&6 |
| 1823 | |
| 1824 | # Check the compiler produces executables we can run. If not, either |
| 1825 | # the compiler is broken, or we cross compile. |
| 1826 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1827 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1828 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1829 | # If not cross compiling, check that we can run a simple program. |
| 1830 | if test "$cross_compiling" != yes; then |
| 1831 | if { ac_try='./$ac_file' |
| 1832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1833 | (eval $ac_try) 2>&5 |
| 1834 | ac_status=$? |
| 1835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1836 | (exit $ac_status); }; }; then |
| 1837 | cross_compiling=no |
| 1838 | else |
| 1839 | if test "$cross_compiling" = maybe; then |
| 1840 | cross_compiling=yes |
| 1841 | else |
| 1842 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1843 | If you meant to cross compile, use \`--host'. |
| 1844 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1845 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1846 | If you meant to cross compile, use \`--host'. |
| 1847 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1848 | { (exit 1); exit 1; }; } |
| 1849 | fi |
| 1850 | fi |
| 1851 | fi |
| 1852 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1853 | echo "${ECHO_T}yes" >&6 |
| 1854 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1855 | 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] | 1856 | ac_clean_files=$ac_clean_files_save |
| 1857 | # Check the compiler produces executables we can run. If not, either |
| 1858 | # the compiler is broken, or we cross compile. |
| 1859 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1860 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1861 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1862 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1863 | |
| 1864 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1865 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1867 | (eval $ac_link) 2>&5 |
| 1868 | ac_status=$? |
| 1869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1870 | (exit $ac_status); }; then |
| 1871 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1872 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1873 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1874 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1875 | for ac_file in conftest.exe conftest conftest.*; do |
| 1876 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1877 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1878 | *.$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] | 1879 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1880 | export ac_cv_exeext |
| 1881 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1882 | * ) break;; |
| 1883 | esac |
| 1884 | done |
| 1885 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1886 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1887 | See \`config.log' for more details." >&5 |
| 1888 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1889 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1890 | { (exit 1); exit 1; }; } |
| 1891 | fi |
| 1892 | |
| 1893 | rm -f conftest$ac_cv_exeext |
| 1894 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1895 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1896 | |
| 1897 | rm -f conftest.$ac_ext |
| 1898 | EXEEXT=$ac_cv_exeext |
| 1899 | ac_exeext=$EXEEXT |
| 1900 | |
| 1901 | ac_ext=c |
| 1902 | ac_cpp='$CPP $CPPFLAGS' |
| 1903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1906 | |
| 1907 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1908 | |
| 1909 | fi |
| 1910 | fi |
| 1911 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1912 | # If the user switches compilers, we can't believe the cache |
| 1913 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1914 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1915 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1916 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1917 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1918 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1919 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1920 | fi |
| 1921 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1922 | ac_ext=c |
| 1923 | ac_cpp='$CPP $CPPFLAGS' |
| 1924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1927 | if test -n "$ac_tool_prefix"; then |
| 1928 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1929 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1930 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1932 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1934 | else |
| 1935 | if test -n "$CC"; then |
| 1936 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1939 | for as_dir in $PATH |
| 1940 | do |
| 1941 | IFS=$as_save_IFS |
| 1942 | test -z "$as_dir" && as_dir=. |
| 1943 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1944 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1945 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1947 | break 2 |
| 1948 | fi |
| 1949 | done |
| 1950 | done |
| 1951 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1952 | fi |
| 1953 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1954 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1955 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1956 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1957 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1958 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1959 | echo "$as_me:$LINENO: result: no" >&5 |
| 1960 | echo "${ECHO_T}no" >&6 |
| 1961 | fi |
| 1962 | |
| 1963 | fi |
| 1964 | if test -z "$ac_cv_prog_CC"; then |
| 1965 | ac_ct_CC=$CC |
| 1966 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1967 | set dummy gcc; ac_word=$2 |
| 1968 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1969 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1970 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1972 | else |
| 1973 | if test -n "$ac_ct_CC"; then |
| 1974 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1975 | else |
| 1976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1977 | for as_dir in $PATH |
| 1978 | do |
| 1979 | IFS=$as_save_IFS |
| 1980 | test -z "$as_dir" && as_dir=. |
| 1981 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1982 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1983 | ac_cv_prog_ac_ct_CC="gcc" |
| 1984 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1985 | break 2 |
| 1986 | fi |
| 1987 | done |
| 1988 | done |
| 1989 | |
| 1990 | fi |
| 1991 | fi |
| 1992 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1993 | if test -n "$ac_ct_CC"; then |
| 1994 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1995 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1996 | else |
| 1997 | echo "$as_me:$LINENO: result: no" >&5 |
| 1998 | echo "${ECHO_T}no" >&6 |
| 1999 | fi |
| 2000 | |
| 2001 | CC=$ac_ct_CC |
| 2002 | else |
| 2003 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2004 | fi |
| 2005 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2006 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2007 | if test -n "$ac_tool_prefix"; then |
| 2008 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2009 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2010 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2012 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2014 | else |
| 2015 | if test -n "$CC"; then |
| 2016 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2017 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2019 | for as_dir in $PATH |
| 2020 | do |
| 2021 | IFS=$as_save_IFS |
| 2022 | test -z "$as_dir" && as_dir=. |
| 2023 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2024 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2025 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2026 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2027 | break 2 |
| 2028 | fi |
| 2029 | done |
| 2030 | done |
| 2031 | |
| 2032 | fi |
| 2033 | fi |
| 2034 | CC=$ac_cv_prog_CC |
| 2035 | if test -n "$CC"; then |
| 2036 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2037 | echo "${ECHO_T}$CC" >&6 |
| 2038 | else |
| 2039 | echo "$as_me:$LINENO: result: no" >&5 |
| 2040 | echo "${ECHO_T}no" >&6 |
| 2041 | fi |
| 2042 | |
| 2043 | fi |
| 2044 | if test -z "$ac_cv_prog_CC"; then |
| 2045 | ac_ct_CC=$CC |
| 2046 | # Extract the first word of "cc", so it can be a program name with args. |
| 2047 | set dummy cc; ac_word=$2 |
| 2048 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2050 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2052 | else |
| 2053 | if test -n "$ac_ct_CC"; then |
| 2054 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2055 | else |
| 2056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2057 | for as_dir in $PATH |
| 2058 | do |
| 2059 | IFS=$as_save_IFS |
| 2060 | test -z "$as_dir" && as_dir=. |
| 2061 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2062 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2063 | ac_cv_prog_ac_ct_CC="cc" |
| 2064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2065 | break 2 |
| 2066 | fi |
| 2067 | done |
| 2068 | done |
| 2069 | |
| 2070 | fi |
| 2071 | fi |
| 2072 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2073 | if test -n "$ac_ct_CC"; then |
| 2074 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2075 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2076 | else |
| 2077 | echo "$as_me:$LINENO: result: no" >&5 |
| 2078 | echo "${ECHO_T}no" >&6 |
| 2079 | fi |
| 2080 | |
| 2081 | CC=$ac_ct_CC |
| 2082 | else |
| 2083 | CC="$ac_cv_prog_CC" |
| 2084 | fi |
| 2085 | |
| 2086 | fi |
| 2087 | if test -z "$CC"; then |
| 2088 | # Extract the first word of "cc", so it can be a program name with args. |
| 2089 | set dummy cc; ac_word=$2 |
| 2090 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2092 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2094 | else |
| 2095 | if test -n "$CC"; then |
| 2096 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2097 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2098 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2100 | for as_dir in $PATH |
| 2101 | do |
| 2102 | IFS=$as_save_IFS |
| 2103 | test -z "$as_dir" && as_dir=. |
| 2104 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2105 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2106 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2107 | ac_prog_rejected=yes |
| 2108 | continue |
| 2109 | fi |
| 2110 | ac_cv_prog_CC="cc" |
| 2111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2112 | break 2 |
| 2113 | fi |
| 2114 | done |
| 2115 | done |
| 2116 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2117 | if test $ac_prog_rejected = yes; then |
| 2118 | # We found a bogon in the path, so make sure we never use it. |
| 2119 | set dummy $ac_cv_prog_CC |
| 2120 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2121 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2122 | # We chose a different compiler from the bogus one. |
| 2123 | # However, it has the same basename, so the bogon will be chosen |
| 2124 | # first if we set CC to just the basename; use the full file name. |
| 2125 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2126 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2127 | fi |
| 2128 | fi |
| 2129 | fi |
| 2130 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2131 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2132 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2133 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2134 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2136 | echo "$as_me:$LINENO: result: no" >&5 |
| 2137 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2138 | fi |
| 2139 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2140 | fi |
| 2141 | if test -z "$CC"; then |
| 2142 | if test -n "$ac_tool_prefix"; then |
| 2143 | for ac_prog in cl |
| 2144 | do |
| 2145 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2146 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2149 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2151 | else |
| 2152 | if test -n "$CC"; then |
| 2153 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2154 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2156 | for as_dir in $PATH |
| 2157 | do |
| 2158 | IFS=$as_save_IFS |
| 2159 | test -z "$as_dir" && as_dir=. |
| 2160 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2162 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2164 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2166 | done |
| 2167 | done |
| 2168 | |
| 2169 | fi |
| 2170 | fi |
| 2171 | CC=$ac_cv_prog_CC |
| 2172 | if test -n "$CC"; then |
| 2173 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2174 | echo "${ECHO_T}$CC" >&6 |
| 2175 | else |
| 2176 | echo "$as_me:$LINENO: result: no" >&5 |
| 2177 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2178 | fi |
| 2179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2180 | test -n "$CC" && break |
| 2181 | done |
| 2182 | fi |
| 2183 | if test -z "$CC"; then |
| 2184 | ac_ct_CC=$CC |
| 2185 | for ac_prog in cl |
| 2186 | do |
| 2187 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2188 | set dummy $ac_prog; ac_word=$2 |
| 2189 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2191 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2193 | else |
| 2194 | if test -n "$ac_ct_CC"; then |
| 2195 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2196 | else |
| 2197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2198 | for as_dir in $PATH |
| 2199 | do |
| 2200 | IFS=$as_save_IFS |
| 2201 | test -z "$as_dir" && as_dir=. |
| 2202 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2203 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2204 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2206 | break 2 |
| 2207 | fi |
| 2208 | done |
| 2209 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2211 | fi |
| 2212 | fi |
| 2213 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2214 | if test -n "$ac_ct_CC"; then |
| 2215 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2216 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2217 | else |
| 2218 | echo "$as_me:$LINENO: result: no" >&5 |
| 2219 | echo "${ECHO_T}no" >&6 |
| 2220 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2221 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2222 | test -n "$ac_ct_CC" && break |
| 2223 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2225 | CC=$ac_ct_CC |
| 2226 | fi |
| 2227 | |
| 2228 | fi |
| 2229 | |
| 2230 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2231 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2232 | See \`config.log' for more details." >&5 |
| 2233 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2234 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2235 | { (exit 1); exit 1; }; } |
| 2236 | |
| 2237 | # Provide some information about the compiler. |
| 2238 | echo "$as_me:$LINENO:" \ |
| 2239 | "checking for C compiler version" >&5 |
| 2240 | ac_compiler=`set X $ac_compile; echo $2` |
| 2241 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2242 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2243 | ac_status=$? |
| 2244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2245 | (exit $ac_status); } |
| 2246 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2247 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2248 | ac_status=$? |
| 2249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2250 | (exit $ac_status); } |
| 2251 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2252 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2253 | ac_status=$? |
| 2254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2255 | (exit $ac_status); } |
| 2256 | |
| 2257 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2258 | /* confdefs.h. */ |
| 2259 | _ACEOF |
| 2260 | cat confdefs.h >>conftest.$ac_ext |
| 2261 | cat >>conftest.$ac_ext <<_ACEOF |
| 2262 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2264 | int |
| 2265 | main () |
| 2266 | { |
| 2267 | |
| 2268 | ; |
| 2269 | return 0; |
| 2270 | } |
| 2271 | _ACEOF |
| 2272 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2273 | 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] | 2274 | # Try to create an executable without -o first, disregard a.out. |
| 2275 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2276 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2277 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2278 | 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] | 2279 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2280 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2281 | (eval $ac_link_default) 2>&5 |
| 2282 | ac_status=$? |
| 2283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2284 | (exit $ac_status); }; then |
| 2285 | # Find the output, starting from the most likely. This scheme is |
| 2286 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2287 | # resort. |
| 2288 | |
| 2289 | # Be careful to initialize this variable, since it used to be cached. |
| 2290 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2291 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2292 | # b.out is created by i960 compilers. |
| 2293 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2294 | do |
| 2295 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2296 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2297 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2298 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2299 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2300 | # This is the source file. |
| 2301 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2302 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2303 | # We found the default executable, but exeext='' is most |
| 2304 | # certainly right. |
| 2305 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2306 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2307 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2308 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2309 | # but it would be cool to find out if it's true. Does anybody |
| 2310 | # maintain Libtool? --akim. |
| 2311 | export ac_cv_exeext |
| 2312 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2313 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2314 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2315 | esac |
| 2316 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2318 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2320 | |
| 2321 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2322 | See \`config.log' for more details." >&5 |
| 2323 | echo "$as_me: error: C compiler cannot create executables |
| 2324 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2325 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2326 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2328 | ac_exeext=$ac_cv_exeext |
| 2329 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2330 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2331 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2332 | # Check the compiler produces executables we can run. If not, either |
| 2333 | # the compiler is broken, or we cross compile. |
| 2334 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2335 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2336 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2337 | # If not cross compiling, check that we can run a simple program. |
| 2338 | if test "$cross_compiling" != yes; then |
| 2339 | if { ac_try='./$ac_file' |
| 2340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2341 | (eval $ac_try) 2>&5 |
| 2342 | ac_status=$? |
| 2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2344 | (exit $ac_status); }; }; then |
| 2345 | cross_compiling=no |
| 2346 | else |
| 2347 | if test "$cross_compiling" = maybe; then |
| 2348 | cross_compiling=yes |
| 2349 | else |
| 2350 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2351 | If you meant to cross compile, use \`--host'. |
| 2352 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2353 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2354 | If you meant to cross compile, use \`--host'. |
| 2355 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2356 | { (exit 1); exit 1; }; } |
| 2357 | fi |
| 2358 | fi |
| 2359 | fi |
| 2360 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2361 | echo "${ECHO_T}yes" >&6 |
| 2362 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2363 | 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] | 2364 | ac_clean_files=$ac_clean_files_save |
| 2365 | # Check the compiler produces executables we can run. If not, either |
| 2366 | # the compiler is broken, or we cross compile. |
| 2367 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2368 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2369 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2370 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2371 | |
| 2372 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2373 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2375 | (eval $ac_link) 2>&5 |
| 2376 | ac_status=$? |
| 2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2378 | (exit $ac_status); }; then |
| 2379 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2380 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2381 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2382 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2383 | for ac_file in conftest.exe conftest conftest.*; do |
| 2384 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2385 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2386 | *.$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] | 2387 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2388 | export ac_cv_exeext |
| 2389 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2390 | * ) break;; |
| 2391 | esac |
| 2392 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2393 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2394 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2395 | See \`config.log' for more details." >&5 |
| 2396 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2397 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2398 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2399 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2400 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2401 | rm -f conftest$ac_cv_exeext |
| 2402 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2403 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2404 | |
| 2405 | rm -f conftest.$ac_ext |
| 2406 | EXEEXT=$ac_cv_exeext |
| 2407 | ac_exeext=$EXEEXT |
| 2408 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2409 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2410 | if test "${ac_cv_objext+set}" = set; then |
| 2411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2412 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2413 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2414 | /* confdefs.h. */ |
| 2415 | _ACEOF |
| 2416 | cat confdefs.h >>conftest.$ac_ext |
| 2417 | cat >>conftest.$ac_ext <<_ACEOF |
| 2418 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2420 | int |
| 2421 | main () |
| 2422 | { |
| 2423 | |
| 2424 | ; |
| 2425 | return 0; |
| 2426 | } |
| 2427 | _ACEOF |
| 2428 | rm -f conftest.o conftest.obj |
| 2429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2430 | (eval $ac_compile) 2>&5 |
| 2431 | ac_status=$? |
| 2432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2433 | (exit $ac_status); }; then |
| 2434 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2435 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2436 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2437 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2438 | break;; |
| 2439 | esac |
| 2440 | done |
| 2441 | else |
| 2442 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2444 | |
| 2445 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2446 | See \`config.log' for more details." >&5 |
| 2447 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2448 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2449 | { (exit 1); exit 1; }; } |
| 2450 | fi |
| 2451 | |
| 2452 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2453 | fi |
| 2454 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2455 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2456 | OBJEXT=$ac_cv_objext |
| 2457 | ac_objext=$OBJEXT |
| 2458 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2459 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2460 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2462 | else |
| 2463 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2464 | /* confdefs.h. */ |
| 2465 | _ACEOF |
| 2466 | cat confdefs.h >>conftest.$ac_ext |
| 2467 | cat >>conftest.$ac_ext <<_ACEOF |
| 2468 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | int |
| 2471 | main () |
| 2472 | { |
| 2473 | #ifndef __GNUC__ |
| 2474 | choke me |
| 2475 | #endif |
| 2476 | |
| 2477 | ; |
| 2478 | return 0; |
| 2479 | } |
| 2480 | _ACEOF |
| 2481 | rm -f conftest.$ac_objext |
| 2482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2483 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2486 | rm -f conftest.er1 |
| 2487 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2489 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2490 | { ac_try='test -z "$ac_c_werror_flag" |
| 2491 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2493 | (eval $ac_try) 2>&5 |
| 2494 | ac_status=$? |
| 2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2496 | (exit $ac_status); }; } && |
| 2497 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2499 | (eval $ac_try) 2>&5 |
| 2500 | ac_status=$? |
| 2501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2502 | (exit $ac_status); }; }; then |
| 2503 | ac_compiler_gnu=yes |
| 2504 | else |
| 2505 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2508 | ac_compiler_gnu=no |
| 2509 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2511 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2512 | |
| 2513 | fi |
| 2514 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2515 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2516 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2517 | ac_test_CFLAGS=${CFLAGS+set} |
| 2518 | ac_save_CFLAGS=$CFLAGS |
| 2519 | CFLAGS="-g" |
| 2520 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2521 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2522 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2524 | else |
| 2525 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2526 | /* confdefs.h. */ |
| 2527 | _ACEOF |
| 2528 | cat confdefs.h >>conftest.$ac_ext |
| 2529 | cat >>conftest.$ac_ext <<_ACEOF |
| 2530 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | int |
| 2533 | main () |
| 2534 | { |
| 2535 | |
| 2536 | ; |
| 2537 | return 0; |
| 2538 | } |
| 2539 | _ACEOF |
| 2540 | rm -f conftest.$ac_objext |
| 2541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2542 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2543 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2545 | rm -f conftest.er1 |
| 2546 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2548 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2549 | { ac_try='test -z "$ac_c_werror_flag" |
| 2550 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2552 | (eval $ac_try) 2>&5 |
| 2553 | ac_status=$? |
| 2554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2555 | (exit $ac_status); }; } && |
| 2556 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2558 | (eval $ac_try) 2>&5 |
| 2559 | ac_status=$? |
| 2560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2561 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2562 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2564 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2568 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2570 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2571 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2572 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2573 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2574 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2575 | elif test $ac_cv_prog_cc_g = yes; then |
| 2576 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2577 | CFLAGS="-g -O2" |
| 2578 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2579 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2580 | fi |
| 2581 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2582 | if test "$GCC" = yes; then |
| 2583 | CFLAGS="-O2" |
| 2584 | else |
| 2585 | CFLAGS= |
| 2586 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2587 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2588 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2589 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2590 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2592 | else |
| 2593 | ac_cv_prog_cc_stdc=no |
| 2594 | ac_save_CC=$CC |
| 2595 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2596 | /* confdefs.h. */ |
| 2597 | _ACEOF |
| 2598 | cat confdefs.h >>conftest.$ac_ext |
| 2599 | cat >>conftest.$ac_ext <<_ACEOF |
| 2600 | /* end confdefs.h. */ |
| 2601 | #include <stdarg.h> |
| 2602 | #include <stdio.h> |
| 2603 | #include <sys/types.h> |
| 2604 | #include <sys/stat.h> |
| 2605 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2606 | struct buf { int x; }; |
| 2607 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2608 | static char *e (p, i) |
| 2609 | char **p; |
| 2610 | int i; |
| 2611 | { |
| 2612 | return p[i]; |
| 2613 | } |
| 2614 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2615 | { |
| 2616 | char *s; |
| 2617 | va_list v; |
| 2618 | va_start (v,p); |
| 2619 | s = g (p, va_arg (v,int)); |
| 2620 | va_end (v); |
| 2621 | return s; |
| 2622 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2623 | |
| 2624 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2625 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2626 | These don't provoke an error unfortunately, instead are silently treated |
| 2627 | as 'x'. The following induces an error, until -std1 is added to get |
| 2628 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2629 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2630 | that's true only with -std1. */ |
| 2631 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2632 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2633 | int test (int i, double x); |
| 2634 | struct s1 {int (*f) (int a);}; |
| 2635 | struct s2 {int (*f) (double a);}; |
| 2636 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2637 | int argc; |
| 2638 | char **argv; |
| 2639 | int |
| 2640 | main () |
| 2641 | { |
| 2642 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2643 | ; |
| 2644 | return 0; |
| 2645 | } |
| 2646 | _ACEOF |
| 2647 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2648 | # breaks some systems' header files. |
| 2649 | # AIX -qlanglvl=ansi |
| 2650 | # Ultrix and OSF/1 -std1 |
| 2651 | # HP-UX 10.20 and later -Ae |
| 2652 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2653 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2654 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2655 | do |
| 2656 | CC="$ac_save_CC $ac_arg" |
| 2657 | rm -f conftest.$ac_objext |
| 2658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2659 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2660 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2662 | rm -f conftest.er1 |
| 2663 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2665 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2666 | { ac_try='test -z "$ac_c_werror_flag" |
| 2667 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2669 | (eval $ac_try) 2>&5 |
| 2670 | ac_status=$? |
| 2671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2672 | (exit $ac_status); }; } && |
| 2673 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2675 | (eval $ac_try) 2>&5 |
| 2676 | ac_status=$? |
| 2677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2678 | (exit $ac_status); }; }; then |
| 2679 | ac_cv_prog_cc_stdc=$ac_arg |
| 2680 | break |
| 2681 | else |
| 2682 | echo "$as_me: failed program was:" >&5 |
| 2683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2684 | |
| 2685 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2686 | rm -f conftest.err conftest.$ac_objext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2687 | done |
| 2688 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2689 | CC=$ac_save_CC |
| 2690 | |
| 2691 | fi |
| 2692 | |
| 2693 | case "x$ac_cv_prog_cc_stdc" in |
| 2694 | x|xno) |
| 2695 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2696 | echo "${ECHO_T}none needed" >&6 ;; |
| 2697 | *) |
| 2698 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2699 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2700 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2701 | esac |
| 2702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2703 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2704 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2705 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2706 | # the declaration of exit, since it's the most demanding environment. |
| 2707 | cat >conftest.$ac_ext <<_ACEOF |
| 2708 | #ifndef __cplusplus |
| 2709 | choke me |
| 2710 | #endif |
| 2711 | _ACEOF |
| 2712 | rm -f conftest.$ac_objext |
| 2713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2714 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2715 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2717 | rm -f conftest.er1 |
| 2718 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2720 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2721 | { ac_try='test -z "$ac_c_werror_flag" |
| 2722 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2724 | (eval $ac_try) 2>&5 |
| 2725 | ac_status=$? |
| 2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2727 | (exit $ac_status); }; } && |
| 2728 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2730 | (eval $ac_try) 2>&5 |
| 2731 | ac_status=$? |
| 2732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2733 | (exit $ac_status); }; }; then |
| 2734 | for ac_declaration in \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2735 | '' \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2736 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2737 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2738 | 'extern "C" void exit (int) throw ();' \ |
| 2739 | 'extern "C" void exit (int);' \ |
| 2740 | 'void exit (int);' |
| 2741 | do |
| 2742 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2743 | /* confdefs.h. */ |
| 2744 | _ACEOF |
| 2745 | cat confdefs.h >>conftest.$ac_ext |
| 2746 | cat >>conftest.$ac_ext <<_ACEOF |
| 2747 | /* end confdefs.h. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 2748 | $ac_declaration |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2749 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2750 | int |
| 2751 | main () |
| 2752 | { |
| 2753 | exit (42); |
| 2754 | ; |
| 2755 | return 0; |
| 2756 | } |
| 2757 | _ACEOF |
| 2758 | rm -f conftest.$ac_objext |
| 2759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2760 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2761 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2763 | rm -f conftest.er1 |
| 2764 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2766 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2767 | { ac_try='test -z "$ac_c_werror_flag" |
| 2768 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2770 | (eval $ac_try) 2>&5 |
| 2771 | ac_status=$? |
| 2772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2773 | (exit $ac_status); }; } && |
| 2774 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2776 | (eval $ac_try) 2>&5 |
| 2777 | ac_status=$? |
| 2778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2779 | (exit $ac_status); }; }; then |
| 2780 | : |
| 2781 | else |
| 2782 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2785 | continue |
| 2786 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2788 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2789 | /* confdefs.h. */ |
| 2790 | _ACEOF |
| 2791 | cat confdefs.h >>conftest.$ac_ext |
| 2792 | cat >>conftest.$ac_ext <<_ACEOF |
| 2793 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2794 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2795 | int |
| 2796 | main () |
| 2797 | { |
| 2798 | exit (42); |
| 2799 | ; |
| 2800 | return 0; |
| 2801 | } |
| 2802 | _ACEOF |
| 2803 | rm -f conftest.$ac_objext |
| 2804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2805 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2806 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2808 | rm -f conftest.er1 |
| 2809 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2811 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 2812 | { ac_try='test -z "$ac_c_werror_flag" |
| 2813 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2815 | (eval $ac_try) 2>&5 |
| 2816 | ac_status=$? |
| 2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2818 | (exit $ac_status); }; } && |
| 2819 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2821 | (eval $ac_try) 2>&5 |
| 2822 | ac_status=$? |
| 2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2824 | (exit $ac_status); }; }; then |
| 2825 | break |
| 2826 | else |
| 2827 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2830 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2832 | done |
| 2833 | rm -f conftest* |
| 2834 | if test -n "$ac_declaration"; then |
| 2835 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2836 | echo $ac_declaration >>confdefs.h |
| 2837 | echo '#endif' >>confdefs.h |
| 2838 | fi |
| 2839 | |
| 2840 | else |
| 2841 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2844 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2846 | ac_ext=c |
| 2847 | ac_cpp='$CPP $CPPFLAGS' |
| 2848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2851 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2852 | |
| 2853 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2854 | |
| 2855 | ac_ext=c |
| 2856 | ac_cpp='$CPP $CPPFLAGS' |
| 2857 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2858 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2859 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2860 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2861 | 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] | 2862 | # On Suns, sometimes $CPP names a directory. |
| 2863 | if test -n "$CPP" && test -d "$CPP"; then |
| 2864 | CPP= |
| 2865 | fi |
| 2866 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2867 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2870 | # Double quotes because CPP needs to be expanded |
| 2871 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2872 | do |
| 2873 | ac_preproc_ok=false |
| 2874 | for ac_c_preproc_warn_flag in '' yes |
| 2875 | do |
| 2876 | # Use a header file that comes with gcc, so configuring glibc |
| 2877 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2878 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2879 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2880 | # 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] | 2881 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2882 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2883 | /* confdefs.h. */ |
| 2884 | _ACEOF |
| 2885 | cat confdefs.h >>conftest.$ac_ext |
| 2886 | cat >>conftest.$ac_ext <<_ACEOF |
| 2887 | /* end confdefs.h. */ |
| 2888 | #ifdef __STDC__ |
| 2889 | # include <limits.h> |
| 2890 | #else |
| 2891 | # include <assert.h> |
| 2892 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2893 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2894 | _ACEOF |
| 2895 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2896 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2897 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2898 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2899 | rm -f conftest.er1 |
| 2900 | cat conftest.err >&5 |
| 2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2902 | (exit $ac_status); } >/dev/null; then |
| 2903 | if test -s conftest.err; then |
| 2904 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2905 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2906 | else |
| 2907 | ac_cpp_err= |
| 2908 | fi |
| 2909 | else |
| 2910 | ac_cpp_err=yes |
| 2911 | fi |
| 2912 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2913 | : |
| 2914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2915 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | # Broken: fails on valid input. |
| 2919 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2920 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2921 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2923 | # OK, works on sane cases. Now check whether non-existent headers |
| 2924 | # can be detected and how. |
| 2925 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2926 | /* confdefs.h. */ |
| 2927 | _ACEOF |
| 2928 | cat confdefs.h >>conftest.$ac_ext |
| 2929 | cat >>conftest.$ac_ext <<_ACEOF |
| 2930 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2931 | #include <ac_nonexistent.h> |
| 2932 | _ACEOF |
| 2933 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2934 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2935 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2936 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 | rm -f conftest.er1 |
| 2938 | cat conftest.err >&5 |
| 2939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2940 | (exit $ac_status); } >/dev/null; then |
| 2941 | if test -s conftest.err; then |
| 2942 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2943 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2944 | else |
| 2945 | ac_cpp_err= |
| 2946 | fi |
| 2947 | else |
| 2948 | ac_cpp_err=yes |
| 2949 | fi |
| 2950 | if test -z "$ac_cpp_err"; then |
| 2951 | # Broken: success on invalid input. |
| 2952 | continue |
| 2953 | else |
| 2954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2957 | # Passes both tests. |
| 2958 | ac_preproc_ok=: |
| 2959 | break |
| 2960 | fi |
| 2961 | rm -f conftest.err conftest.$ac_ext |
| 2962 | |
| 2963 | done |
| 2964 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2965 | rm -f conftest.err conftest.$ac_ext |
| 2966 | if $ac_preproc_ok; then |
| 2967 | break |
| 2968 | fi |
| 2969 | |
| 2970 | done |
| 2971 | ac_cv_prog_CPP=$CPP |
| 2972 | |
| 2973 | fi |
| 2974 | CPP=$ac_cv_prog_CPP |
| 2975 | else |
| 2976 | ac_cv_prog_CPP=$CPP |
| 2977 | fi |
| 2978 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2979 | echo "${ECHO_T}$CPP" >&6 |
| 2980 | ac_preproc_ok=false |
| 2981 | for ac_c_preproc_warn_flag in '' yes |
| 2982 | do |
| 2983 | # Use a header file that comes with gcc, so configuring glibc |
| 2984 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2985 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2986 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2987 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2988 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2989 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2990 | /* confdefs.h. */ |
| 2991 | _ACEOF |
| 2992 | cat confdefs.h >>conftest.$ac_ext |
| 2993 | cat >>conftest.$ac_ext <<_ACEOF |
| 2994 | /* end confdefs.h. */ |
| 2995 | #ifdef __STDC__ |
| 2996 | # include <limits.h> |
| 2997 | #else |
| 2998 | # include <assert.h> |
| 2999 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3000 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3001 | _ACEOF |
| 3002 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3003 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3004 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3005 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3006 | rm -f conftest.er1 |
| 3007 | cat conftest.err >&5 |
| 3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3009 | (exit $ac_status); } >/dev/null; then |
| 3010 | if test -s conftest.err; then |
| 3011 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3012 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3013 | else |
| 3014 | ac_cpp_err= |
| 3015 | fi |
| 3016 | else |
| 3017 | ac_cpp_err=yes |
| 3018 | fi |
| 3019 | if test -z "$ac_cpp_err"; then |
| 3020 | : |
| 3021 | else |
| 3022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3025 | # Broken: fails on valid input. |
| 3026 | continue |
| 3027 | fi |
| 3028 | rm -f conftest.err conftest.$ac_ext |
| 3029 | |
| 3030 | # OK, works on sane cases. Now check whether non-existent headers |
| 3031 | # can be detected and how. |
| 3032 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3033 | /* confdefs.h. */ |
| 3034 | _ACEOF |
| 3035 | cat confdefs.h >>conftest.$ac_ext |
| 3036 | cat >>conftest.$ac_ext <<_ACEOF |
| 3037 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3038 | #include <ac_nonexistent.h> |
| 3039 | _ACEOF |
| 3040 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3041 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3042 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3043 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3044 | rm -f conftest.er1 |
| 3045 | cat conftest.err >&5 |
| 3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3047 | (exit $ac_status); } >/dev/null; then |
| 3048 | if test -s conftest.err; then |
| 3049 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3050 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3051 | else |
| 3052 | ac_cpp_err= |
| 3053 | fi |
| 3054 | else |
| 3055 | ac_cpp_err=yes |
| 3056 | fi |
| 3057 | if test -z "$ac_cpp_err"; then |
| 3058 | # Broken: success on invalid input. |
| 3059 | continue |
| 3060 | else |
| 3061 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3064 | # Passes both tests. |
| 3065 | ac_preproc_ok=: |
| 3066 | break |
| 3067 | fi |
| 3068 | rm -f conftest.err conftest.$ac_ext |
| 3069 | |
| 3070 | done |
| 3071 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3072 | rm -f conftest.err conftest.$ac_ext |
| 3073 | if $ac_preproc_ok; then |
| 3074 | : |
| 3075 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3076 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3077 | See \`config.log' for more details." >&5 |
| 3078 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3079 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3080 | { (exit 1); exit 1; }; } |
| 3081 | fi |
| 3082 | |
| 3083 | ac_ext=c |
| 3084 | ac_cpp='$CPP $CPPFLAGS' |
| 3085 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3086 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3087 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3088 | |
| 3089 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3090 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3091 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3092 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3094 | else |
| 3095 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3096 | then ac_cv_prog_egrep='grep -E' |
| 3097 | else ac_cv_prog_egrep='egrep' |
| 3098 | fi |
| 3099 | fi |
| 3100 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3101 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3102 | EGREP=$ac_cv_prog_egrep |
| 3103 | |
| 3104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3105 | |
| 3106 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3107 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3108 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3109 | /* confdefs.h. */ |
| 3110 | _ACEOF |
| 3111 | cat confdefs.h >>conftest.$ac_ext |
| 3112 | cat >>conftest.$ac_ext <<_ACEOF |
| 3113 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3114 | #ifdef _AIX |
| 3115 | yes |
| 3116 | #endif |
| 3117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3118 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3119 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3120 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3121 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3122 | echo "${ECHO_T}yes" >&6 |
| 3123 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3124 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3125 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3126 | |
| 3127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3128 | echo "$as_me:$LINENO: result: no" >&5 |
| 3129 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3130 | fi |
| 3131 | rm -f conftest* |
| 3132 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3133 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3134 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3135 | # Check for unsupported systems |
| 3136 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 3137 | Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3138 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3139 | echo See README for details. |
| 3140 | exit 1;; |
| 3141 | esac |
| 3142 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3144 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3145 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3146 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3147 | # Check whether --with-suffix or --without-suffix was given. |
| 3148 | if test "${with_suffix+set}" = set; then |
| 3149 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3150 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3151 | case $withval in |
| 3152 | no) EXEEXT=;; |
| 3153 | yes) EXEEXT=.exe;; |
| 3154 | *) EXEEXT=$withval;; |
| 3155 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3156 | fi; |
| 3157 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3158 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3159 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3160 | # Test whether we're running on a non-case-sensitive system, in which |
| 3161 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3163 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3164 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3165 | if test ! -d CaseSensitiveTestDir; then |
| 3166 | mkdir CaseSensitiveTestDir |
| 3167 | fi |
| 3168 | |
| 3169 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3170 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3171 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3172 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3173 | BUILDEXEEXT=.exe |
| 3174 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3175 | echo "$as_me:$LINENO: result: no" >&5 |
| 3176 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3177 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3178 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3179 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3180 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3181 | case $MACHDEP in |
| 3182 | bsdos*) |
| 3183 | case $CC in |
| 3184 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3185 | esac;; |
| 3186 | esac |
| 3187 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3188 | case $ac_sys_system in |
| 3189 | hp*|HP*) |
| 3190 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3191 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3192 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3193 | Monterey*) |
| 3194 | case $CC in |
| 3195 | cc) CC="$CC -Wl,-Bexport";; |
| 3196 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3197 | SunOS*) |
| 3198 | # 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] | 3199 | |
| 3200 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3201 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3202 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3203 | |
| 3204 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3205 | esac |
| 3206 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3207 | |
| 3208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3209 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3210 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3211 | if test -z "$LIBRARY" |
| 3212 | then |
| 3213 | LIBRARY='libpython$(VERSION).a' |
| 3214 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3215 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3216 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3217 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3218 | # 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] | 3219 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3220 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3221 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3222 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3223 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3224 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3225 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3226 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3227 | # RUNSHARED is used to run shared python without installed libraries |
| 3228 | # |
| 3229 | # INSTSONAME is the name of the shared library that will be use to install |
| 3230 | # on the system - some systems like version suffix, others don't |
| 3231 | |
| 3232 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3233 | |
| 3234 | |
| 3235 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3236 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3237 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3238 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3239 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3240 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3241 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3242 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3243 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3244 | # 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] | 3245 | # If CXX is set, and if it is needed to link a main function that was |
| 3246 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3247 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3248 | # 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] | 3249 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3251 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3252 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3253 | if test -z "$LINKCC" |
| 3254 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3255 | if test -z "$CXX"; then |
| 3256 | LINKCC="\$(PURIFY) \$(CC)" |
| 3257 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3258 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3259 | $CXX -c conftest.$ac_ext 2>&5 |
| 3260 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3261 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3262 | then |
| 3263 | LINKCC="\$(PURIFY) \$(CC)" |
| 3264 | else |
| 3265 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3266 | fi |
| 3267 | rm -fr conftest* |
| 3268 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3269 | case $ac_sys_system in |
| 3270 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3271 | exp_extra="\"\"" |
| 3272 | if test $ac_sys_release -ge 5 -o \ |
| 3273 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3274 | exp_extra="." |
| 3275 | fi |
| 3276 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3277 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3278 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3279 | esac |
| 3280 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3281 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3282 | echo "${ECHO_T}$LINKCC" >&6 |
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 for --enable-shared" >&5 |
| 3285 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3286 | # Check whether --enable-shared or --disable-shared was given. |
| 3287 | if test "${enable_shared+set}" = set; then |
| 3288 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3290 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3291 | |
| 3292 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3293 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3294 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3295 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3296 | enable_shared="yes";; |
| 3297 | *) |
| 3298 | enable_shared="no";; |
| 3299 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3300 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3301 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3302 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3303 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3304 | echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3305 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6 |
| 3306 | # Check whether --enable-profiling or --disable-profiling was given. |
| 3307 | if test "${enable_profiling+set}" = set; then |
| 3308 | enableval="$enable_profiling" |
| 3309 | ac_save_cc="$CC" |
| 3310 | CC="$CC -pg" |
| 3311 | if test "$cross_compiling" = yes; then |
| 3312 | ac_enable_profiling="no" |
| 3313 | else |
| 3314 | cat >conftest.$ac_ext <<_ACEOF |
| 3315 | /* confdefs.h. */ |
| 3316 | _ACEOF |
| 3317 | cat confdefs.h >>conftest.$ac_ext |
| 3318 | cat >>conftest.$ac_ext <<_ACEOF |
| 3319 | /* end confdefs.h. */ |
| 3320 | int main() { return 0; } |
| 3321 | _ACEOF |
| 3322 | rm -f conftest$ac_exeext |
| 3323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3324 | (eval $ac_link) 2>&5 |
| 3325 | ac_status=$? |
| 3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3327 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3329 | (eval $ac_try) 2>&5 |
| 3330 | ac_status=$? |
| 3331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3332 | (exit $ac_status); }; }; then |
| 3333 | ac_enable_profiling="yes" |
| 3334 | else |
| 3335 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3336 | echo "$as_me: failed program was:" >&5 |
| 3337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3338 | |
| 3339 | ( exit $ac_status ) |
| 3340 | ac_enable_profiling="no" |
| 3341 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3342 | 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] | 3343 | fi |
| 3344 | CC="$ac_save_cc" |
| 3345 | fi; |
| 3346 | echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3347 | echo "${ECHO_T}$ac_enable_profiling" >&6 |
| 3348 | |
| 3349 | case "$ac_enable_profiling" in |
| 3350 | "yes") |
| 3351 | BASECFLAGS="-pg $BASECFLAGS" |
| 3352 | LDFLAGS="-pg $LDFLAGS" |
| 3353 | ;; |
| 3354 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3356 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3357 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3358 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3359 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3360 | # library that we build, but we do not want to link against it (we |
| 3361 | # will find it with a -framework option). For this reason there is an |
| 3362 | # extra variable BLDLIBRARY against which Python and the extension |
| 3363 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3364 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3365 | if test "$enable_framework" |
| 3366 | then |
| 3367 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3368 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3369 | BLDLIBRARY='' |
| 3370 | else |
| 3371 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3372 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3373 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3374 | # Other platforms follow |
| 3375 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3376 | |
| 3377 | cat >>confdefs.h <<\_ACEOF |
| 3378 | #define Py_ENABLE_SHARED 1 |
| 3379 | _ACEOF |
| 3380 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3381 | case $ac_sys_system in |
| 3382 | BeOS*) |
| 3383 | LDLIBRARY='libpython$(VERSION).so' |
| 3384 | ;; |
| 3385 | CYGWIN*) |
| 3386 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3387 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3388 | ;; |
| 3389 | SunOS*) |
| 3390 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3391 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3392 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3393 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3394 | ;; |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3395 | Linux*|GNU*|NetBSD*|FreeBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3396 | LDLIBRARY='libpython$(VERSION).so' |
| 3397 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3398 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3399 | case $ac_sys_system in |
| 3400 | FreeBSD*) |
| 3401 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 3402 | ;; |
| 3403 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3404 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3405 | ;; |
| 3406 | hp*|HP*) |
| 3407 | LDLIBRARY='libpython$(VERSION).sl' |
| 3408 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3409 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3410 | ;; |
| 3411 | OSF*) |
| 3412 | LDLIBRARY='libpython$(VERSION).so' |
| 3413 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3414 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3415 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3416 | atheos*) |
| 3417 | LDLIBRARY='libpython$(VERSION).so' |
| 3418 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3419 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3420 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3421 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3422 | else # shared is disabled |
| 3423 | case $ac_sys_system in |
| 3424 | CYGWIN*) |
| 3425 | BLDLIBRARY='$(LIBRARY)' |
| 3426 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3427 | ;; |
| 3428 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3429 | fi |
| 3430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3431 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3432 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3434 | if test -n "$ac_tool_prefix"; then |
| 3435 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3436 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3439 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3441 | else |
| 3442 | if test -n "$RANLIB"; then |
| 3443 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3444 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3446 | for as_dir in $PATH |
| 3447 | do |
| 3448 | IFS=$as_save_IFS |
| 3449 | test -z "$as_dir" && as_dir=. |
| 3450 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3452 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3454 | break 2 |
| 3455 | fi |
| 3456 | done |
| 3457 | done |
| 3458 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3459 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3460 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3461 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3462 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3463 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3464 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3466 | echo "$as_me:$LINENO: result: no" >&5 |
| 3467 | echo "${ECHO_T}no" >&6 |
| 3468 | fi |
| 3469 | |
| 3470 | fi |
| 3471 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3472 | ac_ct_RANLIB=$RANLIB |
| 3473 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3474 | set dummy ranlib; ac_word=$2 |
| 3475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3477 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3479 | else |
| 3480 | if test -n "$ac_ct_RANLIB"; then |
| 3481 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3482 | else |
| 3483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3484 | for as_dir in $PATH |
| 3485 | do |
| 3486 | IFS=$as_save_IFS |
| 3487 | test -z "$as_dir" && as_dir=. |
| 3488 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3489 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3490 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3492 | break 2 |
| 3493 | fi |
| 3494 | done |
| 3495 | done |
| 3496 | |
| 3497 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3498 | fi |
| 3499 | fi |
| 3500 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3501 | if test -n "$ac_ct_RANLIB"; then |
| 3502 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3503 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3504 | else |
| 3505 | echo "$as_me:$LINENO: result: no" >&5 |
| 3506 | echo "${ECHO_T}no" >&6 |
| 3507 | fi |
| 3508 | |
| 3509 | RANLIB=$ac_ct_RANLIB |
| 3510 | else |
| 3511 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3512 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3513 | |
| 3514 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3515 | for ac_prog in ar aal |
| 3516 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | # 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] | 3518 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3521 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3523 | else |
| 3524 | if test -n "$AR"; then |
| 3525 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3526 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3528 | for as_dir in $PATH |
| 3529 | do |
| 3530 | IFS=$as_save_IFS |
| 3531 | test -z "$as_dir" && as_dir=. |
| 3532 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3534 | ac_cv_prog_AR="$ac_prog" |
| 3535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3536 | break 2 |
| 3537 | fi |
| 3538 | done |
| 3539 | done |
| 3540 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3541 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3542 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3543 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3544 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3545 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3546 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3548 | echo "$as_me:$LINENO: result: no" >&5 |
| 3549 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3550 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3552 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3553 | done |
| 3554 | test -n "$AR" || AR="ar" |
| 3555 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3556 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3557 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3558 | bsdos*|hp*|HP*) |
| 3559 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3560 | if test -z "$INSTALL" |
| 3561 | then |
| 3562 | INSTALL="${srcdir}/install-sh -c" |
| 3563 | fi |
| 3564 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3565 | ac_aux_dir= |
| 3566 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3567 | if test -f $ac_dir/install-sh; then |
| 3568 | ac_aux_dir=$ac_dir |
| 3569 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3570 | break |
| 3571 | elif test -f $ac_dir/install.sh; then |
| 3572 | ac_aux_dir=$ac_dir |
| 3573 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3574 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3575 | elif test -f $ac_dir/shtool; then |
| 3576 | ac_aux_dir=$ac_dir |
| 3577 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3578 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3579 | fi |
| 3580 | done |
| 3581 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3582 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3583 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3584 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3585 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3586 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3587 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3588 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3589 | |
| 3590 | # Find a good install program. We prefer a C program (faster), |
| 3591 | # so one script is as good as another. But avoid the broken or |
| 3592 | # incompatible versions: |
| 3593 | # SysV /etc/install, /usr/sbin/install |
| 3594 | # SunOS /usr/etc/install |
| 3595 | # IRIX /sbin/install |
| 3596 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3597 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3598 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3599 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3600 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3601 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3602 | # ./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] | 3603 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3604 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3605 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3606 | if test "${ac_cv_path_install+set}" = set; then |
| 3607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3610 | for as_dir in $PATH |
| 3611 | do |
| 3612 | IFS=$as_save_IFS |
| 3613 | test -z "$as_dir" && as_dir=. |
| 3614 | # Account for people who put trailing slashes in PATH elements. |
| 3615 | case $as_dir/ in |
| 3616 | ./ | .// | /cC/* | \ |
| 3617 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3618 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3619 | /usr/ucb/* ) ;; |
| 3620 | *) |
| 3621 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3622 | # Don't use installbsd from OSF since it installs stuff as root |
| 3623 | # by default. |
| 3624 | for ac_prog in ginstall scoinst install; do |
| 3625 | for ac_exec_ext in '' $ac_executable_extensions; do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3626 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3627 | if test $ac_prog = install && |
| 3628 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3629 | # AIX install. It has an incompatible calling convention. |
| 3630 | : |
| 3631 | elif test $ac_prog = install && |
| 3632 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3633 | # program-specific install script used by HP pwplus--don't use. |
| 3634 | : |
| 3635 | else |
| 3636 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3637 | break 3 |
| 3638 | fi |
| 3639 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3640 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3641 | done |
| 3642 | ;; |
| 3643 | esac |
| 3644 | done |
| 3645 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3646 | |
| 3647 | fi |
| 3648 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3649 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3650 | else |
| 3651 | # As a last resort, use the slow shell script. We don't cache a |
| 3652 | # path for INSTALL within a source directory, because that will |
| 3653 | # break other packages using the cache if that directory is |
| 3654 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3655 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3656 | fi |
| 3657 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3658 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3659 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3660 | |
| 3661 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3662 | # It thinks the first close brace ends the variable substitution. |
| 3663 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3665 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3666 | |
| 3667 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3668 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3669 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3670 | # Not every filesystem supports hard links |
| 3671 | |
| 3672 | if test -z "$LN" ; then |
| 3673 | case $ac_sys_system in |
| 3674 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3675 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3676 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3677 | *) LN=ln;; |
| 3678 | esac |
| 3679 | fi |
| 3680 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3681 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3682 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3683 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3684 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3685 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3686 | if test "${with_pydebug+set}" = set; then |
| 3687 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3688 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3689 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3690 | then |
| 3691 | |
| 3692 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3693 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3694 | _ACEOF |
| 3695 | |
| 3696 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3697 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3698 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3699 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3700 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3701 | fi |
| 3702 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3703 | echo "$as_me:$LINENO: result: no" >&5 |
| 3704 | echo "${ECHO_T}no" >&6 |
| 3705 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3706 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3707 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3708 | # merged with this chunk of code? |
| 3709 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3710 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3711 | # ------------------------ |
| 3712 | # (The following bit of code is complicated enough - please keep things |
| 3713 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3714 | |
| 3715 | # There are two parallel sets of case statements below, one that checks to |
| 3716 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3717 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3718 | # user set OPT. |
| 3719 | |
| 3720 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3721 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3722 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3723 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3724 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3725 | case $GCC in |
| 3726 | yes) |
| 3727 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3728 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3729 | if test "$Py_DEBUG" = 'true' ; then |
| 3730 | # Optimization messes up debuggers, so turn it off for |
| 3731 | # debug builds. |
| 3732 | OPT="-g -Wall -Wstrict-prototypes" |
| 3733 | else |
| 3734 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3735 | fi |
| 3736 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3737 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3738 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3739 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3740 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3741 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3742 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3743 | ;; |
| 3744 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3745 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3746 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3747 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3748 | OPT="-O" |
| 3749 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3750 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3751 | |
| 3752 | # The current (beta) Monterey compiler dies with optimizations |
| 3753 | # 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] | 3754 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3755 | Monterey*) |
| 3756 | OPT="" |
| 3757 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3758 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3759 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3760 | fi |
| 3761 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3762 | |
| 3763 | # tweak BASECFLAGS based on compiler and platform |
| 3764 | case $GCC in |
| 3765 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3766 | # Python violates C99 rules, by casting between incompatible |
| 3767 | # pointer types. GCC may generate bad code as a result of that, |
| 3768 | # so use -fno-strict-aliasing if supported. |
| 3769 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3770 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3771 | ac_save_cc="$CC" |
| 3772 | CC="$CC -fno-strict-aliasing" |
| 3773 | if test "$cross_compiling" = yes; then |
| 3774 | ac_cv_no_strict_aliasing_ok=no |
| 3775 | else |
| 3776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3777 | /* confdefs.h. */ |
| 3778 | _ACEOF |
| 3779 | cat confdefs.h >>conftest.$ac_ext |
| 3780 | cat >>conftest.$ac_ext <<_ACEOF |
| 3781 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3782 | int main() { return 0; } |
| 3783 | _ACEOF |
| 3784 | rm -f conftest$ac_exeext |
| 3785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3786 | (eval $ac_link) 2>&5 |
| 3787 | ac_status=$? |
| 3788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3789 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3791 | (eval $ac_try) 2>&5 |
| 3792 | ac_status=$? |
| 3793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3794 | (exit $ac_status); }; }; then |
| 3795 | ac_cv_no_strict_aliasing_ok=yes |
| 3796 | else |
| 3797 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3798 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3800 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3801 | ( exit $ac_status ) |
| 3802 | ac_cv_no_strict_aliasing_ok=no |
| 3803 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3804 | 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] | 3805 | fi |
| 3806 | CC="$ac_save_cc" |
| 3807 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3808 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3809 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3810 | then |
| 3811 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3812 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3813 | case $ac_sys_system in |
| 3814 | SCO_SV*) |
| 3815 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3816 | ;; |
| 3817 | # is there any other compiler on Darwin besides gcc? |
| 3818 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 3819 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3820 | ;; |
| 3821 | esac |
| 3822 | ;; |
| 3823 | |
| 3824 | *) |
| 3825 | case $ac_sys_system in |
| 3826 | OpenUNIX*|UnixWare*) |
| 3827 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3828 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3829 | OSF*) |
| 3830 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3831 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3832 | SCO_SV*) |
| 3833 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3834 | ;; |
| 3835 | esac |
| 3836 | ;; |
| 3837 | esac |
| 3838 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3839 | if test "$Py_DEBUG" = 'true'; then |
| 3840 | : |
| 3841 | else |
| 3842 | OPT="-DNDEBUG $OPT" |
| 3843 | fi |
| 3844 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3845 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3846 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3847 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3848 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3850 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3851 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3852 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3854 | else |
| 3855 | ac_save_cc="$CC" |
| 3856 | CC="$CC -OPT:Olimit=0" |
| 3857 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3858 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3859 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3860 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3861 | /* confdefs.h. */ |
| 3862 | _ACEOF |
| 3863 | cat confdefs.h >>conftest.$ac_ext |
| 3864 | cat >>conftest.$ac_ext <<_ACEOF |
| 3865 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3866 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3867 | _ACEOF |
| 3868 | rm -f conftest$ac_exeext |
| 3869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3870 | (eval $ac_link) 2>&5 |
| 3871 | ac_status=$? |
| 3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3873 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3875 | (eval $ac_try) 2>&5 |
| 3876 | ac_status=$? |
| 3877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3878 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3879 | ac_cv_opt_olimit_ok=yes |
| 3880 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3881 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3882 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3885 | ( exit $ac_status ) |
| 3886 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3887 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3888 | 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] | 3889 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3890 | CC="$ac_save_cc" |
| 3891 | fi |
| 3892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3893 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3894 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3895 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3896 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3897 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3898 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3899 | # environment? |
| 3900 | Darwin*) |
| 3901 | ;; |
| 3902 | *) |
| 3903 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3904 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3905 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3907 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3908 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3909 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3911 | else |
| 3912 | ac_save_cc="$CC" |
| 3913 | CC="$CC -Olimit 1500" |
| 3914 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3915 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3917 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3918 | /* confdefs.h. */ |
| 3919 | _ACEOF |
| 3920 | cat confdefs.h >>conftest.$ac_ext |
| 3921 | cat >>conftest.$ac_ext <<_ACEOF |
| 3922 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3923 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3924 | _ACEOF |
| 3925 | rm -f conftest$ac_exeext |
| 3926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3927 | (eval $ac_link) 2>&5 |
| 3928 | ac_status=$? |
| 3929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3932 | (eval $ac_try) 2>&5 |
| 3933 | ac_status=$? |
| 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3935 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3936 | ac_cv_olimit_ok=yes |
| 3937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3938 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3939 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3942 | ( exit $ac_status ) |
| 3943 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3944 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3945 | 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] | 3946 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3947 | CC="$ac_save_cc" |
| 3948 | fi |
| 3949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3950 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3951 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3952 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3953 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3954 | fi |
| 3955 | fi |
| 3956 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3957 | # On some compilers, pthreads are available without further options |
| 3958 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3959 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3960 | # So we have to see first whether pthreads are available without |
| 3961 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3962 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3963 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3964 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3966 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3967 | if test "$cross_compiling" = yes; then |
| 3968 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3970 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3971 | /* confdefs.h. */ |
| 3972 | _ACEOF |
| 3973 | cat confdefs.h >>conftest.$ac_ext |
| 3974 | cat >>conftest.$ac_ext <<_ACEOF |
| 3975 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3976 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3977 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3978 | |
| 3979 | void* routine(void* p){return NULL;} |
| 3980 | |
| 3981 | int main(){ |
| 3982 | pthread_t p; |
| 3983 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3984 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3985 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3986 | return 0; |
| 3987 | } |
| 3988 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3989 | _ACEOF |
| 3990 | rm -f conftest$ac_exeext |
| 3991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3992 | (eval $ac_link) 2>&5 |
| 3993 | ac_status=$? |
| 3994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3995 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3997 | (eval $ac_try) 2>&5 |
| 3998 | ac_status=$? |
| 3999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4000 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4001 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4002 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4003 | ac_cv_kthread=no |
| 4004 | ac_cv_pthread=no |
| 4005 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4007 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4008 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4010 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4011 | ( exit $ac_status ) |
| 4012 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4013 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4014 | 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] | 4015 | fi |
| 4016 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4017 | fi |
| 4018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4019 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4020 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4021 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4023 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4024 | then |
| 4025 | ac_cv_kpthread=no |
| 4026 | else |
| 4027 | # -Kpthread, if available, provides the right #defines |
| 4028 | # and linker options to make pthread_create available |
| 4029 | # Some compilers won't report that they do not support -Kpthread, |
| 4030 | # so we need to run a program to see whether it really made the |
| 4031 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4032 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4033 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4034 | if test "${ac_cv_kpthread+set}" = set; then |
| 4035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4036 | else |
| 4037 | ac_save_cc="$CC" |
| 4038 | CC="$CC -Kpthread" |
| 4039 | if test "$cross_compiling" = yes; then |
| 4040 | ac_cv_kpthread=no |
| 4041 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4043 | /* confdefs.h. */ |
| 4044 | _ACEOF |
| 4045 | cat confdefs.h >>conftest.$ac_ext |
| 4046 | cat >>conftest.$ac_ext <<_ACEOF |
| 4047 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4048 | |
| 4049 | #include <pthread.h> |
| 4050 | |
| 4051 | void* routine(void* p){return NULL;} |
| 4052 | |
| 4053 | int main(){ |
| 4054 | pthread_t p; |
| 4055 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4056 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4057 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4058 | return 0; |
| 4059 | } |
| 4060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4061 | _ACEOF |
| 4062 | rm -f conftest$ac_exeext |
| 4063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4064 | (eval $ac_link) 2>&5 |
| 4065 | ac_status=$? |
| 4066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4067 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4069 | (eval $ac_try) 2>&5 |
| 4070 | ac_status=$? |
| 4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4072 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4073 | ac_cv_kpthread=yes |
| 4074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4075 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4076 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4079 | ( exit $ac_status ) |
| 4080 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4081 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4082 | 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] | 4083 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4084 | CC="$ac_save_cc" |
| 4085 | fi |
| 4086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4087 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4088 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4089 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4090 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4091 | 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] | 4092 | then |
| 4093 | # -Kthread, if available, provides the right #defines |
| 4094 | # and linker options to make pthread_create available |
| 4095 | # Some compilers won't report that they do not support -Kthread, |
| 4096 | # so we need to run a program to see whether it really made the |
| 4097 | # function available. |
| 4098 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4099 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4100 | if test "${ac_cv_kthread+set}" = set; then |
| 4101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4102 | else |
| 4103 | ac_save_cc="$CC" |
| 4104 | CC="$CC -Kthread" |
| 4105 | if test "$cross_compiling" = yes; then |
| 4106 | ac_cv_kthread=no |
| 4107 | else |
| 4108 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4109 | /* confdefs.h. */ |
| 4110 | _ACEOF |
| 4111 | cat confdefs.h >>conftest.$ac_ext |
| 4112 | cat >>conftest.$ac_ext <<_ACEOF |
| 4113 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4114 | |
| 4115 | #include <pthread.h> |
| 4116 | |
| 4117 | void* routine(void* p){return NULL;} |
| 4118 | |
| 4119 | int main(){ |
| 4120 | pthread_t p; |
| 4121 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4122 | return 1; |
| 4123 | (void)pthread_detach(p); |
| 4124 | return 0; |
| 4125 | } |
| 4126 | |
| 4127 | _ACEOF |
| 4128 | rm -f conftest$ac_exeext |
| 4129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4130 | (eval $ac_link) 2>&5 |
| 4131 | ac_status=$? |
| 4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4133 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4135 | (eval $ac_try) 2>&5 |
| 4136 | ac_status=$? |
| 4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4138 | (exit $ac_status); }; }; then |
| 4139 | ac_cv_kthread=yes |
| 4140 | else |
| 4141 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4142 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4144 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4145 | ( exit $ac_status ) |
| 4146 | ac_cv_kthread=no |
| 4147 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4148 | 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] | 4149 | fi |
| 4150 | CC="$ac_save_cc" |
| 4151 | fi |
| 4152 | |
| 4153 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4154 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4155 | fi |
| 4156 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4157 | 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] | 4158 | then |
| 4159 | # -pthread, if available, provides the right #defines |
| 4160 | # and linker options to make pthread_create available |
| 4161 | # Some compilers won't report that they do not support -pthread, |
| 4162 | # so we need to run a program to see whether it really made the |
| 4163 | # function available. |
| 4164 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4165 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4166 | if test "${ac_cv_thread+set}" = set; then |
| 4167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4168 | else |
| 4169 | ac_save_cc="$CC" |
| 4170 | CC="$CC -pthread" |
| 4171 | if test "$cross_compiling" = yes; then |
| 4172 | ac_cv_pthread=no |
| 4173 | else |
| 4174 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4175 | /* confdefs.h. */ |
| 4176 | _ACEOF |
| 4177 | cat confdefs.h >>conftest.$ac_ext |
| 4178 | cat >>conftest.$ac_ext <<_ACEOF |
| 4179 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4180 | |
| 4181 | #include <pthread.h> |
| 4182 | |
| 4183 | void* routine(void* p){return NULL;} |
| 4184 | |
| 4185 | int main(){ |
| 4186 | pthread_t p; |
| 4187 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4188 | return 1; |
| 4189 | (void)pthread_detach(p); |
| 4190 | return 0; |
| 4191 | } |
| 4192 | |
| 4193 | _ACEOF |
| 4194 | rm -f conftest$ac_exeext |
| 4195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4196 | (eval $ac_link) 2>&5 |
| 4197 | ac_status=$? |
| 4198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4199 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4201 | (eval $ac_try) 2>&5 |
| 4202 | ac_status=$? |
| 4203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4204 | (exit $ac_status); }; }; then |
| 4205 | ac_cv_pthread=yes |
| 4206 | else |
| 4207 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4208 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4210 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4211 | ( exit $ac_status ) |
| 4212 | ac_cv_pthread=no |
| 4213 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4214 | 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] | 4215 | fi |
| 4216 | CC="$ac_save_cc" |
| 4217 | fi |
| 4218 | |
| 4219 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4220 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4221 | fi |
| 4222 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4223 | # If we have set a CC compiler flag for thread support then |
| 4224 | # check if it works for CXX, too. |
| 4225 | ac_cv_cxx_thread=no |
| 4226 | if test ! -z "$CXX" |
| 4227 | then |
| 4228 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4229 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4230 | ac_save_cxx="$CXX" |
| 4231 | |
| 4232 | if test "$ac_cv_kpthread" = "yes" |
| 4233 | then |
| 4234 | CXX="$CXX -Kpthread" |
| 4235 | ac_cv_cxx_thread=yes |
| 4236 | elif test "$ac_cv_kthread" = "yes" |
| 4237 | then |
| 4238 | CXX="$CXX -Kthread" |
| 4239 | ac_cv_cxx_thread=yes |
| 4240 | elif test "$ac_cv_pthread" = "yes" |
| 4241 | then |
| 4242 | CXX="$CXX -pthread" |
| 4243 | ac_cv_cxx_thread=yes |
| 4244 | fi |
| 4245 | |
| 4246 | if test $ac_cv_cxx_thread = yes |
| 4247 | then |
| 4248 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4249 | $CXX -c conftest.$ac_ext 2>&5 |
| 4250 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4251 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4252 | then |
| 4253 | ac_cv_cxx_thread=yes |
| 4254 | else |
| 4255 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4256 | fi |
| 4257 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4258 | fi |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4259 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4260 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 4261 | fi |
| 4262 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4263 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4264 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4265 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4266 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4267 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4268 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4270 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4271 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4272 | /* confdefs.h. */ |
| 4273 | _ACEOF |
| 4274 | cat confdefs.h >>conftest.$ac_ext |
| 4275 | cat >>conftest.$ac_ext <<_ACEOF |
| 4276 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4277 | #include <stdlib.h> |
| 4278 | #include <stdarg.h> |
| 4279 | #include <string.h> |
| 4280 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4281 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4282 | int |
| 4283 | main () |
| 4284 | { |
| 4285 | |
| 4286 | ; |
| 4287 | return 0; |
| 4288 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4289 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4290 | rm -f conftest.$ac_objext |
| 4291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4292 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4293 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4295 | rm -f conftest.er1 |
| 4296 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4298 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 4299 | { ac_try='test -z "$ac_c_werror_flag" |
| 4300 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4302 | (eval $ac_try) 2>&5 |
| 4303 | ac_status=$? |
| 4304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4305 | (exit $ac_status); }; } && |
| 4306 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4308 | (eval $ac_try) 2>&5 |
| 4309 | ac_status=$? |
| 4310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4311 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4312 | ac_cv_header_stdc=yes |
| 4313 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4314 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4316 | |
| 4317 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4318 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4320 | |
| 4321 | if test $ac_cv_header_stdc = yes; then |
| 4322 | # 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] | 4323 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4324 | /* confdefs.h. */ |
| 4325 | _ACEOF |
| 4326 | cat confdefs.h >>conftest.$ac_ext |
| 4327 | cat >>conftest.$ac_ext <<_ACEOF |
| 4328 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4329 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4330 | |
| 4331 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4332 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4333 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4334 | : |
| 4335 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4336 | ac_cv_header_stdc=no |
| 4337 | fi |
| 4338 | rm -f conftest* |
| 4339 | |
| 4340 | fi |
| 4341 | |
| 4342 | if test $ac_cv_header_stdc = yes; then |
| 4343 | # 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] | 4344 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4345 | /* confdefs.h. */ |
| 4346 | _ACEOF |
| 4347 | cat confdefs.h >>conftest.$ac_ext |
| 4348 | cat >>conftest.$ac_ext <<_ACEOF |
| 4349 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4350 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4351 | |
| 4352 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4353 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4354 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4355 | : |
| 4356 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4357 | ac_cv_header_stdc=no |
| 4358 | fi |
| 4359 | rm -f conftest* |
| 4360 | |
| 4361 | fi |
| 4362 | |
| 4363 | if test $ac_cv_header_stdc = yes; then |
| 4364 | # /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] | 4365 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4366 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4368 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4369 | /* confdefs.h. */ |
| 4370 | _ACEOF |
| 4371 | cat confdefs.h >>conftest.$ac_ext |
| 4372 | cat >>conftest.$ac_ext <<_ACEOF |
| 4373 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4374 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4375 | #if ((' ' & 0x0FF) == 0x020) |
| 4376 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4377 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4378 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4379 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4380 | (('a' <= (c) && (c) <= 'i') \ |
| 4381 | || ('j' <= (c) && (c) <= 'r') \ |
| 4382 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4383 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4384 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4386 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4387 | int |
| 4388 | main () |
| 4389 | { |
| 4390 | int i; |
| 4391 | for (i = 0; i < 256; i++) |
| 4392 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4393 | || toupper (i) != TOUPPER (i)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4394 | exit(2); |
| 4395 | exit (0); |
| 4396 | } |
| 4397 | _ACEOF |
| 4398 | rm -f conftest$ac_exeext |
| 4399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4400 | (eval $ac_link) 2>&5 |
| 4401 | ac_status=$? |
| 4402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4403 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4405 | (eval $ac_try) 2>&5 |
| 4406 | ac_status=$? |
| 4407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4408 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4409 | : |
| 4410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4411 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4412 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4415 | ( exit $ac_status ) |
| 4416 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4417 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4418 | 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] | 4419 | fi |
| 4420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4421 | fi |
| 4422 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4423 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4424 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4425 | |
| 4426 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4427 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4428 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4429 | |
| 4430 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4431 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4432 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4433 | |
| 4434 | |
| 4435 | |
| 4436 | |
| 4437 | |
| 4438 | |
| 4439 | |
| 4440 | |
| 4441 | |
| 4442 | 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] | 4443 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4444 | do |
| 4445 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4446 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4448 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4450 | else |
| 4451 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4452 | /* confdefs.h. */ |
| 4453 | _ACEOF |
| 4454 | cat confdefs.h >>conftest.$ac_ext |
| 4455 | cat >>conftest.$ac_ext <<_ACEOF |
| 4456 | /* end confdefs.h. */ |
| 4457 | $ac_includes_default |
| 4458 | |
| 4459 | #include <$ac_header> |
| 4460 | _ACEOF |
| 4461 | rm -f conftest.$ac_objext |
| 4462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4463 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4464 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4466 | rm -f conftest.er1 |
| 4467 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4469 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 4470 | { ac_try='test -z "$ac_c_werror_flag" |
| 4471 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4473 | (eval $ac_try) 2>&5 |
| 4474 | ac_status=$? |
| 4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4476 | (exit $ac_status); }; } && |
| 4477 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4479 | (eval $ac_try) 2>&5 |
| 4480 | ac_status=$? |
| 4481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4482 | (exit $ac_status); }; }; then |
| 4483 | eval "$as_ac_Header=yes" |
| 4484 | else |
| 4485 | echo "$as_me: failed program was:" >&5 |
| 4486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4487 | |
| 4488 | eval "$as_ac_Header=no" |
| 4489 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4491 | fi |
| 4492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4493 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4494 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4495 | cat >>confdefs.h <<_ACEOF |
| 4496 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4497 | _ACEOF |
| 4498 | |
| 4499 | fi |
| 4500 | |
| 4501 | done |
| 4502 | |
| 4503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4504 | |
| 4505 | |
| 4506 | |
| 4507 | |
| 4508 | |
| 4509 | |
| 4510 | |
| 4511 | |
| 4512 | |
| 4513 | |
| 4514 | |
| 4515 | |
| 4516 | |
| 4517 | |
| 4518 | |
| 4519 | |
| 4520 | |
| 4521 | |
| 4522 | |
| 4523 | |
| 4524 | |
| 4525 | |
| 4526 | |
| 4527 | |
| 4528 | |
| 4529 | |
| 4530 | |
| 4531 | |
| 4532 | |
| 4533 | |
| 4534 | |
| 4535 | |
| 4536 | |
| 4537 | |
| 4538 | |
| 4539 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4540 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 4541 | for ac_header in curses.h dlfcn.h fcntl.h grp.h langinfo.h \ |
Skip Montanaro | 7befb99 | 2004-02-10 16:50:21 +0000 | [diff] [blame] | 4542 | libintl.h ncurses.h poll.h pthread.h \ |
| 4543 | stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4544 | unistd.h utime.h \ |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4545 | sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| 4546 | sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4547 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 4548 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 4549 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
| 4550 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4551 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4552 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4553 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4554 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4555 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4556 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4558 | fi |
| 4559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4560 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4562 | # Is the header compilable? |
| 4563 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4564 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4565 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4566 | /* confdefs.h. */ |
| 4567 | _ACEOF |
| 4568 | cat confdefs.h >>conftest.$ac_ext |
| 4569 | cat >>conftest.$ac_ext <<_ACEOF |
| 4570 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4571 | $ac_includes_default |
| 4572 | #include <$ac_header> |
| 4573 | _ACEOF |
| 4574 | rm -f conftest.$ac_objext |
| 4575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4576 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4577 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4579 | rm -f conftest.er1 |
| 4580 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4582 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 4583 | { ac_try='test -z "$ac_c_werror_flag" |
| 4584 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4586 | (eval $ac_try) 2>&5 |
| 4587 | ac_status=$? |
| 4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4589 | (exit $ac_status); }; } && |
| 4590 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4592 | (eval $ac_try) 2>&5 |
| 4593 | ac_status=$? |
| 4594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4595 | (exit $ac_status); }; }; then |
| 4596 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4598 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4601 | ac_header_compiler=no |
| 4602 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4604 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4605 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4606 | |
| 4607 | # Is the header present? |
| 4608 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4609 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4611 | /* confdefs.h. */ |
| 4612 | _ACEOF |
| 4613 | cat confdefs.h >>conftest.$ac_ext |
| 4614 | cat >>conftest.$ac_ext <<_ACEOF |
| 4615 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4616 | #include <$ac_header> |
| 4617 | _ACEOF |
| 4618 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4619 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4620 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4621 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4622 | rm -f conftest.er1 |
| 4623 | cat conftest.err >&5 |
| 4624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4625 | (exit $ac_status); } >/dev/null; then |
| 4626 | if test -s conftest.err; then |
| 4627 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4628 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4629 | else |
| 4630 | ac_cpp_err= |
| 4631 | fi |
| 4632 | else |
| 4633 | ac_cpp_err=yes |
| 4634 | fi |
| 4635 | if test -z "$ac_cpp_err"; then |
| 4636 | ac_header_preproc=yes |
| 4637 | else |
| 4638 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4641 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4642 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4643 | rm -f conftest.err conftest.$ac_ext |
| 4644 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4645 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4646 | |
| 4647 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4648 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4649 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4650 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4651 | 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] | 4652 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4653 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4654 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4655 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4656 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4657 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4658 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4659 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4660 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4661 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4662 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4663 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4664 | 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] | 4665 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4666 | 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] | 4667 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4668 | 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] | 4669 | ( |
| 4670 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4671 | ## --------------------------------- ## |
| 4672 | ## Report this to the python lists. ## |
| 4673 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4674 | _ASBOX |
| 4675 | ) | |
| 4676 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4677 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4678 | esac |
| 4679 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4680 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4681 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4683 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4684 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4685 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4686 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4687 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4688 | |
| 4689 | fi |
| 4690 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4691 | cat >>confdefs.h <<_ACEOF |
| 4692 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4693 | _ACEOF |
| 4694 | |
| 4695 | fi |
| 4696 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4697 | done |
| 4698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4699 | |
| 4700 | |
| 4701 | |
| 4702 | |
| 4703 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4704 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4705 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4706 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4707 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4708 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4709 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4712 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4713 | /* confdefs.h. */ |
| 4714 | _ACEOF |
| 4715 | cat confdefs.h >>conftest.$ac_ext |
| 4716 | cat >>conftest.$ac_ext <<_ACEOF |
| 4717 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4718 | #include <sys/types.h> |
| 4719 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4720 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4721 | int |
| 4722 | main () |
| 4723 | { |
| 4724 | if ((DIR *) 0) |
| 4725 | return 0; |
| 4726 | ; |
| 4727 | return 0; |
| 4728 | } |
| 4729 | _ACEOF |
| 4730 | rm -f conftest.$ac_objext |
| 4731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4732 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4733 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4735 | rm -f conftest.er1 |
| 4736 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4738 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 4739 | { ac_try='test -z "$ac_c_werror_flag" |
| 4740 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4742 | (eval $ac_try) 2>&5 |
| 4743 | ac_status=$? |
| 4744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4745 | (exit $ac_status); }; } && |
| 4746 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4748 | (eval $ac_try) 2>&5 |
| 4749 | ac_status=$? |
| 4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4751 | (exit $ac_status); }; }; then |
| 4752 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4754 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4757 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4758 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4760 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4763 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4764 | cat >>confdefs.h <<_ACEOF |
| 4765 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4766 | _ACEOF |
| 4767 | |
| 4768 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4769 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4770 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4771 | done |
| 4772 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4773 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4774 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4775 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4776 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4778 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4779 | ac_func_search_save_LIBS=$LIBS |
| 4780 | ac_cv_search_opendir=no |
| 4781 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4782 | /* confdefs.h. */ |
| 4783 | _ACEOF |
| 4784 | cat confdefs.h >>conftest.$ac_ext |
| 4785 | cat >>conftest.$ac_ext <<_ACEOF |
| 4786 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4787 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4788 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4789 | #ifdef __cplusplus |
| 4790 | extern "C" |
| 4791 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4792 | /* 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] | 4793 | builtin and then its argument prototype would still apply. */ |
| 4794 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4795 | int |
| 4796 | main () |
| 4797 | { |
| 4798 | opendir (); |
| 4799 | ; |
| 4800 | return 0; |
| 4801 | } |
| 4802 | _ACEOF |
| 4803 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4805 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4806 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4808 | rm -f conftest.er1 |
| 4809 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4811 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 4812 | { ac_try='test -z "$ac_c_werror_flag" |
| 4813 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4815 | (eval $ac_try) 2>&5 |
| 4816 | ac_status=$? |
| 4817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4818 | (exit $ac_status); }; } && |
| 4819 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4821 | (eval $ac_try) 2>&5 |
| 4822 | ac_status=$? |
| 4823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4824 | (exit $ac_status); }; }; then |
| 4825 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4826 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4827 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4829 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4830 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4831 | rm -f conftest.err conftest.$ac_objext \ |
| 4832 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4833 | if test "$ac_cv_search_opendir" = no; then |
| 4834 | for ac_lib in dir; do |
| 4835 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4836 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4837 | /* confdefs.h. */ |
| 4838 | _ACEOF |
| 4839 | cat confdefs.h >>conftest.$ac_ext |
| 4840 | cat >>conftest.$ac_ext <<_ACEOF |
| 4841 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4842 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4843 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4844 | #ifdef __cplusplus |
| 4845 | extern "C" |
| 4846 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4847 | /* 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] | 4848 | builtin and then its argument prototype would still apply. */ |
| 4849 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4850 | int |
| 4851 | main () |
| 4852 | { |
| 4853 | opendir (); |
| 4854 | ; |
| 4855 | return 0; |
| 4856 | } |
| 4857 | _ACEOF |
| 4858 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4860 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4861 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4863 | rm -f conftest.er1 |
| 4864 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4866 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 4867 | { ac_try='test -z "$ac_c_werror_flag" |
| 4868 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4870 | (eval $ac_try) 2>&5 |
| 4871 | ac_status=$? |
| 4872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4873 | (exit $ac_status); }; } && |
| 4874 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4876 | (eval $ac_try) 2>&5 |
| 4877 | ac_status=$? |
| 4878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4879 | (exit $ac_status); }; }; then |
| 4880 | ac_cv_search_opendir="-l$ac_lib" |
| 4881 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4883 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4885 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4886 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4887 | rm -f conftest.err conftest.$ac_objext \ |
| 4888 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4889 | done |
| 4890 | fi |
| 4891 | LIBS=$ac_func_search_save_LIBS |
| 4892 | fi |
| 4893 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4894 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4895 | if test "$ac_cv_search_opendir" != no; then |
| 4896 | 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] | 4897 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4898 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4899 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4901 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4902 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4903 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4905 | else |
| 4906 | ac_func_search_save_LIBS=$LIBS |
| 4907 | ac_cv_search_opendir=no |
| 4908 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4909 | /* confdefs.h. */ |
| 4910 | _ACEOF |
| 4911 | cat confdefs.h >>conftest.$ac_ext |
| 4912 | cat >>conftest.$ac_ext <<_ACEOF |
| 4913 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4914 | |
| 4915 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4916 | #ifdef __cplusplus |
| 4917 | extern "C" |
| 4918 | #endif |
| 4919 | /* We use char because int might match the return type of a gcc2 |
| 4920 | builtin and then its argument prototype would still apply. */ |
| 4921 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4922 | int |
| 4923 | main () |
| 4924 | { |
| 4925 | opendir (); |
| 4926 | ; |
| 4927 | return 0; |
| 4928 | } |
| 4929 | _ACEOF |
| 4930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4932 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4933 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4935 | rm -f conftest.er1 |
| 4936 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4938 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 4939 | { ac_try='test -z "$ac_c_werror_flag" |
| 4940 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4942 | (eval $ac_try) 2>&5 |
| 4943 | ac_status=$? |
| 4944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4945 | (exit $ac_status); }; } && |
| 4946 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4948 | (eval $ac_try) 2>&5 |
| 4949 | ac_status=$? |
| 4950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4951 | (exit $ac_status); }; }; then |
| 4952 | ac_cv_search_opendir="none required" |
| 4953 | else |
| 4954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4957 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4958 | rm -f conftest.err conftest.$ac_objext \ |
| 4959 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4960 | if test "$ac_cv_search_opendir" = no; then |
| 4961 | for ac_lib in x; do |
| 4962 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4963 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4964 | /* confdefs.h. */ |
| 4965 | _ACEOF |
| 4966 | cat confdefs.h >>conftest.$ac_ext |
| 4967 | cat >>conftest.$ac_ext <<_ACEOF |
| 4968 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4969 | |
| 4970 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4971 | #ifdef __cplusplus |
| 4972 | extern "C" |
| 4973 | #endif |
| 4974 | /* We use char because int might match the return type of a gcc2 |
| 4975 | builtin and then its argument prototype would still apply. */ |
| 4976 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4977 | int |
| 4978 | main () |
| 4979 | { |
| 4980 | opendir (); |
| 4981 | ; |
| 4982 | return 0; |
| 4983 | } |
| 4984 | _ACEOF |
| 4985 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4987 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4988 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4990 | rm -f conftest.er1 |
| 4991 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4993 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 4994 | { ac_try='test -z "$ac_c_werror_flag" |
| 4995 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4997 | (eval $ac_try) 2>&5 |
| 4998 | ac_status=$? |
| 4999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5000 | (exit $ac_status); }; } && |
| 5001 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5003 | (eval $ac_try) 2>&5 |
| 5004 | ac_status=$? |
| 5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5006 | (exit $ac_status); }; }; then |
| 5007 | ac_cv_search_opendir="-l$ac_lib" |
| 5008 | break |
| 5009 | else |
| 5010 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5013 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5014 | rm -f conftest.err conftest.$ac_objext \ |
| 5015 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5016 | done |
| 5017 | fi |
| 5018 | LIBS=$ac_func_search_save_LIBS |
| 5019 | fi |
| 5020 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5021 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5022 | if test "$ac_cv_search_opendir" != no; then |
| 5023 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5024 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5025 | fi |
| 5026 | |
| 5027 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5028 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5029 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5030 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5031 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5033 | else |
| 5034 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5035 | /* confdefs.h. */ |
| 5036 | _ACEOF |
| 5037 | cat confdefs.h >>conftest.$ac_ext |
| 5038 | cat >>conftest.$ac_ext <<_ACEOF |
| 5039 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5040 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5041 | int |
| 5042 | main () |
| 5043 | { |
| 5044 | return makedev(0, 0); |
| 5045 | ; |
| 5046 | return 0; |
| 5047 | } |
| 5048 | _ACEOF |
| 5049 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5051 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5052 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5054 | rm -f conftest.er1 |
| 5055 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5057 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 5058 | { ac_try='test -z "$ac_c_werror_flag" |
| 5059 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5061 | (eval $ac_try) 2>&5 |
| 5062 | ac_status=$? |
| 5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5064 | (exit $ac_status); }; } && |
| 5065 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5067 | (eval $ac_try) 2>&5 |
| 5068 | ac_status=$? |
| 5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5070 | (exit $ac_status); }; }; then |
| 5071 | ac_cv_header_sys_types_h_makedev=yes |
| 5072 | else |
| 5073 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5075 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5076 | ac_cv_header_sys_types_h_makedev=no |
| 5077 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5078 | rm -f conftest.err conftest.$ac_objext \ |
| 5079 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5080 | |
| 5081 | fi |
| 5082 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5083 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5084 | |
| 5085 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5086 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5087 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5088 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5089 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5091 | fi |
| 5092 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5093 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5094 | else |
| 5095 | # Is the header compilable? |
| 5096 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5097 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5098 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5099 | /* confdefs.h. */ |
| 5100 | _ACEOF |
| 5101 | cat confdefs.h >>conftest.$ac_ext |
| 5102 | cat >>conftest.$ac_ext <<_ACEOF |
| 5103 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5104 | $ac_includes_default |
| 5105 | #include <sys/mkdev.h> |
| 5106 | _ACEOF |
| 5107 | rm -f conftest.$ac_objext |
| 5108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5109 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5110 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5112 | rm -f conftest.er1 |
| 5113 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5115 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 5116 | { ac_try='test -z "$ac_c_werror_flag" |
| 5117 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5119 | (eval $ac_try) 2>&5 |
| 5120 | ac_status=$? |
| 5121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5122 | (exit $ac_status); }; } && |
| 5123 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5125 | (eval $ac_try) 2>&5 |
| 5126 | ac_status=$? |
| 5127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5128 | (exit $ac_status); }; }; then |
| 5129 | ac_header_compiler=yes |
| 5130 | else |
| 5131 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5133 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5134 | ac_header_compiler=no |
| 5135 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5137 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5138 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5139 | |
| 5140 | # Is the header present? |
| 5141 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5142 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5143 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5144 | /* confdefs.h. */ |
| 5145 | _ACEOF |
| 5146 | cat confdefs.h >>conftest.$ac_ext |
| 5147 | cat >>conftest.$ac_ext <<_ACEOF |
| 5148 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5149 | #include <sys/mkdev.h> |
| 5150 | _ACEOF |
| 5151 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5152 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5153 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5154 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5155 | rm -f conftest.er1 |
| 5156 | cat conftest.err >&5 |
| 5157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5158 | (exit $ac_status); } >/dev/null; then |
| 5159 | if test -s conftest.err; then |
| 5160 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5161 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5162 | else |
| 5163 | ac_cpp_err= |
| 5164 | fi |
| 5165 | else |
| 5166 | ac_cpp_err=yes |
| 5167 | fi |
| 5168 | if test -z "$ac_cpp_err"; then |
| 5169 | ac_header_preproc=yes |
| 5170 | else |
| 5171 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5173 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5174 | ac_header_preproc=no |
| 5175 | fi |
| 5176 | rm -f conftest.err conftest.$ac_ext |
| 5177 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5178 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5179 | |
| 5180 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5181 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5182 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5183 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5184 | 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] | 5185 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5186 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5187 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5188 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5189 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5190 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5191 | 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] | 5192 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5193 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5194 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5195 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5196 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5197 | 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] | 5198 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5199 | 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] | 5200 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5201 | 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] | 5202 | ( |
| 5203 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5204 | ## --------------------------------- ## |
| 5205 | ## Report this to the python lists. ## |
| 5206 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5207 | _ASBOX |
| 5208 | ) | |
| 5209 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5210 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5211 | esac |
| 5212 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5213 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5214 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5216 | else |
| 5217 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5218 | fi |
| 5219 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5220 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5221 | |
| 5222 | fi |
| 5223 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5224 | |
| 5225 | cat >>confdefs.h <<\_ACEOF |
| 5226 | #define MAJOR_IN_MKDEV 1 |
| 5227 | _ACEOF |
| 5228 | |
| 5229 | fi |
| 5230 | |
| 5231 | |
| 5232 | |
| 5233 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5234 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5235 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5236 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5237 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5239 | fi |
| 5240 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5241 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5242 | else |
| 5243 | # Is the header compilable? |
| 5244 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5245 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5246 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5247 | /* confdefs.h. */ |
| 5248 | _ACEOF |
| 5249 | cat confdefs.h >>conftest.$ac_ext |
| 5250 | cat >>conftest.$ac_ext <<_ACEOF |
| 5251 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5252 | $ac_includes_default |
| 5253 | #include <sys/sysmacros.h> |
| 5254 | _ACEOF |
| 5255 | rm -f conftest.$ac_objext |
| 5256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5257 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5258 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5260 | rm -f conftest.er1 |
| 5261 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5263 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 5264 | { ac_try='test -z "$ac_c_werror_flag" |
| 5265 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5267 | (eval $ac_try) 2>&5 |
| 5268 | ac_status=$? |
| 5269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5270 | (exit $ac_status); }; } && |
| 5271 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5273 | (eval $ac_try) 2>&5 |
| 5274 | ac_status=$? |
| 5275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5276 | (exit $ac_status); }; }; then |
| 5277 | ac_header_compiler=yes |
| 5278 | else |
| 5279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5281 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5282 | ac_header_compiler=no |
| 5283 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5285 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5286 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5287 | |
| 5288 | # Is the header present? |
| 5289 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5290 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5291 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5292 | /* confdefs.h. */ |
| 5293 | _ACEOF |
| 5294 | cat confdefs.h >>conftest.$ac_ext |
| 5295 | cat >>conftest.$ac_ext <<_ACEOF |
| 5296 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5297 | #include <sys/sysmacros.h> |
| 5298 | _ACEOF |
| 5299 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5300 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5301 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5302 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5303 | rm -f conftest.er1 |
| 5304 | cat conftest.err >&5 |
| 5305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5306 | (exit $ac_status); } >/dev/null; then |
| 5307 | if test -s conftest.err; then |
| 5308 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5309 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5310 | else |
| 5311 | ac_cpp_err= |
| 5312 | fi |
| 5313 | else |
| 5314 | ac_cpp_err=yes |
| 5315 | fi |
| 5316 | if test -z "$ac_cpp_err"; then |
| 5317 | ac_header_preproc=yes |
| 5318 | else |
| 5319 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5321 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5322 | ac_header_preproc=no |
| 5323 | fi |
| 5324 | rm -f conftest.err conftest.$ac_ext |
| 5325 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5326 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5327 | |
| 5328 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5329 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5330 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5331 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5332 | 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] | 5333 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 5334 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 5335 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5336 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5337 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5338 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5339 | 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] | 5340 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5341 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5342 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 5343 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 5344 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5345 | 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] | 5346 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 5347 | 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] | 5348 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 5349 | 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] | 5350 | ( |
| 5351 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5352 | ## --------------------------------- ## |
| 5353 | ## Report this to the python lists. ## |
| 5354 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5355 | _ASBOX |
| 5356 | ) | |
| 5357 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5358 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5359 | esac |
| 5360 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5361 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5362 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5364 | else |
| 5365 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5366 | fi |
| 5367 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5368 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5369 | |
| 5370 | fi |
| 5371 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5372 | |
| 5373 | cat >>confdefs.h <<\_ACEOF |
| 5374 | #define MAJOR_IN_SYSMACROS 1 |
| 5375 | _ACEOF |
| 5376 | |
| 5377 | fi |
| 5378 | |
| 5379 | |
| 5380 | fi |
| 5381 | fi |
| 5382 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5383 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5384 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5385 | |
| 5386 | for ac_header in term.h |
| 5387 | do |
| 5388 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5389 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5390 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5391 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5393 | else |
| 5394 | cat >conftest.$ac_ext <<_ACEOF |
| 5395 | /* confdefs.h. */ |
| 5396 | _ACEOF |
| 5397 | cat confdefs.h >>conftest.$ac_ext |
| 5398 | cat >>conftest.$ac_ext <<_ACEOF |
| 5399 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5400 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 5401 | #ifdef HAVE_CURSES_H |
| 5402 | #include <curses.h> |
| 5403 | #endif |
| 5404 | |
| 5405 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5406 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5407 | _ACEOF |
| 5408 | rm -f conftest.$ac_objext |
| 5409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5410 | (eval $ac_compile) 2>conftest.er1 |
| 5411 | ac_status=$? |
| 5412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5413 | rm -f conftest.er1 |
| 5414 | cat conftest.err >&5 |
| 5415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5416 | (exit $ac_status); } && |
| 5417 | { ac_try='test -z "$ac_c_werror_flag" |
| 5418 | || test ! -s conftest.err' |
| 5419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5420 | (eval $ac_try) 2>&5 |
| 5421 | ac_status=$? |
| 5422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5423 | (exit $ac_status); }; } && |
| 5424 | { ac_try='test -s conftest.$ac_objext' |
| 5425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5426 | (eval $ac_try) 2>&5 |
| 5427 | ac_status=$? |
| 5428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5429 | (exit $ac_status); }; }; then |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5430 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5431 | else |
| 5432 | echo "$as_me: failed program was:" >&5 |
| 5433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5434 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5435 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5436 | fi |
| 5437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5438 | fi |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5439 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5440 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5441 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5442 | cat >>confdefs.h <<_ACEOF |
| 5443 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5444 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5445 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5446 | fi |
| 5447 | |
| 5448 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5449 | |
| 5450 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5451 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5452 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5453 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5454 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5455 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5456 | /* confdefs.h. */ |
| 5457 | _ACEOF |
| 5458 | cat confdefs.h >>conftest.$ac_ext |
| 5459 | cat >>conftest.$ac_ext <<_ACEOF |
| 5460 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5461 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5462 | |
| 5463 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5465 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5466 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5468 | |
| 5469 | |
| 5470 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5471 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5472 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5473 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5474 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5475 | fi |
| 5476 | rm -f conftest* |
| 5477 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5478 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5479 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5480 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5481 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5482 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5483 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5484 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5485 | /* confdefs.h. */ |
| 5486 | _ACEOF |
| 5487 | cat confdefs.h >>conftest.$ac_ext |
| 5488 | cat >>conftest.$ac_ext <<_ACEOF |
| 5489 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5490 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5491 | int |
| 5492 | main () |
| 5493 | { |
| 5494 | makedev(0, 0) |
| 5495 | ; |
| 5496 | return 0; |
| 5497 | } |
| 5498 | _ACEOF |
| 5499 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5501 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5502 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5504 | rm -f conftest.er1 |
| 5505 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5507 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 5508 | { ac_try='test -z "$ac_c_werror_flag" |
| 5509 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5511 | (eval $ac_try) 2>&5 |
| 5512 | ac_status=$? |
| 5513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5514 | (exit $ac_status); }; } && |
| 5515 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5517 | (eval $ac_try) 2>&5 |
| 5518 | ac_status=$? |
| 5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5520 | (exit $ac_status); }; }; then |
| 5521 | ac_cv_has_makedev=yes |
| 5522 | else |
| 5523 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5525 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5526 | ac_cv_has_makedev=no |
| 5527 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5528 | rm -f conftest.err conftest.$ac_objext \ |
| 5529 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5530 | if test "$ac_cv_has_makedev" = "no"; then |
| 5531 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5532 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5533 | /* confdefs.h. */ |
| 5534 | _ACEOF |
| 5535 | cat confdefs.h >>conftest.$ac_ext |
| 5536 | cat >>conftest.$ac_ext <<_ACEOF |
| 5537 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5538 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5539 | #define _OSF_SOURCE 1 |
| 5540 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5541 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5542 | int |
| 5543 | main () |
| 5544 | { |
| 5545 | makedev(0, 0) |
| 5546 | ; |
| 5547 | return 0; |
| 5548 | } |
| 5549 | _ACEOF |
| 5550 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5552 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5553 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5555 | rm -f conftest.er1 |
| 5556 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5558 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 5559 | { ac_try='test -z "$ac_c_werror_flag" |
| 5560 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5562 | (eval $ac_try) 2>&5 |
| 5563 | ac_status=$? |
| 5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5565 | (exit $ac_status); }; } && |
| 5566 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5568 | (eval $ac_try) 2>&5 |
| 5569 | ac_status=$? |
| 5570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5571 | (exit $ac_status); }; }; then |
| 5572 | ac_cv_has_makedev=yes |
| 5573 | else |
| 5574 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5576 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5577 | ac_cv_has_makedev=no |
| 5578 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5579 | rm -f conftest.err conftest.$ac_objext \ |
| 5580 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5581 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5582 | |
| 5583 | cat >>confdefs.h <<\_ACEOF |
| 5584 | #define _OSF_SOURCE 1 |
| 5585 | _ACEOF |
| 5586 | |
| 5587 | fi |
| 5588 | fi |
| 5589 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5590 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5591 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5592 | |
| 5593 | cat >>confdefs.h <<\_ACEOF |
| 5594 | #define HAVE_MAKEDEV 1 |
| 5595 | _ACEOF |
| 5596 | |
| 5597 | fi |
| 5598 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5599 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5600 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5601 | # defined, but the compiler does not support pragma redefine_extname, |
| 5602 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5603 | # structures (such as rlimit64) without declaring them. As a |
| 5604 | # work-around, disable LFS on such configurations |
| 5605 | |
| 5606 | use_lfs=yes |
| 5607 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5608 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5609 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5610 | /* confdefs.h. */ |
| 5611 | _ACEOF |
| 5612 | cat confdefs.h >>conftest.$ac_ext |
| 5613 | cat >>conftest.$ac_ext <<_ACEOF |
| 5614 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5615 | |
| 5616 | #define _LARGEFILE_SOURCE 1 |
| 5617 | #define _FILE_OFFSET_BITS 64 |
| 5618 | #include <sys/resource.h> |
| 5619 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5620 | int |
| 5621 | main () |
| 5622 | { |
| 5623 | struct rlimit foo; |
| 5624 | ; |
| 5625 | return 0; |
| 5626 | } |
| 5627 | _ACEOF |
| 5628 | rm -f conftest.$ac_objext |
| 5629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5630 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5631 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5633 | rm -f conftest.er1 |
| 5634 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5636 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 5637 | { ac_try='test -z "$ac_c_werror_flag" |
| 5638 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5640 | (eval $ac_try) 2>&5 |
| 5641 | ac_status=$? |
| 5642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5643 | (exit $ac_status); }; } && |
| 5644 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5646 | (eval $ac_try) 2>&5 |
| 5647 | ac_status=$? |
| 5648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5649 | (exit $ac_status); }; }; then |
| 5650 | sol_lfs_bug=no |
| 5651 | else |
| 5652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5654 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5655 | sol_lfs_bug=yes |
| 5656 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5658 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5659 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5660 | if test "$sol_lfs_bug" = "yes"; then |
| 5661 | use_lfs=no |
| 5662 | fi |
| 5663 | |
| 5664 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5665 | # Two defines needed to enable largefile support on various platforms |
| 5666 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5668 | cat >>confdefs.h <<\_ACEOF |
| 5669 | #define _LARGEFILE_SOURCE 1 |
| 5670 | _ACEOF |
| 5671 | |
| 5672 | |
| 5673 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5674 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5675 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5676 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5677 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5678 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5679 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5680 | cat >> confdefs.h <<\EOF |
| 5681 | #if defined(SCO_DS) |
| 5682 | #undef _OFF_T |
| 5683 | #endif |
| 5684 | EOF |
| 5685 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5686 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5687 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5688 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5689 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5691 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5692 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5693 | /* confdefs.h. */ |
| 5694 | _ACEOF |
| 5695 | cat confdefs.h >>conftest.$ac_ext |
| 5696 | cat >>conftest.$ac_ext <<_ACEOF |
| 5697 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5698 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5699 | int |
| 5700 | main () |
| 5701 | { |
| 5702 | if ((mode_t *) 0) |
| 5703 | return 0; |
| 5704 | if (sizeof (mode_t)) |
| 5705 | return 0; |
| 5706 | ; |
| 5707 | return 0; |
| 5708 | } |
| 5709 | _ACEOF |
| 5710 | rm -f conftest.$ac_objext |
| 5711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5712 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5713 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5715 | rm -f conftest.er1 |
| 5716 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5718 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 5719 | { ac_try='test -z "$ac_c_werror_flag" |
| 5720 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5722 | (eval $ac_try) 2>&5 |
| 5723 | ac_status=$? |
| 5724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5725 | (exit $ac_status); }; } && |
| 5726 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5728 | (eval $ac_try) 2>&5 |
| 5729 | ac_status=$? |
| 5730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5731 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5732 | ac_cv_type_mode_t=yes |
| 5733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5734 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5737 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5738 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5740 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5741 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5742 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5743 | if test $ac_cv_type_mode_t = yes; then |
| 5744 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5746 | |
| 5747 | cat >>confdefs.h <<_ACEOF |
| 5748 | #define mode_t int |
| 5749 | _ACEOF |
| 5750 | |
| 5751 | fi |
| 5752 | |
| 5753 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5754 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5755 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5757 | else |
| 5758 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5759 | /* confdefs.h. */ |
| 5760 | _ACEOF |
| 5761 | cat confdefs.h >>conftest.$ac_ext |
| 5762 | cat >>conftest.$ac_ext <<_ACEOF |
| 5763 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5764 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5765 | int |
| 5766 | main () |
| 5767 | { |
| 5768 | if ((off_t *) 0) |
| 5769 | return 0; |
| 5770 | if (sizeof (off_t)) |
| 5771 | return 0; |
| 5772 | ; |
| 5773 | return 0; |
| 5774 | } |
| 5775 | _ACEOF |
| 5776 | rm -f conftest.$ac_objext |
| 5777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5778 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5779 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5781 | rm -f conftest.er1 |
| 5782 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5784 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 5785 | { ac_try='test -z "$ac_c_werror_flag" |
| 5786 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5788 | (eval $ac_try) 2>&5 |
| 5789 | ac_status=$? |
| 5790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5791 | (exit $ac_status); }; } && |
| 5792 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5794 | (eval $ac_try) 2>&5 |
| 5795 | ac_status=$? |
| 5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5797 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5798 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5799 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5800 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5803 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5804 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5806 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5807 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5808 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5809 | if test $ac_cv_type_off_t = yes; then |
| 5810 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5811 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5812 | |
| 5813 | cat >>confdefs.h <<_ACEOF |
| 5814 | #define off_t long |
| 5815 | _ACEOF |
| 5816 | |
| 5817 | fi |
| 5818 | |
| 5819 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5820 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5821 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5823 | else |
| 5824 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5825 | /* confdefs.h. */ |
| 5826 | _ACEOF |
| 5827 | cat confdefs.h >>conftest.$ac_ext |
| 5828 | cat >>conftest.$ac_ext <<_ACEOF |
| 5829 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5830 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5831 | int |
| 5832 | main () |
| 5833 | { |
| 5834 | if ((pid_t *) 0) |
| 5835 | return 0; |
| 5836 | if (sizeof (pid_t)) |
| 5837 | return 0; |
| 5838 | ; |
| 5839 | return 0; |
| 5840 | } |
| 5841 | _ACEOF |
| 5842 | rm -f conftest.$ac_objext |
| 5843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5844 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5845 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5847 | rm -f conftest.er1 |
| 5848 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5850 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 5851 | { ac_try='test -z "$ac_c_werror_flag" |
| 5852 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5854 | (eval $ac_try) 2>&5 |
| 5855 | ac_status=$? |
| 5856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5857 | (exit $ac_status); }; } && |
| 5858 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5860 | (eval $ac_try) 2>&5 |
| 5861 | ac_status=$? |
| 5862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5863 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5864 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5866 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5869 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5870 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5872 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5873 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5874 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5875 | if test $ac_cv_type_pid_t = yes; then |
| 5876 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5878 | |
| 5879 | cat >>confdefs.h <<_ACEOF |
| 5880 | #define pid_t int |
| 5881 | _ACEOF |
| 5882 | |
| 5883 | fi |
| 5884 | |
| 5885 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5886 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5887 | if test "${ac_cv_type_signal+set}" = set; then |
| 5888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5889 | else |
| 5890 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5891 | /* confdefs.h. */ |
| 5892 | _ACEOF |
| 5893 | cat confdefs.h >>conftest.$ac_ext |
| 5894 | cat >>conftest.$ac_ext <<_ACEOF |
| 5895 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5896 | #include <sys/types.h> |
| 5897 | #include <signal.h> |
| 5898 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5899 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5900 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5901 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5902 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5903 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5904 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5905 | #endif |
| 5906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5907 | int |
| 5908 | main () |
| 5909 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5910 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5911 | ; |
| 5912 | return 0; |
| 5913 | } |
| 5914 | _ACEOF |
| 5915 | rm -f conftest.$ac_objext |
| 5916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5917 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5918 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5920 | rm -f conftest.er1 |
| 5921 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5923 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 5924 | { ac_try='test -z "$ac_c_werror_flag" |
| 5925 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5927 | (eval $ac_try) 2>&5 |
| 5928 | ac_status=$? |
| 5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5930 | (exit $ac_status); }; } && |
| 5931 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5933 | (eval $ac_try) 2>&5 |
| 5934 | ac_status=$? |
| 5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5936 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5937 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5938 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5939 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5942 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5943 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5945 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5946 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5947 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5949 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5950 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5951 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5952 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5954 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5955 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5956 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5958 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5959 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5960 | /* confdefs.h. */ |
| 5961 | _ACEOF |
| 5962 | cat confdefs.h >>conftest.$ac_ext |
| 5963 | cat >>conftest.$ac_ext <<_ACEOF |
| 5964 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5965 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5966 | int |
| 5967 | main () |
| 5968 | { |
| 5969 | if ((size_t *) 0) |
| 5970 | return 0; |
| 5971 | if (sizeof (size_t)) |
| 5972 | return 0; |
| 5973 | ; |
| 5974 | return 0; |
| 5975 | } |
| 5976 | _ACEOF |
| 5977 | rm -f conftest.$ac_objext |
| 5978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5979 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5980 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5982 | rm -f conftest.er1 |
| 5983 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5985 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 5986 | { ac_try='test -z "$ac_c_werror_flag" |
| 5987 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5989 | (eval $ac_try) 2>&5 |
| 5990 | ac_status=$? |
| 5991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5992 | (exit $ac_status); }; } && |
| 5993 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5995 | (eval $ac_try) 2>&5 |
| 5996 | ac_status=$? |
| 5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5998 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5999 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6000 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6001 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6003 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6004 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6005 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6007 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6008 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6009 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 6010 | if test $ac_cv_type_size_t = yes; then |
| 6011 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6012 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6013 | |
| 6014 | cat >>confdefs.h <<_ACEOF |
| 6015 | #define size_t unsigned |
| 6016 | _ACEOF |
| 6017 | |
| 6018 | fi |
| 6019 | |
| 6020 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6021 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 6022 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6024 | else |
| 6025 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6026 | /* confdefs.h. */ |
| 6027 | _ACEOF |
| 6028 | cat confdefs.h >>conftest.$ac_ext |
| 6029 | cat >>conftest.$ac_ext <<_ACEOF |
| 6030 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6031 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6032 | |
| 6033 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6035 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6036 | ac_cv_type_uid_t=yes |
| 6037 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6038 | ac_cv_type_uid_t=no |
| 6039 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6040 | rm -f conftest* |
| 6041 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +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_uid_t" >&5 |
| 6044 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6045 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6046 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6047 | cat >>confdefs.h <<\_ACEOF |
| 6048 | #define uid_t int |
| 6049 | _ACEOF |
| 6050 | |
| 6051 | |
| 6052 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6053 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6054 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6055 | |
| 6056 | fi |
| 6057 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6058 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6059 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6060 | # 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] | 6061 | echo "$as_me:$LINENO: checking for int" >&5 |
| 6062 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 6063 | if test "${ac_cv_type_int+set}" = set; then |
| 6064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6065 | else |
| 6066 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6067 | /* confdefs.h. */ |
| 6068 | _ACEOF |
| 6069 | cat confdefs.h >>conftest.$ac_ext |
| 6070 | cat >>conftest.$ac_ext <<_ACEOF |
| 6071 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6072 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6073 | int |
| 6074 | main () |
| 6075 | { |
| 6076 | if ((int *) 0) |
| 6077 | return 0; |
| 6078 | if (sizeof (int)) |
| 6079 | return 0; |
| 6080 | ; |
| 6081 | return 0; |
| 6082 | } |
| 6083 | _ACEOF |
| 6084 | rm -f conftest.$ac_objext |
| 6085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6086 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6087 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6089 | rm -f conftest.er1 |
| 6090 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6092 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6093 | { ac_try='test -z "$ac_c_werror_flag" |
| 6094 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 6100 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6102 | (eval $ac_try) 2>&5 |
| 6103 | ac_status=$? |
| 6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6105 | (exit $ac_status); }; }; then |
| 6106 | ac_cv_type_int=yes |
| 6107 | else |
| 6108 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6111 | ac_cv_type_int=no |
| 6112 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6114 | fi |
| 6115 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6116 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6117 | |
| 6118 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6119 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6120 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6122 | else |
| 6123 | if test "$ac_cv_type_int" = yes; then |
| 6124 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6125 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6126 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6127 | # This bug is HP SR number 8606223364. |
| 6128 | if test "$cross_compiling" = yes; then |
| 6129 | # Depending upon the size, compute the lo and hi bounds. |
| 6130 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6131 | /* confdefs.h. */ |
| 6132 | _ACEOF |
| 6133 | cat confdefs.h >>conftest.$ac_ext |
| 6134 | cat >>conftest.$ac_ext <<_ACEOF |
| 6135 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6136 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6137 | int |
| 6138 | main () |
| 6139 | { |
| 6140 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6141 | test_array [0] = 0 |
| 6142 | |
| 6143 | ; |
| 6144 | return 0; |
| 6145 | } |
| 6146 | _ACEOF |
| 6147 | rm -f conftest.$ac_objext |
| 6148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6149 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6150 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6152 | rm -f conftest.er1 |
| 6153 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6155 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6156 | { ac_try='test -z "$ac_c_werror_flag" |
| 6157 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6159 | (eval $ac_try) 2>&5 |
| 6160 | ac_status=$? |
| 6161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6162 | (exit $ac_status); }; } && |
| 6163 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6165 | (eval $ac_try) 2>&5 |
| 6166 | ac_status=$? |
| 6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6168 | (exit $ac_status); }; }; then |
| 6169 | ac_lo=0 ac_mid=0 |
| 6170 | while :; do |
| 6171 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6172 | /* confdefs.h. */ |
| 6173 | _ACEOF |
| 6174 | cat confdefs.h >>conftest.$ac_ext |
| 6175 | cat >>conftest.$ac_ext <<_ACEOF |
| 6176 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6177 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6178 | int |
| 6179 | main () |
| 6180 | { |
| 6181 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6182 | test_array [0] = 0 |
| 6183 | |
| 6184 | ; |
| 6185 | return 0; |
| 6186 | } |
| 6187 | _ACEOF |
| 6188 | rm -f conftest.$ac_objext |
| 6189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6190 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6191 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6193 | rm -f conftest.er1 |
| 6194 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6196 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6197 | { ac_try='test -z "$ac_c_werror_flag" |
| 6198 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6200 | (eval $ac_try) 2>&5 |
| 6201 | ac_status=$? |
| 6202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6203 | (exit $ac_status); }; } && |
| 6204 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6206 | (eval $ac_try) 2>&5 |
| 6207 | ac_status=$? |
| 6208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6209 | (exit $ac_status); }; }; then |
| 6210 | ac_hi=$ac_mid; break |
| 6211 | else |
| 6212 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6214 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6215 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6216 | if test $ac_lo -le $ac_mid; then |
| 6217 | ac_lo= ac_hi= |
| 6218 | break |
| 6219 | fi |
| 6220 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6221 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6223 | done |
| 6224 | else |
| 6225 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6228 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6229 | /* confdefs.h. */ |
| 6230 | _ACEOF |
| 6231 | cat confdefs.h >>conftest.$ac_ext |
| 6232 | cat >>conftest.$ac_ext <<_ACEOF |
| 6233 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6234 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6235 | int |
| 6236 | main () |
| 6237 | { |
| 6238 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6239 | test_array [0] = 0 |
| 6240 | |
| 6241 | ; |
| 6242 | return 0; |
| 6243 | } |
| 6244 | _ACEOF |
| 6245 | rm -f conftest.$ac_objext |
| 6246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6247 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6248 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6250 | rm -f conftest.er1 |
| 6251 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6253 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6254 | { ac_try='test -z "$ac_c_werror_flag" |
| 6255 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6257 | (eval $ac_try) 2>&5 |
| 6258 | ac_status=$? |
| 6259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6260 | (exit $ac_status); }; } && |
| 6261 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6263 | (eval $ac_try) 2>&5 |
| 6264 | ac_status=$? |
| 6265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6266 | (exit $ac_status); }; }; then |
| 6267 | ac_hi=-1 ac_mid=-1 |
| 6268 | while :; do |
| 6269 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6270 | /* confdefs.h. */ |
| 6271 | _ACEOF |
| 6272 | cat confdefs.h >>conftest.$ac_ext |
| 6273 | cat >>conftest.$ac_ext <<_ACEOF |
| 6274 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6275 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6276 | int |
| 6277 | main () |
| 6278 | { |
| 6279 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6280 | test_array [0] = 0 |
| 6281 | |
| 6282 | ; |
| 6283 | return 0; |
| 6284 | } |
| 6285 | _ACEOF |
| 6286 | rm -f conftest.$ac_objext |
| 6287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6288 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6289 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6291 | rm -f conftest.er1 |
| 6292 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6294 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6295 | { ac_try='test -z "$ac_c_werror_flag" |
| 6296 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6298 | (eval $ac_try) 2>&5 |
| 6299 | ac_status=$? |
| 6300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6301 | (exit $ac_status); }; } && |
| 6302 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6304 | (eval $ac_try) 2>&5 |
| 6305 | ac_status=$? |
| 6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6307 | (exit $ac_status); }; }; then |
| 6308 | ac_lo=$ac_mid; break |
| 6309 | else |
| 6310 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6312 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6313 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6314 | if test $ac_mid -le $ac_hi; then |
| 6315 | ac_lo= ac_hi= |
| 6316 | break |
| 6317 | fi |
| 6318 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6319 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6321 | done |
| 6322 | else |
| 6323 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6325 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6326 | ac_lo= ac_hi= |
| 6327 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6329 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6331 | # Binary search between lo and hi bounds. |
| 6332 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6333 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6334 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6335 | /* confdefs.h. */ |
| 6336 | _ACEOF |
| 6337 | cat confdefs.h >>conftest.$ac_ext |
| 6338 | cat >>conftest.$ac_ext <<_ACEOF |
| 6339 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6340 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6341 | int |
| 6342 | main () |
| 6343 | { |
| 6344 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6345 | test_array [0] = 0 |
| 6346 | |
| 6347 | ; |
| 6348 | return 0; |
| 6349 | } |
| 6350 | _ACEOF |
| 6351 | rm -f conftest.$ac_objext |
| 6352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6353 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6354 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6356 | rm -f conftest.er1 |
| 6357 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6359 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6360 | { ac_try='test -z "$ac_c_werror_flag" |
| 6361 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6363 | (eval $ac_try) 2>&5 |
| 6364 | ac_status=$? |
| 6365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6366 | (exit $ac_status); }; } && |
| 6367 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6369 | (eval $ac_try) 2>&5 |
| 6370 | ac_status=$? |
| 6371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6372 | (exit $ac_status); }; }; then |
| 6373 | ac_hi=$ac_mid |
| 6374 | else |
| 6375 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6378 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6379 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6381 | done |
| 6382 | case $ac_lo in |
| 6383 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6384 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6385 | See \`config.log' for more details." >&5 |
| 6386 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6387 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6388 | { (exit 1); exit 1; }; } ;; |
| 6389 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6390 | else |
| 6391 | if test "$cross_compiling" = yes; then |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6392 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6393 | See \`config.log' for more details." >&5 |
| 6394 | echo "$as_me: error: cannot run test program while cross compiling |
| 6395 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6396 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6397 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6398 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6399 | /* confdefs.h. */ |
| 6400 | _ACEOF |
| 6401 | cat confdefs.h >>conftest.$ac_ext |
| 6402 | cat >>conftest.$ac_ext <<_ACEOF |
| 6403 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6404 | $ac_includes_default |
| 6405 | long longval () { return (long) (sizeof (int)); } |
| 6406 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6407 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6408 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6409 | int |
| 6410 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6411 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6412 | |
| 6413 | FILE *f = fopen ("conftest.val", "w"); |
| 6414 | if (! f) |
| 6415 | exit (1); |
| 6416 | if (((long) (sizeof (int))) < 0) |
| 6417 | { |
| 6418 | long i = longval (); |
| 6419 | if (i != ((long) (sizeof (int)))) |
| 6420 | exit (1); |
| 6421 | fprintf (f, "%ld\n", i); |
| 6422 | } |
| 6423 | else |
| 6424 | { |
| 6425 | unsigned long i = ulongval (); |
| 6426 | if (i != ((long) (sizeof (int)))) |
| 6427 | exit (1); |
| 6428 | fprintf (f, "%lu\n", i); |
| 6429 | } |
| 6430 | exit (ferror (f) || fclose (f) != 0); |
| 6431 | |
| 6432 | ; |
| 6433 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6434 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6435 | _ACEOF |
| 6436 | rm -f conftest$ac_exeext |
| 6437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6438 | (eval $ac_link) 2>&5 |
| 6439 | ac_status=$? |
| 6440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6441 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6443 | (eval $ac_try) 2>&5 |
| 6444 | ac_status=$? |
| 6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6446 | (exit $ac_status); }; }; then |
| 6447 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6448 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6449 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6450 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6452 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6453 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6454 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6455 | See \`config.log' for more details." >&5 |
| 6456 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6457 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6458 | { (exit 1); exit 1; }; } |
| 6459 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6460 | 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] | 6461 | fi |
| 6462 | fi |
| 6463 | rm -f conftest.val |
| 6464 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6465 | ac_cv_sizeof_int=0 |
| 6466 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6467 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6468 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6469 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6470 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6471 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6472 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6473 | |
| 6474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6475 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6476 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6477 | if test "${ac_cv_type_long+set}" = set; then |
| 6478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6479 | else |
| 6480 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6481 | /* confdefs.h. */ |
| 6482 | _ACEOF |
| 6483 | cat confdefs.h >>conftest.$ac_ext |
| 6484 | cat >>conftest.$ac_ext <<_ACEOF |
| 6485 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6486 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6487 | int |
| 6488 | main () |
| 6489 | { |
| 6490 | if ((long *) 0) |
| 6491 | return 0; |
| 6492 | if (sizeof (long)) |
| 6493 | return 0; |
| 6494 | ; |
| 6495 | return 0; |
| 6496 | } |
| 6497 | _ACEOF |
| 6498 | rm -f conftest.$ac_objext |
| 6499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6500 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6501 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6503 | rm -f conftest.er1 |
| 6504 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6506 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6507 | { ac_try='test -z "$ac_c_werror_flag" |
| 6508 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6510 | (eval $ac_try) 2>&5 |
| 6511 | ac_status=$? |
| 6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6513 | (exit $ac_status); }; } && |
| 6514 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6516 | (eval $ac_try) 2>&5 |
| 6517 | ac_status=$? |
| 6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6519 | (exit $ac_status); }; }; then |
| 6520 | ac_cv_type_long=yes |
| 6521 | else |
| 6522 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6524 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6525 | ac_cv_type_long=no |
| 6526 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6528 | fi |
| 6529 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6530 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6531 | |
| 6532 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6533 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6534 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6536 | else |
| 6537 | if test "$ac_cv_type_long" = yes; then |
| 6538 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6539 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6540 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6541 | # This bug is HP SR number 8606223364. |
| 6542 | if test "$cross_compiling" = yes; then |
| 6543 | # Depending upon the size, compute the lo and hi bounds. |
| 6544 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6545 | /* confdefs.h. */ |
| 6546 | _ACEOF |
| 6547 | cat confdefs.h >>conftest.$ac_ext |
| 6548 | cat >>conftest.$ac_ext <<_ACEOF |
| 6549 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6550 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6551 | int |
| 6552 | main () |
| 6553 | { |
| 6554 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6555 | test_array [0] = 0 |
| 6556 | |
| 6557 | ; |
| 6558 | return 0; |
| 6559 | } |
| 6560 | _ACEOF |
| 6561 | rm -f conftest.$ac_objext |
| 6562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6563 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6566 | rm -f conftest.er1 |
| 6567 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6569 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6570 | { ac_try='test -z "$ac_c_werror_flag" |
| 6571 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6573 | (eval $ac_try) 2>&5 |
| 6574 | ac_status=$? |
| 6575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6576 | (exit $ac_status); }; } && |
| 6577 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6579 | (eval $ac_try) 2>&5 |
| 6580 | ac_status=$? |
| 6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6582 | (exit $ac_status); }; }; then |
| 6583 | ac_lo=0 ac_mid=0 |
| 6584 | while :; do |
| 6585 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6586 | /* confdefs.h. */ |
| 6587 | _ACEOF |
| 6588 | cat confdefs.h >>conftest.$ac_ext |
| 6589 | cat >>conftest.$ac_ext <<_ACEOF |
| 6590 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6591 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6592 | int |
| 6593 | main () |
| 6594 | { |
| 6595 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6596 | test_array [0] = 0 |
| 6597 | |
| 6598 | ; |
| 6599 | return 0; |
| 6600 | } |
| 6601 | _ACEOF |
| 6602 | rm -f conftest.$ac_objext |
| 6603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6604 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6605 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6607 | rm -f conftest.er1 |
| 6608 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6610 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6611 | { ac_try='test -z "$ac_c_werror_flag" |
| 6612 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6614 | (eval $ac_try) 2>&5 |
| 6615 | ac_status=$? |
| 6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6617 | (exit $ac_status); }; } && |
| 6618 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6620 | (eval $ac_try) 2>&5 |
| 6621 | ac_status=$? |
| 6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6623 | (exit $ac_status); }; }; then |
| 6624 | ac_hi=$ac_mid; break |
| 6625 | else |
| 6626 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6629 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6630 | if test $ac_lo -le $ac_mid; then |
| 6631 | ac_lo= ac_hi= |
| 6632 | break |
| 6633 | fi |
| 6634 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6635 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6637 | done |
| 6638 | else |
| 6639 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6642 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6643 | /* confdefs.h. */ |
| 6644 | _ACEOF |
| 6645 | cat confdefs.h >>conftest.$ac_ext |
| 6646 | cat >>conftest.$ac_ext <<_ACEOF |
| 6647 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6648 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6649 | int |
| 6650 | main () |
| 6651 | { |
| 6652 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6653 | test_array [0] = 0 |
| 6654 | |
| 6655 | ; |
| 6656 | return 0; |
| 6657 | } |
| 6658 | _ACEOF |
| 6659 | rm -f conftest.$ac_objext |
| 6660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6661 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6662 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6664 | rm -f conftest.er1 |
| 6665 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6667 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6668 | { ac_try='test -z "$ac_c_werror_flag" |
| 6669 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6671 | (eval $ac_try) 2>&5 |
| 6672 | ac_status=$? |
| 6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6674 | (exit $ac_status); }; } && |
| 6675 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6677 | (eval $ac_try) 2>&5 |
| 6678 | ac_status=$? |
| 6679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6680 | (exit $ac_status); }; }; then |
| 6681 | ac_hi=-1 ac_mid=-1 |
| 6682 | while :; do |
| 6683 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6684 | /* confdefs.h. */ |
| 6685 | _ACEOF |
| 6686 | cat confdefs.h >>conftest.$ac_ext |
| 6687 | cat >>conftest.$ac_ext <<_ACEOF |
| 6688 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6689 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6690 | int |
| 6691 | main () |
| 6692 | { |
| 6693 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6694 | test_array [0] = 0 |
| 6695 | |
| 6696 | ; |
| 6697 | return 0; |
| 6698 | } |
| 6699 | _ACEOF |
| 6700 | rm -f conftest.$ac_objext |
| 6701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6702 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6703 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6705 | rm -f conftest.er1 |
| 6706 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6708 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6709 | { ac_try='test -z "$ac_c_werror_flag" |
| 6710 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6712 | (eval $ac_try) 2>&5 |
| 6713 | ac_status=$? |
| 6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6715 | (exit $ac_status); }; } && |
| 6716 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6718 | (eval $ac_try) 2>&5 |
| 6719 | ac_status=$? |
| 6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6721 | (exit $ac_status); }; }; then |
| 6722 | ac_lo=$ac_mid; break |
| 6723 | else |
| 6724 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6727 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6728 | if test $ac_mid -le $ac_hi; then |
| 6729 | ac_lo= ac_hi= |
| 6730 | break |
| 6731 | fi |
| 6732 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6733 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6735 | done |
| 6736 | else |
| 6737 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6740 | ac_lo= ac_hi= |
| 6741 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6743 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6745 | # Binary search between lo and hi bounds. |
| 6746 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6747 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6748 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6749 | /* confdefs.h. */ |
| 6750 | _ACEOF |
| 6751 | cat confdefs.h >>conftest.$ac_ext |
| 6752 | cat >>conftest.$ac_ext <<_ACEOF |
| 6753 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6754 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6755 | int |
| 6756 | main () |
| 6757 | { |
| 6758 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6759 | test_array [0] = 0 |
| 6760 | |
| 6761 | ; |
| 6762 | return 0; |
| 6763 | } |
| 6764 | _ACEOF |
| 6765 | rm -f conftest.$ac_objext |
| 6766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6767 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6768 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6770 | rm -f conftest.er1 |
| 6771 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6773 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6774 | { ac_try='test -z "$ac_c_werror_flag" |
| 6775 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6777 | (eval $ac_try) 2>&5 |
| 6778 | ac_status=$? |
| 6779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6780 | (exit $ac_status); }; } && |
| 6781 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6783 | (eval $ac_try) 2>&5 |
| 6784 | ac_status=$? |
| 6785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6786 | (exit $ac_status); }; }; then |
| 6787 | ac_hi=$ac_mid |
| 6788 | else |
| 6789 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6792 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6793 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6795 | done |
| 6796 | case $ac_lo in |
| 6797 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6798 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6799 | See \`config.log' for more details." >&5 |
| 6800 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6801 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6802 | { (exit 1); exit 1; }; } ;; |
| 6803 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6804 | else |
| 6805 | if test "$cross_compiling" = yes; then |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6806 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6807 | See \`config.log' for more details." >&5 |
| 6808 | echo "$as_me: error: cannot run test program while cross compiling |
| 6809 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6810 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6811 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6812 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6813 | /* confdefs.h. */ |
| 6814 | _ACEOF |
| 6815 | cat confdefs.h >>conftest.$ac_ext |
| 6816 | cat >>conftest.$ac_ext <<_ACEOF |
| 6817 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6818 | $ac_includes_default |
| 6819 | long longval () { return (long) (sizeof (long)); } |
| 6820 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6821 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6822 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6823 | int |
| 6824 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6825 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6826 | |
| 6827 | FILE *f = fopen ("conftest.val", "w"); |
| 6828 | if (! f) |
| 6829 | exit (1); |
| 6830 | if (((long) (sizeof (long))) < 0) |
| 6831 | { |
| 6832 | long i = longval (); |
| 6833 | if (i != ((long) (sizeof (long)))) |
| 6834 | exit (1); |
| 6835 | fprintf (f, "%ld\n", i); |
| 6836 | } |
| 6837 | else |
| 6838 | { |
| 6839 | unsigned long i = ulongval (); |
| 6840 | if (i != ((long) (sizeof (long)))) |
| 6841 | exit (1); |
| 6842 | fprintf (f, "%lu\n", i); |
| 6843 | } |
| 6844 | exit (ferror (f) || fclose (f) != 0); |
| 6845 | |
| 6846 | ; |
| 6847 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6848 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6849 | _ACEOF |
| 6850 | rm -f conftest$ac_exeext |
| 6851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6852 | (eval $ac_link) 2>&5 |
| 6853 | ac_status=$? |
| 6854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6855 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6857 | (eval $ac_try) 2>&5 |
| 6858 | ac_status=$? |
| 6859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6860 | (exit $ac_status); }; }; then |
| 6861 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6862 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6863 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6864 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6867 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6868 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6869 | See \`config.log' for more details." >&5 |
| 6870 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6871 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6872 | { (exit 1); exit 1; }; } |
| 6873 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6874 | 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] | 6875 | fi |
| 6876 | fi |
| 6877 | rm -f conftest.val |
| 6878 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6879 | ac_cv_sizeof_long=0 |
| 6880 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6881 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6882 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6883 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6884 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6885 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6886 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6887 | |
| 6888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6889 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6890 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6891 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6893 | else |
| 6894 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6895 | /* confdefs.h. */ |
| 6896 | _ACEOF |
| 6897 | cat confdefs.h >>conftest.$ac_ext |
| 6898 | cat >>conftest.$ac_ext <<_ACEOF |
| 6899 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6900 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6901 | int |
| 6902 | main () |
| 6903 | { |
| 6904 | if ((void * *) 0) |
| 6905 | return 0; |
| 6906 | if (sizeof (void *)) |
| 6907 | return 0; |
| 6908 | ; |
| 6909 | return 0; |
| 6910 | } |
| 6911 | _ACEOF |
| 6912 | rm -f conftest.$ac_objext |
| 6913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6914 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6915 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6917 | rm -f conftest.er1 |
| 6918 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6920 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6921 | { ac_try='test -z "$ac_c_werror_flag" |
| 6922 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6924 | (eval $ac_try) 2>&5 |
| 6925 | ac_status=$? |
| 6926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6927 | (exit $ac_status); }; } && |
| 6928 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6930 | (eval $ac_try) 2>&5 |
| 6931 | ac_status=$? |
| 6932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6933 | (exit $ac_status); }; }; then |
| 6934 | ac_cv_type_void_p=yes |
| 6935 | else |
| 6936 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6939 | ac_cv_type_void_p=no |
| 6940 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6942 | fi |
| 6943 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6944 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6945 | |
| 6946 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6947 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6948 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6950 | else |
| 6951 | if test "$ac_cv_type_void_p" = yes; then |
| 6952 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6953 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6954 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6955 | # This bug is HP SR number 8606223364. |
| 6956 | if test "$cross_compiling" = yes; then |
| 6957 | # Depending upon the size, compute the lo and hi bounds. |
| 6958 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6959 | /* confdefs.h. */ |
| 6960 | _ACEOF |
| 6961 | cat confdefs.h >>conftest.$ac_ext |
| 6962 | cat >>conftest.$ac_ext <<_ACEOF |
| 6963 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6964 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6965 | int |
| 6966 | main () |
| 6967 | { |
| 6968 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6969 | test_array [0] = 0 |
| 6970 | |
| 6971 | ; |
| 6972 | return 0; |
| 6973 | } |
| 6974 | _ACEOF |
| 6975 | rm -f conftest.$ac_objext |
| 6976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6977 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6978 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6980 | rm -f conftest.er1 |
| 6981 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6983 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 6984 | { ac_try='test -z "$ac_c_werror_flag" |
| 6985 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6987 | (eval $ac_try) 2>&5 |
| 6988 | ac_status=$? |
| 6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6990 | (exit $ac_status); }; } && |
| 6991 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6993 | (eval $ac_try) 2>&5 |
| 6994 | ac_status=$? |
| 6995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6996 | (exit $ac_status); }; }; then |
| 6997 | ac_lo=0 ac_mid=0 |
| 6998 | while :; do |
| 6999 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7000 | /* confdefs.h. */ |
| 7001 | _ACEOF |
| 7002 | cat confdefs.h >>conftest.$ac_ext |
| 7003 | cat >>conftest.$ac_ext <<_ACEOF |
| 7004 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7005 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7006 | int |
| 7007 | main () |
| 7008 | { |
| 7009 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7010 | test_array [0] = 0 |
| 7011 | |
| 7012 | ; |
| 7013 | return 0; |
| 7014 | } |
| 7015 | _ACEOF |
| 7016 | rm -f conftest.$ac_objext |
| 7017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7018 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7019 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7021 | rm -f conftest.er1 |
| 7022 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7024 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7025 | { ac_try='test -z "$ac_c_werror_flag" |
| 7026 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7028 | (eval $ac_try) 2>&5 |
| 7029 | ac_status=$? |
| 7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7031 | (exit $ac_status); }; } && |
| 7032 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7034 | (eval $ac_try) 2>&5 |
| 7035 | ac_status=$? |
| 7036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7037 | (exit $ac_status); }; }; then |
| 7038 | ac_hi=$ac_mid; break |
| 7039 | else |
| 7040 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7043 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7044 | if test $ac_lo -le $ac_mid; then |
| 7045 | ac_lo= ac_hi= |
| 7046 | break |
| 7047 | fi |
| 7048 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7049 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7051 | done |
| 7052 | else |
| 7053 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7055 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7056 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7057 | /* confdefs.h. */ |
| 7058 | _ACEOF |
| 7059 | cat confdefs.h >>conftest.$ac_ext |
| 7060 | cat >>conftest.$ac_ext <<_ACEOF |
| 7061 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7062 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7063 | int |
| 7064 | main () |
| 7065 | { |
| 7066 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 7067 | test_array [0] = 0 |
| 7068 | |
| 7069 | ; |
| 7070 | return 0; |
| 7071 | } |
| 7072 | _ACEOF |
| 7073 | rm -f conftest.$ac_objext |
| 7074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7075 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7076 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7078 | rm -f conftest.er1 |
| 7079 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7081 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7082 | { ac_try='test -z "$ac_c_werror_flag" |
| 7083 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7085 | (eval $ac_try) 2>&5 |
| 7086 | ac_status=$? |
| 7087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7088 | (exit $ac_status); }; } && |
| 7089 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7091 | (eval $ac_try) 2>&5 |
| 7092 | ac_status=$? |
| 7093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7094 | (exit $ac_status); }; }; then |
| 7095 | ac_hi=-1 ac_mid=-1 |
| 7096 | while :; do |
| 7097 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7098 | /* confdefs.h. */ |
| 7099 | _ACEOF |
| 7100 | cat confdefs.h >>conftest.$ac_ext |
| 7101 | cat >>conftest.$ac_ext <<_ACEOF |
| 7102 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7103 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7104 | int |
| 7105 | main () |
| 7106 | { |
| 7107 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 7108 | test_array [0] = 0 |
| 7109 | |
| 7110 | ; |
| 7111 | return 0; |
| 7112 | } |
| 7113 | _ACEOF |
| 7114 | rm -f conftest.$ac_objext |
| 7115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7116 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7117 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7119 | rm -f conftest.er1 |
| 7120 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7122 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7123 | { ac_try='test -z "$ac_c_werror_flag" |
| 7124 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7126 | (eval $ac_try) 2>&5 |
| 7127 | ac_status=$? |
| 7128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7129 | (exit $ac_status); }; } && |
| 7130 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7132 | (eval $ac_try) 2>&5 |
| 7133 | ac_status=$? |
| 7134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7135 | (exit $ac_status); }; }; then |
| 7136 | ac_lo=$ac_mid; break |
| 7137 | else |
| 7138 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7141 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7142 | if test $ac_mid -le $ac_hi; then |
| 7143 | ac_lo= ac_hi= |
| 7144 | break |
| 7145 | fi |
| 7146 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7147 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7149 | done |
| 7150 | else |
| 7151 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7154 | ac_lo= ac_hi= |
| 7155 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7156 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7157 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7159 | # Binary search between lo and hi bounds. |
| 7160 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7161 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7162 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7163 | /* confdefs.h. */ |
| 7164 | _ACEOF |
| 7165 | cat confdefs.h >>conftest.$ac_ext |
| 7166 | cat >>conftest.$ac_ext <<_ACEOF |
| 7167 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7168 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7169 | int |
| 7170 | main () |
| 7171 | { |
| 7172 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7173 | test_array [0] = 0 |
| 7174 | |
| 7175 | ; |
| 7176 | return 0; |
| 7177 | } |
| 7178 | _ACEOF |
| 7179 | rm -f conftest.$ac_objext |
| 7180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7181 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7182 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7184 | rm -f conftest.er1 |
| 7185 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7187 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7188 | { ac_try='test -z "$ac_c_werror_flag" |
| 7189 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7191 | (eval $ac_try) 2>&5 |
| 7192 | ac_status=$? |
| 7193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7194 | (exit $ac_status); }; } && |
| 7195 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7197 | (eval $ac_try) 2>&5 |
| 7198 | ac_status=$? |
| 7199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7200 | (exit $ac_status); }; }; then |
| 7201 | ac_hi=$ac_mid |
| 7202 | else |
| 7203 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7206 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7207 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7209 | done |
| 7210 | case $ac_lo in |
| 7211 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7212 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7213 | See \`config.log' for more details." >&5 |
| 7214 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7215 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7216 | { (exit 1); exit 1; }; } ;; |
| 7217 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7218 | else |
| 7219 | if test "$cross_compiling" = yes; then |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7220 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7221 | See \`config.log' for more details." >&5 |
| 7222 | echo "$as_me: error: cannot run test program while cross compiling |
| 7223 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7224 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7226 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7227 | /* confdefs.h. */ |
| 7228 | _ACEOF |
| 7229 | cat confdefs.h >>conftest.$ac_ext |
| 7230 | cat >>conftest.$ac_ext <<_ACEOF |
| 7231 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7232 | $ac_includes_default |
| 7233 | long longval () { return (long) (sizeof (void *)); } |
| 7234 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7235 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7236 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7237 | int |
| 7238 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7239 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7240 | |
| 7241 | FILE *f = fopen ("conftest.val", "w"); |
| 7242 | if (! f) |
| 7243 | exit (1); |
| 7244 | if (((long) (sizeof (void *))) < 0) |
| 7245 | { |
| 7246 | long i = longval (); |
| 7247 | if (i != ((long) (sizeof (void *)))) |
| 7248 | exit (1); |
| 7249 | fprintf (f, "%ld\n", i); |
| 7250 | } |
| 7251 | else |
| 7252 | { |
| 7253 | unsigned long i = ulongval (); |
| 7254 | if (i != ((long) (sizeof (void *)))) |
| 7255 | exit (1); |
| 7256 | fprintf (f, "%lu\n", i); |
| 7257 | } |
| 7258 | exit (ferror (f) || fclose (f) != 0); |
| 7259 | |
| 7260 | ; |
| 7261 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7262 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7263 | _ACEOF |
| 7264 | rm -f conftest$ac_exeext |
| 7265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7266 | (eval $ac_link) 2>&5 |
| 7267 | ac_status=$? |
| 7268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7269 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7271 | (eval $ac_try) 2>&5 |
| 7272 | ac_status=$? |
| 7273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7274 | (exit $ac_status); }; }; then |
| 7275 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7277 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7278 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7281 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7282 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7283 | See \`config.log' for more details." >&5 |
| 7284 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7285 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7286 | { (exit 1); exit 1; }; } |
| 7287 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7288 | 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] | 7289 | fi |
| 7290 | fi |
| 7291 | rm -f conftest.val |
| 7292 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7293 | ac_cv_sizeof_void_p=0 |
| 7294 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7295 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7296 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7297 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7298 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7299 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7300 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7301 | |
| 7302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7303 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7304 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7305 | if test "${ac_cv_type_short+set}" = set; then |
| 7306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7307 | else |
| 7308 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7309 | /* confdefs.h. */ |
| 7310 | _ACEOF |
| 7311 | cat confdefs.h >>conftest.$ac_ext |
| 7312 | cat >>conftest.$ac_ext <<_ACEOF |
| 7313 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7314 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7315 | int |
| 7316 | main () |
| 7317 | { |
| 7318 | if ((short *) 0) |
| 7319 | return 0; |
| 7320 | if (sizeof (short)) |
| 7321 | return 0; |
| 7322 | ; |
| 7323 | return 0; |
| 7324 | } |
| 7325 | _ACEOF |
| 7326 | rm -f conftest.$ac_objext |
| 7327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7328 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7329 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7331 | rm -f conftest.er1 |
| 7332 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7334 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7335 | { ac_try='test -z "$ac_c_werror_flag" |
| 7336 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7338 | (eval $ac_try) 2>&5 |
| 7339 | ac_status=$? |
| 7340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7341 | (exit $ac_status); }; } && |
| 7342 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7344 | (eval $ac_try) 2>&5 |
| 7345 | ac_status=$? |
| 7346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7347 | (exit $ac_status); }; }; then |
| 7348 | ac_cv_type_short=yes |
| 7349 | else |
| 7350 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7353 | ac_cv_type_short=no |
| 7354 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7356 | fi |
| 7357 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7358 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7359 | |
| 7360 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7361 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7362 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7364 | else |
| 7365 | if test "$ac_cv_type_short" = yes; then |
| 7366 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7367 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7368 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7369 | # This bug is HP SR number 8606223364. |
| 7370 | if test "$cross_compiling" = yes; then |
| 7371 | # Depending upon the size, compute the lo and hi bounds. |
| 7372 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7373 | /* confdefs.h. */ |
| 7374 | _ACEOF |
| 7375 | cat confdefs.h >>conftest.$ac_ext |
| 7376 | cat >>conftest.$ac_ext <<_ACEOF |
| 7377 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7378 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7379 | int |
| 7380 | main () |
| 7381 | { |
| 7382 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7383 | test_array [0] = 0 |
| 7384 | |
| 7385 | ; |
| 7386 | return 0; |
| 7387 | } |
| 7388 | _ACEOF |
| 7389 | rm -f conftest.$ac_objext |
| 7390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7391 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7392 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7394 | rm -f conftest.er1 |
| 7395 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7397 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7398 | { ac_try='test -z "$ac_c_werror_flag" |
| 7399 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7401 | (eval $ac_try) 2>&5 |
| 7402 | ac_status=$? |
| 7403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7404 | (exit $ac_status); }; } && |
| 7405 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7407 | (eval $ac_try) 2>&5 |
| 7408 | ac_status=$? |
| 7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7410 | (exit $ac_status); }; }; then |
| 7411 | ac_lo=0 ac_mid=0 |
| 7412 | while :; do |
| 7413 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7414 | /* confdefs.h. */ |
| 7415 | _ACEOF |
| 7416 | cat confdefs.h >>conftest.$ac_ext |
| 7417 | cat >>conftest.$ac_ext <<_ACEOF |
| 7418 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7419 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7420 | int |
| 7421 | main () |
| 7422 | { |
| 7423 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7424 | test_array [0] = 0 |
| 7425 | |
| 7426 | ; |
| 7427 | return 0; |
| 7428 | } |
| 7429 | _ACEOF |
| 7430 | rm -f conftest.$ac_objext |
| 7431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7432 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7433 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7435 | rm -f conftest.er1 |
| 7436 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7438 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7439 | { ac_try='test -z "$ac_c_werror_flag" |
| 7440 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7442 | (eval $ac_try) 2>&5 |
| 7443 | ac_status=$? |
| 7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7445 | (exit $ac_status); }; } && |
| 7446 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7448 | (eval $ac_try) 2>&5 |
| 7449 | ac_status=$? |
| 7450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7451 | (exit $ac_status); }; }; then |
| 7452 | ac_hi=$ac_mid; break |
| 7453 | else |
| 7454 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7457 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7458 | if test $ac_lo -le $ac_mid; then |
| 7459 | ac_lo= ac_hi= |
| 7460 | break |
| 7461 | fi |
| 7462 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7463 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7465 | done |
| 7466 | else |
| 7467 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7470 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7471 | /* confdefs.h. */ |
| 7472 | _ACEOF |
| 7473 | cat confdefs.h >>conftest.$ac_ext |
| 7474 | cat >>conftest.$ac_ext <<_ACEOF |
| 7475 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7476 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7477 | int |
| 7478 | main () |
| 7479 | { |
| 7480 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7481 | test_array [0] = 0 |
| 7482 | |
| 7483 | ; |
| 7484 | return 0; |
| 7485 | } |
| 7486 | _ACEOF |
| 7487 | rm -f conftest.$ac_objext |
| 7488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7489 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7490 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7492 | rm -f conftest.er1 |
| 7493 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7495 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7496 | { ac_try='test -z "$ac_c_werror_flag" |
| 7497 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7499 | (eval $ac_try) 2>&5 |
| 7500 | ac_status=$? |
| 7501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7502 | (exit $ac_status); }; } && |
| 7503 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7505 | (eval $ac_try) 2>&5 |
| 7506 | ac_status=$? |
| 7507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7508 | (exit $ac_status); }; }; then |
| 7509 | ac_hi=-1 ac_mid=-1 |
| 7510 | while :; do |
| 7511 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7512 | /* confdefs.h. */ |
| 7513 | _ACEOF |
| 7514 | cat confdefs.h >>conftest.$ac_ext |
| 7515 | cat >>conftest.$ac_ext <<_ACEOF |
| 7516 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7517 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7518 | int |
| 7519 | main () |
| 7520 | { |
| 7521 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7522 | test_array [0] = 0 |
| 7523 | |
| 7524 | ; |
| 7525 | return 0; |
| 7526 | } |
| 7527 | _ACEOF |
| 7528 | rm -f conftest.$ac_objext |
| 7529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7530 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7531 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7533 | rm -f conftest.er1 |
| 7534 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7536 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7537 | { ac_try='test -z "$ac_c_werror_flag" |
| 7538 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7540 | (eval $ac_try) 2>&5 |
| 7541 | ac_status=$? |
| 7542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7543 | (exit $ac_status); }; } && |
| 7544 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7546 | (eval $ac_try) 2>&5 |
| 7547 | ac_status=$? |
| 7548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7549 | (exit $ac_status); }; }; then |
| 7550 | ac_lo=$ac_mid; break |
| 7551 | else |
| 7552 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7555 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7556 | if test $ac_mid -le $ac_hi; then |
| 7557 | ac_lo= ac_hi= |
| 7558 | break |
| 7559 | fi |
| 7560 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7561 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7563 | done |
| 7564 | else |
| 7565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7568 | ac_lo= ac_hi= |
| 7569 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7571 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7573 | # Binary search between lo and hi bounds. |
| 7574 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7575 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7576 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7577 | /* confdefs.h. */ |
| 7578 | _ACEOF |
| 7579 | cat confdefs.h >>conftest.$ac_ext |
| 7580 | cat >>conftest.$ac_ext <<_ACEOF |
| 7581 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7582 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7583 | int |
| 7584 | main () |
| 7585 | { |
| 7586 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7587 | test_array [0] = 0 |
| 7588 | |
| 7589 | ; |
| 7590 | return 0; |
| 7591 | } |
| 7592 | _ACEOF |
| 7593 | rm -f conftest.$ac_objext |
| 7594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7595 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7596 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7598 | rm -f conftest.er1 |
| 7599 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7601 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7602 | { ac_try='test -z "$ac_c_werror_flag" |
| 7603 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7605 | (eval $ac_try) 2>&5 |
| 7606 | ac_status=$? |
| 7607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7608 | (exit $ac_status); }; } && |
| 7609 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7611 | (eval $ac_try) 2>&5 |
| 7612 | ac_status=$? |
| 7613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7614 | (exit $ac_status); }; }; then |
| 7615 | ac_hi=$ac_mid |
| 7616 | else |
| 7617 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7620 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7621 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7623 | done |
| 7624 | case $ac_lo in |
| 7625 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7626 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7627 | See \`config.log' for more details." >&5 |
| 7628 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7629 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7630 | { (exit 1); exit 1; }; } ;; |
| 7631 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7632 | else |
| 7633 | if test "$cross_compiling" = yes; then |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7634 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7635 | See \`config.log' for more details." >&5 |
| 7636 | echo "$as_me: error: cannot run test program while cross compiling |
| 7637 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7638 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7640 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7641 | /* confdefs.h. */ |
| 7642 | _ACEOF |
| 7643 | cat confdefs.h >>conftest.$ac_ext |
| 7644 | cat >>conftest.$ac_ext <<_ACEOF |
| 7645 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7646 | $ac_includes_default |
| 7647 | long longval () { return (long) (sizeof (short)); } |
| 7648 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7649 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7650 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7651 | int |
| 7652 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7653 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7654 | |
| 7655 | FILE *f = fopen ("conftest.val", "w"); |
| 7656 | if (! f) |
| 7657 | exit (1); |
| 7658 | if (((long) (sizeof (short))) < 0) |
| 7659 | { |
| 7660 | long i = longval (); |
| 7661 | if (i != ((long) (sizeof (short)))) |
| 7662 | exit (1); |
| 7663 | fprintf (f, "%ld\n", i); |
| 7664 | } |
| 7665 | else |
| 7666 | { |
| 7667 | unsigned long i = ulongval (); |
| 7668 | if (i != ((long) (sizeof (short)))) |
| 7669 | exit (1); |
| 7670 | fprintf (f, "%lu\n", i); |
| 7671 | } |
| 7672 | exit (ferror (f) || fclose (f) != 0); |
| 7673 | |
| 7674 | ; |
| 7675 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7676 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7677 | _ACEOF |
| 7678 | rm -f conftest$ac_exeext |
| 7679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7680 | (eval $ac_link) 2>&5 |
| 7681 | ac_status=$? |
| 7682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7683 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7685 | (eval $ac_try) 2>&5 |
| 7686 | ac_status=$? |
| 7687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7688 | (exit $ac_status); }; }; then |
| 7689 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7690 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7691 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7692 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7695 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7696 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7697 | See \`config.log' for more details." >&5 |
| 7698 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7699 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7700 | { (exit 1); exit 1; }; } |
| 7701 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7702 | 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] | 7703 | fi |
| 7704 | fi |
| 7705 | rm -f conftest.val |
| 7706 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7707 | ac_cv_sizeof_short=0 |
| 7708 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7709 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7710 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7711 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7712 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7713 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7714 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7715 | |
| 7716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7717 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7718 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7719 | if test "${ac_cv_type_float+set}" = set; then |
| 7720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7721 | else |
| 7722 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7723 | /* confdefs.h. */ |
| 7724 | _ACEOF |
| 7725 | cat confdefs.h >>conftest.$ac_ext |
| 7726 | cat >>conftest.$ac_ext <<_ACEOF |
| 7727 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7728 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7729 | int |
| 7730 | main () |
| 7731 | { |
| 7732 | if ((float *) 0) |
| 7733 | return 0; |
| 7734 | if (sizeof (float)) |
| 7735 | return 0; |
| 7736 | ; |
| 7737 | return 0; |
| 7738 | } |
| 7739 | _ACEOF |
| 7740 | rm -f conftest.$ac_objext |
| 7741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7742 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7743 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7745 | rm -f conftest.er1 |
| 7746 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7748 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7749 | { ac_try='test -z "$ac_c_werror_flag" |
| 7750 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7752 | (eval $ac_try) 2>&5 |
| 7753 | ac_status=$? |
| 7754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7755 | (exit $ac_status); }; } && |
| 7756 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7758 | (eval $ac_try) 2>&5 |
| 7759 | ac_status=$? |
| 7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7761 | (exit $ac_status); }; }; then |
| 7762 | ac_cv_type_float=yes |
| 7763 | else |
| 7764 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7767 | ac_cv_type_float=no |
| 7768 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7770 | fi |
| 7771 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7772 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7773 | |
| 7774 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7775 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7776 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7778 | else |
| 7779 | if test "$ac_cv_type_float" = yes; then |
| 7780 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7781 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7782 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7783 | # This bug is HP SR number 8606223364. |
| 7784 | if test "$cross_compiling" = yes; then |
| 7785 | # Depending upon the size, compute the lo and hi bounds. |
| 7786 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7787 | /* confdefs.h. */ |
| 7788 | _ACEOF |
| 7789 | cat confdefs.h >>conftest.$ac_ext |
| 7790 | cat >>conftest.$ac_ext <<_ACEOF |
| 7791 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7792 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7793 | int |
| 7794 | main () |
| 7795 | { |
| 7796 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7797 | test_array [0] = 0 |
| 7798 | |
| 7799 | ; |
| 7800 | return 0; |
| 7801 | } |
| 7802 | _ACEOF |
| 7803 | rm -f conftest.$ac_objext |
| 7804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7805 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7806 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7808 | rm -f conftest.er1 |
| 7809 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7811 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7812 | { ac_try='test -z "$ac_c_werror_flag" |
| 7813 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7815 | (eval $ac_try) 2>&5 |
| 7816 | ac_status=$? |
| 7817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7818 | (exit $ac_status); }; } && |
| 7819 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7821 | (eval $ac_try) 2>&5 |
| 7822 | ac_status=$? |
| 7823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7824 | (exit $ac_status); }; }; then |
| 7825 | ac_lo=0 ac_mid=0 |
| 7826 | while :; do |
| 7827 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7828 | /* confdefs.h. */ |
| 7829 | _ACEOF |
| 7830 | cat confdefs.h >>conftest.$ac_ext |
| 7831 | cat >>conftest.$ac_ext <<_ACEOF |
| 7832 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7833 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7834 | int |
| 7835 | main () |
| 7836 | { |
| 7837 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7838 | test_array [0] = 0 |
| 7839 | |
| 7840 | ; |
| 7841 | return 0; |
| 7842 | } |
| 7843 | _ACEOF |
| 7844 | rm -f conftest.$ac_objext |
| 7845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7846 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7847 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7849 | rm -f conftest.er1 |
| 7850 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7852 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7853 | { ac_try='test -z "$ac_c_werror_flag" |
| 7854 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7856 | (eval $ac_try) 2>&5 |
| 7857 | ac_status=$? |
| 7858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7859 | (exit $ac_status); }; } && |
| 7860 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7862 | (eval $ac_try) 2>&5 |
| 7863 | ac_status=$? |
| 7864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7865 | (exit $ac_status); }; }; then |
| 7866 | ac_hi=$ac_mid; break |
| 7867 | else |
| 7868 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7871 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7872 | if test $ac_lo -le $ac_mid; then |
| 7873 | ac_lo= ac_hi= |
| 7874 | break |
| 7875 | fi |
| 7876 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7877 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7879 | done |
| 7880 | else |
| 7881 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7884 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7885 | /* confdefs.h. */ |
| 7886 | _ACEOF |
| 7887 | cat confdefs.h >>conftest.$ac_ext |
| 7888 | cat >>conftest.$ac_ext <<_ACEOF |
| 7889 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7890 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7891 | int |
| 7892 | main () |
| 7893 | { |
| 7894 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7895 | test_array [0] = 0 |
| 7896 | |
| 7897 | ; |
| 7898 | return 0; |
| 7899 | } |
| 7900 | _ACEOF |
| 7901 | rm -f conftest.$ac_objext |
| 7902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7903 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7904 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7906 | rm -f conftest.er1 |
| 7907 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7909 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7910 | { ac_try='test -z "$ac_c_werror_flag" |
| 7911 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7913 | (eval $ac_try) 2>&5 |
| 7914 | ac_status=$? |
| 7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7916 | (exit $ac_status); }; } && |
| 7917 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7919 | (eval $ac_try) 2>&5 |
| 7920 | ac_status=$? |
| 7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7922 | (exit $ac_status); }; }; then |
| 7923 | ac_hi=-1 ac_mid=-1 |
| 7924 | while :; do |
| 7925 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7926 | /* confdefs.h. */ |
| 7927 | _ACEOF |
| 7928 | cat confdefs.h >>conftest.$ac_ext |
| 7929 | cat >>conftest.$ac_ext <<_ACEOF |
| 7930 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7931 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7932 | int |
| 7933 | main () |
| 7934 | { |
| 7935 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7936 | test_array [0] = 0 |
| 7937 | |
| 7938 | ; |
| 7939 | return 0; |
| 7940 | } |
| 7941 | _ACEOF |
| 7942 | rm -f conftest.$ac_objext |
| 7943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7944 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7945 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7947 | rm -f conftest.er1 |
| 7948 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7950 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 7951 | { ac_try='test -z "$ac_c_werror_flag" |
| 7952 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7954 | (eval $ac_try) 2>&5 |
| 7955 | ac_status=$? |
| 7956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7957 | (exit $ac_status); }; } && |
| 7958 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7960 | (eval $ac_try) 2>&5 |
| 7961 | ac_status=$? |
| 7962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7963 | (exit $ac_status); }; }; then |
| 7964 | ac_lo=$ac_mid; break |
| 7965 | else |
| 7966 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7969 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7970 | if test $ac_mid -le $ac_hi; then |
| 7971 | ac_lo= ac_hi= |
| 7972 | break |
| 7973 | fi |
| 7974 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7975 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7977 | done |
| 7978 | else |
| 7979 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7982 | ac_lo= ac_hi= |
| 7983 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7985 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | # Binary search between lo and hi bounds. |
| 7988 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7989 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7990 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7991 | /* confdefs.h. */ |
| 7992 | _ACEOF |
| 7993 | cat confdefs.h >>conftest.$ac_ext |
| 7994 | cat >>conftest.$ac_ext <<_ACEOF |
| 7995 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7996 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7997 | int |
| 7998 | main () |
| 7999 | { |
| 8000 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8001 | test_array [0] = 0 |
| 8002 | |
| 8003 | ; |
| 8004 | return 0; |
| 8005 | } |
| 8006 | _ACEOF |
| 8007 | rm -f conftest.$ac_objext |
| 8008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8009 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8010 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8012 | rm -f conftest.er1 |
| 8013 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8015 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8016 | { ac_try='test -z "$ac_c_werror_flag" |
| 8017 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8019 | (eval $ac_try) 2>&5 |
| 8020 | ac_status=$? |
| 8021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8022 | (exit $ac_status); }; } && |
| 8023 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8025 | (eval $ac_try) 2>&5 |
| 8026 | ac_status=$? |
| 8027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8028 | (exit $ac_status); }; }; then |
| 8029 | ac_hi=$ac_mid |
| 8030 | else |
| 8031 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8034 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8035 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8037 | done |
| 8038 | case $ac_lo in |
| 8039 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8040 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8041 | See \`config.log' for more details." >&5 |
| 8042 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8043 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8044 | { (exit 1); exit 1; }; } ;; |
| 8045 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8046 | else |
| 8047 | if test "$cross_compiling" = yes; then |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8048 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8049 | See \`config.log' for more details." >&5 |
| 8050 | echo "$as_me: error: cannot run test program while cross compiling |
| 8051 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8052 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8053 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8054 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8055 | /* confdefs.h. */ |
| 8056 | _ACEOF |
| 8057 | cat confdefs.h >>conftest.$ac_ext |
| 8058 | cat >>conftest.$ac_ext <<_ACEOF |
| 8059 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8060 | $ac_includes_default |
| 8061 | long longval () { return (long) (sizeof (float)); } |
| 8062 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8063 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8064 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | int |
| 8066 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8067 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8068 | |
| 8069 | FILE *f = fopen ("conftest.val", "w"); |
| 8070 | if (! f) |
| 8071 | exit (1); |
| 8072 | if (((long) (sizeof (float))) < 0) |
| 8073 | { |
| 8074 | long i = longval (); |
| 8075 | if (i != ((long) (sizeof (float)))) |
| 8076 | exit (1); |
| 8077 | fprintf (f, "%ld\n", i); |
| 8078 | } |
| 8079 | else |
| 8080 | { |
| 8081 | unsigned long i = ulongval (); |
| 8082 | if (i != ((long) (sizeof (float)))) |
| 8083 | exit (1); |
| 8084 | fprintf (f, "%lu\n", i); |
| 8085 | } |
| 8086 | exit (ferror (f) || fclose (f) != 0); |
| 8087 | |
| 8088 | ; |
| 8089 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8090 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8091 | _ACEOF |
| 8092 | rm -f conftest$ac_exeext |
| 8093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8094 | (eval $ac_link) 2>&5 |
| 8095 | ac_status=$? |
| 8096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8097 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8099 | (eval $ac_try) 2>&5 |
| 8100 | ac_status=$? |
| 8101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8102 | (exit $ac_status); }; }; then |
| 8103 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8105 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8106 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8109 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8110 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8111 | See \`config.log' for more details." >&5 |
| 8112 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8113 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8114 | { (exit 1); exit 1; }; } |
| 8115 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8116 | 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] | 8117 | fi |
| 8118 | fi |
| 8119 | rm -f conftest.val |
| 8120 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8121 | ac_cv_sizeof_float=0 |
| 8122 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8123 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8124 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8125 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8126 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8127 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8128 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8129 | |
| 8130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8131 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8132 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8133 | if test "${ac_cv_type_double+set}" = set; then |
| 8134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8135 | else |
| 8136 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8137 | /* confdefs.h. */ |
| 8138 | _ACEOF |
| 8139 | cat confdefs.h >>conftest.$ac_ext |
| 8140 | cat >>conftest.$ac_ext <<_ACEOF |
| 8141 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8142 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8143 | int |
| 8144 | main () |
| 8145 | { |
| 8146 | if ((double *) 0) |
| 8147 | return 0; |
| 8148 | if (sizeof (double)) |
| 8149 | return 0; |
| 8150 | ; |
| 8151 | return 0; |
| 8152 | } |
| 8153 | _ACEOF |
| 8154 | rm -f conftest.$ac_objext |
| 8155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8156 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8157 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8159 | rm -f conftest.er1 |
| 8160 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8162 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8163 | { ac_try='test -z "$ac_c_werror_flag" |
| 8164 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8166 | (eval $ac_try) 2>&5 |
| 8167 | ac_status=$? |
| 8168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8169 | (exit $ac_status); }; } && |
| 8170 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8172 | (eval $ac_try) 2>&5 |
| 8173 | ac_status=$? |
| 8174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8175 | (exit $ac_status); }; }; then |
| 8176 | ac_cv_type_double=yes |
| 8177 | else |
| 8178 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8181 | ac_cv_type_double=no |
| 8182 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8184 | fi |
| 8185 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8186 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8187 | |
| 8188 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8189 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8190 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8192 | else |
| 8193 | if test "$ac_cv_type_double" = yes; then |
| 8194 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8195 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8196 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8197 | # This bug is HP SR number 8606223364. |
| 8198 | if test "$cross_compiling" = yes; then |
| 8199 | # Depending upon the size, compute the lo and hi bounds. |
| 8200 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8201 | /* confdefs.h. */ |
| 8202 | _ACEOF |
| 8203 | cat confdefs.h >>conftest.$ac_ext |
| 8204 | cat >>conftest.$ac_ext <<_ACEOF |
| 8205 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8206 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8207 | int |
| 8208 | main () |
| 8209 | { |
| 8210 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8211 | test_array [0] = 0 |
| 8212 | |
| 8213 | ; |
| 8214 | return 0; |
| 8215 | } |
| 8216 | _ACEOF |
| 8217 | rm -f conftest.$ac_objext |
| 8218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8219 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8220 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8222 | rm -f conftest.er1 |
| 8223 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8225 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8226 | { ac_try='test -z "$ac_c_werror_flag" |
| 8227 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8229 | (eval $ac_try) 2>&5 |
| 8230 | ac_status=$? |
| 8231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8232 | (exit $ac_status); }; } && |
| 8233 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8235 | (eval $ac_try) 2>&5 |
| 8236 | ac_status=$? |
| 8237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8238 | (exit $ac_status); }; }; then |
| 8239 | ac_lo=0 ac_mid=0 |
| 8240 | while :; do |
| 8241 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8242 | /* confdefs.h. */ |
| 8243 | _ACEOF |
| 8244 | cat confdefs.h >>conftest.$ac_ext |
| 8245 | cat >>conftest.$ac_ext <<_ACEOF |
| 8246 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8247 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8248 | int |
| 8249 | main () |
| 8250 | { |
| 8251 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8252 | test_array [0] = 0 |
| 8253 | |
| 8254 | ; |
| 8255 | return 0; |
| 8256 | } |
| 8257 | _ACEOF |
| 8258 | rm -f conftest.$ac_objext |
| 8259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8260 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8261 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8263 | rm -f conftest.er1 |
| 8264 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8266 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8267 | { ac_try='test -z "$ac_c_werror_flag" |
| 8268 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8270 | (eval $ac_try) 2>&5 |
| 8271 | ac_status=$? |
| 8272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8273 | (exit $ac_status); }; } && |
| 8274 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8276 | (eval $ac_try) 2>&5 |
| 8277 | ac_status=$? |
| 8278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8279 | (exit $ac_status); }; }; then |
| 8280 | ac_hi=$ac_mid; break |
| 8281 | else |
| 8282 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8284 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8286 | if test $ac_lo -le $ac_mid; then |
| 8287 | ac_lo= ac_hi= |
| 8288 | break |
| 8289 | fi |
| 8290 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8291 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8293 | done |
| 8294 | else |
| 8295 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8298 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8299 | /* confdefs.h. */ |
| 8300 | _ACEOF |
| 8301 | cat confdefs.h >>conftest.$ac_ext |
| 8302 | cat >>conftest.$ac_ext <<_ACEOF |
| 8303 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8305 | int |
| 8306 | main () |
| 8307 | { |
| 8308 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8309 | test_array [0] = 0 |
| 8310 | |
| 8311 | ; |
| 8312 | return 0; |
| 8313 | } |
| 8314 | _ACEOF |
| 8315 | rm -f conftest.$ac_objext |
| 8316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8317 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8318 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8320 | rm -f conftest.er1 |
| 8321 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8323 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8324 | { ac_try='test -z "$ac_c_werror_flag" |
| 8325 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8327 | (eval $ac_try) 2>&5 |
| 8328 | ac_status=$? |
| 8329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8330 | (exit $ac_status); }; } && |
| 8331 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8333 | (eval $ac_try) 2>&5 |
| 8334 | ac_status=$? |
| 8335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8336 | (exit $ac_status); }; }; then |
| 8337 | ac_hi=-1 ac_mid=-1 |
| 8338 | while :; do |
| 8339 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8340 | /* confdefs.h. */ |
| 8341 | _ACEOF |
| 8342 | cat confdefs.h >>conftest.$ac_ext |
| 8343 | cat >>conftest.$ac_ext <<_ACEOF |
| 8344 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8345 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8346 | int |
| 8347 | main () |
| 8348 | { |
| 8349 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8350 | test_array [0] = 0 |
| 8351 | |
| 8352 | ; |
| 8353 | return 0; |
| 8354 | } |
| 8355 | _ACEOF |
| 8356 | rm -f conftest.$ac_objext |
| 8357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8358 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8359 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8361 | rm -f conftest.er1 |
| 8362 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8364 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8365 | { ac_try='test -z "$ac_c_werror_flag" |
| 8366 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8368 | (eval $ac_try) 2>&5 |
| 8369 | ac_status=$? |
| 8370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8371 | (exit $ac_status); }; } && |
| 8372 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8374 | (eval $ac_try) 2>&5 |
| 8375 | ac_status=$? |
| 8376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8377 | (exit $ac_status); }; }; then |
| 8378 | ac_lo=$ac_mid; break |
| 8379 | else |
| 8380 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8382 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8383 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8384 | if test $ac_mid -le $ac_hi; then |
| 8385 | ac_lo= ac_hi= |
| 8386 | break |
| 8387 | fi |
| 8388 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8389 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8391 | done |
| 8392 | else |
| 8393 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8396 | ac_lo= ac_hi= |
| 8397 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8401 | # Binary search between lo and hi bounds. |
| 8402 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8403 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8404 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8405 | /* confdefs.h. */ |
| 8406 | _ACEOF |
| 8407 | cat confdefs.h >>conftest.$ac_ext |
| 8408 | cat >>conftest.$ac_ext <<_ACEOF |
| 8409 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8410 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8411 | int |
| 8412 | main () |
| 8413 | { |
| 8414 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8415 | test_array [0] = 0 |
| 8416 | |
| 8417 | ; |
| 8418 | return 0; |
| 8419 | } |
| 8420 | _ACEOF |
| 8421 | rm -f conftest.$ac_objext |
| 8422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8423 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8426 | rm -f conftest.er1 |
| 8427 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8429 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8430 | { ac_try='test -z "$ac_c_werror_flag" |
| 8431 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8433 | (eval $ac_try) 2>&5 |
| 8434 | ac_status=$? |
| 8435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8436 | (exit $ac_status); }; } && |
| 8437 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8439 | (eval $ac_try) 2>&5 |
| 8440 | ac_status=$? |
| 8441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8442 | (exit $ac_status); }; }; then |
| 8443 | ac_hi=$ac_mid |
| 8444 | else |
| 8445 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8447 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8448 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8449 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8451 | done |
| 8452 | case $ac_lo in |
| 8453 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8454 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8455 | See \`config.log' for more details." >&5 |
| 8456 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8457 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8458 | { (exit 1); exit 1; }; } ;; |
| 8459 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8460 | else |
| 8461 | if test "$cross_compiling" = yes; then |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8462 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8463 | See \`config.log' for more details." >&5 |
| 8464 | echo "$as_me: error: cannot run test program while cross compiling |
| 8465 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8466 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8468 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8469 | /* confdefs.h. */ |
| 8470 | _ACEOF |
| 8471 | cat confdefs.h >>conftest.$ac_ext |
| 8472 | cat >>conftest.$ac_ext <<_ACEOF |
| 8473 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8474 | $ac_includes_default |
| 8475 | long longval () { return (long) (sizeof (double)); } |
| 8476 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8477 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8478 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | int |
| 8480 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8481 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | |
| 8483 | FILE *f = fopen ("conftest.val", "w"); |
| 8484 | if (! f) |
| 8485 | exit (1); |
| 8486 | if (((long) (sizeof (double))) < 0) |
| 8487 | { |
| 8488 | long i = longval (); |
| 8489 | if (i != ((long) (sizeof (double)))) |
| 8490 | exit (1); |
| 8491 | fprintf (f, "%ld\n", i); |
| 8492 | } |
| 8493 | else |
| 8494 | { |
| 8495 | unsigned long i = ulongval (); |
| 8496 | if (i != ((long) (sizeof (double)))) |
| 8497 | exit (1); |
| 8498 | fprintf (f, "%lu\n", i); |
| 8499 | } |
| 8500 | exit (ferror (f) || fclose (f) != 0); |
| 8501 | |
| 8502 | ; |
| 8503 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8504 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8505 | _ACEOF |
| 8506 | rm -f conftest$ac_exeext |
| 8507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8508 | (eval $ac_link) 2>&5 |
| 8509 | ac_status=$? |
| 8510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8511 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8513 | (eval $ac_try) 2>&5 |
| 8514 | ac_status=$? |
| 8515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8516 | (exit $ac_status); }; }; then |
| 8517 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8519 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8520 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8522 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8523 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8524 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8525 | See \`config.log' for more details." >&5 |
| 8526 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8527 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8528 | { (exit 1); exit 1; }; } |
| 8529 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8530 | 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] | 8531 | fi |
| 8532 | fi |
| 8533 | rm -f conftest.val |
| 8534 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8535 | ac_cv_sizeof_double=0 |
| 8536 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8537 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8538 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8539 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8540 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8541 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8542 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8543 | |
| 8544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8545 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8546 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8547 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8549 | else |
| 8550 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8551 | /* confdefs.h. */ |
| 8552 | _ACEOF |
| 8553 | cat confdefs.h >>conftest.$ac_ext |
| 8554 | cat >>conftest.$ac_ext <<_ACEOF |
| 8555 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8556 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8557 | int |
| 8558 | main () |
| 8559 | { |
| 8560 | if ((fpos_t *) 0) |
| 8561 | return 0; |
| 8562 | if (sizeof (fpos_t)) |
| 8563 | return 0; |
| 8564 | ; |
| 8565 | return 0; |
| 8566 | } |
| 8567 | _ACEOF |
| 8568 | rm -f conftest.$ac_objext |
| 8569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8570 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8571 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8573 | rm -f conftest.er1 |
| 8574 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8576 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8577 | { ac_try='test -z "$ac_c_werror_flag" |
| 8578 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8580 | (eval $ac_try) 2>&5 |
| 8581 | ac_status=$? |
| 8582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8583 | (exit $ac_status); }; } && |
| 8584 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8586 | (eval $ac_try) 2>&5 |
| 8587 | ac_status=$? |
| 8588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8589 | (exit $ac_status); }; }; then |
| 8590 | ac_cv_type_fpos_t=yes |
| 8591 | else |
| 8592 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8595 | ac_cv_type_fpos_t=no |
| 8596 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8598 | fi |
| 8599 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8600 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8601 | |
| 8602 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8603 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8604 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8606 | else |
| 8607 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8608 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8609 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8610 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8611 | # This bug is HP SR number 8606223364. |
| 8612 | if test "$cross_compiling" = yes; then |
| 8613 | # Depending upon the size, compute the lo and hi bounds. |
| 8614 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8615 | /* confdefs.h. */ |
| 8616 | _ACEOF |
| 8617 | cat confdefs.h >>conftest.$ac_ext |
| 8618 | cat >>conftest.$ac_ext <<_ACEOF |
| 8619 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8621 | int |
| 8622 | main () |
| 8623 | { |
| 8624 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8625 | test_array [0] = 0 |
| 8626 | |
| 8627 | ; |
| 8628 | return 0; |
| 8629 | } |
| 8630 | _ACEOF |
| 8631 | rm -f conftest.$ac_objext |
| 8632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8633 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8634 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8636 | rm -f conftest.er1 |
| 8637 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8639 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8640 | { ac_try='test -z "$ac_c_werror_flag" |
| 8641 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8643 | (eval $ac_try) 2>&5 |
| 8644 | ac_status=$? |
| 8645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8646 | (exit $ac_status); }; } && |
| 8647 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8649 | (eval $ac_try) 2>&5 |
| 8650 | ac_status=$? |
| 8651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8652 | (exit $ac_status); }; }; then |
| 8653 | ac_lo=0 ac_mid=0 |
| 8654 | while :; do |
| 8655 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8656 | /* confdefs.h. */ |
| 8657 | _ACEOF |
| 8658 | cat confdefs.h >>conftest.$ac_ext |
| 8659 | cat >>conftest.$ac_ext <<_ACEOF |
| 8660 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8662 | int |
| 8663 | main () |
| 8664 | { |
| 8665 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8666 | test_array [0] = 0 |
| 8667 | |
| 8668 | ; |
| 8669 | return 0; |
| 8670 | } |
| 8671 | _ACEOF |
| 8672 | rm -f conftest.$ac_objext |
| 8673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8674 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8675 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8677 | rm -f conftest.er1 |
| 8678 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8680 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8681 | { ac_try='test -z "$ac_c_werror_flag" |
| 8682 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8684 | (eval $ac_try) 2>&5 |
| 8685 | ac_status=$? |
| 8686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8687 | (exit $ac_status); }; } && |
| 8688 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8690 | (eval $ac_try) 2>&5 |
| 8691 | ac_status=$? |
| 8692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8693 | (exit $ac_status); }; }; then |
| 8694 | ac_hi=$ac_mid; break |
| 8695 | else |
| 8696 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8700 | if test $ac_lo -le $ac_mid; then |
| 8701 | ac_lo= ac_hi= |
| 8702 | break |
| 8703 | fi |
| 8704 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8705 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8707 | done |
| 8708 | else |
| 8709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8712 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8713 | /* confdefs.h. */ |
| 8714 | _ACEOF |
| 8715 | cat confdefs.h >>conftest.$ac_ext |
| 8716 | cat >>conftest.$ac_ext <<_ACEOF |
| 8717 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8718 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8719 | int |
| 8720 | main () |
| 8721 | { |
| 8722 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8723 | test_array [0] = 0 |
| 8724 | |
| 8725 | ; |
| 8726 | return 0; |
| 8727 | } |
| 8728 | _ACEOF |
| 8729 | rm -f conftest.$ac_objext |
| 8730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8731 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8732 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8734 | rm -f conftest.er1 |
| 8735 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8737 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8738 | { ac_try='test -z "$ac_c_werror_flag" |
| 8739 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8741 | (eval $ac_try) 2>&5 |
| 8742 | ac_status=$? |
| 8743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8744 | (exit $ac_status); }; } && |
| 8745 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8747 | (eval $ac_try) 2>&5 |
| 8748 | ac_status=$? |
| 8749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8750 | (exit $ac_status); }; }; then |
| 8751 | ac_hi=-1 ac_mid=-1 |
| 8752 | while :; do |
| 8753 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8754 | /* confdefs.h. */ |
| 8755 | _ACEOF |
| 8756 | cat confdefs.h >>conftest.$ac_ext |
| 8757 | cat >>conftest.$ac_ext <<_ACEOF |
| 8758 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8759 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8760 | int |
| 8761 | main () |
| 8762 | { |
| 8763 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8764 | test_array [0] = 0 |
| 8765 | |
| 8766 | ; |
| 8767 | return 0; |
| 8768 | } |
| 8769 | _ACEOF |
| 8770 | rm -f conftest.$ac_objext |
| 8771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8772 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8773 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8775 | rm -f conftest.er1 |
| 8776 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8778 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8779 | { ac_try='test -z "$ac_c_werror_flag" |
| 8780 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8782 | (eval $ac_try) 2>&5 |
| 8783 | ac_status=$? |
| 8784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8785 | (exit $ac_status); }; } && |
| 8786 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8788 | (eval $ac_try) 2>&5 |
| 8789 | ac_status=$? |
| 8790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8791 | (exit $ac_status); }; }; then |
| 8792 | ac_lo=$ac_mid; break |
| 8793 | else |
| 8794 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8796 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8797 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8798 | if test $ac_mid -le $ac_hi; then |
| 8799 | ac_lo= ac_hi= |
| 8800 | break |
| 8801 | fi |
| 8802 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8803 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8805 | done |
| 8806 | else |
| 8807 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8810 | ac_lo= ac_hi= |
| 8811 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8813 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8815 | # Binary search between lo and hi bounds. |
| 8816 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8817 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8818 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8819 | /* confdefs.h. */ |
| 8820 | _ACEOF |
| 8821 | cat confdefs.h >>conftest.$ac_ext |
| 8822 | cat >>conftest.$ac_ext <<_ACEOF |
| 8823 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8824 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8825 | int |
| 8826 | main () |
| 8827 | { |
| 8828 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8829 | test_array [0] = 0 |
| 8830 | |
| 8831 | ; |
| 8832 | return 0; |
| 8833 | } |
| 8834 | _ACEOF |
| 8835 | rm -f conftest.$ac_objext |
| 8836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8837 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8838 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8840 | rm -f conftest.er1 |
| 8841 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8843 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8844 | { ac_try='test -z "$ac_c_werror_flag" |
| 8845 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8847 | (eval $ac_try) 2>&5 |
| 8848 | ac_status=$? |
| 8849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8850 | (exit $ac_status); }; } && |
| 8851 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8853 | (eval $ac_try) 2>&5 |
| 8854 | ac_status=$? |
| 8855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8856 | (exit $ac_status); }; }; then |
| 8857 | ac_hi=$ac_mid |
| 8858 | else |
| 8859 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8861 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8862 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8863 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8865 | done |
| 8866 | case $ac_lo in |
| 8867 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8868 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8869 | See \`config.log' for more details." >&5 |
| 8870 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8871 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8872 | { (exit 1); exit 1; }; } ;; |
| 8873 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8874 | else |
| 8875 | if test "$cross_compiling" = yes; then |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8876 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8877 | See \`config.log' for more details." >&5 |
| 8878 | echo "$as_me: error: cannot run test program while cross compiling |
| 8879 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8880 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8882 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8883 | /* confdefs.h. */ |
| 8884 | _ACEOF |
| 8885 | cat confdefs.h >>conftest.$ac_ext |
| 8886 | cat >>conftest.$ac_ext <<_ACEOF |
| 8887 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8888 | $ac_includes_default |
| 8889 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8890 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8891 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8893 | int |
| 8894 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8895 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8896 | |
| 8897 | FILE *f = fopen ("conftest.val", "w"); |
| 8898 | if (! f) |
| 8899 | exit (1); |
| 8900 | if (((long) (sizeof (fpos_t))) < 0) |
| 8901 | { |
| 8902 | long i = longval (); |
| 8903 | if (i != ((long) (sizeof (fpos_t)))) |
| 8904 | exit (1); |
| 8905 | fprintf (f, "%ld\n", i); |
| 8906 | } |
| 8907 | else |
| 8908 | { |
| 8909 | unsigned long i = ulongval (); |
| 8910 | if (i != ((long) (sizeof (fpos_t)))) |
| 8911 | exit (1); |
| 8912 | fprintf (f, "%lu\n", i); |
| 8913 | } |
| 8914 | exit (ferror (f) || fclose (f) != 0); |
| 8915 | |
| 8916 | ; |
| 8917 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8918 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8919 | _ACEOF |
| 8920 | rm -f conftest$ac_exeext |
| 8921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8922 | (eval $ac_link) 2>&5 |
| 8923 | ac_status=$? |
| 8924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8927 | (eval $ac_try) 2>&5 |
| 8928 | ac_status=$? |
| 8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8930 | (exit $ac_status); }; }; then |
| 8931 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8933 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8934 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8937 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8938 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8939 | See \`config.log' for more details." >&5 |
| 8940 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8941 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8942 | { (exit 1); exit 1; }; } |
| 8943 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8944 | 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] | 8945 | fi |
| 8946 | fi |
| 8947 | rm -f conftest.val |
| 8948 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8949 | ac_cv_sizeof_fpos_t=0 |
| 8950 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8951 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8952 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8953 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8954 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8955 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8956 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8957 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8958 | |
| 8959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8960 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8961 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8962 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8963 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8964 | /* confdefs.h. */ |
| 8965 | _ACEOF |
| 8966 | cat confdefs.h >>conftest.$ac_ext |
| 8967 | cat >>conftest.$ac_ext <<_ACEOF |
| 8968 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8970 | int |
| 8971 | main () |
| 8972 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8973 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8974 | ; |
| 8975 | return 0; |
| 8976 | } |
| 8977 | _ACEOF |
| 8978 | rm -f conftest.$ac_objext |
| 8979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8980 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8981 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8983 | rm -f conftest.er1 |
| 8984 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8986 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 8987 | { ac_try='test -z "$ac_c_werror_flag" |
| 8988 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 8994 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8996 | (eval $ac_try) 2>&5 |
| 8997 | ac_status=$? |
| 8998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8999 | (exit $ac_status); }; }; then |
| 9000 | |
| 9001 | |
| 9002 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9003 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9004 | _ACEOF |
| 9005 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9006 | have_long_long=yes |
| 9007 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9008 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9012 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9014 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 9015 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 9016 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9017 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 9018 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 9019 | if test "${ac_cv_type_long_long+set}" = set; then |
| 9020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9021 | else |
| 9022 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9023 | /* confdefs.h. */ |
| 9024 | _ACEOF |
| 9025 | cat confdefs.h >>conftest.$ac_ext |
| 9026 | cat >>conftest.$ac_ext <<_ACEOF |
| 9027 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9028 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9029 | int |
| 9030 | main () |
| 9031 | { |
| 9032 | if ((long long *) 0) |
| 9033 | return 0; |
| 9034 | if (sizeof (long long)) |
| 9035 | return 0; |
| 9036 | ; |
| 9037 | return 0; |
| 9038 | } |
| 9039 | _ACEOF |
| 9040 | rm -f conftest.$ac_objext |
| 9041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9042 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9043 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9045 | rm -f conftest.er1 |
| 9046 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9048 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9049 | { ac_try='test -z "$ac_c_werror_flag" |
| 9050 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9052 | (eval $ac_try) 2>&5 |
| 9053 | ac_status=$? |
| 9054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9055 | (exit $ac_status); }; } && |
| 9056 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9058 | (eval $ac_try) 2>&5 |
| 9059 | ac_status=$? |
| 9060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9061 | (exit $ac_status); }; }; then |
| 9062 | ac_cv_type_long_long=yes |
| 9063 | else |
| 9064 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9067 | ac_cv_type_long_long=no |
| 9068 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9070 | fi |
| 9071 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 9072 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 9073 | |
| 9074 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 9075 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 9076 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 9077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9078 | else |
| 9079 | if test "$ac_cv_type_long_long" = yes; then |
| 9080 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9081 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9082 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9083 | # This bug is HP SR number 8606223364. |
| 9084 | if test "$cross_compiling" = yes; then |
| 9085 | # Depending upon the size, compute the lo and hi bounds. |
| 9086 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9087 | /* confdefs.h. */ |
| 9088 | _ACEOF |
| 9089 | cat confdefs.h >>conftest.$ac_ext |
| 9090 | cat >>conftest.$ac_ext <<_ACEOF |
| 9091 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9092 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9093 | int |
| 9094 | main () |
| 9095 | { |
| 9096 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 9097 | test_array [0] = 0 |
| 9098 | |
| 9099 | ; |
| 9100 | return 0; |
| 9101 | } |
| 9102 | _ACEOF |
| 9103 | rm -f conftest.$ac_objext |
| 9104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9105 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9106 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9108 | rm -f conftest.er1 |
| 9109 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9111 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9112 | { ac_try='test -z "$ac_c_werror_flag" |
| 9113 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9115 | (eval $ac_try) 2>&5 |
| 9116 | ac_status=$? |
| 9117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9118 | (exit $ac_status); }; } && |
| 9119 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9121 | (eval $ac_try) 2>&5 |
| 9122 | ac_status=$? |
| 9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9124 | (exit $ac_status); }; }; then |
| 9125 | ac_lo=0 ac_mid=0 |
| 9126 | while :; do |
| 9127 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9128 | /* confdefs.h. */ |
| 9129 | _ACEOF |
| 9130 | cat confdefs.h >>conftest.$ac_ext |
| 9131 | cat >>conftest.$ac_ext <<_ACEOF |
| 9132 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9133 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9134 | int |
| 9135 | main () |
| 9136 | { |
| 9137 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9138 | test_array [0] = 0 |
| 9139 | |
| 9140 | ; |
| 9141 | return 0; |
| 9142 | } |
| 9143 | _ACEOF |
| 9144 | rm -f conftest.$ac_objext |
| 9145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9146 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9147 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9149 | rm -f conftest.er1 |
| 9150 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9152 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9153 | { ac_try='test -z "$ac_c_werror_flag" |
| 9154 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9156 | (eval $ac_try) 2>&5 |
| 9157 | ac_status=$? |
| 9158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9159 | (exit $ac_status); }; } && |
| 9160 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9162 | (eval $ac_try) 2>&5 |
| 9163 | ac_status=$? |
| 9164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9165 | (exit $ac_status); }; }; then |
| 9166 | ac_hi=$ac_mid; break |
| 9167 | else |
| 9168 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9171 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9172 | if test $ac_lo -le $ac_mid; then |
| 9173 | ac_lo= ac_hi= |
| 9174 | break |
| 9175 | fi |
| 9176 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9177 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9179 | done |
| 9180 | else |
| 9181 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9184 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9185 | /* confdefs.h. */ |
| 9186 | _ACEOF |
| 9187 | cat confdefs.h >>conftest.$ac_ext |
| 9188 | cat >>conftest.$ac_ext <<_ACEOF |
| 9189 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9191 | int |
| 9192 | main () |
| 9193 | { |
| 9194 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9195 | test_array [0] = 0 |
| 9196 | |
| 9197 | ; |
| 9198 | return 0; |
| 9199 | } |
| 9200 | _ACEOF |
| 9201 | rm -f conftest.$ac_objext |
| 9202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9203 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9206 | rm -f conftest.er1 |
| 9207 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9209 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9210 | { ac_try='test -z "$ac_c_werror_flag" |
| 9211 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9213 | (eval $ac_try) 2>&5 |
| 9214 | ac_status=$? |
| 9215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9216 | (exit $ac_status); }; } && |
| 9217 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9219 | (eval $ac_try) 2>&5 |
| 9220 | ac_status=$? |
| 9221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9222 | (exit $ac_status); }; }; then |
| 9223 | ac_hi=-1 ac_mid=-1 |
| 9224 | while :; do |
| 9225 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9226 | /* confdefs.h. */ |
| 9227 | _ACEOF |
| 9228 | cat confdefs.h >>conftest.$ac_ext |
| 9229 | cat >>conftest.$ac_ext <<_ACEOF |
| 9230 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9231 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9232 | int |
| 9233 | main () |
| 9234 | { |
| 9235 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9236 | test_array [0] = 0 |
| 9237 | |
| 9238 | ; |
| 9239 | return 0; |
| 9240 | } |
| 9241 | _ACEOF |
| 9242 | rm -f conftest.$ac_objext |
| 9243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9244 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9245 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9247 | rm -f conftest.er1 |
| 9248 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9250 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9251 | { ac_try='test -z "$ac_c_werror_flag" |
| 9252 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9254 | (eval $ac_try) 2>&5 |
| 9255 | ac_status=$? |
| 9256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9257 | (exit $ac_status); }; } && |
| 9258 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9260 | (eval $ac_try) 2>&5 |
| 9261 | ac_status=$? |
| 9262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9263 | (exit $ac_status); }; }; then |
| 9264 | ac_lo=$ac_mid; break |
| 9265 | else |
| 9266 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9269 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9270 | if test $ac_mid -le $ac_hi; then |
| 9271 | ac_lo= ac_hi= |
| 9272 | break |
| 9273 | fi |
| 9274 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9275 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9277 | done |
| 9278 | else |
| 9279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9282 | ac_lo= ac_hi= |
| 9283 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9285 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9287 | # Binary search between lo and hi bounds. |
| 9288 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9289 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9290 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9291 | /* confdefs.h. */ |
| 9292 | _ACEOF |
| 9293 | cat confdefs.h >>conftest.$ac_ext |
| 9294 | cat >>conftest.$ac_ext <<_ACEOF |
| 9295 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9296 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9297 | int |
| 9298 | main () |
| 9299 | { |
| 9300 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9301 | test_array [0] = 0 |
| 9302 | |
| 9303 | ; |
| 9304 | return 0; |
| 9305 | } |
| 9306 | _ACEOF |
| 9307 | rm -f conftest.$ac_objext |
| 9308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9309 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9310 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9312 | rm -f conftest.er1 |
| 9313 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9315 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9316 | { ac_try='test -z "$ac_c_werror_flag" |
| 9317 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9319 | (eval $ac_try) 2>&5 |
| 9320 | ac_status=$? |
| 9321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9322 | (exit $ac_status); }; } && |
| 9323 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9325 | (eval $ac_try) 2>&5 |
| 9326 | ac_status=$? |
| 9327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9328 | (exit $ac_status); }; }; then |
| 9329 | ac_hi=$ac_mid |
| 9330 | else |
| 9331 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9334 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9335 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9337 | done |
| 9338 | case $ac_lo in |
| 9339 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9340 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9341 | See \`config.log' for more details." >&5 |
| 9342 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9343 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | { (exit 1); exit 1; }; } ;; |
| 9345 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9346 | else |
| 9347 | if test "$cross_compiling" = yes; then |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9348 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9349 | See \`config.log' for more details." >&5 |
| 9350 | echo "$as_me: error: cannot run test program while cross compiling |
| 9351 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9352 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9354 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9355 | /* confdefs.h. */ |
| 9356 | _ACEOF |
| 9357 | cat confdefs.h >>conftest.$ac_ext |
| 9358 | cat >>conftest.$ac_ext <<_ACEOF |
| 9359 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9360 | $ac_includes_default |
| 9361 | long longval () { return (long) (sizeof (long long)); } |
| 9362 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9363 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9364 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9365 | int |
| 9366 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9367 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9368 | |
| 9369 | FILE *f = fopen ("conftest.val", "w"); |
| 9370 | if (! f) |
| 9371 | exit (1); |
| 9372 | if (((long) (sizeof (long long))) < 0) |
| 9373 | { |
| 9374 | long i = longval (); |
| 9375 | if (i != ((long) (sizeof (long long)))) |
| 9376 | exit (1); |
| 9377 | fprintf (f, "%ld\n", i); |
| 9378 | } |
| 9379 | else |
| 9380 | { |
| 9381 | unsigned long i = ulongval (); |
| 9382 | if (i != ((long) (sizeof (long long)))) |
| 9383 | exit (1); |
| 9384 | fprintf (f, "%lu\n", i); |
| 9385 | } |
| 9386 | exit (ferror (f) || fclose (f) != 0); |
| 9387 | |
| 9388 | ; |
| 9389 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9390 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9391 | _ACEOF |
| 9392 | rm -f conftest$ac_exeext |
| 9393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9394 | (eval $ac_link) 2>&5 |
| 9395 | ac_status=$? |
| 9396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9397 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9399 | (eval $ac_try) 2>&5 |
| 9400 | ac_status=$? |
| 9401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9402 | (exit $ac_status); }; }; then |
| 9403 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9405 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9406 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9409 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9410 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9411 | See \`config.log' for more details." >&5 |
| 9412 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9413 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9414 | { (exit 1); exit 1; }; } |
| 9415 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9416 | 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] | 9417 | fi |
| 9418 | fi |
| 9419 | rm -f conftest.val |
| 9420 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9421 | ac_cv_sizeof_long_long=0 |
| 9422 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9423 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9424 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 9425 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 9426 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9427 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9428 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9429 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9430 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9431 | fi |
| 9432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9433 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 9434 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9435 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9437 | /* confdefs.h. */ |
| 9438 | _ACEOF |
| 9439 | cat confdefs.h >>conftest.$ac_ext |
| 9440 | cat >>conftest.$ac_ext <<_ACEOF |
| 9441 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9443 | int |
| 9444 | main () |
| 9445 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9446 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9447 | ; |
| 9448 | return 0; |
| 9449 | } |
| 9450 | _ACEOF |
| 9451 | rm -f conftest.$ac_objext |
| 9452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9453 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9454 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9456 | rm -f conftest.er1 |
| 9457 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9459 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9460 | { ac_try='test -z "$ac_c_werror_flag" |
| 9461 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9463 | (eval $ac_try) 2>&5 |
| 9464 | ac_status=$? |
| 9465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9466 | (exit $ac_status); }; } && |
| 9467 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9469 | (eval $ac_try) 2>&5 |
| 9470 | ac_status=$? |
| 9471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9472 | (exit $ac_status); }; }; then |
| 9473 | |
| 9474 | |
| 9475 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9476 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | _ACEOF |
| 9478 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9479 | have_uintptr_t=yes |
| 9480 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9482 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9484 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9485 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9487 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 9488 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9489 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9490 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 9491 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 9492 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 9493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9494 | else |
| 9495 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9496 | /* confdefs.h. */ |
| 9497 | _ACEOF |
| 9498 | cat confdefs.h >>conftest.$ac_ext |
| 9499 | cat >>conftest.$ac_ext <<_ACEOF |
| 9500 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9502 | int |
| 9503 | main () |
| 9504 | { |
| 9505 | if ((uintptr_t *) 0) |
| 9506 | return 0; |
| 9507 | if (sizeof (uintptr_t)) |
| 9508 | return 0; |
| 9509 | ; |
| 9510 | return 0; |
| 9511 | } |
| 9512 | _ACEOF |
| 9513 | rm -f conftest.$ac_objext |
| 9514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9515 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9516 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9518 | rm -f conftest.er1 |
| 9519 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9521 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9522 | { ac_try='test -z "$ac_c_werror_flag" |
| 9523 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9525 | (eval $ac_try) 2>&5 |
| 9526 | ac_status=$? |
| 9527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9528 | (exit $ac_status); }; } && |
| 9529 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9531 | (eval $ac_try) 2>&5 |
| 9532 | ac_status=$? |
| 9533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9534 | (exit $ac_status); }; }; then |
| 9535 | ac_cv_type_uintptr_t=yes |
| 9536 | else |
| 9537 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9540 | ac_cv_type_uintptr_t=no |
| 9541 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9543 | fi |
| 9544 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 9545 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 9546 | |
| 9547 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 9548 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 9549 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 9550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9551 | else |
| 9552 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 9553 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9554 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9555 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9556 | # This bug is HP SR number 8606223364. |
| 9557 | if test "$cross_compiling" = yes; then |
| 9558 | # Depending upon the size, compute the lo and hi bounds. |
| 9559 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9560 | /* confdefs.h. */ |
| 9561 | _ACEOF |
| 9562 | cat confdefs.h >>conftest.$ac_ext |
| 9563 | cat >>conftest.$ac_ext <<_ACEOF |
| 9564 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9565 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9566 | int |
| 9567 | main () |
| 9568 | { |
| 9569 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 9570 | test_array [0] = 0 |
| 9571 | |
| 9572 | ; |
| 9573 | return 0; |
| 9574 | } |
| 9575 | _ACEOF |
| 9576 | rm -f conftest.$ac_objext |
| 9577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9578 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9579 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9581 | rm -f conftest.er1 |
| 9582 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9584 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9585 | { ac_try='test -z "$ac_c_werror_flag" |
| 9586 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9588 | (eval $ac_try) 2>&5 |
| 9589 | ac_status=$? |
| 9590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9591 | (exit $ac_status); }; } && |
| 9592 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9594 | (eval $ac_try) 2>&5 |
| 9595 | ac_status=$? |
| 9596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9597 | (exit $ac_status); }; }; then |
| 9598 | ac_lo=0 ac_mid=0 |
| 9599 | while :; do |
| 9600 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9601 | /* confdefs.h. */ |
| 9602 | _ACEOF |
| 9603 | cat confdefs.h >>conftest.$ac_ext |
| 9604 | cat >>conftest.$ac_ext <<_ACEOF |
| 9605 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9606 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | int |
| 9608 | main () |
| 9609 | { |
| 9610 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9611 | test_array [0] = 0 |
| 9612 | |
| 9613 | ; |
| 9614 | return 0; |
| 9615 | } |
| 9616 | _ACEOF |
| 9617 | rm -f conftest.$ac_objext |
| 9618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9619 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9620 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9622 | rm -f conftest.er1 |
| 9623 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9625 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9626 | { ac_try='test -z "$ac_c_werror_flag" |
| 9627 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9629 | (eval $ac_try) 2>&5 |
| 9630 | ac_status=$? |
| 9631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9632 | (exit $ac_status); }; } && |
| 9633 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9635 | (eval $ac_try) 2>&5 |
| 9636 | ac_status=$? |
| 9637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9638 | (exit $ac_status); }; }; then |
| 9639 | ac_hi=$ac_mid; break |
| 9640 | else |
| 9641 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9644 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9645 | if test $ac_lo -le $ac_mid; then |
| 9646 | ac_lo= ac_hi= |
| 9647 | break |
| 9648 | fi |
| 9649 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9650 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9652 | done |
| 9653 | else |
| 9654 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9657 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9658 | /* confdefs.h. */ |
| 9659 | _ACEOF |
| 9660 | cat confdefs.h >>conftest.$ac_ext |
| 9661 | cat >>conftest.$ac_ext <<_ACEOF |
| 9662 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9663 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9664 | int |
| 9665 | main () |
| 9666 | { |
| 9667 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 9668 | test_array [0] = 0 |
| 9669 | |
| 9670 | ; |
| 9671 | return 0; |
| 9672 | } |
| 9673 | _ACEOF |
| 9674 | rm -f conftest.$ac_objext |
| 9675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9676 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9677 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9679 | rm -f conftest.er1 |
| 9680 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9682 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9683 | { ac_try='test -z "$ac_c_werror_flag" |
| 9684 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9686 | (eval $ac_try) 2>&5 |
| 9687 | ac_status=$? |
| 9688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9689 | (exit $ac_status); }; } && |
| 9690 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9692 | (eval $ac_try) 2>&5 |
| 9693 | ac_status=$? |
| 9694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9695 | (exit $ac_status); }; }; then |
| 9696 | ac_hi=-1 ac_mid=-1 |
| 9697 | while :; do |
| 9698 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9699 | /* confdefs.h. */ |
| 9700 | _ACEOF |
| 9701 | cat confdefs.h >>conftest.$ac_ext |
| 9702 | cat >>conftest.$ac_ext <<_ACEOF |
| 9703 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9704 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9705 | int |
| 9706 | main () |
| 9707 | { |
| 9708 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 9709 | test_array [0] = 0 |
| 9710 | |
| 9711 | ; |
| 9712 | return 0; |
| 9713 | } |
| 9714 | _ACEOF |
| 9715 | rm -f conftest.$ac_objext |
| 9716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9717 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9718 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9720 | rm -f conftest.er1 |
| 9721 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9723 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9724 | { ac_try='test -z "$ac_c_werror_flag" |
| 9725 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9727 | (eval $ac_try) 2>&5 |
| 9728 | ac_status=$? |
| 9729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9730 | (exit $ac_status); }; } && |
| 9731 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9733 | (eval $ac_try) 2>&5 |
| 9734 | ac_status=$? |
| 9735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9736 | (exit $ac_status); }; }; then |
| 9737 | ac_lo=$ac_mid; break |
| 9738 | else |
| 9739 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9742 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9743 | if test $ac_mid -le $ac_hi; then |
| 9744 | ac_lo= ac_hi= |
| 9745 | break |
| 9746 | fi |
| 9747 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9750 | done |
| 9751 | else |
| 9752 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9755 | ac_lo= ac_hi= |
| 9756 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9758 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9760 | # Binary search between lo and hi bounds. |
| 9761 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9762 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9763 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9764 | /* confdefs.h. */ |
| 9765 | _ACEOF |
| 9766 | cat confdefs.h >>conftest.$ac_ext |
| 9767 | cat >>conftest.$ac_ext <<_ACEOF |
| 9768 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9769 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9770 | int |
| 9771 | main () |
| 9772 | { |
| 9773 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9774 | test_array [0] = 0 |
| 9775 | |
| 9776 | ; |
| 9777 | return 0; |
| 9778 | } |
| 9779 | _ACEOF |
| 9780 | rm -f conftest.$ac_objext |
| 9781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9782 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9783 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9785 | rm -f conftest.er1 |
| 9786 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9788 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9789 | { ac_try='test -z "$ac_c_werror_flag" |
| 9790 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9792 | (eval $ac_try) 2>&5 |
| 9793 | ac_status=$? |
| 9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9795 | (exit $ac_status); }; } && |
| 9796 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9798 | (eval $ac_try) 2>&5 |
| 9799 | ac_status=$? |
| 9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9801 | (exit $ac_status); }; }; then |
| 9802 | ac_hi=$ac_mid |
| 9803 | else |
| 9804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9807 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9808 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9810 | done |
| 9811 | case $ac_lo in |
| 9812 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9813 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9814 | See \`config.log' for more details." >&5 |
| 9815 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9816 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9817 | { (exit 1); exit 1; }; } ;; |
| 9818 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9819 | else |
| 9820 | if test "$cross_compiling" = yes; then |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 9821 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9822 | See \`config.log' for more details." >&5 |
| 9823 | echo "$as_me: error: cannot run test program while cross compiling |
| 9824 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9825 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9826 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9827 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9828 | /* confdefs.h. */ |
| 9829 | _ACEOF |
| 9830 | cat confdefs.h >>conftest.$ac_ext |
| 9831 | cat >>conftest.$ac_ext <<_ACEOF |
| 9832 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9833 | $ac_includes_default |
| 9834 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9835 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9836 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9837 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9838 | int |
| 9839 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9840 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9841 | |
| 9842 | FILE *f = fopen ("conftest.val", "w"); |
| 9843 | if (! f) |
| 9844 | exit (1); |
| 9845 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9846 | { |
| 9847 | long i = longval (); |
| 9848 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9849 | exit (1); |
| 9850 | fprintf (f, "%ld\n", i); |
| 9851 | } |
| 9852 | else |
| 9853 | { |
| 9854 | unsigned long i = ulongval (); |
| 9855 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9856 | exit (1); |
| 9857 | fprintf (f, "%lu\n", i); |
| 9858 | } |
| 9859 | exit (ferror (f) || fclose (f) != 0); |
| 9860 | |
| 9861 | ; |
| 9862 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9863 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9864 | _ACEOF |
| 9865 | rm -f conftest$ac_exeext |
| 9866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9867 | (eval $ac_link) 2>&5 |
| 9868 | ac_status=$? |
| 9869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9870 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9872 | (eval $ac_try) 2>&5 |
| 9873 | ac_status=$? |
| 9874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9875 | (exit $ac_status); }; }; then |
| 9876 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9878 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9879 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9882 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9883 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9884 | See \`config.log' for more details." >&5 |
| 9885 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9886 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9887 | { (exit 1); exit 1; }; } |
| 9888 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9889 | 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] | 9890 | fi |
| 9891 | fi |
| 9892 | rm -f conftest.val |
| 9893 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9894 | ac_cv_sizeof_uintptr_t=0 |
| 9895 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9896 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9897 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9898 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9899 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9900 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9901 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9902 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9903 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9904 | fi |
| 9905 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9906 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9907 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9908 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9909 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9911 | else |
| 9912 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9913 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9915 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9916 | /* confdefs.h. */ |
| 9917 | _ACEOF |
| 9918 | cat confdefs.h >>conftest.$ac_ext |
| 9919 | cat >>conftest.$ac_ext <<_ACEOF |
| 9920 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9921 | #include <stdio.h> |
| 9922 | #include <sys/types.h> |
| 9923 | main() |
| 9924 | { |
| 9925 | FILE *f=fopen("conftestval", "w"); |
| 9926 | if (!f) exit(1); |
| 9927 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9928 | exit(0); |
| 9929 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9930 | _ACEOF |
| 9931 | rm -f conftest$ac_exeext |
| 9932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9933 | (eval $ac_link) 2>&5 |
| 9934 | ac_status=$? |
| 9935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9936 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9938 | (eval $ac_try) 2>&5 |
| 9939 | ac_status=$? |
| 9940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9941 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9942 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9944 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9945 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9948 | ( exit $ac_status ) |
| 9949 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9950 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9951 | 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] | 9952 | fi |
| 9953 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9954 | fi |
| 9955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9956 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9957 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9958 | |
| 9959 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9960 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9961 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9962 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9964 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9965 | 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] | 9966 | if test "$have_long_long" = yes -a \ |
| 9967 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9968 | "$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] | 9969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9970 | cat >>confdefs.h <<\_ACEOF |
| 9971 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9972 | _ACEOF |
| 9973 | |
| 9974 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9975 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9976 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9977 | echo "$as_me:$LINENO: result: no" >&5 |
| 9978 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9979 | fi |
| 9980 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9981 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9982 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9983 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9984 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9986 | else |
| 9987 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9988 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9990 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9991 | /* confdefs.h. */ |
| 9992 | _ACEOF |
| 9993 | cat confdefs.h >>conftest.$ac_ext |
| 9994 | cat >>conftest.$ac_ext <<_ACEOF |
| 9995 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9996 | #include <stdio.h> |
| 9997 | #include <time.h> |
| 9998 | main() |
| 9999 | { |
| 10000 | FILE *f=fopen("conftestval", "w"); |
| 10001 | if (!f) exit(1); |
| 10002 | fprintf(f, "%d\n", sizeof(time_t)); |
| 10003 | exit(0); |
| 10004 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10005 | _ACEOF |
| 10006 | rm -f conftest$ac_exeext |
| 10007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10008 | (eval $ac_link) 2>&5 |
| 10009 | ac_status=$? |
| 10010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10011 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10013 | (eval $ac_try) 2>&5 |
| 10014 | ac_status=$? |
| 10015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10016 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10017 | ac_cv_sizeof_time_t=`cat conftestval` |
| 10018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10019 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10020 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10023 | ( exit $ac_status ) |
| 10024 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10025 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10026 | 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] | 10027 | fi |
| 10028 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10029 | fi |
| 10030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10031 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 10032 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 10033 | |
| 10034 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10035 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10036 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10037 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10038 | |
| 10039 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10040 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10041 | ac_save_cc="$CC" |
| 10042 | if test "$ac_cv_kpthread" = "yes" |
| 10043 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10044 | elif test "$ac_cv_kthread" = "yes" |
| 10045 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10046 | elif test "$ac_cv_pthread" = "yes" |
| 10047 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10048 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10049 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 10050 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10051 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10052 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10053 | /* confdefs.h. */ |
| 10054 | _ACEOF |
| 10055 | cat confdefs.h >>conftest.$ac_ext |
| 10056 | cat >>conftest.$ac_ext <<_ACEOF |
| 10057 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10058 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10059 | int |
| 10060 | main () |
| 10061 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 10062 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10063 | ; |
| 10064 | return 0; |
| 10065 | } |
| 10066 | _ACEOF |
| 10067 | rm -f conftest.$ac_objext |
| 10068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10069 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10070 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10072 | rm -f conftest.er1 |
| 10073 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10075 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 10076 | { ac_try='test -z "$ac_c_werror_flag" |
| 10077 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10079 | (eval $ac_try) 2>&5 |
| 10080 | ac_status=$? |
| 10081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10082 | (exit $ac_status); }; } && |
| 10083 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10085 | (eval $ac_try) 2>&5 |
| 10086 | ac_status=$? |
| 10087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10088 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10089 | have_pthread_t=yes |
| 10090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10091 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10093 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10094 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10096 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 10097 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10098 | if test "$have_pthread_t" = yes ; then |
| 10099 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10100 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 10101 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 10102 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 10103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10104 | else |
| 10105 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10106 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10107 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10108 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10109 | /* confdefs.h. */ |
| 10110 | _ACEOF |
| 10111 | cat confdefs.h >>conftest.$ac_ext |
| 10112 | cat >>conftest.$ac_ext <<_ACEOF |
| 10113 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10114 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10115 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10116 | main() |
| 10117 | { |
| 10118 | FILE *f=fopen("conftestval", "w"); |
| 10119 | if (!f) exit(1); |
| 10120 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 10121 | exit(0); |
| 10122 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10123 | _ACEOF |
| 10124 | rm -f conftest$ac_exeext |
| 10125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10126 | (eval $ac_link) 2>&5 |
| 10127 | ac_status=$? |
| 10128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10129 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10131 | (eval $ac_try) 2>&5 |
| 10132 | ac_status=$? |
| 10133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10134 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10135 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 10136 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10137 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10138 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10141 | ( exit $ac_status ) |
| 10142 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10143 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10144 | 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] | 10145 | fi |
| 10146 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10147 | fi |
| 10148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10149 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 10150 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 10151 | |
| 10152 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10153 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10154 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10155 | |
| 10156 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10157 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10159 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 10160 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10161 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 10162 | if test "${enable_toolbox_glue+set}" = set; then |
| 10163 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10164 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10165 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10166 | |
| 10167 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10168 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10169 | case $ac_sys_system/$ac_sys_release in |
| 10170 | Darwin/*) |
| 10171 | enable_toolbox_glue="yes";; |
| 10172 | *) |
| 10173 | enable_toolbox_glue="no";; |
| 10174 | esac |
| 10175 | fi |
| 10176 | case "$enable_toolbox_glue" in |
| 10177 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10178 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10179 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10180 | |
| 10181 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10182 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10183 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10184 | |
| 10185 | ;; |
| 10186 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10187 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 10188 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10189 | ;; |
| 10190 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10191 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 10192 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10193 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10194 | |
| 10195 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10196 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 10197 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10198 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10199 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 10200 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 10201 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10202 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10203 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10204 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10205 | esac |
| 10206 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10207 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 10208 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10209 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10210 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10211 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10212 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10213 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10214 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10215 | cat >>confdefs.h <<\_ACEOF |
| 10216 | #define WITH_NEXT_FRAMEWORK 1 |
| 10217 | _ACEOF |
| 10218 | |
| 10219 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10220 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10221 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10222 | echo "$as_me:$LINENO: result: no" >&5 |
| 10223 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10224 | fi |
| 10225 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10226 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 10227 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10228 | case $ac_sys_system/$ac_sys_release in |
| 10229 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10231 | cat >>confdefs.h <<\_ACEOF |
| 10232 | #define WITH_DYLD 1 |
| 10233 | _ACEOF |
| 10234 | |
| 10235 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10236 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10237 | ;; |
| 10238 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 | echo "$as_me:$LINENO: result: no" >&5 |
| 10240 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10241 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10242 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10243 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10244 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10245 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10246 | |
| 10247 | |
| 10248 | |
| 10249 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10250 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10251 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10252 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10253 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10254 | if test -z "$SO" |
| 10255 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10256 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10257 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10258 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10259 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10260 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 10261 | else |
| 10262 | # this might also be a termcap variable, see #610332 |
| 10263 | echo |
| 10264 | echo '=====================================================================' |
| 10265 | echo '+ +' |
| 10266 | echo '+ WARNING: You have set SO in your environment. +' |
| 10267 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 10268 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 10269 | echo '+ +' |
| 10270 | echo '=====================================================================' |
| 10271 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10272 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10273 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 10274 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10275 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 10276 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10277 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10278 | # 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] | 10279 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 10280 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10281 | if test -z "$LDSHARED" |
| 10282 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10283 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10284 | AIX*) |
| 10285 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10286 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10287 | ;; |
| 10288 | BeOS*) |
| 10289 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10290 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10291 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10292 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 10293 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10294 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10295 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 10296 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 10297 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10298 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10299 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10300 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10301 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10302 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10303 | if test "$enable_framework" ; then |
| 10304 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10305 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10306 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10307 | else |
| 10308 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10309 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10310 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10311 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10312 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10313 | if test "$enable_framework" ; then |
| 10314 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10315 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10316 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10317 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10318 | # No framework, use the Python app as bundle-loader |
| 10319 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10320 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10321 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10322 | Darwin/*) |
| 10323 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 10324 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10325 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 10326 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10327 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10328 | then |
| 10329 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 10330 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10331 | else |
| 10332 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10333 | if test "$enable_framework" ; then |
| 10334 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10335 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10336 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10337 | else |
| 10338 | # No framework, use the Python app as bundle-loader |
| 10339 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 10340 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 10341 | fi |
| 10342 | fi |
| 10343 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 10344 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 10345 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10346 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10347 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10348 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 10349 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10350 | else |
| 10351 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10352 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10353 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10354 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10355 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10356 | then LDSHARED='$(CC) -shared' |
| 10357 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10358 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10359 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10360 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10361 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10362 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10363 | *) LDSHARED="ld";; |
| 10364 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10365 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10366 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 10367 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10368 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10369 | # 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] | 10370 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10371 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 10372 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10373 | if test -z "$CCSHARED" |
| 10374 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10375 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10376 | SunOS*) if test "$GCC" = yes; |
| 10377 | then CCSHARED="-fPIC"; |
| 10378 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10379 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10380 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10381 | else CCSHARED="+z"; |
| 10382 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10383 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10384 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 10385 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10386 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10387 | if test "$GCC" = "yes" |
| 10388 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10389 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10390 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10391 | SCO_SV*) |
| 10392 | if test "$GCC" = "yes" |
| 10393 | then CCSHARED="-fPIC" |
| 10394 | else CCSHARED="-Kpic -belf" |
| 10395 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10396 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10397 | IRIX*/6*) case $CC in |
| 10398 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 10399 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10400 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10401 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10402 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10403 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10404 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 10405 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10406 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10407 | # 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] | 10408 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 10409 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10410 | if test -z "$LINKFORSHARED" |
| 10411 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10412 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10413 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10414 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10415 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10416 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10417 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10418 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10419 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10420 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10421 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 10422 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10423 | # not used by the core itself but which needs to be in the core so |
| 10424 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 10425 | # -prebind is no longer used, because it actually seems to give a |
| 10426 | # slowdown in stead of a speedup, maybe due to the large number of |
| 10427 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10428 | |
| 10429 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10430 | if test "$enable_framework" |
| 10431 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10432 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10433 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10434 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10435 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10436 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10437 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10438 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10439 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10440 | then |
| 10441 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10442 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10443 | SunOS/5*) case $CC in |
| 10444 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10445 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10446 | then |
| 10447 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10448 | fi;; |
| 10449 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10450 | CYGWIN*) |
| 10451 | if test $enable_shared = "no" |
| 10452 | then |
| 10453 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10454 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10455 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10456 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10457 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 10458 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10459 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10461 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 10462 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10463 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10464 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10465 | case $ac_sys_system in |
| 10466 | CYGWIN*) |
| 10467 | # Cygwin needs CCSHARED when building extension DLLs |
| 10468 | # but not when building the interpreter DLL. |
| 10469 | CFLAGSFORSHARED='';; |
| 10470 | *) |
| 10471 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10472 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10473 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10474 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 10475 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10476 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10477 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10478 | # library (with --enable-shared). |
| 10479 | # 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] | 10480 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10481 | # if it is not required, since it creates a dependency of the shared library |
| 10482 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10483 | # don't need to link LIBS explicitly. The default should be only changed |
| 10484 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10485 | |
| 10486 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 10487 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 10488 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10489 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10490 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10491 | esac |
| 10492 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 10493 | echo "${ECHO_T}$SHLIBS" >&6 |
| 10494 | |
| 10495 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10496 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10497 | |
| 10498 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10499 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10500 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10502 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10503 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10504 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10505 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10506 | /* confdefs.h. */ |
| 10507 | _ACEOF |
| 10508 | cat confdefs.h >>conftest.$ac_ext |
| 10509 | cat >>conftest.$ac_ext <<_ACEOF |
| 10510 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10511 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10512 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10513 | #ifdef __cplusplus |
| 10514 | extern "C" |
| 10515 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10516 | /* 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] | 10517 | builtin and then its argument prototype would still apply. */ |
| 10518 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10519 | int |
| 10520 | main () |
| 10521 | { |
| 10522 | dlopen (); |
| 10523 | ; |
| 10524 | return 0; |
| 10525 | } |
| 10526 | _ACEOF |
| 10527 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10529 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10530 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10532 | rm -f conftest.er1 |
| 10533 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10535 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 10536 | { ac_try='test -z "$ac_c_werror_flag" |
| 10537 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10539 | (eval $ac_try) 2>&5 |
| 10540 | ac_status=$? |
| 10541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10542 | (exit $ac_status); }; } && |
| 10543 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10545 | (eval $ac_try) 2>&5 |
| 10546 | ac_status=$? |
| 10547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10548 | (exit $ac_status); }; }; then |
| 10549 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10551 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10554 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10555 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10556 | rm -f conftest.err conftest.$ac_objext \ |
| 10557 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10558 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10559 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10560 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10561 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10562 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10563 | cat >>confdefs.h <<_ACEOF |
| 10564 | #define HAVE_LIBDL 1 |
| 10565 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10566 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10567 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10568 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10569 | fi |
| 10570 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10571 | |
| 10572 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10573 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10574 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10577 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10578 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10579 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10580 | /* confdefs.h. */ |
| 10581 | _ACEOF |
| 10582 | cat confdefs.h >>conftest.$ac_ext |
| 10583 | cat >>conftest.$ac_ext <<_ACEOF |
| 10584 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10585 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10586 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10587 | #ifdef __cplusplus |
| 10588 | extern "C" |
| 10589 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10590 | /* 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] | 10591 | builtin and then its argument prototype would still apply. */ |
| 10592 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10593 | int |
| 10594 | main () |
| 10595 | { |
| 10596 | shl_load (); |
| 10597 | ; |
| 10598 | return 0; |
| 10599 | } |
| 10600 | _ACEOF |
| 10601 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10603 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10604 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10606 | rm -f conftest.er1 |
| 10607 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10609 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 10610 | { ac_try='test -z "$ac_c_werror_flag" |
| 10611 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10613 | (eval $ac_try) 2>&5 |
| 10614 | ac_status=$? |
| 10615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10616 | (exit $ac_status); }; } && |
| 10617 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10619 | (eval $ac_try) 2>&5 |
| 10620 | ac_status=$? |
| 10621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10622 | (exit $ac_status); }; }; then |
| 10623 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10624 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10625 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10627 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10628 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10629 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10630 | rm -f conftest.err conftest.$ac_objext \ |
| 10631 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10632 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10633 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10634 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10635 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10636 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10637 | cat >>confdefs.h <<_ACEOF |
| 10638 | #define HAVE_LIBDLD 1 |
| 10639 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10640 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10641 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10642 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10643 | fi |
| 10644 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10645 | |
| 10646 | # only check for sem_ini if thread support is requested |
| 10647 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 10648 | 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] | 10649 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 10650 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10652 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10653 | ac_func_search_save_LIBS=$LIBS |
| 10654 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10655 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10656 | /* confdefs.h. */ |
| 10657 | _ACEOF |
| 10658 | cat confdefs.h >>conftest.$ac_ext |
| 10659 | cat >>conftest.$ac_ext <<_ACEOF |
| 10660 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10661 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10662 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10663 | #ifdef __cplusplus |
| 10664 | extern "C" |
| 10665 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10666 | /* 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] | 10667 | builtin and then its argument prototype would still apply. */ |
| 10668 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10669 | int |
| 10670 | main () |
| 10671 | { |
| 10672 | sem_init (); |
| 10673 | ; |
| 10674 | return 0; |
| 10675 | } |
| 10676 | _ACEOF |
| 10677 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10679 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10680 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10682 | rm -f conftest.er1 |
| 10683 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10685 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 10686 | { ac_try='test -z "$ac_c_werror_flag" |
| 10687 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10689 | (eval $ac_try) 2>&5 |
| 10690 | ac_status=$? |
| 10691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10692 | (exit $ac_status); }; } && |
| 10693 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10695 | (eval $ac_try) 2>&5 |
| 10696 | ac_status=$? |
| 10697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10698 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10699 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10700 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10701 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10703 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10704 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10705 | rm -f conftest.err conftest.$ac_objext \ |
| 10706 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10707 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10708 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10709 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10710 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10711 | /* confdefs.h. */ |
| 10712 | _ACEOF |
| 10713 | cat confdefs.h >>conftest.$ac_ext |
| 10714 | cat >>conftest.$ac_ext <<_ACEOF |
| 10715 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10716 | |
| 10717 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10718 | #ifdef __cplusplus |
| 10719 | extern "C" |
| 10720 | #endif |
| 10721 | /* We use char because int might match the return type of a gcc2 |
| 10722 | builtin and then its argument prototype would still apply. */ |
| 10723 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10724 | int |
| 10725 | main () |
| 10726 | { |
| 10727 | sem_init (); |
| 10728 | ; |
| 10729 | return 0; |
| 10730 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10731 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10732 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10734 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10735 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10737 | rm -f conftest.er1 |
| 10738 | cat conftest.err >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10740 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 10741 | { ac_try='test -z "$ac_c_werror_flag" |
| 10742 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10744 | (eval $ac_try) 2>&5 |
| 10745 | ac_status=$? |
| 10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10747 | (exit $ac_status); }; } && |
| 10748 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10750 | (eval $ac_try) 2>&5 |
| 10751 | ac_status=$? |
| 10752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10753 | (exit $ac_status); }; }; then |
| 10754 | ac_cv_search_sem_init="-l$ac_lib" |
| 10755 | break |
| 10756 | else |
| 10757 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10759 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10760 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10761 | rm -f conftest.err conftest.$ac_objext \ |
| 10762 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10763 | done |
| 10764 | fi |
| 10765 | LIBS=$ac_func_search_save_LIBS |
| 10766 | fi |
| 10767 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 10768 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 10769 | if test "$ac_cv_search_sem_init" != no; then |
| 10770 | 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] | 10771 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10772 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10773 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10774 | # posix4 on Solaris 2.6 |
| 10775 | # pthread (first!) on Linux |
| 10776 | fi |
| 10777 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10778 | # check if we need libintl for locale functions |
| 10779 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 10780 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 10781 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 10782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10783 | else |
| 10784 | ac_check_lib_save_LIBS=$LIBS |
| 10785 | LIBS="-lintl $LIBS" |
| 10786 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10787 | /* confdefs.h. */ |
| 10788 | _ACEOF |
| 10789 | cat confdefs.h >>conftest.$ac_ext |
| 10790 | cat >>conftest.$ac_ext <<_ACEOF |
| 10791 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10792 | |
| 10793 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10794 | #ifdef __cplusplus |
| 10795 | extern "C" |
| 10796 | #endif |
| 10797 | /* We use char because int might match the return type of a gcc2 |
| 10798 | builtin and then its argument prototype would still apply. */ |
| 10799 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10800 | int |
| 10801 | main () |
| 10802 | { |
| 10803 | textdomain (); |
| 10804 | ; |
| 10805 | return 0; |
| 10806 | } |
| 10807 | _ACEOF |
| 10808 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10810 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10811 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10813 | rm -f conftest.er1 |
| 10814 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10816 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 10817 | { ac_try='test -z "$ac_c_werror_flag" |
| 10818 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10820 | (eval $ac_try) 2>&5 |
| 10821 | ac_status=$? |
| 10822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10823 | (exit $ac_status); }; } && |
| 10824 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10826 | (eval $ac_try) 2>&5 |
| 10827 | ac_status=$? |
| 10828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10829 | (exit $ac_status); }; }; then |
| 10830 | ac_cv_lib_intl_textdomain=yes |
| 10831 | else |
| 10832 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10834 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10835 | ac_cv_lib_intl_textdomain=no |
| 10836 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10837 | rm -f conftest.err conftest.$ac_objext \ |
| 10838 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10839 | LIBS=$ac_check_lib_save_LIBS |
| 10840 | fi |
| 10841 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 10842 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 10843 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 10844 | |
| 10845 | cat >>confdefs.h <<\_ACEOF |
| 10846 | #define WITH_LIBINTL 1 |
| 10847 | _ACEOF |
| 10848 | |
| 10849 | fi |
| 10850 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10851 | |
| 10852 | # checks for system dependent C++ extensions support |
| 10853 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10854 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 10855 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 10856 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10857 | /* confdefs.h. */ |
| 10858 | _ACEOF |
| 10859 | cat confdefs.h >>conftest.$ac_ext |
| 10860 | cat >>conftest.$ac_ext <<_ACEOF |
| 10861 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10862 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10863 | int |
| 10864 | main () |
| 10865 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10866 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10867 | ; |
| 10868 | return 0; |
| 10869 | } |
| 10870 | _ACEOF |
| 10871 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10873 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10874 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10876 | rm -f conftest.er1 |
| 10877 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10879 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 10880 | { ac_try='test -z "$ac_c_werror_flag" |
| 10881 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10883 | (eval $ac_try) 2>&5 |
| 10884 | ac_status=$? |
| 10885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10886 | (exit $ac_status); }; } && |
| 10887 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10889 | (eval $ac_try) 2>&5 |
| 10890 | ac_status=$? |
| 10891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10892 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10894 | cat >>confdefs.h <<\_ACEOF |
| 10895 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 10896 | _ACEOF |
| 10897 | |
| 10898 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10899 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10904 | echo "$as_me:$LINENO: result: no" >&5 |
| 10905 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10906 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10907 | rm -f conftest.err conftest.$ac_objext \ |
| 10908 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10909 | *) ;; |
| 10910 | esac |
| 10911 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10912 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10913 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10914 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 10915 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 10916 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 10917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10919 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10920 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10921 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10922 | /* confdefs.h. */ |
| 10923 | _ACEOF |
| 10924 | cat confdefs.h >>conftest.$ac_ext |
| 10925 | cat >>conftest.$ac_ext <<_ACEOF |
| 10926 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10927 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10928 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10929 | #ifdef __cplusplus |
| 10930 | extern "C" |
| 10931 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10932 | /* 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] | 10933 | builtin and then its argument prototype would still apply. */ |
| 10934 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10935 | int |
| 10936 | main () |
| 10937 | { |
| 10938 | t_open (); |
| 10939 | ; |
| 10940 | return 0; |
| 10941 | } |
| 10942 | _ACEOF |
| 10943 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10945 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10946 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10948 | rm -f conftest.er1 |
| 10949 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10951 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 10952 | { ac_try='test -z "$ac_c_werror_flag" |
| 10953 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10955 | (eval $ac_try) 2>&5 |
| 10956 | ac_status=$? |
| 10957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10958 | (exit $ac_status); }; } && |
| 10959 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10961 | (eval $ac_try) 2>&5 |
| 10962 | ac_status=$? |
| 10963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10964 | (exit $ac_status); }; }; then |
| 10965 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10966 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10967 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10970 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10971 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10972 | rm -f conftest.err conftest.$ac_objext \ |
| 10973 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10974 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10975 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 10977 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 10978 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10979 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10980 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10981 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10982 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 10983 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 10984 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 10985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10986 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10987 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10988 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10990 | /* confdefs.h. */ |
| 10991 | _ACEOF |
| 10992 | cat confdefs.h >>conftest.$ac_ext |
| 10993 | cat >>conftest.$ac_ext <<_ACEOF |
| 10994 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10995 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10996 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10997 | #ifdef __cplusplus |
| 10998 | extern "C" |
| 10999 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11000 | /* 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] | 11001 | builtin and then its argument prototype would still apply. */ |
| 11002 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11003 | int |
| 11004 | main () |
| 11005 | { |
| 11006 | socket (); |
| 11007 | ; |
| 11008 | return 0; |
| 11009 | } |
| 11010 | _ACEOF |
| 11011 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11013 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11014 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11016 | rm -f conftest.er1 |
| 11017 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11019 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 11020 | { ac_try='test -z "$ac_c_werror_flag" |
| 11021 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11023 | (eval $ac_try) 2>&5 |
| 11024 | ac_status=$? |
| 11025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11026 | (exit $ac_status); }; } && |
| 11027 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11029 | (eval $ac_try) 2>&5 |
| 11030 | ac_status=$? |
| 11031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11032 | (exit $ac_status); }; }; then |
| 11033 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11034 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11035 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11038 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11039 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11040 | rm -f conftest.err conftest.$ac_objext \ |
| 11041 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11042 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11043 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11044 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 11045 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 11046 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11047 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11048 | fi |
| 11049 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 11050 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 11051 | case "$ac_sys_system" in |
| 11052 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11053 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 11054 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 11055 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 11056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11058 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11059 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11060 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11061 | /* confdefs.h. */ |
| 11062 | _ACEOF |
| 11063 | cat confdefs.h >>conftest.$ac_ext |
| 11064 | cat >>conftest.$ac_ext <<_ACEOF |
| 11065 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11066 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11067 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11068 | #ifdef __cplusplus |
| 11069 | extern "C" |
| 11070 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11071 | /* 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] | 11072 | builtin and then its argument prototype would still apply. */ |
| 11073 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11074 | int |
| 11075 | main () |
| 11076 | { |
| 11077 | socket (); |
| 11078 | ; |
| 11079 | return 0; |
| 11080 | } |
| 11081 | _ACEOF |
| 11082 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11084 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11085 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11087 | rm -f conftest.er1 |
| 11088 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11090 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 11091 | { ac_try='test -z "$ac_c_werror_flag" |
| 11092 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11094 | (eval $ac_try) 2>&5 |
| 11095 | ac_status=$? |
| 11096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11097 | (exit $ac_status); }; } && |
| 11098 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11100 | (eval $ac_try) 2>&5 |
| 11101 | ac_status=$? |
| 11102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11103 | (exit $ac_status); }; }; then |
| 11104 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11106 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11109 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11110 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11111 | rm -f conftest.err conftest.$ac_objext \ |
| 11112 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11113 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11114 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11115 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 11116 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 11117 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11118 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11119 | fi |
| 11120 | # BeOS |
| 11121 | ;; |
| 11122 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11124 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 11125 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 11126 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11127 | # Check whether --with-libs or --without-libs was given. |
| 11128 | if test "${with_libs+set}" = set; then |
| 11129 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11130 | |
| 11131 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11132 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11133 | LIBS="$withval $LIBS" |
| 11134 | |
| 11135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11136 | echo "$as_me:$LINENO: result: no" >&5 |
| 11137 | echo "${ECHO_T}no" >&6 |
| 11138 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11139 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11140 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11141 | |
| 11142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11143 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 11144 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 11145 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11146 | # Check whether --with-signal-module or --without-signal-module was given. |
| 11147 | if test "${with_signal_module+set}" = set; then |
| 11148 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11150 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11151 | |
| 11152 | if test -z "$with_signal_module" |
| 11153 | then with_signal_module="yes" |
| 11154 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11155 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 11156 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11157 | |
| 11158 | if test "${with_signal_module}" = "yes"; then |
| 11159 | USE_SIGNAL_MODULE="" |
| 11160 | SIGNAL_OBJS="" |
| 11161 | else |
| 11162 | USE_SIGNAL_MODULE="#" |
| 11163 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 11164 | fi |
| 11165 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 11166 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11167 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11168 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11170 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 11171 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 11172 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11173 | |
| 11174 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 11175 | if test "${with_dec_threads+set}" = set; then |
| 11176 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11177 | |
| 11178 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11179 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11180 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11181 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11182 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11183 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11185 | echo "$as_me:$LINENO: result: no" >&5 |
| 11186 | echo "${ECHO_T}no" >&6 |
| 11187 | fi; |
| 11188 | |
| 11189 | # Templates for things AC_DEFINEd more than once. |
| 11190 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11191 | |
| 11192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11193 | |
| 11194 | |
| 11195 | |
| 11196 | |
| 11197 | |
| 11198 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 11199 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 11200 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11201 | # Check whether --with-threads or --without-threads was given. |
| 11202 | if test "${with_threads+set}" = set; then |
| 11203 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11204 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11205 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11206 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11207 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11208 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11209 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11210 | if test "${with_thread+set}" = set; then |
| 11211 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11212 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11213 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11214 | |
| 11215 | if test -z "$with_threads" |
| 11216 | then with_threads="yes" |
| 11217 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11218 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 11219 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11220 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11221 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11222 | if test "$with_threads" = "no" |
| 11223 | then |
| 11224 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11225 | elif test "$ac_cv_pthread_is_default" = yes |
| 11226 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11227 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11228 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11229 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11230 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11231 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11232 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11233 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11234 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11235 | |
| 11236 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11237 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11238 | elif test "$ac_cv_kpthread" = "yes" |
| 11239 | then |
| 11240 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11241 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11242 | CXX="$CXX -Kpthread" |
| 11243 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11244 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11245 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11246 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11247 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11248 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11249 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11250 | elif test "$ac_cv_kthread" = "yes" |
| 11251 | then |
| 11252 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11253 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11254 | CXX="$CXX -Kthread" |
| 11255 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11256 | cat >>confdefs.h <<\_ACEOF |
| 11257 | #define WITH_THREAD 1 |
| 11258 | _ACEOF |
| 11259 | |
| 11260 | posix_threads=yes |
| 11261 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11262 | elif test "$ac_cv_pthread" = "yes" |
| 11263 | then |
| 11264 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11265 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11266 | CXX="$CXX -pthread" |
| 11267 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11268 | cat >>confdefs.h <<\_ACEOF |
| 11269 | #define WITH_THREAD 1 |
| 11270 | _ACEOF |
| 11271 | |
| 11272 | posix_threads=yes |
| 11273 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11274 | else |
| 11275 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 11276 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 11277 | fi |
| 11278 | if test ! -z "$withval" -a -d "$withval" |
| 11279 | then LDFLAGS="$LDFLAGS -L$withval" |
| 11280 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11281 | |
| 11282 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 11283 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 11284 | # (e.g. gnu pth with pthread emulation) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11285 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 11286 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 11287 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11288 | /* confdefs.h. */ |
| 11289 | _ACEOF |
| 11290 | cat confdefs.h >>conftest.$ac_ext |
| 11291 | cat >>conftest.$ac_ext <<_ACEOF |
| 11292 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11293 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11294 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11295 | #ifdef _POSIX_THREADS |
| 11296 | yes |
| 11297 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11298 | |
| 11299 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11300 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11301 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11302 | unistd_defines_pthreads=yes |
| 11303 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11304 | unistd_defines_pthreads=no |
| 11305 | fi |
| 11306 | rm -f conftest* |
| 11307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11308 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 11309 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11311 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11312 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11313 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11315 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11316 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11317 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11318 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11320 | fi |
| 11321 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11322 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11324 | # Is the header compilable? |
| 11325 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 11326 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 11327 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11328 | /* confdefs.h. */ |
| 11329 | _ACEOF |
| 11330 | cat confdefs.h >>conftest.$ac_ext |
| 11331 | cat >>conftest.$ac_ext <<_ACEOF |
| 11332 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11333 | $ac_includes_default |
| 11334 | #include <cthreads.h> |
| 11335 | _ACEOF |
| 11336 | rm -f conftest.$ac_objext |
| 11337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11338 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11339 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11341 | rm -f conftest.er1 |
| 11342 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11344 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 11345 | { ac_try='test -z "$ac_c_werror_flag" |
| 11346 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11348 | (eval $ac_try) 2>&5 |
| 11349 | ac_status=$? |
| 11350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11351 | (exit $ac_status); }; } && |
| 11352 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11354 | (eval $ac_try) 2>&5 |
| 11355 | ac_status=$? |
| 11356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11357 | (exit $ac_status); }; }; then |
| 11358 | ac_header_compiler=yes |
| 11359 | else |
| 11360 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11363 | ac_header_compiler=no |
| 11364 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11366 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11367 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11368 | |
| 11369 | # Is the header present? |
| 11370 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 11371 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 11372 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11373 | /* confdefs.h. */ |
| 11374 | _ACEOF |
| 11375 | cat confdefs.h >>conftest.$ac_ext |
| 11376 | cat >>conftest.$ac_ext <<_ACEOF |
| 11377 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11378 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11379 | _ACEOF |
| 11380 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11381 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11382 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11383 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11384 | rm -f conftest.er1 |
| 11385 | cat conftest.err >&5 |
| 11386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11387 | (exit $ac_status); } >/dev/null; then |
| 11388 | if test -s conftest.err; then |
| 11389 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11390 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11391 | else |
| 11392 | ac_cpp_err= |
| 11393 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11394 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11395 | ac_cpp_err=yes |
| 11396 | fi |
| 11397 | if test -z "$ac_cpp_err"; then |
| 11398 | ac_header_preproc=yes |
| 11399 | else |
| 11400 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11403 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11405 | rm -f conftest.err conftest.$ac_ext |
| 11406 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11407 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11408 | |
| 11409 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11410 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11411 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11412 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11413 | 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] | 11414 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 11415 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 11416 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11417 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11418 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11419 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 11420 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11421 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 11422 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11423 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 11424 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 11425 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11426 | 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] | 11427 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 11428 | 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] | 11429 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11430 | 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] | 11431 | ( |
| 11432 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11433 | ## --------------------------------- ## |
| 11434 | ## Report this to the python lists. ## |
| 11435 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11436 | _ASBOX |
| 11437 | ) | |
| 11438 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11439 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11440 | esac |
| 11441 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11442 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11443 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11445 | else |
| 11446 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11447 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11448 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11449 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 11450 | |
| 11451 | fi |
| 11452 | if test $ac_cv_header_cthreads_h = yes; then |
| 11453 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11454 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11455 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11457 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11458 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11459 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11461 | |
| 11462 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11463 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11464 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11465 | |
| 11466 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11467 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11468 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11470 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11471 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11472 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11473 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11475 | fi |
| 11476 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11477 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11479 | # Is the header compilable? |
| 11480 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 11481 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 11482 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11483 | /* confdefs.h. */ |
| 11484 | _ACEOF |
| 11485 | cat confdefs.h >>conftest.$ac_ext |
| 11486 | cat >>conftest.$ac_ext <<_ACEOF |
| 11487 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11488 | $ac_includes_default |
| 11489 | #include <mach/cthreads.h> |
| 11490 | _ACEOF |
| 11491 | rm -f conftest.$ac_objext |
| 11492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11493 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11494 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11496 | rm -f conftest.er1 |
| 11497 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11499 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 11500 | { ac_try='test -z "$ac_c_werror_flag" |
| 11501 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11503 | (eval $ac_try) 2>&5 |
| 11504 | ac_status=$? |
| 11505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11506 | (exit $ac_status); }; } && |
| 11507 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11509 | (eval $ac_try) 2>&5 |
| 11510 | ac_status=$? |
| 11511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11512 | (exit $ac_status); }; }; then |
| 11513 | ac_header_compiler=yes |
| 11514 | else |
| 11515 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11517 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11518 | ac_header_compiler=no |
| 11519 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11521 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11522 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11523 | |
| 11524 | # Is the header present? |
| 11525 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 11526 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 11527 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11528 | /* confdefs.h. */ |
| 11529 | _ACEOF |
| 11530 | cat confdefs.h >>conftest.$ac_ext |
| 11531 | cat >>conftest.$ac_ext <<_ACEOF |
| 11532 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11533 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11534 | _ACEOF |
| 11535 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11536 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11537 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11538 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11539 | rm -f conftest.er1 |
| 11540 | cat conftest.err >&5 |
| 11541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11542 | (exit $ac_status); } >/dev/null; then |
| 11543 | if test -s conftest.err; then |
| 11544 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11545 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11546 | else |
| 11547 | ac_cpp_err= |
| 11548 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11549 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11550 | ac_cpp_err=yes |
| 11551 | fi |
| 11552 | if test -z "$ac_cpp_err"; then |
| 11553 | ac_header_preproc=yes |
| 11554 | else |
| 11555 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11558 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11559 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11560 | rm -f conftest.err conftest.$ac_ext |
| 11561 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11562 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11563 | |
| 11564 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11565 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11566 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11567 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11568 | 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] | 11569 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 11570 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 11571 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11572 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11573 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11574 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 11575 | 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] | 11576 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 11577 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11578 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 11579 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 11580 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11581 | 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] | 11582 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 11583 | 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] | 11584 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11585 | 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] | 11586 | ( |
| 11587 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11588 | ## --------------------------------- ## |
| 11589 | ## Report this to the python lists. ## |
| 11590 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11591 | _ASBOX |
| 11592 | ) | |
| 11593 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11594 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11595 | esac |
| 11596 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11597 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11598 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11600 | else |
| 11601 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11602 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11603 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11604 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 11605 | |
| 11606 | fi |
| 11607 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 11608 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11609 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11610 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11612 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11613 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11614 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11616 | |
| 11617 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11618 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11619 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11620 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11621 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11622 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11624 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 11625 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 11626 | |
| 11627 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11628 | if test "${with_pth+set}" = set; then |
| 11629 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11630 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11631 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11632 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11633 | #define WITH_THREAD 1 |
| 11634 | _ACEOF |
| 11635 | |
| 11636 | |
| 11637 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11638 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11639 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11640 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11641 | LIBS="-lpth $LIBS" |
| 11642 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11643 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11644 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11645 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11646 | |
| 11647 | # Just looking for pthread_create in libpthread is not enough: |
| 11648 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11649 | # So we really have to include pthread.h, and then link. |
| 11650 | _libs=$LIBS |
| 11651 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11652 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 11653 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 11654 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11655 | /* confdefs.h. */ |
| 11656 | _ACEOF |
| 11657 | cat confdefs.h >>conftest.$ac_ext |
| 11658 | cat >>conftest.$ac_ext <<_ACEOF |
| 11659 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11660 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11661 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11662 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11663 | int |
| 11664 | main () |
| 11665 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11666 | |
| 11667 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | ; |
| 11669 | return 0; |
| 11670 | } |
| 11671 | _ACEOF |
| 11672 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11674 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11675 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11677 | rm -f conftest.er1 |
| 11678 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11680 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 11681 | { ac_try='test -z "$ac_c_werror_flag" |
| 11682 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11684 | (eval $ac_try) 2>&5 |
| 11685 | ac_status=$? |
| 11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11687 | (exit $ac_status); }; } && |
| 11688 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11690 | (eval $ac_try) 2>&5 |
| 11691 | ac_status=$? |
| 11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11693 | (exit $ac_status); }; }; then |
| 11694 | |
| 11695 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11696 | echo "${ECHO_T}yes" >&6 |
| 11697 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11698 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11699 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11700 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11701 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11702 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11704 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11707 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11708 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 11710 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 11711 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 11712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11713 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11714 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11715 | /* confdefs.h. */ |
| 11716 | _ACEOF |
| 11717 | cat confdefs.h >>conftest.$ac_ext |
| 11718 | cat >>conftest.$ac_ext <<_ACEOF |
| 11719 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11720 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11721 | which can conflict with char pthread_detach (); below. |
| 11722 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 11723 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 11724 | including <limits.h> includes <sys/time.h> and causes problems |
| 11725 | checking for functions defined therein. */ |
| 11726 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11727 | # include <limits.h> |
| 11728 | #else |
| 11729 | # include <assert.h> |
| 11730 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11731 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11732 | #ifdef __cplusplus |
| 11733 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11734 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11735 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11736 | /* 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] | 11737 | builtin and then its argument prototype would still apply. */ |
| 11738 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11739 | /* The GNU C library defines this for functions which it implements |
| 11740 | to always fail with ENOSYS. Some functions are actually named |
| 11741 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 11742 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11743 | choke me |
| 11744 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11745 | char (*f) () = pthread_detach; |
| 11746 | #endif |
| 11747 | #ifdef __cplusplus |
| 11748 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11749 | #endif |
| 11750 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11751 | int |
| 11752 | main () |
| 11753 | { |
| 11754 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11755 | ; |
| 11756 | return 0; |
| 11757 | } |
| 11758 | _ACEOF |
| 11759 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11761 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11762 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11764 | rm -f conftest.er1 |
| 11765 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11767 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 11768 | { ac_try='test -z "$ac_c_werror_flag" |
| 11769 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11771 | (eval $ac_try) 2>&5 |
| 11772 | ac_status=$? |
| 11773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11774 | (exit $ac_status); }; } && |
| 11775 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11777 | (eval $ac_try) 2>&5 |
| 11778 | ac_status=$? |
| 11779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11780 | (exit $ac_status); }; }; then |
| 11781 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11782 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11783 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11786 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11787 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11788 | rm -f conftest.err conftest.$ac_objext \ |
| 11789 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11790 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11791 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 11792 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 11793 | if test $ac_cv_func_pthread_detach = yes; then |
| 11794 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11795 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11796 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11797 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11798 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11799 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11800 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11801 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11802 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11803 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11804 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11805 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11807 | fi |
| 11808 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11809 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11810 | else |
| 11811 | # Is the header compilable? |
| 11812 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 11813 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 11814 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11815 | /* confdefs.h. */ |
| 11816 | _ACEOF |
| 11817 | cat confdefs.h >>conftest.$ac_ext |
| 11818 | cat >>conftest.$ac_ext <<_ACEOF |
| 11819 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11820 | $ac_includes_default |
| 11821 | #include <atheos/threads.h> |
| 11822 | _ACEOF |
| 11823 | rm -f conftest.$ac_objext |
| 11824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11825 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11826 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11828 | rm -f conftest.er1 |
| 11829 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11831 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 11832 | { ac_try='test -z "$ac_c_werror_flag" |
| 11833 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11835 | (eval $ac_try) 2>&5 |
| 11836 | ac_status=$? |
| 11837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11838 | (exit $ac_status); }; } && |
| 11839 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11841 | (eval $ac_try) 2>&5 |
| 11842 | ac_status=$? |
| 11843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11844 | (exit $ac_status); }; }; then |
| 11845 | ac_header_compiler=yes |
| 11846 | else |
| 11847 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11849 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11850 | ac_header_compiler=no |
| 11851 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11853 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11854 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11855 | |
| 11856 | # Is the header present? |
| 11857 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 11858 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 11859 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11860 | /* confdefs.h. */ |
| 11861 | _ACEOF |
| 11862 | cat confdefs.h >>conftest.$ac_ext |
| 11863 | cat >>conftest.$ac_ext <<_ACEOF |
| 11864 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11865 | #include <atheos/threads.h> |
| 11866 | _ACEOF |
| 11867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11869 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11870 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11871 | rm -f conftest.er1 |
| 11872 | cat conftest.err >&5 |
| 11873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11874 | (exit $ac_status); } >/dev/null; then |
| 11875 | if test -s conftest.err; then |
| 11876 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11877 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11878 | else |
| 11879 | ac_cpp_err= |
| 11880 | fi |
| 11881 | else |
| 11882 | ac_cpp_err=yes |
| 11883 | fi |
| 11884 | if test -z "$ac_cpp_err"; then |
| 11885 | ac_header_preproc=yes |
| 11886 | else |
| 11887 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11889 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11890 | ac_header_preproc=no |
| 11891 | fi |
| 11892 | rm -f conftest.err conftest.$ac_ext |
| 11893 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11894 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11895 | |
| 11896 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11897 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11898 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11899 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11900 | 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] | 11901 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 11902 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 11903 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11904 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11905 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11906 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 11907 | 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] | 11908 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 11909 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 11910 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 11911 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 11912 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11913 | 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] | 11914 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 11915 | 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] | 11916 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 11917 | 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] | 11918 | ( |
| 11919 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11920 | ## --------------------------------- ## |
| 11921 | ## Report this to the python lists. ## |
| 11922 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11923 | _ASBOX |
| 11924 | ) | |
| 11925 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11926 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11927 | esac |
| 11928 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11929 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11930 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11932 | else |
| 11933 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 11934 | fi |
| 11935 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11936 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11937 | |
| 11938 | fi |
| 11939 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 11940 | cat >>confdefs.h <<\_ACEOF |
| 11941 | #define WITH_THREAD 1 |
| 11942 | _ACEOF |
| 11943 | |
| 11944 | |
| 11945 | cat >>confdefs.h <<\_ACEOF |
| 11946 | #define ATHEOS_THREADS 1 |
| 11947 | _ACEOF |
| 11948 | |
| 11949 | THREADOBJ="Python/thread.o" |
| 11950 | else |
| 11951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11952 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11953 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11954 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11955 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11957 | fi |
| 11958 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11959 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11961 | # Is the header compilable? |
| 11962 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 11963 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 11964 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11965 | /* confdefs.h. */ |
| 11966 | _ACEOF |
| 11967 | cat confdefs.h >>conftest.$ac_ext |
| 11968 | cat >>conftest.$ac_ext <<_ACEOF |
| 11969 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11970 | $ac_includes_default |
| 11971 | #include <kernel/OS.h> |
| 11972 | _ACEOF |
| 11973 | rm -f conftest.$ac_objext |
| 11974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11975 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11976 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11978 | rm -f conftest.er1 |
| 11979 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11981 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 11982 | { ac_try='test -z "$ac_c_werror_flag" |
| 11983 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11985 | (eval $ac_try) 2>&5 |
| 11986 | ac_status=$? |
| 11987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11988 | (exit $ac_status); }; } && |
| 11989 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11991 | (eval $ac_try) 2>&5 |
| 11992 | ac_status=$? |
| 11993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11994 | (exit $ac_status); }; }; then |
| 11995 | ac_header_compiler=yes |
| 11996 | else |
| 11997 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11999 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12000 | ac_header_compiler=no |
| 12001 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12003 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12004 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12005 | |
| 12006 | # Is the header present? |
| 12007 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 12008 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 12009 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12010 | /* confdefs.h. */ |
| 12011 | _ACEOF |
| 12012 | cat confdefs.h >>conftest.$ac_ext |
| 12013 | cat >>conftest.$ac_ext <<_ACEOF |
| 12014 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12015 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12016 | _ACEOF |
| 12017 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12018 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12019 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12020 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12021 | rm -f conftest.er1 |
| 12022 | cat conftest.err >&5 |
| 12023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12024 | (exit $ac_status); } >/dev/null; then |
| 12025 | if test -s conftest.err; then |
| 12026 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12027 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12028 | else |
| 12029 | ac_cpp_err= |
| 12030 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12031 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12032 | ac_cpp_err=yes |
| 12033 | fi |
| 12034 | if test -z "$ac_cpp_err"; then |
| 12035 | ac_header_preproc=yes |
| 12036 | else |
| 12037 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12041 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12042 | rm -f conftest.err conftest.$ac_ext |
| 12043 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12044 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12046 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12047 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12048 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12049 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12050 | 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] | 12051 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 12052 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 12053 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12054 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12055 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12056 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 12057 | 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] | 12058 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 12059 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 12060 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 12061 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 12062 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12063 | 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] | 12064 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 12065 | 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] | 12066 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 12067 | 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] | 12068 | ( |
| 12069 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12070 | ## --------------------------------- ## |
| 12071 | ## Report this to the python lists. ## |
| 12072 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12073 | _ASBOX |
| 12074 | ) | |
| 12075 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12076 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12077 | esac |
| 12078 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 12079 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 12080 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12082 | else |
| 12083 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 12084 | fi |
| 12085 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 12086 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 12087 | |
| 12088 | fi |
| 12089 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 12090 | cat >>confdefs.h <<\_ACEOF |
| 12091 | #define WITH_THREAD 1 |
| 12092 | _ACEOF |
| 12093 | |
| 12094 | |
| 12095 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12096 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12097 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12098 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12099 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12100 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12102 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 12103 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 12104 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 12105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12106 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12107 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12108 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12109 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12110 | /* confdefs.h. */ |
| 12111 | _ACEOF |
| 12112 | cat confdefs.h >>conftest.$ac_ext |
| 12113 | cat >>conftest.$ac_ext <<_ACEOF |
| 12114 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12115 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12116 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12117 | #ifdef __cplusplus |
| 12118 | extern "C" |
| 12119 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12120 | /* 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] | 12121 | builtin and then its argument prototype would still apply. */ |
| 12122 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12123 | int |
| 12124 | main () |
| 12125 | { |
| 12126 | pthread_create (); |
| 12127 | ; |
| 12128 | return 0; |
| 12129 | } |
| 12130 | _ACEOF |
| 12131 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12133 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12134 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12136 | rm -f conftest.er1 |
| 12137 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12139 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 12140 | { ac_try='test -z "$ac_c_werror_flag" |
| 12141 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12143 | (eval $ac_try) 2>&5 |
| 12144 | ac_status=$? |
| 12145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12146 | (exit $ac_status); }; } && |
| 12147 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12149 | (eval $ac_try) 2>&5 |
| 12150 | ac_status=$? |
| 12151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12152 | (exit $ac_status); }; }; then |
| 12153 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12154 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12155 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12158 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12159 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12160 | rm -f conftest.err conftest.$ac_objext \ |
| 12161 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12162 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12163 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12164 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 12165 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 12166 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 12167 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12168 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12169 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12170 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12171 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12172 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12173 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12174 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12176 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 12177 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 12178 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 12179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12181 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12182 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12183 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12184 | /* confdefs.h. */ |
| 12185 | _ACEOF |
| 12186 | cat confdefs.h >>conftest.$ac_ext |
| 12187 | cat >>conftest.$ac_ext <<_ACEOF |
| 12188 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12189 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12190 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12191 | #ifdef __cplusplus |
| 12192 | extern "C" |
| 12193 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12194 | /* 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] | 12195 | builtin and then its argument prototype would still apply. */ |
| 12196 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12197 | int |
| 12198 | main () |
| 12199 | { |
| 12200 | pthread_create (); |
| 12201 | ; |
| 12202 | return 0; |
| 12203 | } |
| 12204 | _ACEOF |
| 12205 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12207 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12208 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12210 | rm -f conftest.er1 |
| 12211 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12213 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 12214 | { ac_try='test -z "$ac_c_werror_flag" |
| 12215 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12217 | (eval $ac_try) 2>&5 |
| 12218 | ac_status=$? |
| 12219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12220 | (exit $ac_status); }; } && |
| 12221 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12223 | (eval $ac_try) 2>&5 |
| 12224 | ac_status=$? |
| 12225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12226 | (exit $ac_status); }; }; then |
| 12227 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12228 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12229 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12232 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12233 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12234 | rm -f conftest.err conftest.$ac_objext \ |
| 12235 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12236 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12237 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12238 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 12239 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 12240 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 12241 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12242 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12243 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12244 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12245 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12246 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12247 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12248 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12250 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 12251 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 12252 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 12253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12255 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12256 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12257 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12258 | /* confdefs.h. */ |
| 12259 | _ACEOF |
| 12260 | cat confdefs.h >>conftest.$ac_ext |
| 12261 | cat >>conftest.$ac_ext <<_ACEOF |
| 12262 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12263 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12264 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12265 | #ifdef __cplusplus |
| 12266 | extern "C" |
| 12267 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12268 | /* 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] | 12269 | builtin and then its argument prototype would still apply. */ |
| 12270 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12271 | int |
| 12272 | main () |
| 12273 | { |
| 12274 | __pthread_create_system (); |
| 12275 | ; |
| 12276 | return 0; |
| 12277 | } |
| 12278 | _ACEOF |
| 12279 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12281 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12282 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12284 | rm -f conftest.er1 |
| 12285 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12287 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 12288 | { ac_try='test -z "$ac_c_werror_flag" |
| 12289 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12291 | (eval $ac_try) 2>&5 |
| 12292 | ac_status=$? |
| 12293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12294 | (exit $ac_status); }; } && |
| 12295 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12297 | (eval $ac_try) 2>&5 |
| 12298 | ac_status=$? |
| 12299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12300 | (exit $ac_status); }; }; then |
| 12301 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12303 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12306 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12307 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12308 | rm -f conftest.err conftest.$ac_objext \ |
| 12309 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12310 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12311 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12312 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 12313 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 12314 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 12315 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12316 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12317 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12318 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12319 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12320 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12321 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12322 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12324 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 12325 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 12326 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 12327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12329 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12330 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12331 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12332 | /* confdefs.h. */ |
| 12333 | _ACEOF |
| 12334 | cat confdefs.h >>conftest.$ac_ext |
| 12335 | cat >>conftest.$ac_ext <<_ACEOF |
| 12336 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12337 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12338 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12339 | #ifdef __cplusplus |
| 12340 | extern "C" |
| 12341 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12342 | /* 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] | 12343 | builtin and then its argument prototype would still apply. */ |
| 12344 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12345 | int |
| 12346 | main () |
| 12347 | { |
| 12348 | pthread_create (); |
| 12349 | ; |
| 12350 | return 0; |
| 12351 | } |
| 12352 | _ACEOF |
| 12353 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12355 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12356 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12358 | rm -f conftest.er1 |
| 12359 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12361 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 12362 | { ac_try='test -z "$ac_c_werror_flag" |
| 12363 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12365 | (eval $ac_try) 2>&5 |
| 12366 | ac_status=$? |
| 12367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12368 | (exit $ac_status); }; } && |
| 12369 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12371 | (eval $ac_try) 2>&5 |
| 12372 | ac_status=$? |
| 12373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12374 | (exit $ac_status); }; }; then |
| 12375 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12376 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12377 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12380 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12381 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12382 | rm -f conftest.err conftest.$ac_objext \ |
| 12383 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12384 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12385 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12386 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12387 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 12388 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 12389 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12390 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12391 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12392 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12393 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12394 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12395 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12396 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12397 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12398 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12399 | fi |
| 12400 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12401 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12402 | fi |
| 12403 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12404 | fi |
| 12405 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12406 | fi |
| 12407 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12408 | fi |
| 12409 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12410 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12411 | fi |
| 12412 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12413 | |
| 12414 | fi |
| 12415 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12416 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12417 | rm -f conftest.err conftest.$ac_objext \ |
| 12418 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12419 | fi; |
| 12420 | fi |
| 12421 | |
| 12422 | |
| 12423 | fi |
| 12424 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12425 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12427 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 12428 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 12429 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 12430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12432 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12433 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12434 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12435 | /* confdefs.h. */ |
| 12436 | _ACEOF |
| 12437 | cat confdefs.h >>conftest.$ac_ext |
| 12438 | cat >>conftest.$ac_ext <<_ACEOF |
| 12439 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12440 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12441 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12442 | #ifdef __cplusplus |
| 12443 | extern "C" |
| 12444 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12445 | /* 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] | 12446 | builtin and then its argument prototype would still apply. */ |
| 12447 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12448 | int |
| 12449 | main () |
| 12450 | { |
| 12451 | usconfig (); |
| 12452 | ; |
| 12453 | return 0; |
| 12454 | } |
| 12455 | _ACEOF |
| 12456 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12458 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12459 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12461 | rm -f conftest.er1 |
| 12462 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12464 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 12465 | { ac_try='test -z "$ac_c_werror_flag" |
| 12466 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12468 | (eval $ac_try) 2>&5 |
| 12469 | ac_status=$? |
| 12470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12471 | (exit $ac_status); }; } && |
| 12472 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12474 | (eval $ac_try) 2>&5 |
| 12475 | ac_status=$? |
| 12476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12477 | (exit $ac_status); }; }; then |
| 12478 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12480 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12483 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12484 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12485 | rm -f conftest.err conftest.$ac_objext \ |
| 12486 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12487 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12488 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12489 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 12490 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 12491 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 12492 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12493 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12494 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12495 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12496 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12497 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12498 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12499 | fi |
| 12500 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12501 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 12502 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12503 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 12504 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 12505 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 12506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12507 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12508 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12509 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12510 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12511 | /* confdefs.h. */ |
| 12512 | _ACEOF |
| 12513 | cat confdefs.h >>conftest.$ac_ext |
| 12514 | cat >>conftest.$ac_ext <<_ACEOF |
| 12515 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12516 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12517 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12518 | #ifdef __cplusplus |
| 12519 | extern "C" |
| 12520 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12521 | /* 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] | 12522 | builtin and then its argument prototype would still apply. */ |
| 12523 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12524 | int |
| 12525 | main () |
| 12526 | { |
| 12527 | thr_create (); |
| 12528 | ; |
| 12529 | return 0; |
| 12530 | } |
| 12531 | _ACEOF |
| 12532 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12534 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12535 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12537 | rm -f conftest.er1 |
| 12538 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12540 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 12541 | { ac_try='test -z "$ac_c_werror_flag" |
| 12542 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12544 | (eval $ac_try) 2>&5 |
| 12545 | ac_status=$? |
| 12546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12547 | (exit $ac_status); }; } && |
| 12548 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12550 | (eval $ac_try) 2>&5 |
| 12551 | ac_status=$? |
| 12552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12553 | (exit $ac_status); }; }; then |
| 12554 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12555 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12556 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12559 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12560 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12561 | rm -f conftest.err conftest.$ac_objext \ |
| 12562 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12563 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12564 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12565 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 12566 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 12567 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 12568 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12569 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12570 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12571 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12572 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12573 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12574 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12575 | fi |
| 12576 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12577 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12578 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12579 | if test "$USE_THREAD_MODULE" != "#" |
| 12580 | then |
| 12581 | # If the above checks didn't disable threads, (at least) OSF1 |
| 12582 | # needs this '-threads' argument during linking. |
| 12583 | case $ac_sys_system in |
| 12584 | OSF1) LDLAST=-threads;; |
| 12585 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 12586 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12587 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12588 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12589 | if test "$posix_threads" = "yes"; then |
| 12590 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12591 | |
| 12592 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12593 | #define _POSIX_THREADS 1 |
| 12594 | _ACEOF |
| 12595 | |
| 12596 | fi |
| 12597 | |
| 12598 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12599 | case $ac_sys_system/$ac_sys_release in |
| 12600 | SunOS/5.6) |
| 12601 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12602 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 12603 | _ACEOF |
| 12604 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12605 | ;; |
| 12606 | SunOS/5.8) |
| 12607 | cat >>confdefs.h <<\_ACEOF |
| 12608 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 12609 | _ACEOF |
| 12610 | |
| 12611 | ;; |
| 12612 | esac |
| 12613 | |
| 12614 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12615 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 12616 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 12617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12618 | else |
| 12619 | if test "$cross_compiling" = yes; then |
| 12620 | ac_cv_pthread_system_supported=no |
| 12621 | else |
| 12622 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12623 | /* confdefs.h. */ |
| 12624 | _ACEOF |
| 12625 | cat confdefs.h >>conftest.$ac_ext |
| 12626 | cat >>conftest.$ac_ext <<_ACEOF |
| 12627 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12628 | #include <pthread.h> |
| 12629 | void *foo(void *parm) { |
| 12630 | return NULL; |
| 12631 | } |
| 12632 | main() { |
| 12633 | pthread_attr_t attr; |
| 12634 | pthread_t id; |
| 12635 | if (pthread_attr_init(&attr)) exit(-1); |
| 12636 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 12637 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 12638 | exit(0); |
| 12639 | } |
| 12640 | _ACEOF |
| 12641 | rm -f conftest$ac_exeext |
| 12642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12643 | (eval $ac_link) 2>&5 |
| 12644 | ac_status=$? |
| 12645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12646 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12648 | (eval $ac_try) 2>&5 |
| 12649 | ac_status=$? |
| 12650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12651 | (exit $ac_status); }; }; then |
| 12652 | ac_cv_pthread_system_supported=yes |
| 12653 | else |
| 12654 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12655 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12657 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12658 | ( exit $ac_status ) |
| 12659 | ac_cv_pthread_system_supported=no |
| 12660 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12661 | 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] | 12662 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12663 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12664 | fi |
| 12665 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12666 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 12667 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 12668 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12669 | |
| 12670 | cat >>confdefs.h <<\_ACEOF |
| 12671 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 12672 | _ACEOF |
| 12673 | |
| 12674 | fi |
| 12675 | |
| 12676 | for ac_func in pthread_sigmask |
| 12677 | do |
| 12678 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12679 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12680 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12681 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12683 | else |
| 12684 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12685 | /* confdefs.h. */ |
| 12686 | _ACEOF |
| 12687 | cat confdefs.h >>conftest.$ac_ext |
| 12688 | cat >>conftest.$ac_ext <<_ACEOF |
| 12689 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12690 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12691 | which can conflict with char $ac_func (); below. |
| 12692 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12693 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12694 | including <limits.h> includes <sys/time.h> and causes problems |
| 12695 | checking for functions defined therein. */ |
| 12696 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12697 | # include <limits.h> |
| 12698 | #else |
| 12699 | # include <assert.h> |
| 12700 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12701 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12702 | #ifdef __cplusplus |
| 12703 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12704 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12705 | #endif |
| 12706 | /* We use char because int might match the return type of a gcc2 |
| 12707 | builtin and then its argument prototype would still apply. */ |
| 12708 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12709 | /* The GNU C library defines this for functions which it implements |
| 12710 | to always fail with ENOSYS. Some functions are actually named |
| 12711 | something starting with __ and the normal name is an alias. */ |
| 12712 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12713 | choke me |
| 12714 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12715 | char (*f) () = $ac_func; |
| 12716 | #endif |
| 12717 | #ifdef __cplusplus |
| 12718 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12719 | #endif |
| 12720 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12721 | int |
| 12722 | main () |
| 12723 | { |
| 12724 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12725 | ; |
| 12726 | return 0; |
| 12727 | } |
| 12728 | _ACEOF |
| 12729 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12731 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12732 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12734 | rm -f conftest.er1 |
| 12735 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12737 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 12738 | { ac_try='test -z "$ac_c_werror_flag" |
| 12739 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12741 | (eval $ac_try) 2>&5 |
| 12742 | ac_status=$? |
| 12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12744 | (exit $ac_status); }; } && |
| 12745 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12747 | (eval $ac_try) 2>&5 |
| 12748 | ac_status=$? |
| 12749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12750 | (exit $ac_status); }; }; then |
| 12751 | eval "$as_ac_var=yes" |
| 12752 | else |
| 12753 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12755 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12756 | eval "$as_ac_var=no" |
| 12757 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12758 | rm -f conftest.err conftest.$ac_objext \ |
| 12759 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12760 | fi |
| 12761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12762 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12763 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12764 | cat >>confdefs.h <<_ACEOF |
| 12765 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12766 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12767 | case $ac_sys_system in |
| 12768 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12769 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12770 | cat >>confdefs.h <<\_ACEOF |
| 12771 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 12772 | _ACEOF |
| 12773 | |
| 12774 | ;; |
| 12775 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12776 | fi |
| 12777 | done |
| 12778 | |
| 12779 | fi |
| 12780 | |
| 12781 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12782 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12783 | |
| 12784 | |
| 12785 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 12786 | 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] | 12787 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 12788 | if test "${enable_ipv6+set}" = set; then |
| 12789 | enableval="$enable_ipv6" |
| 12790 | case "$enableval" in |
| 12791 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12792 | echo "$as_me:$LINENO: result: no" >&5 |
| 12793 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12794 | ipv6=no |
| 12795 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12796 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 12797 | echo "${ECHO_T}yes" >&6 |
| 12798 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12799 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12801 | |
| 12802 | ipv6=yes |
| 12803 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12804 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12806 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12807 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12808 | echo "$as_me:$LINENO: result: no" >&5 |
| 12809 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12810 | ipv6=no |
| 12811 | |
| 12812 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12813 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12814 | /* confdefs.h. */ |
| 12815 | _ACEOF |
| 12816 | cat confdefs.h >>conftest.$ac_ext |
| 12817 | cat >>conftest.$ac_ext <<_ACEOF |
| 12818 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12819 | /* AF_INET6 available check */ |
| 12820 | #include <sys/types.h> |
| 12821 | #include <sys/socket.h> |
| 12822 | main() |
| 12823 | { |
| 12824 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 12825 | exit(1); |
| 12826 | else |
| 12827 | exit(0); |
| 12828 | } |
| 12829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12830 | _ACEOF |
| 12831 | rm -f conftest$ac_exeext |
| 12832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12833 | (eval $ac_link) 2>&5 |
| 12834 | ac_status=$? |
| 12835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12836 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12838 | (eval $ac_try) 2>&5 |
| 12839 | ac_status=$? |
| 12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12841 | (exit $ac_status); }; }; then |
| 12842 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12843 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12844 | ipv6=yes |
| 12845 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12847 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12850 | ( exit $ac_status ) |
| 12851 | echo "$as_me:$LINENO: result: no" >&5 |
| 12852 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12853 | ipv6=no |
| 12854 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12855 | 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] | 12856 | fi |
| 12857 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12858 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12859 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 12860 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 12861 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12862 | /* confdefs.h. */ |
| 12863 | _ACEOF |
| 12864 | cat confdefs.h >>conftest.$ac_ext |
| 12865 | cat >>conftest.$ac_ext <<_ACEOF |
| 12866 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12867 | #include <sys/types.h> |
| 12868 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12869 | int |
| 12870 | main () |
| 12871 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12872 | struct sockaddr_in6 x; |
| 12873 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12874 | ; |
| 12875 | return 0; |
| 12876 | } |
| 12877 | _ACEOF |
| 12878 | rm -f conftest.$ac_objext |
| 12879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12880 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12881 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12883 | rm -f conftest.er1 |
| 12884 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12886 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 12887 | { ac_try='test -z "$ac_c_werror_flag" |
| 12888 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12890 | (eval $ac_try) 2>&5 |
| 12891 | ac_status=$? |
| 12892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12893 | (exit $ac_status); }; } && |
| 12894 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12896 | (eval $ac_try) 2>&5 |
| 12897 | ac_status=$? |
| 12898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12899 | (exit $ac_status); }; }; then |
| 12900 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12901 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12902 | ipv6=yes |
| 12903 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12904 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12907 | echo "$as_me:$LINENO: result: no" >&5 |
| 12908 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12909 | ipv6=no |
| 12910 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12912 | fi |
| 12913 | |
| 12914 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12915 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12916 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12917 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12918 | |
| 12919 | fi |
| 12920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12921 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12922 | |
| 12923 | ipv6type=unknown |
| 12924 | ipv6lib=none |
| 12925 | ipv6trylibc=no |
| 12926 | |
| 12927 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12928 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 12929 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 12930 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 12931 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12932 | case $i in |
| 12933 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12934 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12935 | /* confdefs.h. */ |
| 12936 | _ACEOF |
| 12937 | cat confdefs.h >>conftest.$ac_ext |
| 12938 | cat >>conftest.$ac_ext <<_ACEOF |
| 12939 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12940 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12941 | #include <netinet/in.h> |
| 12942 | #ifdef IPV6_INRIA_VERSION |
| 12943 | yes |
| 12944 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12945 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12946 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12947 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12948 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12949 | fi |
| 12950 | rm -f conftest* |
| 12951 | |
| 12952 | ;; |
| 12953 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12954 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12955 | /* confdefs.h. */ |
| 12956 | _ACEOF |
| 12957 | cat confdefs.h >>conftest.$ac_ext |
| 12958 | cat >>conftest.$ac_ext <<_ACEOF |
| 12959 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12960 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12961 | #include <netinet/in.h> |
| 12962 | #ifdef __KAME__ |
| 12963 | yes |
| 12964 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12965 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12966 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12967 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12968 | ipv6type=$i; |
| 12969 | ipv6lib=inet6 |
| 12970 | ipv6libdir=/usr/local/v6/lib |
| 12971 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12972 | fi |
| 12973 | rm -f conftest* |
| 12974 | |
| 12975 | ;; |
| 12976 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12977 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12978 | /* confdefs.h. */ |
| 12979 | _ACEOF |
| 12980 | cat confdefs.h >>conftest.$ac_ext |
| 12981 | cat >>conftest.$ac_ext <<_ACEOF |
| 12982 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12983 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12984 | #include <features.h> |
| 12985 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 12986 | yes |
| 12987 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12988 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12989 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12990 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12991 | ipv6type=$i; |
| 12992 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12993 | fi |
| 12994 | rm -f conftest* |
| 12995 | |
| 12996 | ;; |
| 12997 | linux-inet6) |
| 12998 | if test -d /usr/inet6; then |
| 12999 | ipv6type=$i |
| 13000 | ipv6lib=inet6 |
| 13001 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13002 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13003 | fi |
| 13004 | ;; |
| 13005 | solaris) |
| 13006 | if test -f /etc/netconfig; then |
| 13007 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 13008 | ipv6type=$i |
| 13009 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13010 | fi |
| 13011 | fi |
| 13012 | ;; |
| 13013 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13015 | /* confdefs.h. */ |
| 13016 | _ACEOF |
| 13017 | cat confdefs.h >>conftest.$ac_ext |
| 13018 | cat >>conftest.$ac_ext <<_ACEOF |
| 13019 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13020 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13021 | #include <sys/param.h> |
| 13022 | #ifdef _TOSHIBA_INET6 |
| 13023 | yes |
| 13024 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13026 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13027 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13028 | ipv6type=$i; |
| 13029 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13030 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13031 | fi |
| 13032 | rm -f conftest* |
| 13033 | |
| 13034 | ;; |
| 13035 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13037 | /* confdefs.h. */ |
| 13038 | _ACEOF |
| 13039 | cat confdefs.h >>conftest.$ac_ext |
| 13040 | cat >>conftest.$ac_ext <<_ACEOF |
| 13041 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13042 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13043 | #include </usr/local/v6/include/sys/v6config.h> |
| 13044 | #ifdef __V6D__ |
| 13045 | yes |
| 13046 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13047 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13048 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13049 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13050 | ipv6type=$i; |
| 13051 | ipv6lib=v6; |
| 13052 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13053 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13054 | fi |
| 13055 | rm -f conftest* |
| 13056 | |
| 13057 | ;; |
| 13058 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13059 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13060 | /* confdefs.h. */ |
| 13061 | _ACEOF |
| 13062 | cat confdefs.h >>conftest.$ac_ext |
| 13063 | cat >>conftest.$ac_ext <<_ACEOF |
| 13064 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13065 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13066 | #include <sys/param.h> |
| 13067 | #ifdef _ZETA_MINAMI_INET6 |
| 13068 | yes |
| 13069 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13070 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13071 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13072 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13073 | ipv6type=$i; |
| 13074 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13075 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13076 | fi |
| 13077 | rm -f conftest* |
| 13078 | |
| 13079 | ;; |
| 13080 | esac |
| 13081 | if test "$ipv6type" != "unknown"; then |
| 13082 | break |
| 13083 | fi |
| 13084 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13085 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 13086 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13087 | fi |
| 13088 | |
| 13089 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 13090 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 13091 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 13092 | echo "using lib$ipv6lib" |
| 13093 | else |
| 13094 | if test $ipv6trylibc = "yes"; then |
| 13095 | echo "using libc" |
| 13096 | else |
| 13097 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 13098 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 13099 | echo 'ipv6 kit and compile beforehand.' |
| 13100 | exit 1 |
| 13101 | fi |
| 13102 | fi |
| 13103 | fi |
| 13104 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 13105 | # Check for --with-doc-strings |
| 13106 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 13107 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 13108 | |
| 13109 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 13110 | if test "${with_doc_strings+set}" = set; then |
| 13111 | withval="$with_doc_strings" |
| 13112 | |
| 13113 | fi; |
| 13114 | |
| 13115 | if test -z "$with_doc_strings" |
| 13116 | then with_doc_strings="yes" |
| 13117 | fi |
| 13118 | if test "$with_doc_strings" != "no" |
| 13119 | then |
| 13120 | |
| 13121 | cat >>confdefs.h <<\_ACEOF |
| 13122 | #define WITH_DOC_STRINGS 1 |
| 13123 | _ACEOF |
| 13124 | |
| 13125 | fi |
| 13126 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 13127 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 13128 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13129 | # Check for Python-specific malloc support |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 13130 | echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 13131 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |
| 13132 | |
| 13133 | # Check whether --with-tsc or --without-tsc was given. |
| 13134 | if test "${with_tsc+set}" = set; then |
| 13135 | withval="$with_tsc" |
| 13136 | |
| 13137 | if test "$withval" != no |
| 13138 | then |
| 13139 | |
| 13140 | cat >>confdefs.h <<\_ACEOF |
| 13141 | #define WITH_TSC 1 |
| 13142 | _ACEOF |
| 13143 | |
| 13144 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13145 | echo "${ECHO_T}yes" >&6 |
| 13146 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13147 | echo "${ECHO_T}no" >&6 |
| 13148 | fi |
| 13149 | else |
| 13150 | echo "$as_me:$LINENO: result: no" >&5 |
| 13151 | echo "${ECHO_T}no" >&6 |
| 13152 | fi; |
| 13153 | |
| 13154 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13155 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 13156 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 13157 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13158 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 13159 | if test "${with_pymalloc+set}" = set; then |
| 13160 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13162 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13163 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13164 | if test -z "$with_pymalloc" |
| 13165 | then with_pymalloc="yes" |
| 13166 | fi |
| 13167 | if test "$with_pymalloc" != "no" |
| 13168 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13169 | |
| 13170 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13171 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13172 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13173 | |
| 13174 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13175 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 13176 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13177 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13178 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13179 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 13180 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 13181 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13182 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 13183 | if test "${with_wctype_functions+set}" = set; then |
| 13184 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13185 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13186 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13187 | then |
| 13188 | |
| 13189 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13190 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13191 | _ACEOF |
| 13192 | |
| 13193 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13194 | echo "${ECHO_T}yes" >&6 |
| 13195 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13196 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13197 | fi |
| 13198 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13199 | echo "$as_me:$LINENO: result: no" >&5 |
| 13200 | echo "${ECHO_T}no" >&6 |
| 13201 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13202 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13203 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13204 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 13205 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13206 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13207 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 13208 | # 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] | 13209 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13210 | for ac_func in dlopen |
| 13211 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13212 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13213 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13214 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13215 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13218 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13219 | /* confdefs.h. */ |
| 13220 | _ACEOF |
| 13221 | cat confdefs.h >>conftest.$ac_ext |
| 13222 | cat >>conftest.$ac_ext <<_ACEOF |
| 13223 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13224 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13225 | which can conflict with char $ac_func (); below. |
| 13226 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13227 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13228 | including <limits.h> includes <sys/time.h> and causes problems |
| 13229 | checking for functions defined therein. */ |
| 13230 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13231 | # include <limits.h> |
| 13232 | #else |
| 13233 | # include <assert.h> |
| 13234 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13235 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13236 | #ifdef __cplusplus |
| 13237 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13238 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13239 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13240 | /* 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] | 13241 | builtin and then its argument prototype would still apply. */ |
| 13242 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13243 | /* The GNU C library defines this for functions which it implements |
| 13244 | to always fail with ENOSYS. Some functions are actually named |
| 13245 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13246 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13247 | choke me |
| 13248 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13249 | char (*f) () = $ac_func; |
| 13250 | #endif |
| 13251 | #ifdef __cplusplus |
| 13252 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13253 | #endif |
| 13254 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13255 | int |
| 13256 | main () |
| 13257 | { |
| 13258 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13259 | ; |
| 13260 | return 0; |
| 13261 | } |
| 13262 | _ACEOF |
| 13263 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13265 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13266 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13268 | rm -f conftest.er1 |
| 13269 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13271 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 13272 | { ac_try='test -z "$ac_c_werror_flag" |
| 13273 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13275 | (eval $ac_try) 2>&5 |
| 13276 | ac_status=$? |
| 13277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13278 | (exit $ac_status); }; } && |
| 13279 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13281 | (eval $ac_try) 2>&5 |
| 13282 | ac_status=$? |
| 13283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13284 | (exit $ac_status); }; }; then |
| 13285 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13287 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13290 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13291 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13292 | rm -f conftest.err conftest.$ac_objext \ |
| 13293 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13294 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13295 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13296 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13297 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13298 | cat >>confdefs.h <<_ACEOF |
| 13299 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13300 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13301 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13302 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13303 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13304 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13305 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13306 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 13307 | # loading of modules. |
| 13308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13309 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 13310 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13311 | if test -z "$DYNLOADFILE" |
| 13312 | then |
| 13313 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 13314 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 13315 | if test "$ac_cv_func_dlopen" = yes |
| 13316 | then DYNLOADFILE="dynload_shlib.o" |
| 13317 | else DYNLOADFILE="dynload_aix.o" |
| 13318 | fi |
| 13319 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13320 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 13321 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13322 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13323 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13324 | *) |
| 13325 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 13326 | # out any dynamic loading |
| 13327 | if test "$ac_cv_func_dlopen" = yes |
| 13328 | then DYNLOADFILE="dynload_shlib.o" |
| 13329 | else DYNLOADFILE="dynload_stub.o" |
| 13330 | fi |
| 13331 | ;; |
| 13332 | esac |
| 13333 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13334 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 13335 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13336 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 13337 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13338 | |
| 13339 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13340 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13341 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13342 | |
| 13343 | fi |
| 13344 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13345 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 13346 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13347 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13348 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 13349 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13350 | if test -z "$MACHDEP_OBJS" |
| 13351 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13352 | MACHDEP_OBJS=$extra_machdep_objs |
| 13353 | else |
| 13354 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13355 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13356 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 13357 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13358 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13359 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13360 | |
| 13361 | |
| 13362 | |
| 13363 | |
| 13364 | |
| 13365 | |
| 13366 | |
| 13367 | |
| 13368 | |
| 13369 | |
| 13370 | |
| 13371 | |
| 13372 | |
| 13373 | |
| 13374 | |
| 13375 | |
| 13376 | |
| 13377 | |
| 13378 | |
| 13379 | |
| 13380 | |
| 13381 | |
| 13382 | |
| 13383 | |
| 13384 | |
| 13385 | |
| 13386 | |
| 13387 | |
| 13388 | |
| 13389 | |
| 13390 | |
| 13391 | |
| 13392 | |
| 13393 | |
| 13394 | |
| 13395 | |
| 13396 | |
| 13397 | |
| 13398 | |
| 13399 | |
| 13400 | |
| 13401 | |
| 13402 | |
| 13403 | |
| 13404 | |
| 13405 | |
| 13406 | |
| 13407 | |
| 13408 | |
| 13409 | |
| 13410 | |
| 13411 | |
| 13412 | |
| 13413 | |
| 13414 | |
| 13415 | |
| 13416 | |
| 13417 | |
| 13418 | |
| 13419 | |
| 13420 | |
| 13421 | |
| 13422 | |
| 13423 | |
| 13424 | |
| 13425 | |
| 13426 | |
| 13427 | |
| 13428 | |
| 13429 | |
| 13430 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13431 | |
| 13432 | for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \ |
| 13433 | execv fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13434 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | 49ee14d | 2003-11-10 06:35:36 +0000 | [diff] [blame] | 13435 | getpriority getpwent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13436 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 13437 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 13438 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13439 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 13440 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 13441 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 13442 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13443 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13444 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13445 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13446 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13447 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13448 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13450 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13451 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13452 | /* confdefs.h. */ |
| 13453 | _ACEOF |
| 13454 | cat confdefs.h >>conftest.$ac_ext |
| 13455 | cat >>conftest.$ac_ext <<_ACEOF |
| 13456 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13457 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13458 | which can conflict with char $ac_func (); below. |
| 13459 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13460 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13461 | including <limits.h> includes <sys/time.h> and causes problems |
| 13462 | checking for functions defined therein. */ |
| 13463 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13464 | # include <limits.h> |
| 13465 | #else |
| 13466 | # include <assert.h> |
| 13467 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13468 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13469 | #ifdef __cplusplus |
| 13470 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13471 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13472 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13473 | /* 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] | 13474 | builtin and then its argument prototype would still apply. */ |
| 13475 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13476 | /* The GNU C library defines this for functions which it implements |
| 13477 | to always fail with ENOSYS. Some functions are actually named |
| 13478 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13479 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13480 | choke me |
| 13481 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13482 | char (*f) () = $ac_func; |
| 13483 | #endif |
| 13484 | #ifdef __cplusplus |
| 13485 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13486 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13487 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13488 | int |
| 13489 | main () |
| 13490 | { |
| 13491 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13492 | ; |
| 13493 | return 0; |
| 13494 | } |
| 13495 | _ACEOF |
| 13496 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13498 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13499 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13501 | rm -f conftest.er1 |
| 13502 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13504 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 13505 | { ac_try='test -z "$ac_c_werror_flag" |
| 13506 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13508 | (eval $ac_try) 2>&5 |
| 13509 | ac_status=$? |
| 13510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13511 | (exit $ac_status); }; } && |
| 13512 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13514 | (eval $ac_try) 2>&5 |
| 13515 | ac_status=$? |
| 13516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13517 | (exit $ac_status); }; }; then |
| 13518 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13520 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13522 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13523 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13524 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13525 | rm -f conftest.err conftest.$ac_objext \ |
| 13526 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13527 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13529 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13530 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13531 | cat >>confdefs.h <<_ACEOF |
| 13532 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13533 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13534 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13535 | fi |
| 13536 | done |
| 13537 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13538 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13539 | # For some functions, having a definition is not sufficient, since |
| 13540 | # we want to take their address. |
| 13541 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 13542 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 13543 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13544 | /* confdefs.h. */ |
| 13545 | _ACEOF |
| 13546 | cat confdefs.h >>conftest.$ac_ext |
| 13547 | cat >>conftest.$ac_ext <<_ACEOF |
| 13548 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13549 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13550 | int |
| 13551 | main () |
| 13552 | { |
| 13553 | void *x=chroot |
| 13554 | ; |
| 13555 | return 0; |
| 13556 | } |
| 13557 | _ACEOF |
| 13558 | rm -f conftest.$ac_objext |
| 13559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13560 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13561 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13563 | rm -f conftest.er1 |
| 13564 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13566 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 13567 | { ac_try='test -z "$ac_c_werror_flag" |
| 13568 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13570 | (eval $ac_try) 2>&5 |
| 13571 | ac_status=$? |
| 13572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13573 | (exit $ac_status); }; } && |
| 13574 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13576 | (eval $ac_try) 2>&5 |
| 13577 | ac_status=$? |
| 13578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13579 | (exit $ac_status); }; }; then |
| 13580 | |
| 13581 | cat >>confdefs.h <<\_ACEOF |
| 13582 | #define HAVE_CHROOT 1 |
| 13583 | _ACEOF |
| 13584 | |
| 13585 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13586 | echo "${ECHO_T}yes" >&6 |
| 13587 | else |
| 13588 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13590 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13591 | echo "$as_me:$LINENO: result: no" >&5 |
| 13592 | echo "${ECHO_T}no" >&6 |
| 13593 | |
| 13594 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13596 | echo "$as_me:$LINENO: checking for link" >&5 |
| 13597 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 13598 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13599 | /* confdefs.h. */ |
| 13600 | _ACEOF |
| 13601 | cat confdefs.h >>conftest.$ac_ext |
| 13602 | cat >>conftest.$ac_ext <<_ACEOF |
| 13603 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13604 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13605 | int |
| 13606 | main () |
| 13607 | { |
| 13608 | void *x=link |
| 13609 | ; |
| 13610 | return 0; |
| 13611 | } |
| 13612 | _ACEOF |
| 13613 | rm -f conftest.$ac_objext |
| 13614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13615 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13618 | rm -f conftest.er1 |
| 13619 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13621 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 13622 | { ac_try='test -z "$ac_c_werror_flag" |
| 13623 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13625 | (eval $ac_try) 2>&5 |
| 13626 | ac_status=$? |
| 13627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13628 | (exit $ac_status); }; } && |
| 13629 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13631 | (eval $ac_try) 2>&5 |
| 13632 | ac_status=$? |
| 13633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13634 | (exit $ac_status); }; }; then |
| 13635 | |
| 13636 | cat >>confdefs.h <<\_ACEOF |
| 13637 | #define HAVE_LINK 1 |
| 13638 | _ACEOF |
| 13639 | |
| 13640 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13641 | echo "${ECHO_T}yes" >&6 |
| 13642 | else |
| 13643 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13645 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13646 | echo "$as_me:$LINENO: result: no" >&5 |
| 13647 | echo "${ECHO_T}no" >&6 |
| 13648 | |
| 13649 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13651 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 13652 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 13653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13654 | /* confdefs.h. */ |
| 13655 | _ACEOF |
| 13656 | cat confdefs.h >>conftest.$ac_ext |
| 13657 | cat >>conftest.$ac_ext <<_ACEOF |
| 13658 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13659 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13660 | int |
| 13661 | main () |
| 13662 | { |
| 13663 | void *x=symlink |
| 13664 | ; |
| 13665 | return 0; |
| 13666 | } |
| 13667 | _ACEOF |
| 13668 | rm -f conftest.$ac_objext |
| 13669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13670 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13671 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13673 | rm -f conftest.er1 |
| 13674 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13676 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 13677 | { ac_try='test -z "$ac_c_werror_flag" |
| 13678 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13680 | (eval $ac_try) 2>&5 |
| 13681 | ac_status=$? |
| 13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13683 | (exit $ac_status); }; } && |
| 13684 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13686 | (eval $ac_try) 2>&5 |
| 13687 | ac_status=$? |
| 13688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13689 | (exit $ac_status); }; }; then |
| 13690 | |
| 13691 | cat >>confdefs.h <<\_ACEOF |
| 13692 | #define HAVE_SYMLINK 1 |
| 13693 | _ACEOF |
| 13694 | |
| 13695 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13696 | echo "${ECHO_T}yes" >&6 |
| 13697 | else |
| 13698 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13700 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13701 | echo "$as_me:$LINENO: result: no" >&5 |
| 13702 | echo "${ECHO_T}no" >&6 |
| 13703 | |
| 13704 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13706 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 13707 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 13708 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13709 | /* confdefs.h. */ |
| 13710 | _ACEOF |
| 13711 | cat confdefs.h >>conftest.$ac_ext |
| 13712 | cat >>conftest.$ac_ext <<_ACEOF |
| 13713 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13714 | #include <unistd.h> |
| 13715 | int |
| 13716 | main () |
| 13717 | { |
| 13718 | void *x=fchdir |
| 13719 | ; |
| 13720 | return 0; |
| 13721 | } |
| 13722 | _ACEOF |
| 13723 | rm -f conftest.$ac_objext |
| 13724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13725 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13726 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13728 | rm -f conftest.er1 |
| 13729 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13731 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 13732 | { ac_try='test -z "$ac_c_werror_flag" |
| 13733 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13735 | (eval $ac_try) 2>&5 |
| 13736 | ac_status=$? |
| 13737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13738 | (exit $ac_status); }; } && |
| 13739 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13741 | (eval $ac_try) 2>&5 |
| 13742 | ac_status=$? |
| 13743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13744 | (exit $ac_status); }; }; then |
| 13745 | |
| 13746 | cat >>confdefs.h <<\_ACEOF |
| 13747 | #define HAVE_FCHDIR 1 |
| 13748 | _ACEOF |
| 13749 | |
| 13750 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13751 | echo "${ECHO_T}yes" >&6 |
| 13752 | else |
| 13753 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13755 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13756 | echo "$as_me:$LINENO: result: no" >&5 |
| 13757 | echo "${ECHO_T}no" >&6 |
| 13758 | |
| 13759 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13761 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 13762 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 13763 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13764 | /* confdefs.h. */ |
| 13765 | _ACEOF |
| 13766 | cat confdefs.h >>conftest.$ac_ext |
| 13767 | cat >>conftest.$ac_ext <<_ACEOF |
| 13768 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13769 | #include <unistd.h> |
| 13770 | int |
| 13771 | main () |
| 13772 | { |
| 13773 | void *x=fsync |
| 13774 | ; |
| 13775 | return 0; |
| 13776 | } |
| 13777 | _ACEOF |
| 13778 | rm -f conftest.$ac_objext |
| 13779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13780 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13781 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13783 | rm -f conftest.er1 |
| 13784 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13786 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 13787 | { ac_try='test -z "$ac_c_werror_flag" |
| 13788 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13790 | (eval $ac_try) 2>&5 |
| 13791 | ac_status=$? |
| 13792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13793 | (exit $ac_status); }; } && |
| 13794 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13796 | (eval $ac_try) 2>&5 |
| 13797 | ac_status=$? |
| 13798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13799 | (exit $ac_status); }; }; then |
| 13800 | |
| 13801 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13802 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13803 | _ACEOF |
| 13804 | |
| 13805 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13806 | echo "${ECHO_T}yes" >&6 |
| 13807 | else |
| 13808 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13810 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13811 | echo "$as_me:$LINENO: result: no" >&5 |
| 13812 | echo "${ECHO_T}no" >&6 |
| 13813 | |
| 13814 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13816 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 13817 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 13818 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13819 | /* confdefs.h. */ |
| 13820 | _ACEOF |
| 13821 | cat confdefs.h >>conftest.$ac_ext |
| 13822 | cat >>conftest.$ac_ext <<_ACEOF |
| 13823 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13824 | #include <unistd.h> |
| 13825 | int |
| 13826 | main () |
| 13827 | { |
| 13828 | void *x=fdatasync |
| 13829 | ; |
| 13830 | return 0; |
| 13831 | } |
| 13832 | _ACEOF |
| 13833 | rm -f conftest.$ac_objext |
| 13834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13835 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13836 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13838 | rm -f conftest.er1 |
| 13839 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13841 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 13842 | { ac_try='test -z "$ac_c_werror_flag" |
| 13843 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13845 | (eval $ac_try) 2>&5 |
| 13846 | ac_status=$? |
| 13847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13848 | (exit $ac_status); }; } && |
| 13849 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13851 | (eval $ac_try) 2>&5 |
| 13852 | ac_status=$? |
| 13853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13854 | (exit $ac_status); }; }; then |
| 13855 | |
| 13856 | cat >>confdefs.h <<\_ACEOF |
| 13857 | #define HAVE_FDATASYNC 1 |
| 13858 | _ACEOF |
| 13859 | |
| 13860 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13861 | echo "${ECHO_T}yes" >&6 |
| 13862 | else |
| 13863 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13865 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13866 | echo "$as_me:$LINENO: result: no" >&5 |
| 13867 | echo "${ECHO_T}no" >&6 |
| 13868 | |
| 13869 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13871 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13872 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 13873 | # functions ctermid_r, setgroups in the library, but no prototype |
| 13874 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 13875 | # address to avoid compiler warnings and potential miscompilations |
| 13876 | # because of the missing prototypes. |
| 13877 | |
| 13878 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 13879 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 13880 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13881 | /* confdefs.h. */ |
| 13882 | _ACEOF |
| 13883 | cat confdefs.h >>conftest.$ac_ext |
| 13884 | cat >>conftest.$ac_ext <<_ACEOF |
| 13885 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13886 | |
| 13887 | #include "confdefs.h" |
| 13888 | #include <stdio.h> |
| 13889 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13890 | int |
| 13891 | main () |
| 13892 | { |
| 13893 | void* p = ctermid_r |
| 13894 | ; |
| 13895 | return 0; |
| 13896 | } |
| 13897 | _ACEOF |
| 13898 | rm -f conftest.$ac_objext |
| 13899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13900 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13901 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13903 | rm -f conftest.er1 |
| 13904 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13906 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 13907 | { ac_try='test -z "$ac_c_werror_flag" |
| 13908 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13910 | (eval $ac_try) 2>&5 |
| 13911 | ac_status=$? |
| 13912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13913 | (exit $ac_status); }; } && |
| 13914 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13916 | (eval $ac_try) 2>&5 |
| 13917 | ac_status=$? |
| 13918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13919 | (exit $ac_status); }; }; then |
| 13920 | |
| 13921 | cat >>confdefs.h <<\_ACEOF |
| 13922 | #define HAVE_CTERMID_R 1 |
| 13923 | _ACEOF |
| 13924 | |
| 13925 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13926 | echo "${ECHO_T}yes" >&6 |
| 13927 | else |
| 13928 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13930 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13931 | echo "$as_me:$LINENO: result: no" >&5 |
| 13932 | echo "${ECHO_T}no" >&6 |
| 13933 | |
| 13934 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13936 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13937 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 13938 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 13939 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13940 | /* confdefs.h. */ |
| 13941 | _ACEOF |
| 13942 | cat confdefs.h >>conftest.$ac_ext |
| 13943 | cat >>conftest.$ac_ext <<_ACEOF |
| 13944 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13945 | |
| 13946 | #include "confdefs.h" |
| 13947 | #include <sys/file.h> |
| 13948 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13949 | int |
| 13950 | main () |
| 13951 | { |
| 13952 | void* p = flock |
| 13953 | ; |
| 13954 | return 0; |
| 13955 | } |
| 13956 | _ACEOF |
| 13957 | rm -f conftest.$ac_objext |
| 13958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13959 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13960 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13962 | rm -f conftest.er1 |
| 13963 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13965 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 13966 | { ac_try='test -z "$ac_c_werror_flag" |
| 13967 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13969 | (eval $ac_try) 2>&5 |
| 13970 | ac_status=$? |
| 13971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13972 | (exit $ac_status); }; } && |
| 13973 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13975 | (eval $ac_try) 2>&5 |
| 13976 | ac_status=$? |
| 13977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13978 | (exit $ac_status); }; }; then |
| 13979 | |
| 13980 | cat >>confdefs.h <<\_ACEOF |
| 13981 | #define HAVE_FLOCK 1 |
| 13982 | _ACEOF |
| 13983 | |
| 13984 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13985 | echo "${ECHO_T}yes" >&6 |
| 13986 | else |
| 13987 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13989 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13990 | echo "$as_me:$LINENO: result: no" >&5 |
| 13991 | echo "${ECHO_T}no" >&6 |
| 13992 | |
| 13993 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13995 | |
| 13996 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 13997 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 13998 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13999 | /* confdefs.h. */ |
| 14000 | _ACEOF |
| 14001 | cat confdefs.h >>conftest.$ac_ext |
| 14002 | cat >>conftest.$ac_ext <<_ACEOF |
| 14003 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14004 | |
| 14005 | #include "confdefs.h" |
| 14006 | #include <unistd.h> |
| 14007 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14008 | int |
| 14009 | main () |
| 14010 | { |
| 14011 | void* p = getpagesize |
| 14012 | ; |
| 14013 | return 0; |
| 14014 | } |
| 14015 | _ACEOF |
| 14016 | rm -f conftest.$ac_objext |
| 14017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14018 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14019 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14021 | rm -f conftest.er1 |
| 14022 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14024 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14025 | { ac_try='test -z "$ac_c_werror_flag" |
| 14026 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14028 | (eval $ac_try) 2>&5 |
| 14029 | ac_status=$? |
| 14030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14031 | (exit $ac_status); }; } && |
| 14032 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14034 | (eval $ac_try) 2>&5 |
| 14035 | ac_status=$? |
| 14036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14037 | (exit $ac_status); }; }; then |
| 14038 | |
| 14039 | cat >>confdefs.h <<\_ACEOF |
| 14040 | #define HAVE_GETPAGESIZE 1 |
| 14041 | _ACEOF |
| 14042 | |
| 14043 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14044 | echo "${ECHO_T}yes" >&6 |
| 14045 | else |
| 14046 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14048 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14049 | echo "$as_me:$LINENO: result: no" >&5 |
| 14050 | echo "${ECHO_T}no" >&6 |
| 14051 | |
| 14052 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14054 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14055 | for ac_prog in true |
| 14056 | do |
| 14057 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14058 | set dummy $ac_prog; ac_word=$2 |
| 14059 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14061 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 14062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14063 | else |
| 14064 | if test -n "$TRUE"; then |
| 14065 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 14066 | else |
| 14067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14068 | for as_dir in $PATH |
| 14069 | do |
| 14070 | IFS=$as_save_IFS |
| 14071 | test -z "$as_dir" && as_dir=. |
| 14072 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14073 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14074 | ac_cv_prog_TRUE="$ac_prog" |
| 14075 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14076 | break 2 |
| 14077 | fi |
| 14078 | done |
| 14079 | done |
| 14080 | |
| 14081 | fi |
| 14082 | fi |
| 14083 | TRUE=$ac_cv_prog_TRUE |
| 14084 | if test -n "$TRUE"; then |
| 14085 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 14086 | echo "${ECHO_T}$TRUE" >&6 |
| 14087 | else |
| 14088 | echo "$as_me:$LINENO: result: no" >&5 |
| 14089 | echo "${ECHO_T}no" >&6 |
| 14090 | fi |
| 14091 | |
| 14092 | test -n "$TRUE" && break |
| 14093 | done |
| 14094 | test -n "$TRUE" || TRUE="/bin/true" |
| 14095 | |
| 14096 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14097 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 14098 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 14099 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 14100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14101 | else |
| 14102 | ac_check_lib_save_LIBS=$LIBS |
| 14103 | LIBS="-lc $LIBS" |
| 14104 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14105 | /* confdefs.h. */ |
| 14106 | _ACEOF |
| 14107 | cat confdefs.h >>conftest.$ac_ext |
| 14108 | cat >>conftest.$ac_ext <<_ACEOF |
| 14109 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14110 | |
| 14111 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14112 | #ifdef __cplusplus |
| 14113 | extern "C" |
| 14114 | #endif |
| 14115 | /* We use char because int might match the return type of a gcc2 |
| 14116 | builtin and then its argument prototype would still apply. */ |
| 14117 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14118 | int |
| 14119 | main () |
| 14120 | { |
| 14121 | inet_aton (); |
| 14122 | ; |
| 14123 | return 0; |
| 14124 | } |
| 14125 | _ACEOF |
| 14126 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14128 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14129 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14131 | rm -f conftest.er1 |
| 14132 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14134 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14135 | { ac_try='test -z "$ac_c_werror_flag" |
| 14136 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14138 | (eval $ac_try) 2>&5 |
| 14139 | ac_status=$? |
| 14140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14141 | (exit $ac_status); }; } && |
| 14142 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14144 | (eval $ac_try) 2>&5 |
| 14145 | ac_status=$? |
| 14146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14147 | (exit $ac_status); }; }; then |
| 14148 | ac_cv_lib_c_inet_aton=yes |
| 14149 | else |
| 14150 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14152 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14153 | ac_cv_lib_c_inet_aton=no |
| 14154 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14155 | rm -f conftest.err conftest.$ac_objext \ |
| 14156 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14157 | LIBS=$ac_check_lib_save_LIBS |
| 14158 | fi |
| 14159 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 14160 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 14161 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14162 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14163 | else |
| 14164 | |
| 14165 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 14166 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 14167 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 14168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14169 | else |
| 14170 | ac_check_lib_save_LIBS=$LIBS |
| 14171 | LIBS="-lresolv $LIBS" |
| 14172 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14173 | /* confdefs.h. */ |
| 14174 | _ACEOF |
| 14175 | cat confdefs.h >>conftest.$ac_ext |
| 14176 | cat >>conftest.$ac_ext <<_ACEOF |
| 14177 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14178 | |
| 14179 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14180 | #ifdef __cplusplus |
| 14181 | extern "C" |
| 14182 | #endif |
| 14183 | /* We use char because int might match the return type of a gcc2 |
| 14184 | builtin and then its argument prototype would still apply. */ |
| 14185 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14186 | int |
| 14187 | main () |
| 14188 | { |
| 14189 | inet_aton (); |
| 14190 | ; |
| 14191 | return 0; |
| 14192 | } |
| 14193 | _ACEOF |
| 14194 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14196 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14197 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14199 | rm -f conftest.er1 |
| 14200 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14202 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14203 | { ac_try='test -z "$ac_c_werror_flag" |
| 14204 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14206 | (eval $ac_try) 2>&5 |
| 14207 | ac_status=$? |
| 14208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14209 | (exit $ac_status); }; } && |
| 14210 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14212 | (eval $ac_try) 2>&5 |
| 14213 | ac_status=$? |
| 14214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14215 | (exit $ac_status); }; }; then |
| 14216 | ac_cv_lib_resolv_inet_aton=yes |
| 14217 | else |
| 14218 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14220 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14221 | ac_cv_lib_resolv_inet_aton=no |
| 14222 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14223 | rm -f conftest.err conftest.$ac_objext \ |
| 14224 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14225 | LIBS=$ac_check_lib_save_LIBS |
| 14226 | fi |
| 14227 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 14228 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 14229 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 14230 | cat >>confdefs.h <<_ACEOF |
| 14231 | #define HAVE_LIBRESOLV 1 |
| 14232 | _ACEOF |
| 14233 | |
| 14234 | LIBS="-lresolv $LIBS" |
| 14235 | |
| 14236 | fi |
| 14237 | |
| 14238 | |
| 14239 | fi |
| 14240 | |
| 14241 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14242 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 14243 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 14244 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14245 | /* confdefs.h. */ |
| 14246 | _ACEOF |
| 14247 | cat confdefs.h >>conftest.$ac_ext |
| 14248 | cat >>conftest.$ac_ext <<_ACEOF |
| 14249 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14250 | |
| 14251 | #include "confdefs.h" |
| 14252 | #include <netdb.h> |
| 14253 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14254 | int |
| 14255 | main () |
| 14256 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14257 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14258 | ; |
| 14259 | return 0; |
| 14260 | } |
| 14261 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14262 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14264 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14265 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14267 | rm -f conftest.er1 |
| 14268 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14270 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14271 | { ac_try='test -z "$ac_c_werror_flag" |
| 14272 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14274 | (eval $ac_try) 2>&5 |
| 14275 | ac_status=$? |
| 14276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14277 | (exit $ac_status); }; } && |
| 14278 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14280 | (eval $ac_try) 2>&5 |
| 14281 | ac_status=$? |
| 14282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14283 | (exit $ac_status); }; }; then |
| 14284 | |
| 14285 | cat >>confdefs.h <<\_ACEOF |
| 14286 | #define HAVE_HSTRERROR 1 |
| 14287 | _ACEOF |
| 14288 | |
| 14289 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14290 | echo "${ECHO_T}yes" >&6 |
| 14291 | else |
| 14292 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14294 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14295 | echo "$as_me:$LINENO: result: no" >&5 |
| 14296 | echo "${ECHO_T}no" >&6 |
| 14297 | |
| 14298 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14299 | rm -f conftest.err conftest.$ac_objext \ |
| 14300 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14301 | |
| 14302 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 14303 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 14304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14305 | /* confdefs.h. */ |
| 14306 | _ACEOF |
| 14307 | cat confdefs.h >>conftest.$ac_ext |
| 14308 | cat >>conftest.$ac_ext <<_ACEOF |
| 14309 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14310 | |
| 14311 | #include "confdefs.h" |
| 14312 | #include <sys/socket.h> |
| 14313 | #include <netinet/in.h> |
| 14314 | #include <arpa/inet.h> |
| 14315 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14316 | int |
| 14317 | main () |
| 14318 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14319 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14320 | ; |
| 14321 | return 0; |
| 14322 | } |
| 14323 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14324 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14326 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14327 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14329 | rm -f conftest.er1 |
| 14330 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14332 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14333 | { ac_try='test -z "$ac_c_werror_flag" |
| 14334 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14336 | (eval $ac_try) 2>&5 |
| 14337 | ac_status=$? |
| 14338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14339 | (exit $ac_status); }; } && |
| 14340 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14342 | (eval $ac_try) 2>&5 |
| 14343 | ac_status=$? |
| 14344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14345 | (exit $ac_status); }; }; then |
| 14346 | |
| 14347 | cat >>confdefs.h <<\_ACEOF |
| 14348 | #define HAVE_INET_ATON 1 |
| 14349 | _ACEOF |
| 14350 | |
| 14351 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14352 | echo "${ECHO_T}yes" >&6 |
| 14353 | else |
| 14354 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14356 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14357 | echo "$as_me:$LINENO: result: no" >&5 |
| 14358 | echo "${ECHO_T}no" >&6 |
| 14359 | |
| 14360 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14361 | rm -f conftest.err conftest.$ac_objext \ |
| 14362 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14363 | |
| 14364 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 14365 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 14366 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14367 | /* confdefs.h. */ |
| 14368 | _ACEOF |
| 14369 | cat confdefs.h >>conftest.$ac_ext |
| 14370 | cat >>conftest.$ac_ext <<_ACEOF |
| 14371 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14372 | |
| 14373 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14374 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14375 | #include <sys/socket.h> |
| 14376 | #include <netinet/in.h> |
| 14377 | #include <arpa/inet.h> |
| 14378 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14379 | int |
| 14380 | main () |
| 14381 | { |
| 14382 | void* p = inet_pton |
| 14383 | ; |
| 14384 | return 0; |
| 14385 | } |
| 14386 | _ACEOF |
| 14387 | rm -f conftest.$ac_objext |
| 14388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14389 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14390 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14392 | rm -f conftest.er1 |
| 14393 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14395 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14396 | { ac_try='test -z "$ac_c_werror_flag" |
| 14397 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14399 | (eval $ac_try) 2>&5 |
| 14400 | ac_status=$? |
| 14401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14402 | (exit $ac_status); }; } && |
| 14403 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14405 | (eval $ac_try) 2>&5 |
| 14406 | ac_status=$? |
| 14407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14408 | (exit $ac_status); }; }; then |
| 14409 | |
| 14410 | cat >>confdefs.h <<\_ACEOF |
| 14411 | #define HAVE_INET_PTON 1 |
| 14412 | _ACEOF |
| 14413 | |
| 14414 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14415 | echo "${ECHO_T}yes" >&6 |
| 14416 | else |
| 14417 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14419 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14420 | echo "$as_me:$LINENO: result: no" >&5 |
| 14421 | echo "${ECHO_T}no" >&6 |
| 14422 | |
| 14423 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14425 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14426 | # 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] | 14427 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 14428 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 14429 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14430 | /* confdefs.h. */ |
| 14431 | _ACEOF |
| 14432 | cat confdefs.h >>conftest.$ac_ext |
| 14433 | cat >>conftest.$ac_ext <<_ACEOF |
| 14434 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14435 | |
| 14436 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14437 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14438 | #ifdef HAVE_GRP_H |
| 14439 | #include <grp.h> |
| 14440 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14441 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14442 | int |
| 14443 | main () |
| 14444 | { |
| 14445 | void* p = setgroups |
| 14446 | ; |
| 14447 | return 0; |
| 14448 | } |
| 14449 | _ACEOF |
| 14450 | rm -f conftest.$ac_objext |
| 14451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14452 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14453 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14455 | rm -f conftest.er1 |
| 14456 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14458 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14459 | { ac_try='test -z "$ac_c_werror_flag" |
| 14460 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14462 | (eval $ac_try) 2>&5 |
| 14463 | ac_status=$? |
| 14464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14465 | (exit $ac_status); }; } && |
| 14466 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14468 | (eval $ac_try) 2>&5 |
| 14469 | ac_status=$? |
| 14470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14471 | (exit $ac_status); }; }; then |
| 14472 | |
| 14473 | cat >>confdefs.h <<\_ACEOF |
| 14474 | #define HAVE_SETGROUPS 1 |
| 14475 | _ACEOF |
| 14476 | |
| 14477 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14478 | echo "${ECHO_T}yes" >&6 |
| 14479 | else |
| 14480 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14482 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14483 | echo "$as_me:$LINENO: result: no" >&5 |
| 14484 | echo "${ECHO_T}no" >&6 |
| 14485 | |
| 14486 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14488 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14489 | # check for openpty and forkpty |
| 14490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14491 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14492 | for ac_func in openpty |
| 14493 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14494 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14495 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14496 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14497 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14499 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14500 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14501 | /* confdefs.h. */ |
| 14502 | _ACEOF |
| 14503 | cat confdefs.h >>conftest.$ac_ext |
| 14504 | cat >>conftest.$ac_ext <<_ACEOF |
| 14505 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +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 |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14509 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14510 | including <limits.h> includes <sys/time.h> and causes problems |
| 14511 | checking for functions defined therein. */ |
| 14512 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14513 | # include <limits.h> |
| 14514 | #else |
| 14515 | # include <assert.h> |
| 14516 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14517 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14518 | #ifdef __cplusplus |
| 14519 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14520 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14521 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14522 | /* 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] | 14523 | builtin and then its argument prototype would still apply. */ |
| 14524 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14525 | /* The GNU C library defines this for functions which it implements |
| 14526 | to always fail with ENOSYS. Some functions are actually named |
| 14527 | something starting with __ and the normal name is an alias. */ |
| 14528 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14529 | choke me |
| 14530 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14531 | char (*f) () = $ac_func; |
| 14532 | #endif |
| 14533 | #ifdef __cplusplus |
| 14534 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14535 | #endif |
| 14536 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14537 | int |
| 14538 | main () |
| 14539 | { |
| 14540 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14541 | ; |
| 14542 | return 0; |
| 14543 | } |
| 14544 | _ACEOF |
| 14545 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14547 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14548 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14550 | rm -f conftest.er1 |
| 14551 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14553 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14554 | { ac_try='test -z "$ac_c_werror_flag" |
| 14555 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14557 | (eval $ac_try) 2>&5 |
| 14558 | ac_status=$? |
| 14559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14560 | (exit $ac_status); }; } && |
| 14561 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14563 | (eval $ac_try) 2>&5 |
| 14564 | ac_status=$? |
| 14565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14566 | (exit $ac_status); }; }; then |
| 14567 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14569 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14572 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14573 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14574 | rm -f conftest.err conftest.$ac_objext \ |
| 14575 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14576 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14578 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14579 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14580 | cat >>confdefs.h <<_ACEOF |
| 14581 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14582 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14583 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14584 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14585 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 14586 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 14587 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 14588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14590 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14591 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14592 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14593 | /* confdefs.h. */ |
| 14594 | _ACEOF |
| 14595 | cat confdefs.h >>conftest.$ac_ext |
| 14596 | cat >>conftest.$ac_ext <<_ACEOF |
| 14597 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14598 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14599 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14600 | #ifdef __cplusplus |
| 14601 | extern "C" |
| 14602 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14603 | /* 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] | 14604 | builtin and then its argument prototype would still apply. */ |
| 14605 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 | int |
| 14607 | main () |
| 14608 | { |
| 14609 | openpty (); |
| 14610 | ; |
| 14611 | return 0; |
| 14612 | } |
| 14613 | _ACEOF |
| 14614 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14616 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14617 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14619 | rm -f conftest.er1 |
| 14620 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14622 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14623 | { ac_try='test -z "$ac_c_werror_flag" |
| 14624 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14626 | (eval $ac_try) 2>&5 |
| 14627 | ac_status=$? |
| 14628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14629 | (exit $ac_status); }; } && |
| 14630 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14632 | (eval $ac_try) 2>&5 |
| 14633 | ac_status=$? |
| 14634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14635 | (exit $ac_status); }; }; then |
| 14636 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14637 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14638 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14641 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14642 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14643 | rm -f conftest.err conftest.$ac_objext \ |
| 14644 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14645 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14646 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14647 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 14648 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 14649 | if test $ac_cv_lib_util_openpty = yes; then |
| 14650 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14651 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14652 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14653 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14654 | fi |
| 14655 | |
| 14656 | fi |
| 14657 | done |
| 14658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14659 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14660 | for ac_func in forkpty |
| 14661 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14662 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14663 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14664 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14665 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14668 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14669 | /* confdefs.h. */ |
| 14670 | _ACEOF |
| 14671 | cat confdefs.h >>conftest.$ac_ext |
| 14672 | cat >>conftest.$ac_ext <<_ACEOF |
| 14673 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14674 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14675 | which can conflict with char $ac_func (); below. |
| 14676 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14677 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14678 | including <limits.h> includes <sys/time.h> and causes problems |
| 14679 | checking for functions defined therein. */ |
| 14680 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14681 | # include <limits.h> |
| 14682 | #else |
| 14683 | # include <assert.h> |
| 14684 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14685 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14686 | #ifdef __cplusplus |
| 14687 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14688 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14689 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14690 | /* 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] | 14691 | builtin and then its argument prototype would still apply. */ |
| 14692 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14693 | /* The GNU C library defines this for functions which it implements |
| 14694 | to always fail with ENOSYS. Some functions are actually named |
| 14695 | something starting with __ and the normal name is an alias. */ |
| 14696 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14697 | choke me |
| 14698 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14699 | char (*f) () = $ac_func; |
| 14700 | #endif |
| 14701 | #ifdef __cplusplus |
| 14702 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14703 | #endif |
| 14704 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14705 | int |
| 14706 | main () |
| 14707 | { |
| 14708 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14709 | ; |
| 14710 | return 0; |
| 14711 | } |
| 14712 | _ACEOF |
| 14713 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14715 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14716 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14718 | rm -f conftest.er1 |
| 14719 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14721 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14722 | { ac_try='test -z "$ac_c_werror_flag" |
| 14723 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14725 | (eval $ac_try) 2>&5 |
| 14726 | ac_status=$? |
| 14727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14728 | (exit $ac_status); }; } && |
| 14729 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14731 | (eval $ac_try) 2>&5 |
| 14732 | ac_status=$? |
| 14733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14734 | (exit $ac_status); }; }; then |
| 14735 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14736 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14737 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14741 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14742 | rm -f conftest.err conftest.$ac_objext \ |
| 14743 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14744 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14745 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14746 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14747 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14748 | cat >>confdefs.h <<_ACEOF |
| 14749 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14750 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14751 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14753 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 14754 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 14755 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 14756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14758 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14759 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14760 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14761 | /* confdefs.h. */ |
| 14762 | _ACEOF |
| 14763 | cat confdefs.h >>conftest.$ac_ext |
| 14764 | cat >>conftest.$ac_ext <<_ACEOF |
| 14765 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14766 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14767 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14768 | #ifdef __cplusplus |
| 14769 | extern "C" |
| 14770 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14771 | /* 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] | 14772 | builtin and then its argument prototype would still apply. */ |
| 14773 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14774 | int |
| 14775 | main () |
| 14776 | { |
| 14777 | forkpty (); |
| 14778 | ; |
| 14779 | return 0; |
| 14780 | } |
| 14781 | _ACEOF |
| 14782 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14784 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14785 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14787 | rm -f conftest.er1 |
| 14788 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14790 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14791 | { ac_try='test -z "$ac_c_werror_flag" |
| 14792 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14794 | (eval $ac_try) 2>&5 |
| 14795 | ac_status=$? |
| 14796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14797 | (exit $ac_status); }; } && |
| 14798 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14800 | (eval $ac_try) 2>&5 |
| 14801 | ac_status=$? |
| 14802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14803 | (exit $ac_status); }; }; then |
| 14804 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14806 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14809 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14810 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14811 | rm -f conftest.err conftest.$ac_objext \ |
| 14812 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14813 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14814 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14815 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 14816 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 14817 | if test $ac_cv_lib_util_forkpty = yes; then |
| 14818 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14819 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14820 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14821 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14822 | fi |
| 14823 | |
| 14824 | fi |
| 14825 | done |
| 14826 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14827 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14828 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14829 | |
| 14830 | |
| 14831 | |
| 14832 | |
| 14833 | |
| 14834 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14835 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 14836 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14837 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14838 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14839 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14840 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14842 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14843 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14844 | /* confdefs.h. */ |
| 14845 | _ACEOF |
| 14846 | cat confdefs.h >>conftest.$ac_ext |
| 14847 | cat >>conftest.$ac_ext <<_ACEOF |
| 14848 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14849 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14850 | which can conflict with char $ac_func (); below. |
| 14851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14852 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14853 | including <limits.h> includes <sys/time.h> and causes problems |
| 14854 | checking for functions defined therein. */ |
| 14855 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14856 | # include <limits.h> |
| 14857 | #else |
| 14858 | # include <assert.h> |
| 14859 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14860 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14861 | #ifdef __cplusplus |
| 14862 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14863 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14864 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14865 | /* 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] | 14866 | builtin and then its argument prototype would still apply. */ |
| 14867 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14868 | /* The GNU C library defines this for functions which it implements |
| 14869 | to always fail with ENOSYS. Some functions are actually named |
| 14870 | something starting with __ and the normal name is an alias. */ |
| 14871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14872 | choke me |
| 14873 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14874 | char (*f) () = $ac_func; |
| 14875 | #endif |
| 14876 | #ifdef __cplusplus |
| 14877 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14878 | #endif |
| 14879 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14880 | int |
| 14881 | main () |
| 14882 | { |
| 14883 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14884 | ; |
| 14885 | return 0; |
| 14886 | } |
| 14887 | _ACEOF |
| 14888 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14890 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14891 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14893 | rm -f conftest.er1 |
| 14894 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14896 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14897 | { ac_try='test -z "$ac_c_werror_flag" |
| 14898 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14900 | (eval $ac_try) 2>&5 |
| 14901 | ac_status=$? |
| 14902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14903 | (exit $ac_status); }; } && |
| 14904 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14906 | (eval $ac_try) 2>&5 |
| 14907 | ac_status=$? |
| 14908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14909 | (exit $ac_status); }; }; then |
| 14910 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14912 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14914 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14915 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14916 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14917 | rm -f conftest.err conftest.$ac_objext \ |
| 14918 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14919 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14920 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14921 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14922 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14923 | cat >>confdefs.h <<_ACEOF |
| 14924 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14925 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14926 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14927 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14928 | done |
| 14929 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14931 | |
| 14932 | |
| 14933 | |
| 14934 | |
| 14935 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14936 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14937 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14938 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14939 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14940 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14941 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14945 | /* confdefs.h. */ |
| 14946 | _ACEOF |
| 14947 | cat confdefs.h >>conftest.$ac_ext |
| 14948 | cat >>conftest.$ac_ext <<_ACEOF |
| 14949 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14950 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14951 | which can conflict with char $ac_func (); below. |
| 14952 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14953 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14954 | including <limits.h> includes <sys/time.h> and causes problems |
| 14955 | checking for functions defined therein. */ |
| 14956 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14957 | # include <limits.h> |
| 14958 | #else |
| 14959 | # include <assert.h> |
| 14960 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14961 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14962 | #ifdef __cplusplus |
| 14963 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14964 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14965 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14966 | /* 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] | 14967 | builtin and then its argument prototype would still apply. */ |
| 14968 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14969 | /* The GNU C library defines this for functions which it implements |
| 14970 | to always fail with ENOSYS. Some functions are actually named |
| 14971 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14972 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14973 | choke me |
| 14974 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14975 | char (*f) () = $ac_func; |
| 14976 | #endif |
| 14977 | #ifdef __cplusplus |
| 14978 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14979 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14980 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14981 | int |
| 14982 | main () |
| 14983 | { |
| 14984 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14985 | ; |
| 14986 | return 0; |
| 14987 | } |
| 14988 | _ACEOF |
| 14989 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14991 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14992 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14994 | rm -f conftest.er1 |
| 14995 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14997 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 14998 | { ac_try='test -z "$ac_c_werror_flag" |
| 14999 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15001 | (eval $ac_try) 2>&5 |
| 15002 | ac_status=$? |
| 15003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15004 | (exit $ac_status); }; } && |
| 15005 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15007 | (eval $ac_try) 2>&5 |
| 15008 | ac_status=$? |
| 15009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15010 | (exit $ac_status); }; }; then |
| 15011 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15012 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15013 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15016 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15017 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15018 | rm -f conftest.err conftest.$ac_objext \ |
| 15019 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15020 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15022 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15023 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15024 | cat >>confdefs.h <<_ACEOF |
| 15025 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15026 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15027 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15028 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15029 | case $LIBOBJS in |
| 15030 | "$ac_func.$ac_objext" | \ |
| 15031 | *" $ac_func.$ac_objext" | \ |
| 15032 | "$ac_func.$ac_objext "* | \ |
| 15033 | *" $ac_func.$ac_objext "* ) ;; |
| 15034 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 15035 | esac |
| 15036 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15037 | fi |
| 15038 | done |
| 15039 | |
| 15040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15041 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15042 | for ac_func in getpgrp |
| 15043 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15044 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15045 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15046 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15047 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15049 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15050 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15051 | /* confdefs.h. */ |
| 15052 | _ACEOF |
| 15053 | cat confdefs.h >>conftest.$ac_ext |
| 15054 | cat >>conftest.$ac_ext <<_ACEOF |
| 15055 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15056 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15057 | which can conflict with char $ac_func (); below. |
| 15058 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15059 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15060 | including <limits.h> includes <sys/time.h> and causes problems |
| 15061 | checking for functions defined therein. */ |
| 15062 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15063 | # include <limits.h> |
| 15064 | #else |
| 15065 | # include <assert.h> |
| 15066 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15067 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15068 | #ifdef __cplusplus |
| 15069 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15070 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15071 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15072 | /* 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] | 15073 | builtin and then its argument prototype would still apply. */ |
| 15074 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15075 | /* The GNU C library defines this for functions which it implements |
| 15076 | to always fail with ENOSYS. Some functions are actually named |
| 15077 | something starting with __ and the normal name is an alias. */ |
| 15078 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15079 | choke me |
| 15080 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15081 | char (*f) () = $ac_func; |
| 15082 | #endif |
| 15083 | #ifdef __cplusplus |
| 15084 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15085 | #endif |
| 15086 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15087 | int |
| 15088 | main () |
| 15089 | { |
| 15090 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15091 | ; |
| 15092 | return 0; |
| 15093 | } |
| 15094 | _ACEOF |
| 15095 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15097 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15098 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15100 | rm -f conftest.er1 |
| 15101 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15103 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 15104 | { ac_try='test -z "$ac_c_werror_flag" |
| 15105 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15107 | (eval $ac_try) 2>&5 |
| 15108 | ac_status=$? |
| 15109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15110 | (exit $ac_status); }; } && |
| 15111 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15113 | (eval $ac_try) 2>&5 |
| 15114 | ac_status=$? |
| 15115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15116 | (exit $ac_status); }; }; then |
| 15117 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15122 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15123 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15124 | rm -f conftest.err conftest.$ac_objext \ |
| 15125 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15126 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15127 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15128 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15129 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15130 | cat >>confdefs.h <<_ACEOF |
| 15131 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15132 | _ACEOF |
| 15133 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15134 | /* confdefs.h. */ |
| 15135 | _ACEOF |
| 15136 | cat confdefs.h >>conftest.$ac_ext |
| 15137 | cat >>conftest.$ac_ext <<_ACEOF |
| 15138 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15139 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15140 | int |
| 15141 | main () |
| 15142 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15143 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15144 | ; |
| 15145 | return 0; |
| 15146 | } |
| 15147 | _ACEOF |
| 15148 | rm -f conftest.$ac_objext |
| 15149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15150 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15151 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15153 | rm -f conftest.er1 |
| 15154 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15156 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 15157 | { ac_try='test -z "$ac_c_werror_flag" |
| 15158 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15160 | (eval $ac_try) 2>&5 |
| 15161 | ac_status=$? |
| 15162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15163 | (exit $ac_status); }; } && |
| 15164 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15166 | (eval $ac_try) 2>&5 |
| 15167 | ac_status=$? |
| 15168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15169 | (exit $ac_status); }; }; then |
| 15170 | |
| 15171 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15172 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15173 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15174 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15175 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15177 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15179 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15180 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15182 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15183 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15184 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15185 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15186 | |
| 15187 | for ac_func in setpgrp |
| 15188 | do |
| 15189 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15190 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15191 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15192 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15194 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15195 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15196 | /* confdefs.h. */ |
| 15197 | _ACEOF |
| 15198 | cat confdefs.h >>conftest.$ac_ext |
| 15199 | cat >>conftest.$ac_ext <<_ACEOF |
| 15200 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15201 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15202 | which can conflict with char $ac_func (); below. |
| 15203 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15204 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15205 | including <limits.h> includes <sys/time.h> and causes problems |
| 15206 | checking for functions defined therein. */ |
| 15207 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15208 | # include <limits.h> |
| 15209 | #else |
| 15210 | # include <assert.h> |
| 15211 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15212 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15213 | #ifdef __cplusplus |
| 15214 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15215 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15216 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15217 | /* We use char because int might match the return type of a gcc2 |
| 15218 | builtin and then its argument prototype would still apply. */ |
| 15219 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15220 | /* The GNU C library defines this for functions which it implements |
| 15221 | to always fail with ENOSYS. Some functions are actually named |
| 15222 | something starting with __ and the normal name is an alias. */ |
| 15223 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15224 | choke me |
| 15225 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15226 | char (*f) () = $ac_func; |
| 15227 | #endif |
| 15228 | #ifdef __cplusplus |
| 15229 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15230 | #endif |
| 15231 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15232 | int |
| 15233 | main () |
| 15234 | { |
| 15235 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15236 | ; |
| 15237 | return 0; |
| 15238 | } |
| 15239 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15240 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15242 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15243 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15245 | rm -f conftest.er1 |
| 15246 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15248 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 15249 | { ac_try='test -z "$ac_c_werror_flag" |
| 15250 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15252 | (eval $ac_try) 2>&5 |
| 15253 | ac_status=$? |
| 15254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15255 | (exit $ac_status); }; } && |
| 15256 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15258 | (eval $ac_try) 2>&5 |
| 15259 | ac_status=$? |
| 15260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15261 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15262 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15263 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15264 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15266 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15267 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15268 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15269 | rm -f conftest.err conftest.$ac_objext \ |
| 15270 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15271 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15272 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15273 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15274 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15275 | cat >>confdefs.h <<_ACEOF |
| 15276 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15277 | _ACEOF |
| 15278 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15279 | /* confdefs.h. */ |
| 15280 | _ACEOF |
| 15281 | cat confdefs.h >>conftest.$ac_ext |
| 15282 | cat >>conftest.$ac_ext <<_ACEOF |
| 15283 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15284 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15285 | int |
| 15286 | main () |
| 15287 | { |
| 15288 | setpgrp(0,0); |
| 15289 | ; |
| 15290 | return 0; |
| 15291 | } |
| 15292 | _ACEOF |
| 15293 | rm -f conftest.$ac_objext |
| 15294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15295 | (eval $ac_compile) 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15296 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15298 | rm -f conftest.er1 |
| 15299 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15301 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 15302 | { ac_try='test -z "$ac_c_werror_flag" |
| 15303 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15305 | (eval $ac_try) 2>&5 |
| 15306 | ac_status=$? |
| 15307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15308 | (exit $ac_status); }; } && |
| 15309 | { ac_try='test -s conftest.$ac_objext' |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15311 | (eval $ac_try) 2>&5 |
| 15312 | ac_status=$? |
| 15313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15314 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15315 | |
| 15316 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15317 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15318 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15319 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15320 | |
| 15321 | else |
| 15322 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15324 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15325 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15326 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15327 | |
| 15328 | fi |
| 15329 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15331 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15332 | for ac_func in gettimeofday |
| 15333 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15334 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15335 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15336 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15337 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15340 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15341 | /* confdefs.h. */ |
| 15342 | _ACEOF |
| 15343 | cat confdefs.h >>conftest.$ac_ext |
| 15344 | cat >>conftest.$ac_ext <<_ACEOF |
| 15345 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15346 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15347 | which can conflict with char $ac_func (); below. |
| 15348 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15349 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15350 | including <limits.h> includes <sys/time.h> and causes problems |
| 15351 | checking for functions defined therein. */ |
| 15352 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15353 | # include <limits.h> |
| 15354 | #else |
| 15355 | # include <assert.h> |
| 15356 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15357 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15358 | #ifdef __cplusplus |
| 15359 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15360 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15361 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15362 | /* 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] | 15363 | builtin and then its argument prototype would still apply. */ |
| 15364 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15365 | /* The GNU C library defines this for functions which it implements |
| 15366 | to always fail with ENOSYS. Some functions are actually named |
| 15367 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15368 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15369 | choke me |
| 15370 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15371 | char (*f) () = $ac_func; |
| 15372 | #endif |
| 15373 | #ifdef __cplusplus |
| 15374 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15375 | #endif |
| 15376 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15377 | int |
| 15378 | main () |
| 15379 | { |
| 15380 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15381 | ; |
| 15382 | return 0; |
| 15383 | } |
| 15384 | _ACEOF |
| 15385 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15387 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15388 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15390 | rm -f conftest.er1 |
| 15391 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15393 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 15394 | { ac_try='test -z "$ac_c_werror_flag" |
| 15395 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15397 | (eval $ac_try) 2>&5 |
| 15398 | ac_status=$? |
| 15399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15400 | (exit $ac_status); }; } && |
| 15401 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15403 | (eval $ac_try) 2>&5 |
| 15404 | ac_status=$? |
| 15405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15406 | (exit $ac_status); }; }; then |
| 15407 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15409 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15412 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15413 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15414 | rm -f conftest.err conftest.$ac_objext \ |
| 15415 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15416 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15417 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15418 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15419 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15420 | cat >>confdefs.h <<_ACEOF |
| 15421 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15422 | _ACEOF |
| 15423 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15424 | /* confdefs.h. */ |
| 15425 | _ACEOF |
| 15426 | cat confdefs.h >>conftest.$ac_ext |
| 15427 | cat >>conftest.$ac_ext <<_ACEOF |
| 15428 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15429 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15430 | int |
| 15431 | main () |
| 15432 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15433 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15434 | ; |
| 15435 | return 0; |
| 15436 | } |
| 15437 | _ACEOF |
| 15438 | rm -f conftest.$ac_objext |
| 15439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15440 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15441 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15443 | rm -f conftest.er1 |
| 15444 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15446 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 15447 | { ac_try='test -z "$ac_c_werror_flag" |
| 15448 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15450 | (eval $ac_try) 2>&5 |
| 15451 | ac_status=$? |
| 15452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15453 | (exit $ac_status); }; } && |
| 15454 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15456 | (eval $ac_try) 2>&5 |
| 15457 | ac_status=$? |
| 15458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15459 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15460 | : |
| 15461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15462 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15465 | |
| 15466 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15467 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15468 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15470 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15471 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15473 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15474 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15475 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15476 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15477 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15478 | echo "$as_me:$LINENO: checking for major" >&5 |
| 15479 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 15480 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15481 | /* confdefs.h. */ |
| 15482 | _ACEOF |
| 15483 | cat confdefs.h >>conftest.$ac_ext |
| 15484 | cat >>conftest.$ac_ext <<_ACEOF |
| 15485 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15486 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15487 | #if defined(MAJOR_IN_MKDEV) |
| 15488 | #include <sys/mkdev.h> |
| 15489 | #elif defined(MAJOR_IN_SYSMACROS) |
| 15490 | #include <sys/sysmacros.h> |
| 15491 | #else |
| 15492 | #include <sys/types.h> |
| 15493 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15494 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15495 | int |
| 15496 | main () |
| 15497 | { |
| 15498 | |
| 15499 | makedev(major(0),minor(0)); |
| 15500 | |
| 15501 | ; |
| 15502 | return 0; |
| 15503 | } |
| 15504 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 15505 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15507 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15508 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15510 | rm -f conftest.er1 |
| 15511 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15513 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 15514 | { ac_try='test -z "$ac_c_werror_flag" |
| 15515 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15517 | (eval $ac_try) 2>&5 |
| 15518 | ac_status=$? |
| 15519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15520 | (exit $ac_status); }; } && |
| 15521 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15523 | (eval $ac_try) 2>&5 |
| 15524 | ac_status=$? |
| 15525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15526 | (exit $ac_status); }; }; then |
| 15527 | |
| 15528 | |
| 15529 | cat >>confdefs.h <<\_ACEOF |
| 15530 | #define HAVE_DEVICE_MACROS 1 |
| 15531 | _ACEOF |
| 15532 | |
| 15533 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15534 | echo "${ECHO_T}yes" >&6 |
| 15535 | |
| 15536 | else |
| 15537 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15539 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15540 | |
| 15541 | echo "$as_me:$LINENO: result: no" >&5 |
| 15542 | echo "${ECHO_T}no" >&6 |
| 15543 | |
| 15544 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15545 | rm -f conftest.err conftest.$ac_objext \ |
| 15546 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15547 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15548 | # 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] | 15549 | # for [no]getaddrinfo in netdb.h. |
| 15550 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 15551 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 15552 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15553 | /* confdefs.h. */ |
| 15554 | _ACEOF |
| 15555 | cat confdefs.h >>conftest.$ac_ext |
| 15556 | cat >>conftest.$ac_ext <<_ACEOF |
| 15557 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15558 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15559 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15560 | #include <sys/socket.h> |
| 15561 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15562 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15563 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15564 | int |
| 15565 | main () |
| 15566 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15567 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15568 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15570 | ; |
| 15571 | return 0; |
| 15572 | } |
| 15573 | _ACEOF |
| 15574 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15576 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15577 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15579 | rm -f conftest.er1 |
| 15580 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15582 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 15583 | { ac_try='test -z "$ac_c_werror_flag" |
| 15584 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15586 | (eval $ac_try) 2>&5 |
| 15587 | ac_status=$? |
| 15588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15589 | (exit $ac_status); }; } && |
| 15590 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15592 | (eval $ac_try) 2>&5 |
| 15593 | ac_status=$? |
| 15594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15595 | (exit $ac_status); }; }; then |
| 15596 | |
| 15597 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15598 | echo "${ECHO_T}yes" >&6 |
| 15599 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 15600 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15601 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15602 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15603 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15604 | buggygetaddrinfo=yes |
| 15605 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15606 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15607 | /* confdefs.h. */ |
| 15608 | _ACEOF |
| 15609 | cat confdefs.h >>conftest.$ac_ext |
| 15610 | cat >>conftest.$ac_ext <<_ACEOF |
| 15611 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15612 | |
| 15613 | #include <sys/types.h> |
| 15614 | #include <netdb.h> |
| 15615 | #include <string.h> |
| 15616 | #include <sys/socket.h> |
| 15617 | #include <netinet/in.h> |
| 15618 | |
| 15619 | main() |
| 15620 | { |
| 15621 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 15622 | struct addrinfo hints, *ai, *aitop; |
| 15623 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 15624 | |
| 15625 | for (passive = 0; passive <= 1; passive++) { |
| 15626 | memset(&hints, 0, sizeof(hints)); |
| 15627 | hints.ai_family = AF_UNSPEC; |
| 15628 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 15629 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 15630 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15631 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 15632 | (void)gai_strerror(gaierr); |
| 15633 | goto bad; |
| 15634 | } |
| 15635 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 15636 | if (ai->ai_addr == NULL || |
| 15637 | ai->ai_addrlen == 0 || |
| 15638 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 15639 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 15640 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 15641 | goto bad; |
| 15642 | } |
| 15643 | switch (ai->ai_family) { |
| 15644 | case AF_INET: |
| 15645 | if (strcmp(strport, "54321") != 0) { |
| 15646 | goto bad; |
| 15647 | } |
| 15648 | if (passive) { |
| 15649 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 15650 | goto bad; |
| 15651 | } |
| 15652 | } else { |
| 15653 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15654 | goto bad; |
| 15655 | } |
| 15656 | } |
| 15657 | inet4++; |
| 15658 | break; |
| 15659 | case AF_INET6: |
| 15660 | if (strcmp(strport, "54321") != 0) { |
| 15661 | goto bad; |
| 15662 | } |
| 15663 | if (passive) { |
| 15664 | if (strcmp(straddr, "::") != 0) { |
| 15665 | goto bad; |
| 15666 | } |
| 15667 | } else { |
| 15668 | if (strcmp(straddr, "::1") != 0) { |
| 15669 | goto bad; |
| 15670 | } |
| 15671 | } |
| 15672 | inet6++; |
| 15673 | break; |
| 15674 | case AF_UNSPEC: |
| 15675 | goto bad; |
| 15676 | break; |
| 15677 | default: |
| 15678 | /* another family support? */ |
| 15679 | break; |
| 15680 | } |
| 15681 | } |
| 15682 | } |
| 15683 | |
| 15684 | if (!(inet4 == 0 || inet4 == 2)) |
| 15685 | goto bad; |
| 15686 | if (!(inet6 == 0 || inet6 == 2)) |
| 15687 | goto bad; |
| 15688 | |
| 15689 | if (aitop) |
| 15690 | freeaddrinfo(aitop); |
| 15691 | exit(0); |
| 15692 | |
| 15693 | bad: |
| 15694 | if (aitop) |
| 15695 | freeaddrinfo(aitop); |
| 15696 | exit(1); |
| 15697 | } |
| 15698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15699 | _ACEOF |
| 15700 | rm -f conftest$ac_exeext |
| 15701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15702 | (eval $ac_link) 2>&5 |
| 15703 | ac_status=$? |
| 15704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15705 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15707 | (eval $ac_try) 2>&5 |
| 15708 | ac_status=$? |
| 15709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15710 | (exit $ac_status); }; }; then |
| 15711 | echo "$as_me:$LINENO: result: good" >&5 |
| 15712 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15713 | buggygetaddrinfo=no |
| 15714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15715 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15716 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15719 | ( exit $ac_status ) |
| 15720 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15721 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15722 | buggygetaddrinfo=yes |
| 15723 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15724 | 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] | 15725 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15727 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15730 | |
| 15731 | echo "$as_me:$LINENO: result: no" >&5 |
| 15732 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15733 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15734 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15735 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15736 | rm -f conftest.err conftest.$ac_objext \ |
| 15737 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15738 | |
| 15739 | if test "$buggygetaddrinfo" = "yes"; then |
| 15740 | if test "$ipv6" = "yes"; then |
| 15741 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 15742 | echo ' or you can specify "--disable-ipv6"'. |
| 15743 | exit 1 |
| 15744 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15746 | |
| 15747 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15748 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15749 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15750 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15751 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15752 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 15753 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15754 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15755 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15756 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15757 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15758 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15760 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15761 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15762 | /* confdefs.h. */ |
| 15763 | _ACEOF |
| 15764 | cat confdefs.h >>conftest.$ac_ext |
| 15765 | cat >>conftest.$ac_ext <<_ACEOF |
| 15766 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15767 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15768 | which can conflict with char $ac_func (); below. |
| 15769 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15770 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15771 | including <limits.h> includes <sys/time.h> and causes problems |
| 15772 | checking for functions defined therein. */ |
| 15773 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15774 | # include <limits.h> |
| 15775 | #else |
| 15776 | # include <assert.h> |
| 15777 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15778 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15779 | #ifdef __cplusplus |
| 15780 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15781 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15782 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15783 | /* 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] | 15784 | builtin and then its argument prototype would still apply. */ |
| 15785 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15786 | /* The GNU C library defines this for functions which it implements |
| 15787 | to always fail with ENOSYS. Some functions are actually named |
| 15788 | something starting with __ and the normal name is an alias. */ |
| 15789 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15790 | choke me |
| 15791 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15792 | char (*f) () = $ac_func; |
| 15793 | #endif |
| 15794 | #ifdef __cplusplus |
| 15795 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15796 | #endif |
| 15797 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15798 | int |
| 15799 | main () |
| 15800 | { |
| 15801 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15802 | ; |
| 15803 | return 0; |
| 15804 | } |
| 15805 | _ACEOF |
| 15806 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15808 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15809 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15811 | rm -f conftest.er1 |
| 15812 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15814 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 15815 | { ac_try='test -z "$ac_c_werror_flag" |
| 15816 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15818 | (eval $ac_try) 2>&5 |
| 15819 | ac_status=$? |
| 15820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15821 | (exit $ac_status); }; } && |
| 15822 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15824 | (eval $ac_try) 2>&5 |
| 15825 | ac_status=$? |
| 15826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15827 | (exit $ac_status); }; }; then |
| 15828 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15829 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15830 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15833 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15834 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15835 | rm -f conftest.err conftest.$ac_objext \ |
| 15836 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15838 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15839 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15840 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15841 | cat >>confdefs.h <<_ACEOF |
| 15842 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15843 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15844 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15845 | fi |
| 15846 | done |
| 15847 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15848 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15849 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15850 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15851 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15852 | if test "${ac_cv_header_time+set}" = set; then |
| 15853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15855 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15856 | /* confdefs.h. */ |
| 15857 | _ACEOF |
| 15858 | cat confdefs.h >>conftest.$ac_ext |
| 15859 | cat >>conftest.$ac_ext <<_ACEOF |
| 15860 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15861 | #include <sys/types.h> |
| 15862 | #include <sys/time.h> |
| 15863 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15865 | int |
| 15866 | main () |
| 15867 | { |
| 15868 | if ((struct tm *) 0) |
| 15869 | return 0; |
| 15870 | ; |
| 15871 | return 0; |
| 15872 | } |
| 15873 | _ACEOF |
| 15874 | rm -f conftest.$ac_objext |
| 15875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15876 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15877 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15879 | rm -f conftest.er1 |
| 15880 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15882 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 15883 | { ac_try='test -z "$ac_c_werror_flag" |
| 15884 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15886 | (eval $ac_try) 2>&5 |
| 15887 | ac_status=$? |
| 15888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15889 | (exit $ac_status); }; } && |
| 15890 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15892 | (eval $ac_try) 2>&5 |
| 15893 | ac_status=$? |
| 15894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15895 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15896 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15897 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15898 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15900 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15901 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15902 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15904 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15905 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15906 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15907 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15908 | |
| 15909 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15910 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15911 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15912 | |
| 15913 | fi |
| 15914 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 15916 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 15917 | if test "${ac_cv_struct_tm+set}" = set; then |
| 15918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15921 | /* confdefs.h. */ |
| 15922 | _ACEOF |
| 15923 | cat confdefs.h >>conftest.$ac_ext |
| 15924 | cat >>conftest.$ac_ext <<_ACEOF |
| 15925 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15926 | #include <sys/types.h> |
| 15927 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15929 | int |
| 15930 | main () |
| 15931 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15932 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15933 | ; |
| 15934 | return 0; |
| 15935 | } |
| 15936 | _ACEOF |
| 15937 | rm -f conftest.$ac_objext |
| 15938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15939 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15940 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15942 | rm -f conftest.er1 |
| 15943 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15945 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 15946 | { ac_try='test -z "$ac_c_werror_flag" |
| 15947 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15949 | (eval $ac_try) 2>&5 |
| 15950 | ac_status=$? |
| 15951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15952 | (exit $ac_status); }; } && |
| 15953 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15955 | (eval $ac_try) 2>&5 |
| 15956 | ac_status=$? |
| 15957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15958 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15959 | ac_cv_struct_tm=time.h |
| 15960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15961 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15964 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15965 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +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: $ac_cv_struct_tm" >&5 |
| 15969 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15970 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15971 | |
| 15972 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15973 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15974 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15975 | |
| 15976 | fi |
| 15977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15978 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 15979 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 15980 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 15981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15982 | else |
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. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15989 | #include <sys/types.h> |
| 15990 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15991 | |
| 15992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15993 | int |
| 15994 | main () |
| 15995 | { |
| 15996 | static struct tm ac_aggr; |
| 15997 | if (ac_aggr.tm_zone) |
| 15998 | return 0; |
| 15999 | ; |
| 16000 | return 0; |
| 16001 | } |
| 16002 | _ACEOF |
| 16003 | rm -f conftest.$ac_objext |
| 16004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16005 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16006 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16008 | rm -f conftest.er1 |
| 16009 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16011 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16012 | { ac_try='test -z "$ac_c_werror_flag" |
| 16013 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16015 | (eval $ac_try) 2>&5 |
| 16016 | ac_status=$? |
| 16017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16018 | (exit $ac_status); }; } && |
| 16019 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16021 | (eval $ac_try) 2>&5 |
| 16022 | ac_status=$? |
| 16023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16024 | (exit $ac_status); }; }; then |
| 16025 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16026 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16027 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16029 | |
| 16030 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16031 | /* confdefs.h. */ |
| 16032 | _ACEOF |
| 16033 | cat confdefs.h >>conftest.$ac_ext |
| 16034 | cat >>conftest.$ac_ext <<_ACEOF |
| 16035 | /* end confdefs.h. */ |
| 16036 | #include <sys/types.h> |
| 16037 | #include <$ac_cv_struct_tm> |
| 16038 | |
| 16039 | |
| 16040 | int |
| 16041 | main () |
| 16042 | { |
| 16043 | static struct tm ac_aggr; |
| 16044 | if (sizeof ac_aggr.tm_zone) |
| 16045 | return 0; |
| 16046 | ; |
| 16047 | return 0; |
| 16048 | } |
| 16049 | _ACEOF |
| 16050 | rm -f conftest.$ac_objext |
| 16051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16052 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16053 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16055 | rm -f conftest.er1 |
| 16056 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16058 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16059 | { ac_try='test -z "$ac_c_werror_flag" |
| 16060 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16062 | (eval $ac_try) 2>&5 |
| 16063 | ac_status=$? |
| 16064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16065 | (exit $ac_status); }; } && |
| 16066 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16068 | (eval $ac_try) 2>&5 |
| 16069 | ac_status=$? |
| 16070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16071 | (exit $ac_status); }; }; then |
| 16072 | ac_cv_member_struct_tm_tm_zone=yes |
| 16073 | else |
| 16074 | echo "$as_me: failed program was:" >&5 |
| 16075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16077 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16078 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16080 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16082 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16083 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 16084 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 16085 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 16086 | |
| 16087 | cat >>confdefs.h <<_ACEOF |
| 16088 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 16089 | _ACEOF |
| 16090 | |
| 16091 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16092 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16093 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16094 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 16095 | |
| 16096 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16097 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16098 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16099 | |
| 16100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16101 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 16102 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 16103 | if test "${ac_cv_var_tzname+set}" = set; then |
| 16104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16106 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16107 | /* confdefs.h. */ |
| 16108 | _ACEOF |
| 16109 | cat confdefs.h >>conftest.$ac_ext |
| 16110 | cat >>conftest.$ac_ext <<_ACEOF |
| 16111 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16112 | #include <time.h> |
| 16113 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16114 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16115 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16117 | int |
| 16118 | main () |
| 16119 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16120 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16121 | ; |
| 16122 | return 0; |
| 16123 | } |
| 16124 | _ACEOF |
| 16125 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16127 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16128 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16130 | rm -f conftest.er1 |
| 16131 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16133 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16134 | { ac_try='test -z "$ac_c_werror_flag" |
| 16135 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16137 | (eval $ac_try) 2>&5 |
| 16138 | ac_status=$? |
| 16139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16140 | (exit $ac_status); }; } && |
| 16141 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16143 | (eval $ac_try) 2>&5 |
| 16144 | ac_status=$? |
| 16145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16146 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16147 | ac_cv_var_tzname=yes |
| 16148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16149 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16152 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16153 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16154 | rm -f conftest.err conftest.$ac_objext \ |
| 16155 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16156 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16157 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 16158 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16159 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16160 | |
| 16161 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16162 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16163 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16164 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16165 | fi |
| 16166 | fi |
| 16167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16168 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 16169 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 16170 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 16171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16172 | else |
| 16173 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16174 | /* confdefs.h. */ |
| 16175 | _ACEOF |
| 16176 | cat confdefs.h >>conftest.$ac_ext |
| 16177 | cat >>conftest.$ac_ext <<_ACEOF |
| 16178 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16179 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16180 | int |
| 16181 | main () |
| 16182 | { |
| 16183 | static struct stat ac_aggr; |
| 16184 | if (ac_aggr.st_rdev) |
| 16185 | return 0; |
| 16186 | ; |
| 16187 | return 0; |
| 16188 | } |
| 16189 | _ACEOF |
| 16190 | rm -f conftest.$ac_objext |
| 16191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16192 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16193 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16195 | rm -f conftest.er1 |
| 16196 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16198 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16199 | { ac_try='test -z "$ac_c_werror_flag" |
| 16200 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 16206 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16208 | (eval $ac_try) 2>&5 |
| 16209 | ac_status=$? |
| 16210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16211 | (exit $ac_status); }; }; then |
| 16212 | ac_cv_member_struct_stat_st_rdev=yes |
| 16213 | else |
| 16214 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16216 | |
| 16217 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16218 | /* confdefs.h. */ |
| 16219 | _ACEOF |
| 16220 | cat confdefs.h >>conftest.$ac_ext |
| 16221 | cat >>conftest.$ac_ext <<_ACEOF |
| 16222 | /* end confdefs.h. */ |
| 16223 | $ac_includes_default |
| 16224 | int |
| 16225 | main () |
| 16226 | { |
| 16227 | static struct stat ac_aggr; |
| 16228 | if (sizeof ac_aggr.st_rdev) |
| 16229 | return 0; |
| 16230 | ; |
| 16231 | return 0; |
| 16232 | } |
| 16233 | _ACEOF |
| 16234 | rm -f conftest.$ac_objext |
| 16235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16236 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16237 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16239 | rm -f conftest.er1 |
| 16240 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16242 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16243 | { ac_try='test -z "$ac_c_werror_flag" |
| 16244 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16246 | (eval $ac_try) 2>&5 |
| 16247 | ac_status=$? |
| 16248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16249 | (exit $ac_status); }; } && |
| 16250 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16252 | (eval $ac_try) 2>&5 |
| 16253 | ac_status=$? |
| 16254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16255 | (exit $ac_status); }; }; then |
| 16256 | ac_cv_member_struct_stat_st_rdev=yes |
| 16257 | else |
| 16258 | echo "$as_me: failed program was:" >&5 |
| 16259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16261 | ac_cv_member_struct_stat_st_rdev=no |
| 16262 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16264 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16266 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16267 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 16268 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 16269 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 16270 | |
| 16271 | cat >>confdefs.h <<_ACEOF |
| 16272 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 16273 | _ACEOF |
| 16274 | |
| 16275 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16276 | fi |
| 16277 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16278 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 16279 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 16280 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 16281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16283 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16284 | /* confdefs.h. */ |
| 16285 | _ACEOF |
| 16286 | cat confdefs.h >>conftest.$ac_ext |
| 16287 | cat >>conftest.$ac_ext <<_ACEOF |
| 16288 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16289 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16290 | int |
| 16291 | main () |
| 16292 | { |
| 16293 | static struct stat ac_aggr; |
| 16294 | if (ac_aggr.st_blksize) |
| 16295 | return 0; |
| 16296 | ; |
| 16297 | return 0; |
| 16298 | } |
| 16299 | _ACEOF |
| 16300 | rm -f conftest.$ac_objext |
| 16301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16302 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16303 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16305 | rm -f conftest.er1 |
| 16306 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16308 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16309 | { ac_try='test -z "$ac_c_werror_flag" |
| 16310 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16312 | (eval $ac_try) 2>&5 |
| 16313 | ac_status=$? |
| 16314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16315 | (exit $ac_status); }; } && |
| 16316 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16318 | (eval $ac_try) 2>&5 |
| 16319 | ac_status=$? |
| 16320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16321 | (exit $ac_status); }; }; then |
| 16322 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16326 | |
| 16327 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16328 | /* confdefs.h. */ |
| 16329 | _ACEOF |
| 16330 | cat confdefs.h >>conftest.$ac_ext |
| 16331 | cat >>conftest.$ac_ext <<_ACEOF |
| 16332 | /* end confdefs.h. */ |
| 16333 | $ac_includes_default |
| 16334 | int |
| 16335 | main () |
| 16336 | { |
| 16337 | static struct stat ac_aggr; |
| 16338 | if (sizeof ac_aggr.st_blksize) |
| 16339 | return 0; |
| 16340 | ; |
| 16341 | return 0; |
| 16342 | } |
| 16343 | _ACEOF |
| 16344 | rm -f conftest.$ac_objext |
| 16345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16346 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16347 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16349 | rm -f conftest.er1 |
| 16350 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16352 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16353 | { ac_try='test -z "$ac_c_werror_flag" |
| 16354 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16356 | (eval $ac_try) 2>&5 |
| 16357 | ac_status=$? |
| 16358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16359 | (exit $ac_status); }; } && |
| 16360 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16362 | (eval $ac_try) 2>&5 |
| 16363 | ac_status=$? |
| 16364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16365 | (exit $ac_status); }; }; then |
| 16366 | ac_cv_member_struct_stat_st_blksize=yes |
| 16367 | else |
| 16368 | echo "$as_me: failed program was:" >&5 |
| 16369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16370 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16371 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16372 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16374 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16376 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16377 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 16378 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 16379 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16381 | cat >>confdefs.h <<_ACEOF |
| 16382 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 16383 | _ACEOF |
| 16384 | |
| 16385 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16386 | fi |
| 16387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16388 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 16389 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 16390 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 16391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16393 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16394 | /* confdefs.h. */ |
| 16395 | _ACEOF |
| 16396 | cat confdefs.h >>conftest.$ac_ext |
| 16397 | cat >>conftest.$ac_ext <<_ACEOF |
| 16398 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16399 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16400 | int |
| 16401 | main () |
| 16402 | { |
| 16403 | static struct stat ac_aggr; |
| 16404 | if (ac_aggr.st_blocks) |
| 16405 | return 0; |
| 16406 | ; |
| 16407 | return 0; |
| 16408 | } |
| 16409 | _ACEOF |
| 16410 | rm -f conftest.$ac_objext |
| 16411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16412 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16413 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16415 | rm -f conftest.er1 |
| 16416 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16418 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16419 | { ac_try='test -z "$ac_c_werror_flag" |
| 16420 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16422 | (eval $ac_try) 2>&5 |
| 16423 | ac_status=$? |
| 16424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16425 | (exit $ac_status); }; } && |
| 16426 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16428 | (eval $ac_try) 2>&5 |
| 16429 | ac_status=$? |
| 16430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16431 | (exit $ac_status); }; }; then |
| 16432 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16434 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16436 | |
| 16437 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16438 | /* confdefs.h. */ |
| 16439 | _ACEOF |
| 16440 | cat confdefs.h >>conftest.$ac_ext |
| 16441 | cat >>conftest.$ac_ext <<_ACEOF |
| 16442 | /* end confdefs.h. */ |
| 16443 | $ac_includes_default |
| 16444 | int |
| 16445 | main () |
| 16446 | { |
| 16447 | static struct stat ac_aggr; |
| 16448 | if (sizeof ac_aggr.st_blocks) |
| 16449 | return 0; |
| 16450 | ; |
| 16451 | return 0; |
| 16452 | } |
| 16453 | _ACEOF |
| 16454 | rm -f conftest.$ac_objext |
| 16455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16456 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16457 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16459 | rm -f conftest.er1 |
| 16460 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16462 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16463 | { ac_try='test -z "$ac_c_werror_flag" |
| 16464 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16466 | (eval $ac_try) 2>&5 |
| 16467 | ac_status=$? |
| 16468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16469 | (exit $ac_status); }; } && |
| 16470 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16472 | (eval $ac_try) 2>&5 |
| 16473 | ac_status=$? |
| 16474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16475 | (exit $ac_status); }; }; then |
| 16476 | ac_cv_member_struct_stat_st_blocks=yes |
| 16477 | else |
| 16478 | echo "$as_me: failed program was:" >&5 |
| 16479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16481 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16482 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16484 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16486 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16487 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 16488 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 16489 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16491 | cat >>confdefs.h <<_ACEOF |
| 16492 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 16493 | _ACEOF |
| 16494 | |
| 16495 | |
| 16496 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16497 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16498 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16499 | |
| 16500 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16501 | case $LIBOBJS in |
| 16502 | "fileblocks.$ac_objext" | \ |
| 16503 | *" fileblocks.$ac_objext" | \ |
| 16504 | "fileblocks.$ac_objext "* | \ |
| 16505 | *" fileblocks.$ac_objext "* ) ;; |
| 16506 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; |
| 16507 | esac |
| 16508 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16509 | fi |
| 16510 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16512 | |
| 16513 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 16514 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 16515 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 16516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16517 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16518 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16519 | /* confdefs.h. */ |
| 16520 | _ACEOF |
| 16521 | cat confdefs.h >>conftest.$ac_ext |
| 16522 | cat >>conftest.$ac_ext <<_ACEOF |
| 16523 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16524 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16525 | int |
| 16526 | main () |
| 16527 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16528 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16529 | ; |
| 16530 | return 0; |
| 16531 | } |
| 16532 | _ACEOF |
| 16533 | rm -f conftest.$ac_objext |
| 16534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16535 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16536 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16538 | rm -f conftest.er1 |
| 16539 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16541 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16542 | { ac_try='test -z "$ac_c_werror_flag" |
| 16543 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16545 | (eval $ac_try) 2>&5 |
| 16546 | ac_status=$? |
| 16547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16548 | (exit $ac_status); }; } && |
| 16549 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16551 | (eval $ac_try) 2>&5 |
| 16552 | ac_status=$? |
| 16553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16554 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16555 | ac_cv_header_time_altzone=yes |
| 16556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16557 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16560 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16561 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16563 | fi |
| 16564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16565 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 16566 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16567 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16568 | |
| 16569 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16570 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16571 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16572 | |
| 16573 | fi |
| 16574 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16575 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16576 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 16577 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 16578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16579 | /* confdefs.h. */ |
| 16580 | _ACEOF |
| 16581 | cat confdefs.h >>conftest.$ac_ext |
| 16582 | cat >>conftest.$ac_ext <<_ACEOF |
| 16583 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16584 | |
| 16585 | #include <sys/types.h> |
| 16586 | #include <sys/select.h> |
| 16587 | #include <sys/time.h> |
| 16588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16589 | int |
| 16590 | main () |
| 16591 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16592 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16593 | ; |
| 16594 | return 0; |
| 16595 | } |
| 16596 | _ACEOF |
| 16597 | rm -f conftest.$ac_objext |
| 16598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16599 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16600 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16602 | rm -f conftest.er1 |
| 16603 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16605 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16606 | { ac_try='test -z "$ac_c_werror_flag" |
| 16607 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16609 | (eval $ac_try) 2>&5 |
| 16610 | ac_status=$? |
| 16611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16612 | (exit $ac_status); }; } && |
| 16613 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16615 | (eval $ac_try) 2>&5 |
| 16616 | ac_status=$? |
| 16617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16618 | (exit $ac_status); }; }; then |
| 16619 | |
| 16620 | |
| 16621 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16622 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16623 | _ACEOF |
| 16624 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16625 | was_it_defined=yes |
| 16626 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16628 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16630 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16631 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16633 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 16634 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16636 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 16637 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 16638 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 16639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16640 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16641 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16642 | /* confdefs.h. */ |
| 16643 | _ACEOF |
| 16644 | cat confdefs.h >>conftest.$ac_ext |
| 16645 | cat >>conftest.$ac_ext <<_ACEOF |
| 16646 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16647 | |
| 16648 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16649 | int |
| 16650 | main () |
| 16651 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16652 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16653 | ; |
| 16654 | return 0; |
| 16655 | } |
| 16656 | _ACEOF |
| 16657 | rm -f conftest.$ac_objext |
| 16658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16659 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16660 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16662 | rm -f conftest.er1 |
| 16663 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16665 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16666 | { ac_try='test -z "$ac_c_werror_flag" |
| 16667 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16669 | (eval $ac_try) 2>&5 |
| 16670 | ac_status=$? |
| 16671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16672 | (exit $ac_status); }; } && |
| 16673 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16675 | (eval $ac_try) 2>&5 |
| 16676 | ac_status=$? |
| 16677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16678 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16679 | ac_cv_struct_addrinfo=yes |
| 16680 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16681 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16684 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16685 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16687 | fi |
| 16688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16689 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 16690 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16691 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16692 | |
| 16693 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16694 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16695 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16696 | |
| 16697 | fi |
| 16698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16699 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 16700 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 16701 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 16702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16704 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16705 | /* confdefs.h. */ |
| 16706 | _ACEOF |
| 16707 | cat confdefs.h >>conftest.$ac_ext |
| 16708 | cat >>conftest.$ac_ext <<_ACEOF |
| 16709 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16710 | |
| 16711 | # include <sys/types.h> |
| 16712 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16713 | int |
| 16714 | main () |
| 16715 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16716 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16717 | ; |
| 16718 | return 0; |
| 16719 | } |
| 16720 | _ACEOF |
| 16721 | rm -f conftest.$ac_objext |
| 16722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16723 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16724 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16726 | rm -f conftest.er1 |
| 16727 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16729 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16730 | { ac_try='test -z "$ac_c_werror_flag" |
| 16731 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16733 | (eval $ac_try) 2>&5 |
| 16734 | ac_status=$? |
| 16735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16736 | (exit $ac_status); }; } && |
| 16737 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16739 | (eval $ac_try) 2>&5 |
| 16740 | ac_status=$? |
| 16741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16742 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16743 | ac_cv_struct_sockaddr_storage=yes |
| 16744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16745 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16748 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16749 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16751 | fi |
| 16752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16753 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 16754 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16755 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16756 | |
| 16757 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16758 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16759 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16760 | |
| 16761 | fi |
| 16762 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16763 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16764 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16766 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 16767 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 16768 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 16769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16770 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16771 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16772 | /* confdefs.h. */ |
| 16773 | _ACEOF |
| 16774 | cat confdefs.h >>conftest.$ac_ext |
| 16775 | cat >>conftest.$ac_ext <<_ACEOF |
| 16776 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16777 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16778 | int |
| 16779 | main () |
| 16780 | { |
| 16781 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 16782 | test_array [0] = 0 |
| 16783 | |
| 16784 | ; |
| 16785 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16786 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16787 | _ACEOF |
| 16788 | rm -f conftest.$ac_objext |
| 16789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16790 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16791 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16793 | rm -f conftest.er1 |
| 16794 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16796 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16797 | { ac_try='test -z "$ac_c_werror_flag" |
| 16798 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16800 | (eval $ac_try) 2>&5 |
| 16801 | ac_status=$? |
| 16802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16803 | (exit $ac_status); }; } && |
| 16804 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16806 | (eval $ac_try) 2>&5 |
| 16807 | ac_status=$? |
| 16808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16809 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16810 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16811 | else |
| 16812 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16815 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16816 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16818 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16819 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 16820 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16821 | 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] | 16822 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16823 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16824 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16825 | |
| 16826 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16828 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 16829 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 16830 | if test "${ac_cv_c_const+set}" = set; then |
| 16831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16832 | else |
| 16833 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16834 | /* confdefs.h. */ |
| 16835 | _ACEOF |
| 16836 | cat confdefs.h >>conftest.$ac_ext |
| 16837 | cat >>conftest.$ac_ext <<_ACEOF |
| 16838 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16840 | int |
| 16841 | main () |
| 16842 | { |
| 16843 | /* FIXME: Include the comments suggested by Paul. */ |
| 16844 | #ifndef __cplusplus |
| 16845 | /* Ultrix mips cc rejects this. */ |
| 16846 | typedef int charset[2]; |
| 16847 | const charset x; |
| 16848 | /* SunOS 4.1.1 cc rejects this. */ |
| 16849 | char const *const *ccp; |
| 16850 | char **p; |
| 16851 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16852 | struct point {int x, y;}; |
| 16853 | static struct point const zero = {0,0}; |
| 16854 | /* AIX XL C 1.02.0.0 rejects this. |
| 16855 | It does not let you subtract one const X* pointer from another in |
| 16856 | an arm of an if-expression whose if-part is not a constant |
| 16857 | expression */ |
| 16858 | const char *g = "string"; |
| 16859 | ccp = &g + (g ? g-g : 0); |
| 16860 | /* HPUX 7.0 cc rejects these. */ |
| 16861 | ++ccp; |
| 16862 | p = (char**) ccp; |
| 16863 | ccp = (char const *const *) p; |
| 16864 | { /* SCO 3.2v4 cc rejects this. */ |
| 16865 | char *t; |
| 16866 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16868 | *t++ = 0; |
| 16869 | } |
| 16870 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 16871 | int x[] = {25, 17}; |
| 16872 | const int *foo = &x[0]; |
| 16873 | ++foo; |
| 16874 | } |
| 16875 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 16876 | typedef const int *iptr; |
| 16877 | iptr p = 0; |
| 16878 | ++p; |
| 16879 | } |
| 16880 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 16881 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 16882 | struct s { int j; const int *ap[3]; }; |
| 16883 | struct s *b; b->j = 5; |
| 16884 | } |
| 16885 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 16886 | const int foo = 10; |
| 16887 | } |
| 16888 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16890 | ; |
| 16891 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16892 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16893 | _ACEOF |
| 16894 | rm -f conftest.$ac_objext |
| 16895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16896 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16897 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16899 | rm -f conftest.er1 |
| 16900 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16902 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16903 | { ac_try='test -z "$ac_c_werror_flag" |
| 16904 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16906 | (eval $ac_try) 2>&5 |
| 16907 | ac_status=$? |
| 16908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16909 | (exit $ac_status); }; } && |
| 16910 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16912 | (eval $ac_try) 2>&5 |
| 16913 | ac_status=$? |
| 16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16915 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16916 | ac_cv_c_const=yes |
| 16917 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16918 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16921 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16922 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16924 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16925 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 16926 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16927 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16928 | |
| 16929 | cat >>confdefs.h <<\_ACEOF |
| 16930 | #define const |
| 16931 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16932 | |
| 16933 | fi |
| 16934 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16935 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16936 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16937 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 16938 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 16939 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16940 | /* confdefs.h. */ |
| 16941 | _ACEOF |
| 16942 | cat confdefs.h >>conftest.$ac_ext |
| 16943 | cat >>conftest.$ac_ext <<_ACEOF |
| 16944 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16945 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16946 | int |
| 16947 | main () |
| 16948 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16949 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16950 | ; |
| 16951 | return 0; |
| 16952 | } |
| 16953 | _ACEOF |
| 16954 | rm -f conftest.$ac_objext |
| 16955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16956 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16957 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16959 | rm -f conftest.er1 |
| 16960 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16962 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 16963 | { ac_try='test -z "$ac_c_werror_flag" |
| 16964 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16966 | (eval $ac_try) 2>&5 |
| 16967 | ac_status=$? |
| 16968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16969 | (exit $ac_status); }; } && |
| 16970 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16976 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16978 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16981 | |
| 16982 | cat >>confdefs.h <<\_ACEOF |
| 16983 | #define volatile |
| 16984 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16985 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16986 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16987 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16989 | echo "$as_me:$LINENO: result: $works" >&5 |
| 16990 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16991 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16992 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16993 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 16994 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 16995 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16996 | /* confdefs.h. */ |
| 16997 | _ACEOF |
| 16998 | cat confdefs.h >>conftest.$ac_ext |
| 16999 | cat >>conftest.$ac_ext <<_ACEOF |
| 17000 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 17001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17002 | int |
| 17003 | main () |
| 17004 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17005 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17006 | ; |
| 17007 | return 0; |
| 17008 | } |
| 17009 | _ACEOF |
| 17010 | rm -f conftest.$ac_objext |
| 17011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17012 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17013 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17015 | rm -f conftest.er1 |
| 17016 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17018 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17019 | { ac_try='test -z "$ac_c_werror_flag" |
| 17020 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17022 | (eval $ac_try) 2>&5 |
| 17023 | ac_status=$? |
| 17024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17025 | (exit $ac_status); }; } && |
| 17026 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17028 | (eval $ac_try) 2>&5 |
| 17029 | ac_status=$? |
| 17030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17031 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17032 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 17033 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17034 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17037 | |
| 17038 | cat >>confdefs.h <<\_ACEOF |
| 17039 | #define signed |
| 17040 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17041 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17042 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17043 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17045 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17046 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17047 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17048 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17049 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 17050 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 17051 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17052 | /* confdefs.h. */ |
| 17053 | _ACEOF |
| 17054 | cat confdefs.h >>conftest.$ac_ext |
| 17055 | cat >>conftest.$ac_ext <<_ACEOF |
| 17056 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17057 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17058 | int |
| 17059 | main () |
| 17060 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17061 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17062 | ; |
| 17063 | return 0; |
| 17064 | } |
| 17065 | _ACEOF |
| 17066 | rm -f conftest.$ac_objext |
| 17067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17068 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17069 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17071 | rm -f conftest.er1 |
| 17072 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17074 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17075 | { ac_try='test -z "$ac_c_werror_flag" |
| 17076 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17078 | (eval $ac_try) 2>&5 |
| 17079 | ac_status=$? |
| 17080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17081 | (exit $ac_status); }; } && |
| 17082 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17084 | (eval $ac_try) 2>&5 |
| 17085 | ac_status=$? |
| 17086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17087 | (exit $ac_status); }; }; then |
| 17088 | |
| 17089 | |
| 17090 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17091 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17092 | _ACEOF |
| 17093 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17094 | have_prototypes=yes |
| 17095 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17097 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17099 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17100 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17102 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 17103 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17104 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17105 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17106 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 17107 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 17108 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17109 | /* confdefs.h. */ |
| 17110 | _ACEOF |
| 17111 | cat confdefs.h >>conftest.$ac_ext |
| 17112 | cat >>conftest.$ac_ext <<_ACEOF |
| 17113 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17114 | |
| 17115 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17116 | int foo(int x, ...) { |
| 17117 | va_list va; |
| 17118 | va_start(va, x); |
| 17119 | va_arg(va, int); |
| 17120 | va_arg(va, char *); |
| 17121 | va_arg(va, double); |
| 17122 | return 0; |
| 17123 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17125 | int |
| 17126 | main () |
| 17127 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17128 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17129 | ; |
| 17130 | return 0; |
| 17131 | } |
| 17132 | _ACEOF |
| 17133 | rm -f conftest.$ac_objext |
| 17134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17135 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17136 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17138 | rm -f conftest.er1 |
| 17139 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17141 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17142 | { ac_try='test -z "$ac_c_werror_flag" |
| 17143 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17145 | (eval $ac_try) 2>&5 |
| 17146 | ac_status=$? |
| 17147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17148 | (exit $ac_status); }; } && |
| 17149 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17151 | (eval $ac_try) 2>&5 |
| 17152 | ac_status=$? |
| 17153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17154 | (exit $ac_status); }; }; then |
| 17155 | |
| 17156 | |
| 17157 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17158 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17159 | _ACEOF |
| 17160 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17161 | works=yes |
| 17162 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17164 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17166 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17167 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17169 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17170 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17171 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17172 | # check for socketpair |
| 17173 | echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 17174 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6 |
| 17175 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17176 | /* confdefs.h. */ |
| 17177 | _ACEOF |
| 17178 | cat confdefs.h >>conftest.$ac_ext |
| 17179 | cat >>conftest.$ac_ext <<_ACEOF |
| 17180 | /* end confdefs.h. */ |
| 17181 | |
| 17182 | #include <sys/types.h> |
| 17183 | #include <sys/socket.h> |
| 17184 | |
| 17185 | int |
| 17186 | main () |
| 17187 | { |
| 17188 | void *x=socketpair |
| 17189 | ; |
| 17190 | return 0; |
| 17191 | } |
| 17192 | _ACEOF |
| 17193 | rm -f conftest.$ac_objext |
| 17194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17195 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17196 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17198 | rm -f conftest.er1 |
| 17199 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17201 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17202 | { ac_try='test -z "$ac_c_werror_flag" |
| 17203 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17205 | (eval $ac_try) 2>&5 |
| 17206 | ac_status=$? |
| 17207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17208 | (exit $ac_status); }; } && |
| 17209 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17211 | (eval $ac_try) 2>&5 |
| 17212 | ac_status=$? |
| 17213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17214 | (exit $ac_status); }; }; then |
| 17215 | |
| 17216 | cat >>confdefs.h <<\_ACEOF |
| 17217 | #define HAVE_SOCKETPAIR 1 |
| 17218 | _ACEOF |
| 17219 | |
| 17220 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17221 | echo "${ECHO_T}yes" >&6 |
| 17222 | else |
| 17223 | echo "$as_me: failed program was:" >&5 |
| 17224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17225 | |
| 17226 | echo "$as_me:$LINENO: result: no" >&5 |
| 17227 | echo "${ECHO_T}no" >&6 |
| 17228 | |
| 17229 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17231 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17232 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17233 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 17234 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 17235 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17236 | /* confdefs.h. */ |
| 17237 | _ACEOF |
| 17238 | cat confdefs.h >>conftest.$ac_ext |
| 17239 | cat >>conftest.$ac_ext <<_ACEOF |
| 17240 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17241 | #include <sys/types.h> |
| 17242 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17243 | int |
| 17244 | main () |
| 17245 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17246 | struct sockaddr x; |
| 17247 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17248 | ; |
| 17249 | return 0; |
| 17250 | } |
| 17251 | _ACEOF |
| 17252 | rm -f conftest.$ac_objext |
| 17253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17254 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17255 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17257 | rm -f conftest.er1 |
| 17258 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17260 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17261 | { ac_try='test -z "$ac_c_werror_flag" |
| 17262 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17264 | (eval $ac_try) 2>&5 |
| 17265 | ac_status=$? |
| 17266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17267 | (exit $ac_status); }; } && |
| 17268 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17270 | (eval $ac_try) 2>&5 |
| 17271 | ac_status=$? |
| 17272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17273 | (exit $ac_status); }; }; then |
| 17274 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17275 | echo "${ECHO_T}yes" >&6 |
| 17276 | |
| 17277 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17278 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17279 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17280 | |
| 17281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17282 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17284 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17285 | echo "$as_me:$LINENO: result: no" >&5 |
| 17286 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17287 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17289 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17290 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17291 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 17292 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 17293 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17294 | /* confdefs.h. */ |
| 17295 | _ACEOF |
| 17296 | cat confdefs.h >>conftest.$ac_ext |
| 17297 | cat >>conftest.$ac_ext <<_ACEOF |
| 17298 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17299 | |
| 17300 | #ifdef HAVE_STDARG_PROTOTYPES |
| 17301 | #include <stdarg.h> |
| 17302 | #else |
| 17303 | #include <varargs.h> |
| 17304 | #endif |
| 17305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17306 | int |
| 17307 | main () |
| 17308 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17309 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17310 | ; |
| 17311 | return 0; |
| 17312 | } |
| 17313 | _ACEOF |
| 17314 | rm -f conftest.$ac_objext |
| 17315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17316 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17317 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17319 | rm -f conftest.er1 |
| 17320 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17322 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17323 | { ac_try='test -z "$ac_c_werror_flag" |
| 17324 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17326 | (eval $ac_try) 2>&5 |
| 17327 | ac_status=$? |
| 17328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17329 | (exit $ac_status); }; } && |
| 17330 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17332 | (eval $ac_try) 2>&5 |
| 17333 | ac_status=$? |
| 17334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17335 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17336 | : |
| 17337 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17338 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17340 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17341 | |
| 17342 | |
| 17343 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17344 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17345 | _ACEOF |
| 17346 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17347 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17348 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17349 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17351 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 17352 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17353 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17354 | # 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] | 17355 | |
| 17356 | |
| 17357 | |
| 17358 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 17359 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 17360 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 17361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17363 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17364 | /* confdefs.h. */ |
| 17365 | _ACEOF |
| 17366 | cat confdefs.h >>conftest.$ac_ext |
| 17367 | cat >>conftest.$ac_ext <<_ACEOF |
| 17368 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17369 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17370 | which can conflict with char gethostbyname_r (); below. |
| 17371 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17372 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17373 | including <limits.h> includes <sys/time.h> and causes problems |
| 17374 | checking for functions defined therein. */ |
| 17375 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17376 | # include <limits.h> |
| 17377 | #else |
| 17378 | # include <assert.h> |
| 17379 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17380 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17381 | #ifdef __cplusplus |
| 17382 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17383 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17384 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17385 | /* 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] | 17386 | builtin and then its argument prototype would still apply. */ |
| 17387 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17388 | /* The GNU C library defines this for functions which it implements |
| 17389 | to always fail with ENOSYS. Some functions are actually named |
| 17390 | something starting with __ and the normal name is an alias. */ |
| 17391 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 17392 | choke me |
| 17393 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17394 | char (*f) () = gethostbyname_r; |
| 17395 | #endif |
| 17396 | #ifdef __cplusplus |
| 17397 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17398 | #endif |
| 17399 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17400 | int |
| 17401 | main () |
| 17402 | { |
| 17403 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17404 | ; |
| 17405 | return 0; |
| 17406 | } |
| 17407 | _ACEOF |
| 17408 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17410 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17411 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17413 | rm -f conftest.er1 |
| 17414 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17416 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17417 | { ac_try='test -z "$ac_c_werror_flag" |
| 17418 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17420 | (eval $ac_try) 2>&5 |
| 17421 | ac_status=$? |
| 17422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17423 | (exit $ac_status); }; } && |
| 17424 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17426 | (eval $ac_try) 2>&5 |
| 17427 | ac_status=$? |
| 17428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17429 | (exit $ac_status); }; }; then |
| 17430 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17432 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17434 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17435 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17436 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17437 | rm -f conftest.err conftest.$ac_objext \ |
| 17438 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17439 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17440 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 17441 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 17442 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17444 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17445 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17446 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17447 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17448 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 17449 | 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] | 17450 | OLD_CFLAGS=$CFLAGS |
| 17451 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17452 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17453 | /* confdefs.h. */ |
| 17454 | _ACEOF |
| 17455 | cat confdefs.h >>conftest.$ac_ext |
| 17456 | cat >>conftest.$ac_ext <<_ACEOF |
| 17457 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17458 | |
| 17459 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17461 | int |
| 17462 | main () |
| 17463 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17464 | |
| 17465 | char *name; |
| 17466 | struct hostent *he, *res; |
| 17467 | char buffer[2048]; |
| 17468 | int buflen = 2048; |
| 17469 | int h_errnop; |
| 17470 | |
| 17471 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17472 | |
| 17473 | ; |
| 17474 | return 0; |
| 17475 | } |
| 17476 | _ACEOF |
| 17477 | rm -f conftest.$ac_objext |
| 17478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17479 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17480 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17482 | rm -f conftest.er1 |
| 17483 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17485 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17486 | { ac_try='test -z "$ac_c_werror_flag" |
| 17487 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17489 | (eval $ac_try) 2>&5 |
| 17490 | ac_status=$? |
| 17491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17492 | (exit $ac_status); }; } && |
| 17493 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17495 | (eval $ac_try) 2>&5 |
| 17496 | ac_status=$? |
| 17497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17498 | (exit $ac_status); }; }; then |
| 17499 | |
| 17500 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17501 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17502 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17504 | |
| 17505 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17506 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17507 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17509 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17510 | echo "${ECHO_T}yes" >&6 |
| 17511 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17512 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17513 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17516 | |
| 17517 | echo "$as_me:$LINENO: result: no" >&5 |
| 17518 | echo "${ECHO_T}no" >&6 |
| 17519 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 17520 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 17521 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17522 | /* confdefs.h. */ |
| 17523 | _ACEOF |
| 17524 | cat confdefs.h >>conftest.$ac_ext |
| 17525 | cat >>conftest.$ac_ext <<_ACEOF |
| 17526 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17527 | |
| 17528 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17529 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17530 | int |
| 17531 | main () |
| 17532 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17533 | |
| 17534 | char *name; |
| 17535 | struct hostent *he; |
| 17536 | char buffer[2048]; |
| 17537 | int buflen = 2048; |
| 17538 | int h_errnop; |
| 17539 | |
| 17540 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17541 | |
| 17542 | ; |
| 17543 | return 0; |
| 17544 | } |
| 17545 | _ACEOF |
| 17546 | rm -f conftest.$ac_objext |
| 17547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17548 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17549 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17551 | rm -f conftest.er1 |
| 17552 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17554 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17555 | { ac_try='test -z "$ac_c_werror_flag" |
| 17556 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17558 | (eval $ac_try) 2>&5 |
| 17559 | ac_status=$? |
| 17560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17561 | (exit $ac_status); }; } && |
| 17562 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17564 | (eval $ac_try) 2>&5 |
| 17565 | ac_status=$? |
| 17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17567 | (exit $ac_status); }; }; then |
| 17568 | |
| 17569 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17570 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17571 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17573 | |
| 17574 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17575 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17576 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17577 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17578 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17579 | echo "${ECHO_T}yes" >&6 |
| 17580 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17582 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17585 | |
| 17586 | echo "$as_me:$LINENO: result: no" >&5 |
| 17587 | echo "${ECHO_T}no" >&6 |
| 17588 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 17589 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 17590 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17591 | /* confdefs.h. */ |
| 17592 | _ACEOF |
| 17593 | cat confdefs.h >>conftest.$ac_ext |
| 17594 | cat >>conftest.$ac_ext <<_ACEOF |
| 17595 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17596 | |
| 17597 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17599 | int |
| 17600 | main () |
| 17601 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17602 | |
| 17603 | char *name; |
| 17604 | struct hostent *he; |
| 17605 | struct hostent_data data; |
| 17606 | |
| 17607 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17608 | |
| 17609 | ; |
| 17610 | return 0; |
| 17611 | } |
| 17612 | _ACEOF |
| 17613 | rm -f conftest.$ac_objext |
| 17614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17615 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17618 | rm -f conftest.er1 |
| 17619 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17621 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17622 | { ac_try='test -z "$ac_c_werror_flag" |
| 17623 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17625 | (eval $ac_try) 2>&5 |
| 17626 | ac_status=$? |
| 17627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17628 | (exit $ac_status); }; } && |
| 17629 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17631 | (eval $ac_try) 2>&5 |
| 17632 | ac_status=$? |
| 17633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17634 | (exit $ac_status); }; }; then |
| 17635 | |
| 17636 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17637 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17638 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17640 | |
| 17641 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17642 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17643 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17645 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17646 | echo "${ECHO_T}yes" >&6 |
| 17647 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17649 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17652 | |
| 17653 | echo "$as_me:$LINENO: result: no" >&5 |
| 17654 | echo "${ECHO_T}no" >&6 |
| 17655 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17656 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17658 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +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 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17662 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17664 | CFLAGS=$OLD_CFLAGS |
| 17665 | |
| 17666 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17668 | |
| 17669 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17670 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17671 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17672 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17673 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17674 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17676 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17677 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17678 | /* confdefs.h. */ |
| 17679 | _ACEOF |
| 17680 | cat confdefs.h >>conftest.$ac_ext |
| 17681 | cat >>conftest.$ac_ext <<_ACEOF |
| 17682 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17683 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17684 | which can conflict with char $ac_func (); below. |
| 17685 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17686 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17687 | including <limits.h> includes <sys/time.h> and causes problems |
| 17688 | checking for functions defined therein. */ |
| 17689 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17690 | # include <limits.h> |
| 17691 | #else |
| 17692 | # include <assert.h> |
| 17693 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17694 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17695 | #ifdef __cplusplus |
| 17696 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17697 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17698 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17699 | /* 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] | 17700 | builtin and then its argument prototype would still apply. */ |
| 17701 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17702 | /* The GNU C library defines this for functions which it implements |
| 17703 | to always fail with ENOSYS. Some functions are actually named |
| 17704 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17705 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17706 | choke me |
| 17707 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17708 | char (*f) () = $ac_func; |
| 17709 | #endif |
| 17710 | #ifdef __cplusplus |
| 17711 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17712 | #endif |
| 17713 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17714 | int |
| 17715 | main () |
| 17716 | { |
| 17717 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17718 | ; |
| 17719 | return 0; |
| 17720 | } |
| 17721 | _ACEOF |
| 17722 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17724 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17725 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17727 | rm -f conftest.er1 |
| 17728 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17730 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17731 | { ac_try='test -z "$ac_c_werror_flag" |
| 17732 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17734 | (eval $ac_try) 2>&5 |
| 17735 | ac_status=$? |
| 17736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17737 | (exit $ac_status); }; } && |
| 17738 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17740 | (eval $ac_try) 2>&5 |
| 17741 | ac_status=$? |
| 17742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17743 | (exit $ac_status); }; }; then |
| 17744 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17746 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17749 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17750 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17751 | rm -f conftest.err conftest.$ac_objext \ |
| 17752 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17753 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17755 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17756 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17757 | cat >>confdefs.h <<_ACEOF |
| 17758 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17759 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17760 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17761 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17762 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17763 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17764 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17765 | fi |
| 17766 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17767 | |
| 17768 | |
| 17769 | |
| 17770 | |
| 17771 | |
| 17772 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17773 | # checks for system services |
| 17774 | # (none yet) |
| 17775 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17776 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17777 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 17778 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 17779 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 17780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17782 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17783 | /* confdefs.h. */ |
| 17784 | _ACEOF |
| 17785 | cat confdefs.h >>conftest.$ac_ext |
| 17786 | cat >>conftest.$ac_ext <<_ACEOF |
| 17787 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17788 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17789 | which can conflict with char __fpu_control (); below. |
| 17790 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17791 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17792 | including <limits.h> includes <sys/time.h> and causes problems |
| 17793 | checking for functions defined therein. */ |
| 17794 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17795 | # include <limits.h> |
| 17796 | #else |
| 17797 | # include <assert.h> |
| 17798 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17799 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17800 | #ifdef __cplusplus |
| 17801 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17802 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17803 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17804 | /* 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] | 17805 | builtin and then its argument prototype would still apply. */ |
| 17806 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17807 | /* The GNU C library defines this for functions which it implements |
| 17808 | to always fail with ENOSYS. Some functions are actually named |
| 17809 | something starting with __ and the normal name is an alias. */ |
| 17810 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 17811 | choke me |
| 17812 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17813 | char (*f) () = __fpu_control; |
| 17814 | #endif |
| 17815 | #ifdef __cplusplus |
| 17816 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17817 | #endif |
| 17818 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17819 | int |
| 17820 | main () |
| 17821 | { |
| 17822 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17823 | ; |
| 17824 | return 0; |
| 17825 | } |
| 17826 | _ACEOF |
| 17827 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17829 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17830 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17832 | rm -f conftest.er1 |
| 17833 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17835 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17836 | { ac_try='test -z "$ac_c_werror_flag" |
| 17837 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17839 | (eval $ac_try) 2>&5 |
| 17840 | ac_status=$? |
| 17841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17842 | (exit $ac_status); }; } && |
| 17843 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17845 | (eval $ac_try) 2>&5 |
| 17846 | ac_status=$? |
| 17847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17848 | (exit $ac_status); }; }; then |
| 17849 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17851 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17854 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17855 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17856 | rm -f conftest.err conftest.$ac_objext \ |
| 17857 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17858 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17859 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 17860 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 17861 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17862 | : |
| 17863 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17864 | |
| 17865 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 17866 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 17867 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 17868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17870 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17871 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17872 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17873 | /* confdefs.h. */ |
| 17874 | _ACEOF |
| 17875 | cat confdefs.h >>conftest.$ac_ext |
| 17876 | cat >>conftest.$ac_ext <<_ACEOF |
| 17877 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17878 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17879 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17880 | #ifdef __cplusplus |
| 17881 | extern "C" |
| 17882 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17883 | /* 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] | 17884 | builtin and then its argument prototype would still apply. */ |
| 17885 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17886 | int |
| 17887 | main () |
| 17888 | { |
| 17889 | __fpu_control (); |
| 17890 | ; |
| 17891 | return 0; |
| 17892 | } |
| 17893 | _ACEOF |
| 17894 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17896 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17897 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17899 | rm -f conftest.er1 |
| 17900 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17902 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 17903 | { ac_try='test -z "$ac_c_werror_flag" |
| 17904 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17906 | (eval $ac_try) 2>&5 |
| 17907 | ac_status=$? |
| 17908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17909 | (exit $ac_status); }; } && |
| 17910 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17912 | (eval $ac_try) 2>&5 |
| 17913 | ac_status=$? |
| 17914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17915 | (exit $ac_status); }; }; then |
| 17916 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17917 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17918 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17921 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17922 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17923 | rm -f conftest.err conftest.$ac_objext \ |
| 17924 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17925 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17926 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17927 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 17928 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 17929 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 17930 | cat >>confdefs.h <<_ACEOF |
| 17931 | #define HAVE_LIBIEEE 1 |
| 17932 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17933 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17934 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17935 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17936 | fi |
| 17937 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17938 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17939 | fi |
| 17940 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17941 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17942 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17943 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 17944 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 17945 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17946 | # Check whether --with-fpectl or --without-fpectl was given. |
| 17947 | if test "${with_fpectl+set}" = set; then |
| 17948 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17949 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17950 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17951 | then |
| 17952 | |
| 17953 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17954 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17955 | _ACEOF |
| 17956 | |
| 17957 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17958 | echo "${ECHO_T}yes" >&6 |
| 17959 | else echo "$as_me:$LINENO: result: no" >&5 |
| 17960 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17961 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17962 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17963 | echo "$as_me:$LINENO: result: no" >&5 |
| 17964 | echo "${ECHO_T}no" >&6 |
| 17965 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17966 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17967 | # check for --with-libm=... |
| 17968 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17969 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 17970 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 17971 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 17972 | *) LIBM=-lm |
| 17973 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17974 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 17975 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 17976 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17977 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 17978 | if test "${with_libm+set}" = set; then |
| 17979 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17980 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17981 | if test "$withval" = no |
| 17982 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17983 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 17984 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17985 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17986 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17987 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 17988 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 17989 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 17990 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 17991 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17992 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 17993 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17994 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 17995 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 17996 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17997 | |
| 17998 | # check for --with-libc=... |
| 17999 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18000 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 18001 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 18002 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18003 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18004 | if test "${with_libc+set}" = set; then |
| 18005 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18006 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18007 | if test "$withval" = no |
| 18008 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18009 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 18010 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18011 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18012 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18013 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 18014 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 18015 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 18016 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 18017 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18018 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18020 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 18021 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 18022 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18023 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18024 | # check for hypot() in math library |
| 18025 | LIBS_SAVE=$LIBS |
| 18026 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18027 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18028 | for ac_func in hypot |
| 18029 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18031 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18033 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18037 | /* confdefs.h. */ |
| 18038 | _ACEOF |
| 18039 | cat confdefs.h >>conftest.$ac_ext |
| 18040 | cat >>conftest.$ac_ext <<_ACEOF |
| 18041 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18042 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18043 | which can conflict with char $ac_func (); below. |
| 18044 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 18045 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 18046 | including <limits.h> includes <sys/time.h> and causes problems |
| 18047 | checking for functions defined therein. */ |
| 18048 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18049 | # include <limits.h> |
| 18050 | #else |
| 18051 | # include <assert.h> |
| 18052 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18053 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18054 | #ifdef __cplusplus |
| 18055 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18056 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18057 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18058 | /* 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] | 18059 | builtin and then its argument prototype would still apply. */ |
| 18060 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18061 | /* The GNU C library defines this for functions which it implements |
| 18062 | to always fail with ENOSYS. Some functions are actually named |
| 18063 | something starting with __ and the normal name is an alias. */ |
| 18064 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18065 | choke me |
| 18066 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18067 | char (*f) () = $ac_func; |
| 18068 | #endif |
| 18069 | #ifdef __cplusplus |
| 18070 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18071 | #endif |
| 18072 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18073 | int |
| 18074 | main () |
| 18075 | { |
| 18076 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18077 | ; |
| 18078 | return 0; |
| 18079 | } |
| 18080 | _ACEOF |
| 18081 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18083 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18084 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18086 | rm -f conftest.er1 |
| 18087 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18089 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 18090 | { ac_try='test -z "$ac_c_werror_flag" |
| 18091 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18093 | (eval $ac_try) 2>&5 |
| 18094 | ac_status=$? |
| 18095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18096 | (exit $ac_status); }; } && |
| 18097 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18099 | (eval $ac_try) 2>&5 |
| 18100 | ac_status=$? |
| 18101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18102 | (exit $ac_status); }; }; then |
| 18103 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18105 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18107 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18108 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18109 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18110 | rm -f conftest.err conftest.$ac_objext \ |
| 18111 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18112 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18114 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18115 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18116 | cat >>confdefs.h <<_ACEOF |
| 18117 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18118 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18119 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18120 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18121 | case $LIBOBJS in |
| 18122 | "$ac_func.$ac_objext" | \ |
| 18123 | *" $ac_func.$ac_objext" | \ |
| 18124 | "$ac_func.$ac_objext "* | \ |
| 18125 | *" $ac_func.$ac_objext "* ) ;; |
| 18126 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 18127 | esac |
| 18128 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18129 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18130 | done |
| 18131 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18132 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18133 | LIBS=$LIBS_SAVE |
| 18134 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18135 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18136 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18137 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18138 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18139 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18141 | fi |
| 18142 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18143 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18144 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18145 | # Is the header compilable? |
| 18146 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 18147 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 18148 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18149 | /* confdefs.h. */ |
| 18150 | _ACEOF |
| 18151 | cat confdefs.h >>conftest.$ac_ext |
| 18152 | cat >>conftest.$ac_ext <<_ACEOF |
| 18153 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18154 | $ac_includes_default |
| 18155 | #include <wchar.h> |
| 18156 | _ACEOF |
| 18157 | rm -f conftest.$ac_objext |
| 18158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18159 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18160 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18162 | rm -f conftest.er1 |
| 18163 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18165 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 18166 | { ac_try='test -z "$ac_c_werror_flag" |
| 18167 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18169 | (eval $ac_try) 2>&5 |
| 18170 | ac_status=$? |
| 18171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18172 | (exit $ac_status); }; } && |
| 18173 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18175 | (eval $ac_try) 2>&5 |
| 18176 | ac_status=$? |
| 18177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18178 | (exit $ac_status); }; }; then |
| 18179 | ac_header_compiler=yes |
| 18180 | else |
| 18181 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18184 | ac_header_compiler=no |
| 18185 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18187 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18188 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 18189 | |
| 18190 | # Is the header present? |
| 18191 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 18192 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 18193 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18194 | /* confdefs.h. */ |
| 18195 | _ACEOF |
| 18196 | cat confdefs.h >>conftest.$ac_ext |
| 18197 | cat >>conftest.$ac_ext <<_ACEOF |
| 18198 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18199 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18200 | _ACEOF |
| 18201 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18202 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18203 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18204 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18205 | rm -f conftest.er1 |
| 18206 | cat conftest.err >&5 |
| 18207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18208 | (exit $ac_status); } >/dev/null; then |
| 18209 | if test -s conftest.err; then |
| 18210 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18211 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18212 | else |
| 18213 | ac_cpp_err= |
| 18214 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18215 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18216 | ac_cpp_err=yes |
| 18217 | fi |
| 18218 | if test -z "$ac_cpp_err"; then |
| 18219 | ac_header_preproc=yes |
| 18220 | else |
| 18221 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18224 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18225 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18226 | rm -f conftest.err conftest.$ac_ext |
| 18227 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 18228 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 18229 | |
| 18230 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18231 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 18232 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18233 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18234 | 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] | 18235 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 18236 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 18237 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18238 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18239 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18240 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 18241 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18242 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 18243 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 18244 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 18245 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 18246 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 18247 | 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] | 18248 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 18249 | 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] | 18250 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 18251 | 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] | 18252 | ( |
| 18253 | cat <<\_ASBOX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18254 | ## --------------------------------- ## |
| 18255 | ## Report this to the python lists. ## |
| 18256 | ## --------------------------------- ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18257 | _ASBOX |
| 18258 | ) | |
| 18259 | sed "s/^/$as_me: WARNING: /" >&2 |
| 18260 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18261 | esac |
| 18262 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18263 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18264 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18266 | else |
| 18267 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18268 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18269 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18270 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 18271 | |
| 18272 | fi |
| 18273 | if test $ac_cv_header_wchar_h = yes; then |
| 18274 | |
| 18275 | |
| 18276 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18277 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18278 | _ACEOF |
| 18279 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18280 | wchar_h="yes" |
| 18281 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18283 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18284 | |
| 18285 | fi |
| 18286 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18287 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18288 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18289 | # determine wchar_t size |
| 18290 | if test "$wchar_h" = yes |
| 18291 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18292 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 18293 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 18294 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 18295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18296 | else |
| 18297 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18298 | /* confdefs.h. */ |
| 18299 | _ACEOF |
| 18300 | cat confdefs.h >>conftest.$ac_ext |
| 18301 | cat >>conftest.$ac_ext <<_ACEOF |
| 18302 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18303 | #include <wchar.h> |
| 18304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18305 | int |
| 18306 | main () |
| 18307 | { |
| 18308 | if ((wchar_t *) 0) |
| 18309 | return 0; |
| 18310 | if (sizeof (wchar_t)) |
| 18311 | return 0; |
| 18312 | ; |
| 18313 | return 0; |
| 18314 | } |
| 18315 | _ACEOF |
| 18316 | rm -f conftest.$ac_objext |
| 18317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18318 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18319 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18321 | rm -f conftest.er1 |
| 18322 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18324 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 18325 | { ac_try='test -z "$ac_c_werror_flag" |
| 18326 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18328 | (eval $ac_try) 2>&5 |
| 18329 | ac_status=$? |
| 18330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18331 | (exit $ac_status); }; } && |
| 18332 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18334 | (eval $ac_try) 2>&5 |
| 18335 | ac_status=$? |
| 18336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18337 | (exit $ac_status); }; }; then |
| 18338 | ac_cv_type_wchar_t=yes |
| 18339 | else |
| 18340 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18343 | ac_cv_type_wchar_t=no |
| 18344 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18346 | fi |
| 18347 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 18348 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 18349 | |
| 18350 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 18351 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 18352 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 18353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18354 | else |
| 18355 | if test "$ac_cv_type_wchar_t" = yes; then |
| 18356 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 18357 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 18358 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 18359 | # This bug is HP SR number 8606223364. |
| 18360 | if test "$cross_compiling" = yes; then |
| 18361 | # Depending upon the size, compute the lo and hi bounds. |
| 18362 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18363 | /* confdefs.h. */ |
| 18364 | _ACEOF |
| 18365 | cat confdefs.h >>conftest.$ac_ext |
| 18366 | cat >>conftest.$ac_ext <<_ACEOF |
| 18367 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18368 | #include <wchar.h> |
| 18369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18370 | int |
| 18371 | main () |
| 18372 | { |
| 18373 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 18374 | test_array [0] = 0 |
| 18375 | |
| 18376 | ; |
| 18377 | return 0; |
| 18378 | } |
| 18379 | _ACEOF |
| 18380 | rm -f conftest.$ac_objext |
| 18381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18382 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18383 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18385 | rm -f conftest.er1 |
| 18386 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18388 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 18389 | { ac_try='test -z "$ac_c_werror_flag" |
| 18390 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18392 | (eval $ac_try) 2>&5 |
| 18393 | ac_status=$? |
| 18394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18395 | (exit $ac_status); }; } && |
| 18396 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18398 | (eval $ac_try) 2>&5 |
| 18399 | ac_status=$? |
| 18400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18401 | (exit $ac_status); }; }; then |
| 18402 | ac_lo=0 ac_mid=0 |
| 18403 | while :; do |
| 18404 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18405 | /* confdefs.h. */ |
| 18406 | _ACEOF |
| 18407 | cat confdefs.h >>conftest.$ac_ext |
| 18408 | cat >>conftest.$ac_ext <<_ACEOF |
| 18409 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18410 | #include <wchar.h> |
| 18411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18412 | int |
| 18413 | main () |
| 18414 | { |
| 18415 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 18416 | test_array [0] = 0 |
| 18417 | |
| 18418 | ; |
| 18419 | return 0; |
| 18420 | } |
| 18421 | _ACEOF |
| 18422 | rm -f conftest.$ac_objext |
| 18423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18424 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18425 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18427 | rm -f conftest.er1 |
| 18428 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18430 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 18431 | { ac_try='test -z "$ac_c_werror_flag" |
| 18432 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18434 | (eval $ac_try) 2>&5 |
| 18435 | ac_status=$? |
| 18436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18437 | (exit $ac_status); }; } && |
| 18438 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18440 | (eval $ac_try) 2>&5 |
| 18441 | ac_status=$? |
| 18442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18443 | (exit $ac_status); }; }; then |
| 18444 | ac_hi=$ac_mid; break |
| 18445 | else |
| 18446 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18448 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18449 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18450 | if test $ac_lo -le $ac_mid; then |
| 18451 | ac_lo= ac_hi= |
| 18452 | break |
| 18453 | fi |
| 18454 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18455 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18457 | done |
| 18458 | else |
| 18459 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18462 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18463 | /* confdefs.h. */ |
| 18464 | _ACEOF |
| 18465 | cat confdefs.h >>conftest.$ac_ext |
| 18466 | cat >>conftest.$ac_ext <<_ACEOF |
| 18467 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18468 | #include <wchar.h> |
| 18469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18470 | int |
| 18471 | main () |
| 18472 | { |
| 18473 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 18474 | test_array [0] = 0 |
| 18475 | |
| 18476 | ; |
| 18477 | return 0; |
| 18478 | } |
| 18479 | _ACEOF |
| 18480 | rm -f conftest.$ac_objext |
| 18481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18482 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18483 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18485 | rm -f conftest.er1 |
| 18486 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18488 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 18489 | { ac_try='test -z "$ac_c_werror_flag" |
| 18490 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18492 | (eval $ac_try) 2>&5 |
| 18493 | ac_status=$? |
| 18494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18495 | (exit $ac_status); }; } && |
| 18496 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18498 | (eval $ac_try) 2>&5 |
| 18499 | ac_status=$? |
| 18500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18501 | (exit $ac_status); }; }; then |
| 18502 | ac_hi=-1 ac_mid=-1 |
| 18503 | while :; do |
| 18504 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18505 | /* confdefs.h. */ |
| 18506 | _ACEOF |
| 18507 | cat confdefs.h >>conftest.$ac_ext |
| 18508 | cat >>conftest.$ac_ext <<_ACEOF |
| 18509 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18510 | #include <wchar.h> |
| 18511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18512 | int |
| 18513 | main () |
| 18514 | { |
| 18515 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 18516 | test_array [0] = 0 |
| 18517 | |
| 18518 | ; |
| 18519 | return 0; |
| 18520 | } |
| 18521 | _ACEOF |
| 18522 | rm -f conftest.$ac_objext |
| 18523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18524 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18525 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18527 | rm -f conftest.er1 |
| 18528 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18530 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 18531 | { ac_try='test -z "$ac_c_werror_flag" |
| 18532 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18534 | (eval $ac_try) 2>&5 |
| 18535 | ac_status=$? |
| 18536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18537 | (exit $ac_status); }; } && |
| 18538 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18540 | (eval $ac_try) 2>&5 |
| 18541 | ac_status=$? |
| 18542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18543 | (exit $ac_status); }; }; then |
| 18544 | ac_lo=$ac_mid; break |
| 18545 | else |
| 18546 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18549 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18550 | if test $ac_mid -le $ac_hi; then |
| 18551 | ac_lo= ac_hi= |
| 18552 | break |
| 18553 | fi |
| 18554 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18555 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18557 | done |
| 18558 | else |
| 18559 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18562 | ac_lo= ac_hi= |
| 18563 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18565 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18567 | # Binary search between lo and hi bounds. |
| 18568 | while test "x$ac_lo" != "x$ac_hi"; do |
| 18569 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 18570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18571 | /* confdefs.h. */ |
| 18572 | _ACEOF |
| 18573 | cat confdefs.h >>conftest.$ac_ext |
| 18574 | cat >>conftest.$ac_ext <<_ACEOF |
| 18575 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18576 | #include <wchar.h> |
| 18577 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18578 | int |
| 18579 | main () |
| 18580 | { |
| 18581 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 18582 | test_array [0] = 0 |
| 18583 | |
| 18584 | ; |
| 18585 | return 0; |
| 18586 | } |
| 18587 | _ACEOF |
| 18588 | rm -f conftest.$ac_objext |
| 18589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18590 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18591 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18593 | rm -f conftest.er1 |
| 18594 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18596 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 18597 | { ac_try='test -z "$ac_c_werror_flag" |
| 18598 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18600 | (eval $ac_try) 2>&5 |
| 18601 | ac_status=$? |
| 18602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18603 | (exit $ac_status); }; } && |
| 18604 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18606 | (eval $ac_try) 2>&5 |
| 18607 | ac_status=$? |
| 18608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18609 | (exit $ac_status); }; }; then |
| 18610 | ac_hi=$ac_mid |
| 18611 | else |
| 18612 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18615 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 18616 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18618 | done |
| 18619 | case $ac_lo in |
| 18620 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18621 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 18622 | See \`config.log' for more details." >&5 |
| 18623 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 18624 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18625 | { (exit 1); exit 1; }; } ;; |
| 18626 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18627 | else |
| 18628 | if test "$cross_compiling" = yes; then |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 18629 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 18630 | See \`config.log' for more details." >&5 |
| 18631 | echo "$as_me: error: cannot run test program while cross compiling |
| 18632 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18633 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18635 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18636 | /* confdefs.h. */ |
| 18637 | _ACEOF |
| 18638 | cat confdefs.h >>conftest.$ac_ext |
| 18639 | cat >>conftest.$ac_ext <<_ACEOF |
| 18640 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18641 | #include <wchar.h> |
| 18642 | |
| 18643 | long longval () { return (long) (sizeof (wchar_t)); } |
| 18644 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18645 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18646 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18647 | int |
| 18648 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18649 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18650 | |
| 18651 | FILE *f = fopen ("conftest.val", "w"); |
| 18652 | if (! f) |
| 18653 | exit (1); |
| 18654 | if (((long) (sizeof (wchar_t))) < 0) |
| 18655 | { |
| 18656 | long i = longval (); |
| 18657 | if (i != ((long) (sizeof (wchar_t)))) |
| 18658 | exit (1); |
| 18659 | fprintf (f, "%ld\n", i); |
| 18660 | } |
| 18661 | else |
| 18662 | { |
| 18663 | unsigned long i = ulongval (); |
| 18664 | if (i != ((long) (sizeof (wchar_t)))) |
| 18665 | exit (1); |
| 18666 | fprintf (f, "%lu\n", i); |
| 18667 | } |
| 18668 | exit (ferror (f) || fclose (f) != 0); |
| 18669 | |
| 18670 | ; |
| 18671 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18672 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18673 | _ACEOF |
| 18674 | rm -f conftest$ac_exeext |
| 18675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18676 | (eval $ac_link) 2>&5 |
| 18677 | ac_status=$? |
| 18678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18679 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18681 | (eval $ac_try) 2>&5 |
| 18682 | ac_status=$? |
| 18683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18684 | (exit $ac_status); }; }; then |
| 18685 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18687 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18688 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18691 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18692 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 18693 | See \`config.log' for more details." >&5 |
| 18694 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 18695 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18696 | { (exit 1); exit 1; }; } |
| 18697 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18698 | 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] | 18699 | fi |
| 18700 | fi |
| 18701 | rm -f conftest.val |
| 18702 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18703 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18704 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18705 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18706 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 18707 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 18708 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18709 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18710 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18711 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18712 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18713 | fi |
| 18714 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18715 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 18716 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 18717 | have_ucs4_tcl=no |
| 18718 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18719 | /* confdefs.h. */ |
| 18720 | _ACEOF |
| 18721 | cat confdefs.h >>conftest.$ac_ext |
| 18722 | cat >>conftest.$ac_ext <<_ACEOF |
| 18723 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18724 | |
| 18725 | #include <tcl.h> |
| 18726 | #if TCL_UTF_MAX != 6 |
| 18727 | # error "NOT UCS4_TCL" |
| 18728 | #endif |
| 18729 | int |
| 18730 | main () |
| 18731 | { |
| 18732 | |
| 18733 | ; |
| 18734 | return 0; |
| 18735 | } |
| 18736 | _ACEOF |
| 18737 | rm -f conftest.$ac_objext |
| 18738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18739 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18740 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18742 | rm -f conftest.er1 |
| 18743 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18745 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 18746 | { ac_try='test -z "$ac_c_werror_flag" |
| 18747 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18749 | (eval $ac_try) 2>&5 |
| 18750 | ac_status=$? |
| 18751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18752 | (exit $ac_status); }; } && |
| 18753 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18755 | (eval $ac_try) 2>&5 |
| 18756 | ac_status=$? |
| 18757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18758 | (exit $ac_status); }; }; then |
| 18759 | |
| 18760 | |
| 18761 | cat >>confdefs.h <<\_ACEOF |
| 18762 | #define HAVE_UCS4_TCL 1 |
| 18763 | _ACEOF |
| 18764 | |
| 18765 | have_ucs4_tcl=yes |
| 18766 | |
| 18767 | else |
| 18768 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18770 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18771 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18773 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 18774 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 18775 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18776 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18777 | if test "$wchar_h" = yes |
| 18778 | then |
| 18779 | # check whether wchar_t is signed or not |
| 18780 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 18781 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 18782 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 18783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18784 | else |
| 18785 | |
| 18786 | if test "$cross_compiling" = yes; then |
| 18787 | ac_cv_wchar_t_signed=yes |
| 18788 | else |
| 18789 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18790 | /* confdefs.h. */ |
| 18791 | _ACEOF |
| 18792 | cat confdefs.h >>conftest.$ac_ext |
| 18793 | cat >>conftest.$ac_ext <<_ACEOF |
| 18794 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18795 | |
| 18796 | #include <wchar.h> |
| 18797 | int main() |
| 18798 | { |
| 18799 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 18800 | } |
| 18801 | |
| 18802 | _ACEOF |
| 18803 | rm -f conftest$ac_exeext |
| 18804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18805 | (eval $ac_link) 2>&5 |
| 18806 | ac_status=$? |
| 18807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18808 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18810 | (eval $ac_try) 2>&5 |
| 18811 | ac_status=$? |
| 18812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18813 | (exit $ac_status); }; }; then |
| 18814 | ac_cv_wchar_t_signed=yes |
| 18815 | else |
| 18816 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18817 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18819 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18820 | ( exit $ac_status ) |
| 18821 | ac_cv_wchar_t_signed=no |
| 18822 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18823 | 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] | 18824 | fi |
| 18825 | fi |
| 18826 | |
| 18827 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 18828 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 18829 | fi |
| 18830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18831 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 18832 | 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] | 18833 | # Check whether --enable-unicode or --disable-unicode was given. |
| 18834 | if test "${enable_unicode+set}" = set; then |
| 18835 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18836 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18837 | else |
| 18838 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18839 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18840 | |
| 18841 | if test $enable_unicode = yes |
| 18842 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 18843 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18844 | case "$have_ucs4_tcl" in |
| 18845 | yes) enable_unicode="ucs4" |
| 18846 | ;; |
| 18847 | *) enable_unicode="ucs2" |
| 18848 | ;; |
| 18849 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18850 | fi |
| 18851 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 18852 | |
| 18853 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18854 | case "$enable_unicode" in |
| 18855 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18856 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18857 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18858 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18859 | |
| 18860 | ;; |
| 18861 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18862 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18863 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18864 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18865 | |
| 18866 | ;; |
| 18867 | esac |
| 18868 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18870 | |
| 18871 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 18872 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18873 | if test "$enable_unicode" = "no" |
| 18874 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 18875 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18876 | echo "$as_me:$LINENO: result: not used" >&5 |
| 18877 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18878 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 18879 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18880 | |
| 18881 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18882 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18883 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18884 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18885 | |
| 18886 | # wchar_t is only usable if it maps to an unsigned type |
| 18887 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 18888 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18889 | then |
| 18890 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18892 | cat >>confdefs.h <<\_ACEOF |
| 18893 | #define HAVE_USABLE_WCHAR_T 1 |
| 18894 | _ACEOF |
| 18895 | |
| 18896 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18897 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18898 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18899 | |
| 18900 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 18901 | then |
| 18902 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18903 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18904 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18905 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18906 | |
| 18907 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 18908 | then |
| 18909 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18910 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18911 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18912 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18913 | |
| 18914 | else |
| 18915 | PY_UNICODE_TYPE="no type found" |
| 18916 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18917 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 18918 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18919 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18920 | |
| 18921 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18922 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 18923 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 18924 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 18925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18927 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 18928 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18929 | /* confdefs.h. */ |
| 18930 | _ACEOF |
| 18931 | cat confdefs.h >>conftest.$ac_ext |
| 18932 | cat >>conftest.$ac_ext <<_ACEOF |
| 18933 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18934 | #include <sys/types.h> |
| 18935 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18937 | int |
| 18938 | main () |
| 18939 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18940 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 18941 | bogus endian macros |
| 18942 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18943 | |
| 18944 | ; |
| 18945 | return 0; |
| 18946 | } |
| 18947 | _ACEOF |
| 18948 | rm -f conftest.$ac_objext |
| 18949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18950 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18951 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18953 | rm -f conftest.er1 |
| 18954 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18956 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 18957 | { ac_try='test -z "$ac_c_werror_flag" |
| 18958 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18960 | (eval $ac_try) 2>&5 |
| 18961 | ac_status=$? |
| 18962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18963 | (exit $ac_status); }; } && |
| 18964 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18966 | (eval $ac_try) 2>&5 |
| 18967 | ac_status=$? |
| 18968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18969 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18970 | # 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] | 18971 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18972 | /* confdefs.h. */ |
| 18973 | _ACEOF |
| 18974 | cat confdefs.h >>conftest.$ac_ext |
| 18975 | cat >>conftest.$ac_ext <<_ACEOF |
| 18976 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18977 | #include <sys/types.h> |
| 18978 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18980 | int |
| 18981 | main () |
| 18982 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18983 | #if BYTE_ORDER != BIG_ENDIAN |
| 18984 | not big endian |
| 18985 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18986 | |
| 18987 | ; |
| 18988 | return 0; |
| 18989 | } |
| 18990 | _ACEOF |
| 18991 | rm -f conftest.$ac_objext |
| 18992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18993 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18994 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18996 | rm -f conftest.er1 |
| 18997 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18999 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 19000 | { ac_try='test -z "$ac_c_werror_flag" |
| 19001 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19003 | (eval $ac_try) 2>&5 |
| 19004 | ac_status=$? |
| 19005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19006 | (exit $ac_status); }; } && |
| 19007 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19009 | (eval $ac_try) 2>&5 |
| 19010 | ac_status=$? |
| 19011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19012 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19013 | ac_cv_c_bigendian=yes |
| 19014 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19015 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19017 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19018 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19019 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19024 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19025 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19026 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19027 | # 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] | 19028 | ac_cv_c_bigendian=unknown |
| 19029 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19030 | /* confdefs.h. */ |
| 19031 | _ACEOF |
| 19032 | cat confdefs.h >>conftest.$ac_ext |
| 19033 | cat >>conftest.$ac_ext <<_ACEOF |
| 19034 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19035 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 19036 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 19037 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 19038 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 19039 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 19040 | 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] | 19041 | int |
| 19042 | main () |
| 19043 | { |
| 19044 | _ascii (); _ebcdic (); |
| 19045 | ; |
| 19046 | return 0; |
| 19047 | } |
| 19048 | _ACEOF |
| 19049 | rm -f conftest.$ac_objext |
| 19050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19051 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19052 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19054 | rm -f conftest.er1 |
| 19055 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19057 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 19058 | { ac_try='test -z "$ac_c_werror_flag" |
| 19059 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19061 | (eval $ac_try) 2>&5 |
| 19062 | ac_status=$? |
| 19063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19064 | (exit $ac_status); }; } && |
| 19065 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19067 | (eval $ac_try) 2>&5 |
| 19068 | ac_status=$? |
| 19069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19070 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19071 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19072 | ac_cv_c_bigendian=yes |
| 19073 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19074 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19075 | if test "$ac_cv_c_bigendian" = unknown; then |
| 19076 | ac_cv_c_bigendian=no |
| 19077 | else |
| 19078 | # finding both strings is unlikely to happen, but who knows? |
| 19079 | ac_cv_c_bigendian=unknown |
| 19080 | fi |
| 19081 | fi |
| 19082 | else |
| 19083 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19086 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19088 | else |
| 19089 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19090 | /* confdefs.h. */ |
| 19091 | _ACEOF |
| 19092 | cat confdefs.h >>conftest.$ac_ext |
| 19093 | cat >>conftest.$ac_ext <<_ACEOF |
| 19094 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19095 | int |
| 19096 | main () |
| 19097 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19098 | /* Are we little or big endian? From Harbison&Steele. */ |
| 19099 | union |
| 19100 | { |
| 19101 | long l; |
| 19102 | char c[sizeof (long)]; |
| 19103 | } u; |
| 19104 | u.l = 1; |
| 19105 | exit (u.c[sizeof (long) - 1] == 1); |
| 19106 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19107 | _ACEOF |
| 19108 | rm -f conftest$ac_exeext |
| 19109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19110 | (eval $ac_link) 2>&5 |
| 19111 | ac_status=$? |
| 19112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19113 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19115 | (eval $ac_try) 2>&5 |
| 19116 | ac_status=$? |
| 19117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19118 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19119 | ac_cv_c_bigendian=no |
| 19120 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19121 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19122 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19125 | ( exit $ac_status ) |
| 19126 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19127 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19128 | 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] | 19129 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19130 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19132 | fi |
| 19133 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 19134 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 19135 | case $ac_cv_c_bigendian in |
| 19136 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19138 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19139 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19140 | _ACEOF |
| 19141 | ;; |
| 19142 | no) |
| 19143 | ;; |
| 19144 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19145 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19146 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19147 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19148 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 19149 | { (exit 1); exit 1; }; } ;; |
| 19150 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19151 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19152 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19153 | # Check whether right shifting a negative integer extends the sign bit |
| 19154 | # 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] | 19155 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 19156 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 19157 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 19158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19159 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19160 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19161 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 19162 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19164 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19165 | /* confdefs.h. */ |
| 19166 | _ACEOF |
| 19167 | cat confdefs.h >>conftest.$ac_ext |
| 19168 | cat >>conftest.$ac_ext <<_ACEOF |
| 19169 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19170 | |
| 19171 | int main() |
| 19172 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19173 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19174 | } |
| 19175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19176 | _ACEOF |
| 19177 | rm -f conftest$ac_exeext |
| 19178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19179 | (eval $ac_link) 2>&5 |
| 19180 | ac_status=$? |
| 19181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19182 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19184 | (eval $ac_try) 2>&5 |
| 19185 | ac_status=$? |
| 19186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19187 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19188 | ac_cv_rshift_extends_sign=yes |
| 19189 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19190 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19191 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19194 | ( exit $ac_status ) |
| 19195 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19196 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19197 | 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] | 19198 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19199 | fi |
| 19200 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19201 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 19202 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19203 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19204 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19205 | |
| 19206 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19207 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19208 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19209 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19210 | fi |
| 19211 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19212 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19213 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 19214 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 19215 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 19216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19218 | |
| 19219 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19220 | /* confdefs.h. */ |
| 19221 | _ACEOF |
| 19222 | cat confdefs.h >>conftest.$ac_ext |
| 19223 | cat >>conftest.$ac_ext <<_ACEOF |
| 19224 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19225 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19226 | int |
| 19227 | main () |
| 19228 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19229 | |
| 19230 | FILE *f = fopen("/dev/null", "r"); |
| 19231 | flockfile(f); |
| 19232 | getc_unlocked(f); |
| 19233 | funlockfile(f); |
| 19234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19235 | ; |
| 19236 | return 0; |
| 19237 | } |
| 19238 | _ACEOF |
| 19239 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19241 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19242 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19244 | rm -f conftest.er1 |
| 19245 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19247 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 19248 | { ac_try='test -z "$ac_c_werror_flag" |
| 19249 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19251 | (eval $ac_try) 2>&5 |
| 19252 | ac_status=$? |
| 19253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19254 | (exit $ac_status); }; } && |
| 19255 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19257 | (eval $ac_try) 2>&5 |
| 19258 | ac_status=$? |
| 19259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19260 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19261 | ac_cv_have_getc_unlocked=yes |
| 19262 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19263 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19265 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19266 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19267 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19268 | rm -f conftest.err conftest.$ac_objext \ |
| 19269 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19270 | fi |
| 19271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19272 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 19273 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19274 | if test "$ac_cv_have_getc_unlocked" = yes |
| 19275 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19276 | |
| 19277 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19278 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19279 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19280 | |
| 19281 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19282 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19283 | # check for readline 2.1 |
| 19284 | echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 19285 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6 |
| 19286 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 19287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19288 | else |
| 19289 | ac_check_lib_save_LIBS=$LIBS |
| 19290 | LIBS="-lreadline -ltermcap $LIBS" |
| 19291 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19292 | /* confdefs.h. */ |
| 19293 | _ACEOF |
| 19294 | cat confdefs.h >>conftest.$ac_ext |
| 19295 | cat >>conftest.$ac_ext <<_ACEOF |
| 19296 | /* end confdefs.h. */ |
| 19297 | |
| 19298 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19299 | #ifdef __cplusplus |
| 19300 | extern "C" |
| 19301 | #endif |
| 19302 | /* We use char because int might match the return type of a gcc2 |
| 19303 | builtin and then its argument prototype would still apply. */ |
| 19304 | char rl_callback_handler_install (); |
| 19305 | int |
| 19306 | main () |
| 19307 | { |
| 19308 | rl_callback_handler_install (); |
| 19309 | ; |
| 19310 | return 0; |
| 19311 | } |
| 19312 | _ACEOF |
| 19313 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19315 | (eval $ac_link) 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19316 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19318 | rm -f conftest.er1 |
| 19319 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19321 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 19322 | { ac_try='test -z "$ac_c_werror_flag" |
| 19323 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19325 | (eval $ac_try) 2>&5 |
| 19326 | ac_status=$? |
| 19327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19328 | (exit $ac_status); }; } && |
| 19329 | { ac_try='test -s conftest$ac_exeext' |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19331 | (eval $ac_try) 2>&5 |
| 19332 | ac_status=$? |
| 19333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19334 | (exit $ac_status); }; }; then |
| 19335 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 19336 | else |
| 19337 | echo "$as_me: failed program was:" >&5 |
| 19338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19339 | |
| 19340 | ac_cv_lib_readline_rl_callback_handler_install=no |
| 19341 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19342 | rm -f conftest.err conftest.$ac_objext \ |
| 19343 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19344 | LIBS=$ac_check_lib_save_LIBS |
| 19345 | fi |
| 19346 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 19347 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6 |
| 19348 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 19349 | |
| 19350 | cat >>confdefs.h <<\_ACEOF |
| 19351 | #define HAVE_RL_CALLBACK 1 |
| 19352 | _ACEOF |
| 19353 | |
| 19354 | fi |
| 19355 | |
| 19356 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19357 | # check for readline 2.2 |
| 19358 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19359 | /* confdefs.h. */ |
| 19360 | _ACEOF |
| 19361 | cat confdefs.h >>conftest.$ac_ext |
| 19362 | cat >>conftest.$ac_ext <<_ACEOF |
| 19363 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19364 | #include <readline/readline.h> |
| 19365 | _ACEOF |
| 19366 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19368 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19369 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19370 | rm -f conftest.er1 |
| 19371 | cat conftest.err >&5 |
| 19372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19373 | (exit $ac_status); } >/dev/null; then |
| 19374 | if test -s conftest.err; then |
| 19375 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19376 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19377 | else |
| 19378 | ac_cpp_err= |
| 19379 | fi |
| 19380 | else |
| 19381 | ac_cpp_err=yes |
| 19382 | fi |
| 19383 | if test -z "$ac_cpp_err"; then |
| 19384 | have_readline=yes |
| 19385 | else |
| 19386 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19388 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19389 | have_readline=no |
| 19390 | fi |
| 19391 | rm -f conftest.err conftest.$ac_ext |
| 19392 | if test $have_readline = yes |
| 19393 | then |
| 19394 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19395 | /* confdefs.h. */ |
| 19396 | _ACEOF |
| 19397 | cat confdefs.h >>conftest.$ac_ext |
| 19398 | cat >>conftest.$ac_ext <<_ACEOF |
| 19399 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19400 | #include <readline/readline.h> |
| 19401 | |
| 19402 | _ACEOF |
| 19403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19404 | $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] | 19405 | |
| 19406 | cat >>confdefs.h <<\_ACEOF |
| 19407 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 19408 | _ACEOF |
| 19409 | |
| 19410 | fi |
| 19411 | rm -f conftest* |
| 19412 | |
| 19413 | fi |
| 19414 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19415 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19416 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 19417 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 19418 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 19419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19421 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19422 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19423 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19424 | /* confdefs.h. */ |
| 19425 | _ACEOF |
| 19426 | cat confdefs.h >>conftest.$ac_ext |
| 19427 | cat >>conftest.$ac_ext <<_ACEOF |
| 19428 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19429 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19430 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19431 | #ifdef __cplusplus |
| 19432 | extern "C" |
| 19433 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19434 | /* 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] | 19435 | builtin and then its argument prototype would still apply. */ |
| 19436 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19437 | int |
| 19438 | main () |
| 19439 | { |
| 19440 | rl_pre_input_hook (); |
| 19441 | ; |
| 19442 | return 0; |
| 19443 | } |
| 19444 | _ACEOF |
| 19445 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19447 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19448 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19450 | rm -f conftest.er1 |
| 19451 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19453 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 19454 | { ac_try='test -z "$ac_c_werror_flag" |
| 19455 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19457 | (eval $ac_try) 2>&5 |
| 19458 | ac_status=$? |
| 19459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19460 | (exit $ac_status); }; } && |
| 19461 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19463 | (eval $ac_try) 2>&5 |
| 19464 | ac_status=$? |
| 19465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19466 | (exit $ac_status); }; }; then |
| 19467 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19468 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19469 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19472 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19473 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19474 | rm -f conftest.err conftest.$ac_objext \ |
| 19475 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19476 | LIBS=$ac_check_lib_save_LIBS |
| 19477 | fi |
| 19478 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 19479 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 19480 | 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] | 19481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19482 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19483 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19484 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19485 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19486 | fi |
| 19487 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19488 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19489 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19490 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 19491 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 19492 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 19493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19494 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19495 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19496 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19497 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19498 | /* confdefs.h. */ |
| 19499 | _ACEOF |
| 19500 | cat confdefs.h >>conftest.$ac_ext |
| 19501 | cat >>conftest.$ac_ext <<_ACEOF |
| 19502 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19503 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19504 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19505 | #ifdef __cplusplus |
| 19506 | extern "C" |
| 19507 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19508 | /* 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] | 19509 | builtin and then its argument prototype would still apply. */ |
| 19510 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19511 | int |
| 19512 | main () |
| 19513 | { |
| 19514 | rl_completion_matches (); |
| 19515 | ; |
| 19516 | return 0; |
| 19517 | } |
| 19518 | _ACEOF |
| 19519 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19521 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19522 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19524 | rm -f conftest.er1 |
| 19525 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19527 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 19528 | { ac_try='test -z "$ac_c_werror_flag" |
| 19529 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19531 | (eval $ac_try) 2>&5 |
| 19532 | ac_status=$? |
| 19533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19534 | (exit $ac_status); }; } && |
| 19535 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19537 | (eval $ac_try) 2>&5 |
| 19538 | ac_status=$? |
| 19539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19540 | (exit $ac_status); }; }; then |
| 19541 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19542 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19543 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19546 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19547 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19548 | rm -f conftest.err conftest.$ac_objext \ |
| 19549 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19550 | LIBS=$ac_check_lib_save_LIBS |
| 19551 | fi |
| 19552 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 19553 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 19554 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19556 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19557 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19558 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19559 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19560 | fi |
| 19561 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19562 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19563 | # also in readline 4.2 |
| 19564 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19565 | /* confdefs.h. */ |
| 19566 | _ACEOF |
| 19567 | cat confdefs.h >>conftest.$ac_ext |
| 19568 | cat >>conftest.$ac_ext <<_ACEOF |
| 19569 | /* end confdefs.h. */ |
| 19570 | #include <readline/readline.h> |
| 19571 | _ACEOF |
| 19572 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19573 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19574 | ac_status=$? |
| 19575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19576 | rm -f conftest.er1 |
| 19577 | cat conftest.err >&5 |
| 19578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19579 | (exit $ac_status); } >/dev/null; then |
| 19580 | if test -s conftest.err; then |
| 19581 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19582 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19583 | else |
| 19584 | ac_cpp_err= |
| 19585 | fi |
| 19586 | else |
| 19587 | ac_cpp_err=yes |
| 19588 | fi |
| 19589 | if test -z "$ac_cpp_err"; then |
| 19590 | have_readline=yes |
| 19591 | else |
| 19592 | echo "$as_me: failed program was:" >&5 |
| 19593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19594 | |
| 19595 | have_readline=no |
| 19596 | fi |
| 19597 | rm -f conftest.err conftest.$ac_ext |
| 19598 | if test $have_readline = yes |
| 19599 | then |
| 19600 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19601 | /* confdefs.h. */ |
| 19602 | _ACEOF |
| 19603 | cat confdefs.h >>conftest.$ac_ext |
| 19604 | cat >>conftest.$ac_ext <<_ACEOF |
| 19605 | /* end confdefs.h. */ |
| 19606 | #include <readline/readline.h> |
| 19607 | |
| 19608 | _ACEOF |
| 19609 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19610 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 19611 | |
| 19612 | cat >>confdefs.h <<\_ACEOF |
| 19613 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 19614 | _ACEOF |
| 19615 | |
| 19616 | fi |
| 19617 | rm -f conftest* |
| 19618 | |
| 19619 | fi |
| 19620 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19621 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 19622 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 19623 | if test "${ac_cv_broken_nice+set}" = set; then |
| 19624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19625 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19626 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19627 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 19628 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19629 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19630 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19631 | /* confdefs.h. */ |
| 19632 | _ACEOF |
| 19633 | cat confdefs.h >>conftest.$ac_ext |
| 19634 | cat >>conftest.$ac_ext <<_ACEOF |
| 19635 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19636 | |
| 19637 | int main() |
| 19638 | { |
| 19639 | int val1 = nice(1); |
| 19640 | if (val1 != -1 && val1 == nice(2)) |
| 19641 | exit(0); |
| 19642 | exit(1); |
| 19643 | } |
| 19644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19645 | _ACEOF |
| 19646 | rm -f conftest$ac_exeext |
| 19647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19648 | (eval $ac_link) 2>&5 |
| 19649 | ac_status=$? |
| 19650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19651 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19653 | (eval $ac_try) 2>&5 |
| 19654 | ac_status=$? |
| 19655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19656 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19657 | ac_cv_broken_nice=yes |
| 19658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19659 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19660 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19663 | ( exit $ac_status ) |
| 19664 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19665 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19666 | 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] | 19667 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19668 | fi |
| 19669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19670 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 19671 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19672 | if test "$ac_cv_broken_nice" = yes |
| 19673 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19674 | |
| 19675 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19676 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19677 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19678 | |
| 19679 | fi |
| 19680 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19681 | echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 19682 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6 |
| 19683 | if test "$cross_compiling" = yes; then |
| 19684 | ac_cv_broken_poll=no |
| 19685 | else |
| 19686 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19687 | /* confdefs.h. */ |
| 19688 | _ACEOF |
| 19689 | cat confdefs.h >>conftest.$ac_ext |
| 19690 | cat >>conftest.$ac_ext <<_ACEOF |
| 19691 | /* end confdefs.h. */ |
| 19692 | |
| 19693 | #include <poll.h> |
| 19694 | |
| 19695 | int main (void) |
| 19696 | { |
| 19697 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 19698 | |
| 19699 | close (42); |
| 19700 | |
| 19701 | int poll_test = poll (&poll_struct, 1, 0); |
| 19702 | |
| 19703 | if (poll_test < 0) |
| 19704 | { |
| 19705 | exit(0); |
| 19706 | } |
| 19707 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 19708 | { |
| 19709 | exit(0); |
| 19710 | } |
| 19711 | else |
| 19712 | { |
| 19713 | exit(1); |
| 19714 | } |
| 19715 | } |
| 19716 | |
| 19717 | _ACEOF |
| 19718 | rm -f conftest$ac_exeext |
| 19719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19720 | (eval $ac_link) 2>&5 |
| 19721 | ac_status=$? |
| 19722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19723 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19725 | (eval $ac_try) 2>&5 |
| 19726 | ac_status=$? |
| 19727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19728 | (exit $ac_status); }; }; then |
| 19729 | ac_cv_broken_poll=yes |
| 19730 | else |
| 19731 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19732 | echo "$as_me: failed program was:" >&5 |
| 19733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19734 | |
| 19735 | ( exit $ac_status ) |
| 19736 | ac_cv_broken_poll=no |
| 19737 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19738 | 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] | 19739 | fi |
| 19740 | echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 19741 | echo "${ECHO_T}$ac_cv_broken_poll" >&6 |
| 19742 | if test "$ac_cv_broken_poll" = yes |
| 19743 | then |
| 19744 | |
| 19745 | cat >>confdefs.h <<\_ACEOF |
| 19746 | #define HAVE_BROKEN_POLL 1 |
| 19747 | _ACEOF |
| 19748 | |
| 19749 | fi |
| 19750 | |
| 19751 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19752 | # tzset(3) exists and works like we expect it to |
| 19753 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 19754 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 19755 | if test "${ac_cv_working_tzset+set}" = set; then |
| 19756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19757 | else |
| 19758 | |
| 19759 | if test "$cross_compiling" = yes; then |
| 19760 | ac_cv_working_tzset=no |
| 19761 | else |
| 19762 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19763 | /* confdefs.h. */ |
| 19764 | _ACEOF |
| 19765 | cat confdefs.h >>conftest.$ac_ext |
| 19766 | cat >>conftest.$ac_ext <<_ACEOF |
| 19767 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19768 | |
| 19769 | #include <stdlib.h> |
| 19770 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19771 | #include <string.h> |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19772 | int main() |
| 19773 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19774 | /* Note that we need to ensure that not only does tzset(3) |
| 19775 | do 'something' with localtime, but it works as documented |
| 19776 | in the library reference and as expected by the test suite. |
| 19777 | |
| 19778 | Red Hat 6.2 doesn't understand the southern hemisphere |
| 19779 | after New Year's Day; it thinks swaps on that day. |
| 19780 | */ |
| 19781 | |
| 19782 | time_t groundhogday = 1044144000; /* GMT-based; well, it's a colony */ |
| 19783 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 19784 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 19785 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19786 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19787 | if (localtime(&groundhogday)->tm_hour != 0) |
| 19788 | exit(1); |
| 19789 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 19790 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19791 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19792 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19793 | exit(1); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 19794 | |
| 19795 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 19796 | tzset(); |
| 19797 | if (localtime(&groundhogday)->tm_hour != 11) |
| 19798 | exit(1); |
| 19799 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 19800 | exit(1); |
| 19801 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 19802 | exit(1); |
| 19803 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19804 | exit(0); |
| 19805 | } |
| 19806 | |
| 19807 | _ACEOF |
| 19808 | rm -f conftest$ac_exeext |
| 19809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19810 | (eval $ac_link) 2>&5 |
| 19811 | ac_status=$? |
| 19812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19813 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19815 | (eval $ac_try) 2>&5 |
| 19816 | ac_status=$? |
| 19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19818 | (exit $ac_status); }; }; then |
| 19819 | ac_cv_working_tzset=yes |
| 19820 | else |
| 19821 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19822 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19824 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 19825 | ( exit $ac_status ) |
| 19826 | ac_cv_working_tzset=no |
| 19827 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19828 | 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] | 19829 | fi |
| 19830 | fi |
| 19831 | |
| 19832 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 19833 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 19834 | if test "$ac_cv_working_tzset" = yes |
| 19835 | then |
| 19836 | |
| 19837 | cat >>confdefs.h <<\_ACEOF |
| 19838 | #define HAVE_WORKING_TZSET 1 |
| 19839 | _ACEOF |
| 19840 | |
| 19841 | fi |
| 19842 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19843 | # Look for subsecond timestamps in struct stat |
| 19844 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 19845 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 19846 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 19847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19848 | else |
| 19849 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19850 | /* confdefs.h. */ |
| 19851 | _ACEOF |
| 19852 | cat confdefs.h >>conftest.$ac_ext |
| 19853 | cat >>conftest.$ac_ext <<_ACEOF |
| 19854 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19855 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19856 | int |
| 19857 | main () |
| 19858 | { |
| 19859 | |
| 19860 | struct stat st; |
| 19861 | st.st_mtim.tv_nsec = 1; |
| 19862 | |
| 19863 | ; |
| 19864 | return 0; |
| 19865 | } |
| 19866 | _ACEOF |
| 19867 | rm -f conftest.$ac_objext |
| 19868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19869 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19870 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19872 | rm -f conftest.er1 |
| 19873 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19875 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 19876 | { ac_try='test -z "$ac_c_werror_flag" |
| 19877 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19879 | (eval $ac_try) 2>&5 |
| 19880 | ac_status=$? |
| 19881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19882 | (exit $ac_status); }; } && |
| 19883 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19885 | (eval $ac_try) 2>&5 |
| 19886 | ac_status=$? |
| 19887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19888 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 19889 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19890 | else |
| 19891 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19893 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19894 | ac_cv_stat_tv_nsec=no |
| 19895 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 19897 | fi |
| 19898 | |
| 19899 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 19900 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 19901 | if test "$ac_cv_stat_tv_nsec" = yes |
| 19902 | then |
| 19903 | |
| 19904 | cat >>confdefs.h <<\_ACEOF |
| 19905 | #define HAVE_STAT_TV_NSEC 1 |
| 19906 | _ACEOF |
| 19907 | |
| 19908 | fi |
| 19909 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19910 | # 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] | 19911 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 19912 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 19913 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 19914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19915 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19916 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19917 | /* confdefs.h. */ |
| 19918 | _ACEOF |
| 19919 | cat confdefs.h >>conftest.$ac_ext |
| 19920 | cat >>conftest.$ac_ext <<_ACEOF |
| 19921 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19922 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19923 | int |
| 19924 | main () |
| 19925 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19926 | |
| 19927 | int rtn; |
| 19928 | rtn = mvwdelch(0,0,0); |
| 19929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19930 | ; |
| 19931 | return 0; |
| 19932 | } |
| 19933 | _ACEOF |
| 19934 | rm -f conftest.$ac_objext |
| 19935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19936 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19937 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19939 | rm -f conftest.er1 |
| 19940 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19942 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 19943 | { ac_try='test -z "$ac_c_werror_flag" |
| 19944 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19946 | (eval $ac_try) 2>&5 |
| 19947 | ac_status=$? |
| 19948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19949 | (exit $ac_status); }; } && |
| 19950 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19952 | (eval $ac_try) 2>&5 |
| 19953 | ac_status=$? |
| 19954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19955 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19956 | ac_cv_mvwdelch_is_expression=yes |
| 19957 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19958 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19960 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19961 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19962 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19964 | fi |
| 19965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19966 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 19967 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19968 | |
| 19969 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 19970 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19971 | |
| 19972 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19973 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19974 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19975 | |
| 19976 | fi |
| 19977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19978 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 19979 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 19980 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 19981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19982 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19983 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19984 | /* confdefs.h. */ |
| 19985 | _ACEOF |
| 19986 | cat confdefs.h >>conftest.$ac_ext |
| 19987 | cat >>conftest.$ac_ext <<_ACEOF |
| 19988 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19989 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19990 | int |
| 19991 | main () |
| 19992 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 19993 | |
| 19994 | WINDOW *w; |
| 19995 | w->_flags = 0; |
| 19996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19997 | ; |
| 19998 | return 0; |
| 19999 | } |
| 20000 | _ACEOF |
| 20001 | rm -f conftest.$ac_objext |
| 20002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20003 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20004 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20006 | rm -f conftest.er1 |
| 20007 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20009 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 20010 | { ac_try='test -z "$ac_c_werror_flag" |
| 20011 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20013 | (eval $ac_try) 2>&5 |
| 20014 | ac_status=$? |
| 20015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20016 | (exit $ac_status); }; } && |
| 20017 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20019 | (eval $ac_try) 2>&5 |
| 20020 | ac_status=$? |
| 20021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20022 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20023 | ac_cv_window_has_flags=yes |
| 20024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20025 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20027 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20028 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20029 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20031 | fi |
| 20032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20033 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 20034 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20035 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20036 | |
| 20037 | if test "$ac_cv_window_has_flags" = yes |
| 20038 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20039 | |
| 20040 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20041 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20042 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20043 | |
| 20044 | fi |
| 20045 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 20046 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 20047 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 20048 | |
| 20049 | if test -e /dev/ptmx |
| 20050 | then |
| 20051 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20052 | echo "${ECHO_T}yes" >&6 |
| 20053 | |
| 20054 | cat >>confdefs.h <<\_ACEOF |
| 20055 | #define HAVE_DEV_PTMX 1 |
| 20056 | _ACEOF |
| 20057 | |
| 20058 | else |
| 20059 | echo "$as_me:$LINENO: result: no" >&5 |
| 20060 | echo "${ECHO_T}no" >&6 |
| 20061 | fi |
| 20062 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 20063 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 20064 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 20065 | |
| 20066 | if test -e /dev/ptc |
| 20067 | then |
| 20068 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20069 | echo "${ECHO_T}yes" >&6 |
| 20070 | |
| 20071 | cat >>confdefs.h <<\_ACEOF |
| 20072 | #define HAVE_DEV_PTC 1 |
| 20073 | _ACEOF |
| 20074 | |
| 20075 | else |
| 20076 | echo "$as_me:$LINENO: result: no" >&5 |
| 20077 | echo "${ECHO_T}no" >&6 |
| 20078 | fi |
| 20079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20080 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 20081 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 20082 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 20083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20084 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20085 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20086 | /* confdefs.h. */ |
| 20087 | _ACEOF |
| 20088 | cat confdefs.h >>conftest.$ac_ext |
| 20089 | cat >>conftest.$ac_ext <<_ACEOF |
| 20090 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 20091 | |
| 20092 | #ifdef HAVE_SYS_TYPES_H |
| 20093 | #include <sys/types.h> |
| 20094 | #endif |
| 20095 | #ifdef HAVE_SYS_SOCKET_H |
| 20096 | #include <sys/socket.h> |
| 20097 | #endif |
| 20098 | |
| 20099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20100 | int |
| 20101 | main () |
| 20102 | { |
| 20103 | if ((socklen_t *) 0) |
| 20104 | return 0; |
| 20105 | if (sizeof (socklen_t)) |
| 20106 | return 0; |
| 20107 | ; |
| 20108 | return 0; |
| 20109 | } |
| 20110 | _ACEOF |
| 20111 | rm -f conftest.$ac_objext |
| 20112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20113 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20114 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20116 | rm -f conftest.er1 |
| 20117 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20119 | (exit $ac_status); } && |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 20120 | { ac_try='test -z "$ac_c_werror_flag" |
| 20121 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20123 | (eval $ac_try) 2>&5 |
| 20124 | ac_status=$? |
| 20125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20126 | (exit $ac_status); }; } && |
| 20127 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20129 | (eval $ac_try) 2>&5 |
| 20130 | ac_status=$? |
| 20131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20132 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 20133 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20135 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20138 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20139 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20141 | fi |
| 20142 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 20143 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 20144 | if test $ac_cv_type_socklen_t = yes; then |
| 20145 | : |
| 20146 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20147 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 20148 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20149 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20150 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20151 | |
| 20152 | fi |
| 20153 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20154 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20155 | |
| 20156 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 20157 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 20158 | do |
| 20159 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 20160 | done |
| 20161 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20162 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 20163 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20164 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 20165 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 20166 | for dir in $SRCDIRS; do |
| 20167 | if test ! -d $dir; then |
| 20168 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 20169 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 20170 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20171 | echo "$as_me:$LINENO: result: done" >&5 |
| 20172 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 20173 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20174 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20175 | 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] | 20176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20177 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20178 | # This file is a shell script that caches the results of configure |
| 20179 | # 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] | 20180 | # scripts and configure runs, see configure's option --config-cache. |
| 20181 | # It is not useful on other systems. If it contains results you don't |
| 20182 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20183 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20184 | # config.status only pays attention to the cache file if you give it |
| 20185 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20186 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20187 | # `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] | 20188 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20189 | # following values. |
| 20190 | |
| 20191 | _ACEOF |
| 20192 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20193 | # The following way of writing the cache mishandles newlines in values, |
| 20194 | # but we know of no workaround that is simple, portable, and efficient. |
| 20195 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20196 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20197 | # 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] | 20198 | { |
| 20199 | (set) 2>&1 | |
| 20200 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 20201 | *ac_space=\ *) |
| 20202 | # `set' does not quote correctly, so add quotes (double-quote |
| 20203 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 20204 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20205 | "s/'/'\\\\''/g; |
| 20206 | 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] | 20207 | ;; |
| 20208 | *) |
| 20209 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 20210 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20211 | "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] | 20212 | ;; |
| 20213 | esac; |
| 20214 | } | |
| 20215 | sed ' |
| 20216 | t clear |
| 20217 | : clear |
| 20218 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20219 | t end |
| 20220 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20221 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20222 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20223 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20224 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 20225 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20226 | else |
| 20227 | echo "not updating unwritable cache $cache_file" |
| 20228 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20229 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20230 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 20231 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20232 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20233 | # Let make expand exec_prefix. |
| 20234 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 20235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20236 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20237 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20238 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20239 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20240 | if test "x$srcdir" = x.; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20241 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20242 | s/:*\$(srcdir):*/:/; |
| 20243 | s/:*\${srcdir}:*/:/; |
| 20244 | s/:*@srcdir@:*/:/; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20245 | s/^\([^=]*=[ ]*\):*/\1/; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20246 | s/:*$//; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20247 | s/^[^=]*=[ ]*$//; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20248 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20249 | fi |
| 20250 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20251 | DEFS=-DHAVE_CONFIG_H |
| 20252 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20253 | ac_libobjs= |
| 20254 | ac_ltlibobjs= |
| 20255 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20256 | # 1. Remove the extension, and $U if already installed. |
| 20257 | ac_i=`echo "$ac_i" | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20258 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20259 | # 2. Add them. |
| 20260 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 20261 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 20262 | done |
| 20263 | LIBOBJS=$ac_libobjs |
| 20264 | |
| 20265 | LTLIBOBJS=$ac_ltlibobjs |
| 20266 | |
| 20267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20268 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20269 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20270 | ac_clean_files_save=$ac_clean_files |
| 20271 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 20272 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20273 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20274 | cat >$CONFIG_STATUS <<_ACEOF |
| 20275 | #! $SHELL |
| 20276 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20277 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20278 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20279 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20281 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20282 | ac_cs_recheck=false |
| 20283 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20284 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 20285 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20287 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20288 | ## --------------------- ## |
| 20289 | ## M4sh Initialization. ## |
| 20290 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20292 | # Be Bourne compatible |
| 20293 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20294 | emulate sh |
| 20295 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20296 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20297 | # is contrary to our usage. Disable this feature. |
| 20298 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20299 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20300 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20301 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20302 | DUALCASE=1; export DUALCASE # for MKS sh |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20304 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20305 | 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] | 20306 | as_unset=unset |
| 20307 | else |
| 20308 | as_unset=false |
| 20309 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20310 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20311 | |
| 20312 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20313 | $as_unset ENV MAIL MAILPATH |
| 20314 | PS1='$ ' |
| 20315 | PS2='> ' |
| 20316 | PS4='+ ' |
| 20317 | |
| 20318 | # NLS nuisances. |
| 20319 | for as_var in \ |
| 20320 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20321 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20322 | LC_TELEPHONE LC_TIME |
| 20323 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20324 | 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] | 20325 | eval $as_var=C; export $as_var |
| 20326 | else |
| 20327 | $as_unset $as_var |
| 20328 | fi |
| 20329 | done |
| 20330 | |
| 20331 | # Required to use basename. |
| 20332 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20333 | as_expr=expr |
| 20334 | else |
| 20335 | as_expr=false |
| 20336 | fi |
| 20337 | |
| 20338 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 20339 | as_basename=basename |
| 20340 | else |
| 20341 | as_basename=false |
| 20342 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20343 | |
| 20344 | |
| 20345 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20346 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20347 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20348 | X"$0" : 'X\(//\)$' \| \ |
| 20349 | X"$0" : 'X\(/\)$' \| \ |
| 20350 | . : '\(.\)' 2>/dev/null || |
| 20351 | echo X/"$0" | |
| 20352 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 20353 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 20354 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 20355 | s/.*/./; q'` |
| 20356 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20358 | # PATH needs CR, and LINENO needs CR and PATH. |
| 20359 | # Avoid depending upon Character Ranges. |
| 20360 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20361 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20362 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20363 | as_cr_digits='0123456789' |
| 20364 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20365 | |
| 20366 | # The user is always right. |
| 20367 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20368 | echo "#! /bin/sh" >conf$$.sh |
| 20369 | echo "exit 0" >>conf$$.sh |
| 20370 | chmod +x conf$$.sh |
| 20371 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20372 | PATH_SEPARATOR=';' |
| 20373 | else |
| 20374 | PATH_SEPARATOR=: |
| 20375 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20376 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20377 | fi |
| 20378 | |
| 20379 | |
| 20380 | as_lineno_1=$LINENO |
| 20381 | as_lineno_2=$LINENO |
| 20382 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20383 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20384 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 20385 | # Find who we are. Look in the path if we contain no path at all |
| 20386 | # relative or not. |
| 20387 | case $0 in |
| 20388 | *[\\/]* ) as_myself=$0 ;; |
| 20389 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20390 | for as_dir in $PATH |
| 20391 | do |
| 20392 | IFS=$as_save_IFS |
| 20393 | test -z "$as_dir" && as_dir=. |
| 20394 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20395 | done |
| 20396 | |
| 20397 | ;; |
| 20398 | esac |
| 20399 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20400 | # in which case we are not to be found in the path. |
| 20401 | if test "x$as_myself" = x; then |
| 20402 | as_myself=$0 |
| 20403 | fi |
| 20404 | if test ! -f "$as_myself"; then |
| 20405 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 20406 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 20407 | { (exit 1); exit 1; }; } |
| 20408 | fi |
| 20409 | case $CONFIG_SHELL in |
| 20410 | '') |
| 20411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20412 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 20413 | do |
| 20414 | IFS=$as_save_IFS |
| 20415 | test -z "$as_dir" && as_dir=. |
| 20416 | for as_base in sh bash ksh sh5; do |
| 20417 | case $as_dir in |
| 20418 | /*) |
| 20419 | if ("$as_dir/$as_base" -c ' |
| 20420 | as_lineno_1=$LINENO |
| 20421 | as_lineno_2=$LINENO |
| 20422 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20423 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20424 | 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] | 20425 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 20426 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20427 | CONFIG_SHELL=$as_dir/$as_base |
| 20428 | export CONFIG_SHELL |
| 20429 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 20430 | fi;; |
| 20431 | esac |
| 20432 | done |
| 20433 | done |
| 20434 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20435 | esac |
| 20436 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20437 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20438 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20439 | # line-number line before each line; the second 'sed' does the real |
| 20440 | # work. The second script uses 'N' to pair each line-number line |
| 20441 | # with the numbered line, and appends trailing '-' during |
| 20442 | # substitution so that $LINENO is not a special case at line end. |
| 20443 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20444 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 20445 | sed '=' <$as_myself | |
| 20446 | sed ' |
| 20447 | N |
| 20448 | s,$,-, |
| 20449 | : loop |
| 20450 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 20451 | t loop |
| 20452 | s,-$,, |
| 20453 | s,^['$as_cr_digits']*\n,, |
| 20454 | ' >$as_me.lineno && |
| 20455 | chmod +x $as_me.lineno || |
| 20456 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 20457 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 20458 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20460 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20461 | # (the dirname of $[0] is not the place where we might find the |
| 20462 | # original and so on. Autoconf is especially sensible to this). |
| 20463 | . ./$as_me.lineno |
| 20464 | # Exit status is that of the last command. |
| 20465 | exit |
| 20466 | } |
| 20467 | |
| 20468 | |
| 20469 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 20470 | *c*,-n*) ECHO_N= ECHO_C=' |
| 20471 | ' ECHO_T=' ' ;; |
| 20472 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 20473 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 20474 | esac |
| 20475 | |
| 20476 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20477 | as_expr=expr |
| 20478 | else |
| 20479 | as_expr=false |
| 20480 | fi |
| 20481 | |
| 20482 | rm -f conf$$ conf$$.exe conf$$.file |
| 20483 | echo >conf$$.file |
| 20484 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20485 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 20486 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 20487 | if test -f conf$$.exe; then |
| 20488 | # Don't use ln at all; we don't have any links |
| 20489 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20490 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20491 | as_ln_s='ln -s' |
| 20492 | fi |
| 20493 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20494 | as_ln_s=ln |
| 20495 | else |
| 20496 | as_ln_s='cp -p' |
| 20497 | fi |
| 20498 | rm -f conf$$ conf$$.exe conf$$.file |
| 20499 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20500 | if mkdir -p . 2>/dev/null; then |
| 20501 | as_mkdir_p=: |
| 20502 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20503 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20504 | as_mkdir_p=false |
| 20505 | fi |
| 20506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20507 | as_executable_p="test -f" |
| 20508 | |
| 20509 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20510 | 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] | 20511 | |
| 20512 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20513 | 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] | 20514 | |
| 20515 | |
| 20516 | # IFS |
| 20517 | # We need space, tab and new line, in precisely that order. |
| 20518 | as_nl=' |
| 20519 | ' |
| 20520 | IFS=" $as_nl" |
| 20521 | |
| 20522 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20523 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20524 | |
| 20525 | exec 6>&1 |
| 20526 | |
| 20527 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 20528 | # report actual input values of CONFIG_FILES etc. instead of their |
| 20529 | # values after options handling. Logging --version etc. is OK. |
| 20530 | exec 5>>config.log |
| 20531 | { |
| 20532 | echo |
| 20533 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20534 | ## Running $as_me. ## |
| 20535 | _ASBOX |
| 20536 | } >&5 |
| 20537 | cat >&5 <<_CSEOF |
| 20538 | |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 20539 | This file was extended by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20540 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20541 | |
| 20542 | CONFIG_FILES = $CONFIG_FILES |
| 20543 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20544 | CONFIG_LINKS = $CONFIG_LINKS |
| 20545 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20546 | $ $0 $@ |
| 20547 | |
| 20548 | _CSEOF |
| 20549 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 20550 | echo >&5 |
| 20551 | _ACEOF |
| 20552 | |
| 20553 | # Files that config.status was made for. |
| 20554 | if test -n "$ac_config_files"; then |
| 20555 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 20556 | fi |
| 20557 | |
| 20558 | if test -n "$ac_config_headers"; then |
| 20559 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 20560 | fi |
| 20561 | |
| 20562 | if test -n "$ac_config_links"; then |
| 20563 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 20564 | fi |
| 20565 | |
| 20566 | if test -n "$ac_config_commands"; then |
| 20567 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 20568 | fi |
| 20569 | |
| 20570 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20571 | |
| 20572 | ac_cs_usage="\ |
| 20573 | \`$as_me' instantiates files from templates according to the |
| 20574 | current configuration. |
| 20575 | |
| 20576 | Usage: $0 [OPTIONS] [FILE]... |
| 20577 | |
| 20578 | -h, --help print this help, then exit |
| 20579 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20580 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20581 | -d, --debug don't remove temporary files |
| 20582 | --recheck update $as_me by reconfiguring in the same conditions |
| 20583 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20584 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20585 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20586 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20587 | |
| 20588 | Configuration files: |
| 20589 | $config_files |
| 20590 | |
| 20591 | Configuration headers: |
| 20592 | $config_headers |
| 20593 | |
| 20594 | Report bugs to <bug-autoconf@gnu.org>." |
| 20595 | _ACEOF |
| 20596 | |
| 20597 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20598 | ac_cs_version="\\ |
Martin v. Löwis | fd1c69e | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 20599 | python config.status 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20600 | configured by $0, generated by GNU Autoconf 2.59, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20601 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 20602 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20603 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20604 | This config.status script is free software; the Free Software Foundation |
| 20605 | gives unlimited permission to copy, distribute and modify it." |
| 20606 | srcdir=$srcdir |
| 20607 | INSTALL="$INSTALL" |
| 20608 | _ACEOF |
| 20609 | |
| 20610 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20611 | # If no file are specified by the user, then we need to provide default |
| 20612 | # value. By we need to know if files were specified by the user. |
| 20613 | ac_need_defaults=: |
| 20614 | while test $# != 0 |
| 20615 | do |
| 20616 | case $1 in |
| 20617 | --*=*) |
| 20618 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 20619 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20620 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20621 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20622 | -*) |
| 20623 | ac_option=$1 |
| 20624 | ac_optarg=$2 |
| 20625 | ac_shift=shift |
| 20626 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20627 | *) # This is not an option, so the user has probably given explicit |
| 20628 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20629 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20630 | ac_need_defaults=false;; |
| 20631 | esac |
| 20632 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20633 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20634 | # Handling of the options. |
| 20635 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20636 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20637 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20638 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20639 | --version | --vers* | -V ) |
| 20640 | echo "$ac_cs_version"; exit 0 ;; |
| 20641 | --he | --h) |
| 20642 | # Conflict between --help and --header |
| 20643 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 20644 | Try \`$0 --help' for more information." >&5 |
| 20645 | echo "$as_me: error: ambiguous option: $1 |
| 20646 | Try \`$0 --help' for more information." >&2;} |
| 20647 | { (exit 1); exit 1; }; };; |
| 20648 | --help | --hel | -h ) |
| 20649 | echo "$ac_cs_usage"; exit 0 ;; |
| 20650 | --debug | --d* | -d ) |
| 20651 | debug=: ;; |
| 20652 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20653 | $ac_shift |
| 20654 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20655 | ac_need_defaults=false;; |
| 20656 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20657 | $ac_shift |
| 20658 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20659 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20660 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20661 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20662 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20663 | |
| 20664 | # This is an error. |
| 20665 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 20666 | Try \`$0 --help' for more information." >&5 |
| 20667 | echo "$as_me: error: unrecognized option: $1 |
| 20668 | Try \`$0 --help' for more information." >&2;} |
| 20669 | { (exit 1); exit 1; }; } ;; |
| 20670 | |
| 20671 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 20672 | |
| 20673 | esac |
| 20674 | shift |
| 20675 | done |
| 20676 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20677 | ac_configure_extra_args= |
| 20678 | |
| 20679 | if $ac_cs_silent; then |
| 20680 | exec 6>/dev/null |
| 20681 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20682 | fi |
| 20683 | |
| 20684 | _ACEOF |
| 20685 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20686 | if \$ac_cs_recheck; then |
| 20687 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20688 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 20689 | fi |
| 20690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20691 | _ACEOF |
| 20692 | |
| 20693 | |
| 20694 | |
| 20695 | |
| 20696 | |
| 20697 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20698 | for ac_config_target in $ac_config_targets |
| 20699 | do |
| 20700 | case "$ac_config_target" in |
| 20701 | # Handling of arguments. |
| 20702 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 20703 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 20704 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 20705 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20706 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20707 | { (exit 1); exit 1; }; };; |
| 20708 | esac |
| 20709 | done |
| 20710 | |
| 20711 | # If the user did not use the arguments to specify the items to instantiate, |
| 20712 | # then the envvar interface is used. Set only those that are not. |
| 20713 | # We use the long form for the default assignment because of an extremely |
| 20714 | # bizarre bug on SunOS 4.1.3. |
| 20715 | if $ac_need_defaults; then |
| 20716 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20717 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 20718 | fi |
| 20719 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20720 | # Have a temporary directory for convenience. Make it in the build tree |
| 20721 | # simply because there is no reason to put it here, and in addition, |
| 20722 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20723 | # Create a temporary directory, and hook for its removal unless debugging. |
| 20724 | $debug || |
| 20725 | { |
| 20726 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 20727 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 20728 | } |
| 20729 | |
| 20730 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20731 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20732 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20733 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20734 | test -n "$tmp" && test -d "$tmp" |
| 20735 | } || |
| 20736 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20737 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20738 | (umask 077 && mkdir $tmp) |
| 20739 | } || |
| 20740 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20741 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20742 | { (exit 1); exit 1; } |
| 20743 | } |
| 20744 | |
| 20745 | _ACEOF |
| 20746 | |
| 20747 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20748 | |
| 20749 | # |
| 20750 | # CONFIG_FILES section. |
| 20751 | # |
| 20752 | |
| 20753 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20754 | # This happens for instance when ./config.status config.h |
| 20755 | if test -n "\$CONFIG_FILES"; then |
| 20756 | # Protect against being on the right side of a sed subst in config.status. |
| 20757 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 20758 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 20759 | s,@SHELL@,$SHELL,;t t |
| 20760 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 20761 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 20762 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 20763 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 20764 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 20765 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 20766 | s,@exec_prefix@,$exec_prefix,;t t |
| 20767 | s,@prefix@,$prefix,;t t |
| 20768 | s,@program_transform_name@,$program_transform_name,;t t |
| 20769 | s,@bindir@,$bindir,;t t |
| 20770 | s,@sbindir@,$sbindir,;t t |
| 20771 | s,@libexecdir@,$libexecdir,;t t |
| 20772 | s,@datadir@,$datadir,;t t |
| 20773 | s,@sysconfdir@,$sysconfdir,;t t |
| 20774 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 20775 | s,@localstatedir@,$localstatedir,;t t |
| 20776 | s,@libdir@,$libdir,;t t |
| 20777 | s,@includedir@,$includedir,;t t |
| 20778 | s,@oldincludedir@,$oldincludedir,;t t |
| 20779 | s,@infodir@,$infodir,;t t |
| 20780 | s,@mandir@,$mandir,;t t |
| 20781 | s,@build_alias@,$build_alias,;t t |
| 20782 | s,@host_alias@,$host_alias,;t t |
| 20783 | s,@target_alias@,$target_alias,;t t |
| 20784 | s,@DEFS@,$DEFS,;t t |
| 20785 | s,@ECHO_C@,$ECHO_C,;t t |
| 20786 | s,@ECHO_N@,$ECHO_N,;t t |
| 20787 | s,@ECHO_T@,$ECHO_T,;t t |
| 20788 | s,@LIBS@,$LIBS,;t t |
| 20789 | s,@VERSION@,$VERSION,;t t |
| 20790 | s,@SOVERSION@,$SOVERSION,;t t |
| 20791 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 20792 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 20793 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 20794 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 20795 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 20796 | s,@MACHDEP@,$MACHDEP,;t t |
| 20797 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 20798 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 20799 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 20800 | s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20801 | s,@CXX@,$CXX,;t t |
| 20802 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 20803 | s,@EXEEXT@,$EXEEXT,;t t |
| 20804 | s,@CC@,$CC,;t t |
| 20805 | s,@CFLAGS@,$CFLAGS,;t t |
| 20806 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 20807 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 20808 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 20809 | s,@OBJEXT@,$OBJEXT,;t t |
| 20810 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20811 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20812 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 20813 | s,@LIBRARY@,$LIBRARY,;t t |
| 20814 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 20815 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 20816 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 20817 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 20818 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 20819 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 20820 | s,@LINKCC@,$LINKCC,;t t |
| 20821 | s,@RANLIB@,$RANLIB,;t t |
| 20822 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 20823 | s,@AR@,$AR,;t t |
| 20824 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 20825 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 20826 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 20827 | s,@LN@,$LN,;t t |
| 20828 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 20829 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20830 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 20831 | s,@SO@,$SO,;t t |
| 20832 | s,@LDSHARED@,$LDSHARED,;t t |
| 20833 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 20834 | s,@CCSHARED@,$CCSHARED,;t t |
| 20835 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 20836 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 20837 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20838 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 20839 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 20840 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 20841 | s,@LDLAST@,$LDLAST,;t t |
| 20842 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 20843 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 20844 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 20845 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 20846 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20847 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 20848 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 20849 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 20850 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 20851 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 20852 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 20853 | s,@LIBM@,$LIBM,;t t |
| 20854 | s,@LIBC@,$LIBC,;t t |
| 20855 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 20856 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 20857 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20858 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20859 | CEOF |
| 20860 | |
| 20861 | _ACEOF |
| 20862 | |
| 20863 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20864 | # Split the substitutions into bite-sized pieces for seds with |
| 20865 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 20866 | ac_max_sed_lines=48 |
| 20867 | ac_sed_frag=1 # Number of current file. |
| 20868 | ac_beg=1 # First line for current file. |
| 20869 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 20870 | ac_more_lines=: |
| 20871 | ac_sed_cmds= |
| 20872 | while $ac_more_lines; do |
| 20873 | if test $ac_beg -gt 1; then |
| 20874 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 20875 | else |
| 20876 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 20877 | fi |
| 20878 | if test ! -s $tmp/subs.frag; then |
| 20879 | ac_more_lines=false |
| 20880 | else |
| 20881 | # The purpose of the label and of the branching condition is to |
| 20882 | # speed up the sed processing (if there are no `@' at all, there |
| 20883 | # is no need to browse any of the substitutions). |
| 20884 | # These are the two extra sed commands mentioned above. |
| 20885 | (echo ':t |
| 20886 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 20887 | if test -z "$ac_sed_cmds"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20888 | 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] | 20889 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20890 | 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] | 20891 | fi |
| 20892 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 20893 | ac_beg=$ac_end |
| 20894 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 20895 | fi |
| 20896 | done |
| 20897 | if test -z "$ac_sed_cmds"; then |
| 20898 | ac_sed_cmds=cat |
| 20899 | fi |
| 20900 | fi # test -n "$CONFIG_FILES" |
| 20901 | |
| 20902 | _ACEOF |
| 20903 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20904 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 20905 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 20906 | case $ac_file in |
| 20907 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20908 | cat >$tmp/stdin |
| 20909 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 20910 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20911 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20912 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20913 | * ) ac_file_in=$ac_file.in ;; |
| 20914 | esac |
| 20915 | |
| 20916 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 20917 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 20918 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20919 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20920 | X"$ac_file" : 'X\(//\)$' \| \ |
| 20921 | X"$ac_file" : 'X\(/\)' \| \ |
| 20922 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20923 | echo X"$ac_file" | |
| 20924 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20925 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20926 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20927 | /^X\(\/\).*/{ s//\1/; q; } |
| 20928 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20929 | { if $as_mkdir_p; then |
| 20930 | mkdir -p "$ac_dir" |
| 20931 | else |
| 20932 | as_dir="$ac_dir" |
| 20933 | as_dirs= |
| 20934 | while test ! -d "$as_dir"; do |
| 20935 | as_dirs="$as_dir $as_dirs" |
| 20936 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 20937 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20938 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20939 | X"$as_dir" : 'X\(//\)$' \| \ |
| 20940 | X"$as_dir" : 'X\(/\)' \| \ |
| 20941 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20942 | echo X"$as_dir" | |
| 20943 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 20944 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 20945 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 20946 | /^X\(\/\).*/{ s//\1/; q; } |
| 20947 | s/.*/./; q'` |
| 20948 | done |
| 20949 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 20950 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 20951 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 20952 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20953 | |
| 20954 | ac_builddir=. |
| 20955 | |
| 20956 | if test "$ac_dir" != .; then |
| 20957 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 20958 | # A "../" for each directory in $ac_dir_suffix. |
| 20959 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 20960 | else |
| 20961 | ac_dir_suffix= ac_top_builddir= |
| 20962 | fi |
| 20963 | |
| 20964 | case $srcdir in |
| 20965 | .) # No --srcdir option. We are building in place. |
| 20966 | ac_srcdir=. |
| 20967 | if test -z "$ac_top_builddir"; then |
| 20968 | ac_top_srcdir=. |
| 20969 | else |
| 20970 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 20971 | fi ;; |
| 20972 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 20973 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 20974 | ac_top_srcdir=$srcdir ;; |
| 20975 | *) # Relative path. |
| 20976 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 20977 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 20978 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20979 | |
| 20980 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 20981 | # the directories may not exist. |
| 20982 | case `pwd` in |
| 20983 | .) ac_abs_builddir="$ac_dir";; |
| 20984 | *) |
| 20985 | case "$ac_dir" in |
| 20986 | .) ac_abs_builddir=`pwd`;; |
| 20987 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 20988 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 20989 | esac;; |
| 20990 | esac |
| 20991 | case $ac_abs_builddir in |
| 20992 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 20993 | *) |
| 20994 | case ${ac_top_builddir}. in |
| 20995 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 20996 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 20997 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 20998 | esac;; |
| 20999 | esac |
| 21000 | case $ac_abs_builddir in |
| 21001 | .) ac_abs_srcdir=$ac_srcdir;; |
| 21002 | *) |
| 21003 | case $ac_srcdir in |
| 21004 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 21005 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 21006 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 21007 | esac;; |
| 21008 | esac |
| 21009 | case $ac_abs_builddir in |
| 21010 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21011 | *) |
| 21012 | case $ac_top_srcdir in |
| 21013 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 21014 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21015 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 21016 | esac;; |
| 21017 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21018 | |
| 21019 | |
| 21020 | case $INSTALL in |
| 21021 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 21022 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 21023 | esac |
| 21024 | |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 21025 | if test x"$ac_file" != x-; then |
| 21026 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21027 | echo "$as_me: creating $ac_file" >&6;} |
| 21028 | rm -f "$ac_file" |
| 21029 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21030 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21031 | # use $as_me), people would be surprised to read: |
| 21032 | # /* config.h. Generated by config.status. */ |
| 21033 | if test x"$ac_file" = x-; then |
| 21034 | configure_input= |
| 21035 | else |
| 21036 | configure_input="$ac_file. " |
| 21037 | fi |
| 21038 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21039 | sed 's,.*/,,'` by configure." |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21040 | |
| 21041 | # First look for the input files in the build tree, otherwise in the |
| 21042 | # src tree. |
| 21043 | ac_file_inputs=`IFS=: |
| 21044 | for f in $ac_file_in; do |
| 21045 | case $f in |
| 21046 | -) echo $tmp/stdin ;; |
| 21047 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21048 | # Absolute (can't be DOS-style, as IFS=:) |
| 21049 | 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] | 21050 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21051 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21052 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21053 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21054 | if test -f "$f"; then |
| 21055 | # Build tree |
| 21056 | echo "$f" |
| 21057 | elif test -f "$srcdir/$f"; then |
| 21058 | # Source tree |
| 21059 | echo "$srcdir/$f" |
| 21060 | else |
| 21061 | # /dev/null tree |
| 21062 | { { 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] | 21063 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21064 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21065 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21066 | esac |
| 21067 | done` || { (exit 1); exit 1; } |
| 21068 | _ACEOF |
| 21069 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21070 | sed "$ac_vpsub |
| 21071 | $extrasub |
| 21072 | _ACEOF |
| 21073 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21074 | :t |
| 21075 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 21076 | s,@configure_input@,$configure_input,;t t |
| 21077 | s,@srcdir@,$ac_srcdir,;t t |
| 21078 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 21079 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 21080 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 21081 | s,@builddir@,$ac_builddir,;t t |
| 21082 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 21083 | s,@top_builddir@,$ac_top_builddir,;t t |
| 21084 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 21085 | s,@INSTALL@,$ac_INSTALL,;t t |
| 21086 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 21087 | rm -f $tmp/stdin |
| 21088 | if test x"$ac_file" != x-; then |
| 21089 | mv $tmp/out $ac_file |
| 21090 | else |
| 21091 | cat $tmp/out |
| 21092 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21093 | fi |
| 21094 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21095 | done |
| 21096 | _ACEOF |
| 21097 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21099 | # |
| 21100 | # CONFIG_HEADER section. |
| 21101 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21102 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21103 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 21104 | # 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] | 21105 | # |
| 21106 | # ac_d sets the value in "#define NAME VALUE" lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21107 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 21108 | ac_dB='[ ].*$,\1#\2' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21109 | ac_dC=' ' |
| 21110 | ac_dD=',;t' |
| 21111 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21112 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21113 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21114 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21115 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21117 | 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] | 21118 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21119 | case $ac_file in |
| 21120 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21121 | cat >$tmp/stdin |
| 21122 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21123 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21124 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21125 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21126 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21127 | esac |
| 21128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21129 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21130 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21132 | # First look for the input files in the build tree, otherwise in the |
| 21133 | # src tree. |
| 21134 | ac_file_inputs=`IFS=: |
| 21135 | for f in $ac_file_in; do |
| 21136 | case $f in |
| 21137 | -) echo $tmp/stdin ;; |
| 21138 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21139 | # Absolute (can't be DOS-style, as IFS=:) |
| 21140 | 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] | 21141 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21142 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21143 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 21144 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21145 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21146 | if test -f "$f"; then |
| 21147 | # Build tree |
| 21148 | echo "$f" |
| 21149 | elif test -f "$srcdir/$f"; then |
| 21150 | # Source tree |
| 21151 | echo "$srcdir/$f" |
| 21152 | else |
| 21153 | # /dev/null tree |
| 21154 | { { 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] | 21155 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21156 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21157 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21158 | esac |
| 21159 | done` || { (exit 1); exit 1; } |
| 21160 | # Remove the trailing spaces. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21161 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21163 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21164 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21165 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 21166 | # `conftest.undefs', that substitutes the proper values into |
| 21167 | # config.h.in to produce config.h. The first handles `#define' |
| 21168 | # templates, and the second `#undef' templates. |
| 21169 | # And first: Protect against being on the right side of a sed subst in |
| 21170 | # config.status. Protect against being in an unquoted here document |
| 21171 | # in config.status. |
| 21172 | rm -f conftest.defines conftest.undefs |
| 21173 | # Using a here document instead of a string reduces the quoting nightmare. |
| 21174 | # Putting comments in sed scripts is not portable. |
| 21175 | # |
| 21176 | # `end' is used to avoid that the second main sed command (meant for |
| 21177 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 21178 | # See the Autoconf documentation for `clear'. |
| 21179 | cat >confdef2sed.sed <<\_ACEOF |
| 21180 | s/[\\&,]/\\&/g |
| 21181 | s,[\\$`],\\&,g |
| 21182 | t clear |
| 21183 | : clear |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21184 | 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] | 21185 | t end |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21186 | 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] | 21187 | : end |
| 21188 | _ACEOF |
| 21189 | # If some macros were called several times there might be several times |
| 21190 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 21191 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 21192 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 21193 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 21194 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21195 | |
| 21196 | # This sed command replaces #undef with comments. This is necessary, for |
| 21197 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21198 | # 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] | 21199 | cat >>conftest.undefs <<\_ACEOF |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21200 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21201 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21203 | # Break up conftest.defines because some shells have a limit on the size |
| 21204 | # of here documents, and old seds have small limits too (100 cmds). |
| 21205 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21206 | 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] | 21207 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 21208 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21209 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21210 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21211 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21212 | # Write a limited-size here document to $tmp/defines.sed. |
| 21213 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 21214 | # Speed up: don't consider the non `#define' lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21215 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21216 | # Work around the forget-to-reset-the-flag bug. |
| 21217 | echo 't clr' >>$CONFIG_STATUS |
| 21218 | echo ': clr' >>$CONFIG_STATUS |
| 21219 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21220 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21221 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 21222 | rm -f $tmp/in |
| 21223 | mv $tmp/out $tmp/in |
| 21224 | ' >>$CONFIG_STATUS |
| 21225 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 21226 | rm -f conftest.defines |
| 21227 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21228 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21229 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21230 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21231 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21233 | # Break up conftest.undefs because some shells have a limit on the size |
| 21234 | # of here documents, and old seds have small limits too (100 cmds). |
| 21235 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 21236 | rm -f conftest.tail |
| 21237 | while grep . conftest.undefs >/dev/null |
| 21238 | do |
| 21239 | # Write a limited-size here document to $tmp/undefs.sed. |
| 21240 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 21241 | # Speed up: don't consider the non `#undef' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21242 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21243 | # Work around the forget-to-reset-the-flag bug. |
| 21244 | echo 't clr' >>$CONFIG_STATUS |
| 21245 | echo ': clr' >>$CONFIG_STATUS |
| 21246 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 21247 | echo 'CEOF |
| 21248 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 21249 | rm -f $tmp/in |
| 21250 | mv $tmp/out $tmp/in |
| 21251 | ' >>$CONFIG_STATUS |
| 21252 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 21253 | rm -f conftest.undefs |
| 21254 | mv conftest.tail conftest.undefs |
| 21255 | done |
| 21256 | rm -f conftest.undefs |
| 21257 | |
| 21258 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21259 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21260 | # use $as_me), people would be surprised to read: |
| 21261 | # /* config.h. Generated by config.status. */ |
| 21262 | if test x"$ac_file" = x-; then |
| 21263 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21264 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21265 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21266 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21267 | cat $tmp/in >>$tmp/config.h |
| 21268 | rm -f $tmp/in |
| 21269 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21270 | 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] | 21271 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21272 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 21273 | else |
| 21274 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21275 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21276 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21277 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21278 | X"$ac_file" : 'X\(/\)' \| \ |
| 21279 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21280 | echo X"$ac_file" | |
| 21281 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21282 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21283 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21284 | /^X\(\/\).*/{ s//\1/; q; } |
| 21285 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21286 | { if $as_mkdir_p; then |
| 21287 | mkdir -p "$ac_dir" |
| 21288 | else |
| 21289 | as_dir="$ac_dir" |
| 21290 | as_dirs= |
| 21291 | while test ! -d "$as_dir"; do |
| 21292 | as_dirs="$as_dir $as_dirs" |
| 21293 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21295 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21296 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21297 | X"$as_dir" : 'X\(/\)' \| \ |
| 21298 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21299 | echo X"$as_dir" | |
| 21300 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21301 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21302 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21303 | /^X\(\/\).*/{ s//\1/; q; } |
| 21304 | s/.*/./; q'` |
| 21305 | done |
| 21306 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21307 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21308 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21309 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21311 | rm -f $ac_file |
| 21312 | mv $tmp/config.h $ac_file |
| 21313 | fi |
| 21314 | else |
| 21315 | cat $tmp/config.h |
| 21316 | rm -f $tmp/config.h |
| 21317 | fi |
| 21318 | done |
| 21319 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21321 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21323 | { (exit 0); exit 0; } |
| 21324 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21325 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21326 | ac_clean_files=$ac_clean_files_save |
| 21327 | |
| 21328 | |
| 21329 | # configure is writing to config.log, and then calls config.status. |
| 21330 | # config.status does its own redirection, appending to config.log. |
| 21331 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21332 | # by configure, so config.status won't be able to write to it; its |
| 21333 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21334 | # effectively closing config.log, so it can be properly (re)opened and |
| 21335 | # appended to by config.status. When coming back to configure, we |
| 21336 | # need to make the FD available again. |
| 21337 | if test "$no_create" != yes; then |
| 21338 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21339 | ac_config_status_args= |
| 21340 | test "$silent" = yes && |
| 21341 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21342 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21343 | $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] | 21344 | exec 5>>config.log |
| 21345 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21346 | # would make configure fail if this is the last instruction. |
| 21347 | $ac_cs_success || { (exit 1); exit 1; } |
| 21348 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21349 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 21350 | |
| 21351 | echo "creating Setup" |
| 21352 | if test ! -f Modules/Setup |
| 21353 | then |
| 21354 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 21355 | fi |
| 21356 | |
| 21357 | echo "creating Setup.local" |
| 21358 | if test ! -f Modules/Setup.local |
| 21359 | then |
| 21360 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 21361 | fi |
| 21362 | |
| 21363 | echo "creating Makefile" |
| 21364 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 21365 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 21366 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 21367 | mv config.c Modules |