Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2 | |
Martin v. Löwis | 4f1cd8b | 2001-07-26 13:41:06 +0000 | [diff] [blame^] | 3 | # From configure.in Revision: 1.235 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5 | # Guess values for system-dependent variables and create Makefiles. |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.13 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # Defaults: |
| 13 | ac_help= |
| 14 | ac_default_prefix=/usr/local |
| 15 | # Any additions from configure.in: |
| 16 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 17 | --with-next-archs='arch1 arch2 ..' build MAB binary" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 18 | ac_help="$ac_help |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 19 | --with-next-framework Build (OpenStep|Rhapsody|MacOSX|Darwin) framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 20 | ac_help="$ac_help |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 21 | --with-dyld Use (OpenStep|Rhapsody|MacOSX|Darwin) dynamic linker" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 22 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 23 | --without-gcc never use gcc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 25 | --with-cxx=<compiler> enable C++ support" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 26 | ac_help="$ac_help |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 27 | --with-suffix=.exe set executable suffix" |
| 28 | ac_help="$ac_help |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 29 | --with-pydebug build with Py_DEBUG defined" |
| 30 | ac_help="$ac_help |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 31 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 32 | --disable-ipv6 Disable ipv6 support" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 33 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 34 | --with-libs='lib1 ...' link against additional libs" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 35 | ac_help="$ac_help |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 36 | --with-signal-module disable/enable signal module" |
| 37 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 38 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 39 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 40 | --with(out)-threads[=DIRECTORY] disable/enable thread support" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 41 | ac_help="$ac_help |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 42 | --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 43 | ac_help="$ac_help |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 44 | --with-pth use GNU pth threading libraries" |
| 45 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 46 | --with(out)-cycle-gc disable/enable garbage collection" |
| 47 | ac_help="$ac_help |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 48 | --with(out)-pymalloc disable/enable specialized mallocs" |
| 49 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 50 | --with-wctype-functions use wctype.h functions" |
| 51 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 52 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 53 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 54 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 55 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 56 | --with-fpectl enable SIGFPE catching" |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 57 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 58 | --with-libm=STRING math library" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 59 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 60 | --with-libc=STRING C library" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 61 | ac_help="$ac_help |
| 62 | --enable-unicode[=ucs2,ucs4] Enable Unicode strings (default is yes)" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 63 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 64 | # Initialize some variables set by options. |
| 65 | # The variables have the same names as the options, with |
| 66 | # dashes changed to underlines. |
| 67 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 68 | cache_file=./config.cache |
| 69 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 70 | host=NONE |
| 71 | no_create= |
| 72 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 73 | no_recursion= |
| 74 | prefix=NONE |
| 75 | program_prefix=NONE |
| 76 | program_suffix=NONE |
| 77 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 78 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 79 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 80 | srcdir= |
| 81 | target=NONE |
| 82 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 83 | x_includes=NONE |
| 84 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 85 | bindir='${exec_prefix}/bin' |
| 86 | sbindir='${exec_prefix}/sbin' |
| 87 | libexecdir='${exec_prefix}/libexec' |
| 88 | datadir='${prefix}/share' |
| 89 | sysconfdir='${prefix}/etc' |
| 90 | sharedstatedir='${prefix}/com' |
| 91 | localstatedir='${prefix}/var' |
| 92 | libdir='${exec_prefix}/lib' |
| 93 | includedir='${prefix}/include' |
| 94 | oldincludedir='/usr/include' |
| 95 | infodir='${prefix}/info' |
| 96 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 97 | |
| 98 | # Initialize some other variables. |
| 99 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 100 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 101 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 102 | # Maximum number of lines to put in a shell here document. |
| 103 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 104 | |
| 105 | ac_prev= |
| 106 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 107 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 108 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 109 | # If the previous option needs an argument, assign it. |
| 110 | if test -n "$ac_prev"; then |
| 111 | eval "$ac_prev=\$ac_option" |
| 112 | ac_prev= |
| 113 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 114 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 115 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 116 | case "$ac_option" in |
| 117 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 118 | *) ac_optarg= ;; |
| 119 | esac |
| 120 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 121 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 122 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 123 | case "$ac_option" in |
| 124 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 125 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 126 | ac_prev=bindir ;; |
| 127 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 128 | bindir="$ac_optarg" ;; |
| 129 | |
| 130 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 131 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 132 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 133 | build="$ac_optarg" ;; |
| 134 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 135 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 136 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 137 | ac_prev=cache_file ;; |
| 138 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 139 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 140 | cache_file="$ac_optarg" ;; |
| 141 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 142 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 143 | ac_prev=datadir ;; |
| 144 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 145 | | --da=*) |
| 146 | datadir="$ac_optarg" ;; |
| 147 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 148 | -disable-* | --disable-*) |
| 149 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 150 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 151 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 152 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 153 | fi |
| 154 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 155 | eval "enable_${ac_feature}=no" ;; |
| 156 | |
| 157 | -enable-* | --enable-*) |
| 158 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 159 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 160 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 161 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 162 | fi |
| 163 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 164 | case "$ac_option" in |
| 165 | *=*) ;; |
| 166 | *) ac_optarg=yes ;; |
| 167 | esac |
| 168 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 169 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 170 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 171 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 172 | | --exec | --exe | --ex) |
| 173 | ac_prev=exec_prefix ;; |
| 174 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 175 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 176 | | --exec=* | --exe=* | --ex=*) |
| 177 | exec_prefix="$ac_optarg" ;; |
| 178 | |
| 179 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 180 | # Obsolete; use --with-gas. |
| 181 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 182 | |
| 183 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 184 | # Omit some internal or obsolete options to make the list less imposing. |
| 185 | # This message is too long to be a string in the A/UX 3.1 sh. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 186 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 187 | Usage: configure [options] [host] |
| 188 | Options: [defaults in brackets after descriptions] |
| 189 | Configuration: |
| 190 | --cache-file=FILE cache test results in FILE |
| 191 | --help print this message |
| 192 | --no-create do not create output files |
| 193 | --quiet, --silent do not print \`checking...' messages |
| 194 | --version print the version of autoconf that created configure |
| 195 | Directory and file names: |
| 196 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 197 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 198 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 199 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 200 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 201 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 202 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 203 | --datadir=DIR read-only architecture-independent data in DIR |
| 204 | [PREFIX/share] |
| 205 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 206 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 207 | [PREFIX/com] |
| 208 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 209 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 210 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 211 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 212 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 213 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 214 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 215 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 216 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 217 | --program-transform-name=PROGRAM |
| 218 | run sed PROGRAM on installed program names |
| 219 | EOF |
| 220 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 221 | Host type: |
| 222 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 223 | --host=HOST configure for HOST [guessed] |
| 224 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 225 | Features and packages: |
| 226 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 227 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 228 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 229 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 230 | --x-includes=DIR X include files are in DIR |
| 231 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 232 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 233 | if test -n "$ac_help"; then |
| 234 | echo "--enable and --with options recognized:$ac_help" |
| 235 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 236 | exit 0 ;; |
| 237 | |
| 238 | -host | --host | --hos | --ho) |
| 239 | ac_prev=host ;; |
| 240 | -host=* | --host=* | --hos=* | --ho=*) |
| 241 | host="$ac_optarg" ;; |
| 242 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 243 | -includedir | --includedir | --includedi | --included | --include \ |
| 244 | | --includ | --inclu | --incl | --inc) |
| 245 | ac_prev=includedir ;; |
| 246 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 247 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 248 | includedir="$ac_optarg" ;; |
| 249 | |
| 250 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 251 | ac_prev=infodir ;; |
| 252 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 253 | infodir="$ac_optarg" ;; |
| 254 | |
| 255 | -libdir | --libdir | --libdi | --libd) |
| 256 | ac_prev=libdir ;; |
| 257 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 258 | libdir="$ac_optarg" ;; |
| 259 | |
| 260 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 261 | | --libexe | --libex | --libe) |
| 262 | ac_prev=libexecdir ;; |
| 263 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 264 | | --libexe=* | --libex=* | --libe=*) |
| 265 | libexecdir="$ac_optarg" ;; |
| 266 | |
| 267 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 268 | | --localstate | --localstat | --localsta | --localst \ |
| 269 | | --locals | --local | --loca | --loc | --lo) |
| 270 | ac_prev=localstatedir ;; |
| 271 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 272 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 273 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 274 | localstatedir="$ac_optarg" ;; |
| 275 | |
| 276 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 277 | ac_prev=mandir ;; |
| 278 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 279 | mandir="$ac_optarg" ;; |
| 280 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 281 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 282 | # Obsolete; use --without-fp. |
| 283 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 284 | |
| 285 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 286 | | --no-cr | --no-c) |
| 287 | no_create=yes ;; |
| 288 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 289 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 290 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 291 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 292 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 293 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 294 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 295 | | --oldin | --oldi | --old | --ol | --o) |
| 296 | ac_prev=oldincludedir ;; |
| 297 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 298 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 299 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 300 | oldincludedir="$ac_optarg" ;; |
| 301 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 302 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 303 | ac_prev=prefix ;; |
| 304 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 305 | prefix="$ac_optarg" ;; |
| 306 | |
| 307 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 308 | | --program-pre | --program-pr | --program-p) |
| 309 | ac_prev=program_prefix ;; |
| 310 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 311 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 312 | program_prefix="$ac_optarg" ;; |
| 313 | |
| 314 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 315 | | --program-suf | --program-su | --program-s) |
| 316 | ac_prev=program_suffix ;; |
| 317 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 318 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 319 | program_suffix="$ac_optarg" ;; |
| 320 | |
| 321 | -program-transform-name | --program-transform-name \ |
| 322 | | --program-transform-nam | --program-transform-na \ |
| 323 | | --program-transform-n | --program-transform- \ |
| 324 | | --program-transform | --program-transfor \ |
| 325 | | --program-transfo | --program-transf \ |
| 326 | | --program-trans | --program-tran \ |
| 327 | | --progr-tra | --program-tr | --program-t) |
| 328 | ac_prev=program_transform_name ;; |
| 329 | -program-transform-name=* | --program-transform-name=* \ |
| 330 | | --program-transform-nam=* | --program-transform-na=* \ |
| 331 | | --program-transform-n=* | --program-transform-=* \ |
| 332 | | --program-transform=* | --program-transfor=* \ |
| 333 | | --program-transfo=* | --program-transf=* \ |
| 334 | | --program-trans=* | --program-tran=* \ |
| 335 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 336 | program_transform_name="$ac_optarg" ;; |
| 337 | |
| 338 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 339 | | -silent | --silent | --silen | --sile | --sil) |
| 340 | silent=yes ;; |
| 341 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 342 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 343 | ac_prev=sbindir ;; |
| 344 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 345 | | --sbi=* | --sb=*) |
| 346 | sbindir="$ac_optarg" ;; |
| 347 | |
| 348 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 349 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 350 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 351 | | --sha | --sh) |
| 352 | ac_prev=sharedstatedir ;; |
| 353 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 354 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 355 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 356 | | --sha=* | --sh=*) |
| 357 | sharedstatedir="$ac_optarg" ;; |
| 358 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 359 | -site | --site | --sit) |
| 360 | ac_prev=site ;; |
| 361 | -site=* | --site=* | --sit=*) |
| 362 | site="$ac_optarg" ;; |
| 363 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 364 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 365 | ac_prev=srcdir ;; |
| 366 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 367 | srcdir="$ac_optarg" ;; |
| 368 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 369 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 370 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 371 | ac_prev=sysconfdir ;; |
| 372 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 373 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 374 | sysconfdir="$ac_optarg" ;; |
| 375 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 376 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 377 | ac_prev=target ;; |
| 378 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 379 | target="$ac_optarg" ;; |
| 380 | |
| 381 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 382 | verbose=yes ;; |
| 383 | |
| 384 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 385 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 386 | exit 0 ;; |
| 387 | |
| 388 | -with-* | --with-*) |
| 389 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 390 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 391 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 392 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 393 | fi |
| 394 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 395 | case "$ac_option" in |
| 396 | *=*) ;; |
| 397 | *) ac_optarg=yes ;; |
| 398 | esac |
| 399 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 400 | |
| 401 | -without-* | --without-*) |
| 402 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 403 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 404 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 405 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 406 | fi |
| 407 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 408 | eval "with_${ac_package}=no" ;; |
| 409 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 410 | --x) |
| 411 | # Obsolete; use --with-x. |
| 412 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 413 | |
| 414 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 415 | | --x-incl | --x-inc | --x-in | --x-i) |
| 416 | ac_prev=x_includes ;; |
| 417 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 418 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 419 | x_includes="$ac_optarg" ;; |
| 420 | |
| 421 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 422 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 423 | ac_prev=x_libraries ;; |
| 424 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 425 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 426 | x_libraries="$ac_optarg" ;; |
| 427 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 428 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 429 | ;; |
| 430 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 431 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 432 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 433 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 434 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 435 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 436 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 437 | fi |
| 438 | nonopt="$ac_option" |
| 439 | ;; |
| 440 | |
| 441 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 442 | done |
| 443 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 444 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 445 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 446 | fi |
| 447 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 448 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 449 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 450 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 451 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 452 | # 1 file creation |
| 453 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 454 | # 3 some systems may open it to /dev/tty |
| 455 | # 4 used on the Kubota Titan |
| 456 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 457 | # 5 compiler messages saved in config.log |
| 458 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 459 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 460 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 461 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 462 | fi |
| 463 | exec 5>./config.log |
| 464 | |
| 465 | echo "\ |
| 466 | This file contains any messages produced by compilers while |
| 467 | running configure, to aid debugging if configure makes a mistake. |
| 468 | " 1>&5 |
| 469 | |
| 470 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 471 | # Also quote any args containing shell metacharacters. |
| 472 | ac_configure_args= |
| 473 | for ac_arg |
| 474 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 475 | case "$ac_arg" in |
| 476 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 477 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 478 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 479 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 480 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 481 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 482 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | esac |
| 484 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 485 | |
| 486 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 487 | # Only set these to C if already set. These must not be set unconditionally |
| 488 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 489 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 490 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 491 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 492 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 493 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 494 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 495 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 496 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 497 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 498 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 499 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 500 | |
| 501 | # A filename unique to this package, relative to the directory that |
| 502 | # configure is in, which we can look for to find out if srcdir is correct. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 503 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 504 | |
| 505 | # Find the source files, if location was not specified. |
| 506 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 507 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 508 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 509 | ac_prog=$0 |
| 510 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 511 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 512 | srcdir=$ac_confdir |
| 513 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 514 | srcdir=.. |
| 515 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 516 | else |
| 517 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 518 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 519 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 520 | if test "$ac_srcdir_defaulted" = yes; then |
| 521 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 522 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 523 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 524 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 525 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 526 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 527 | |
| 528 | # Prefer explicitly selected file to automatically selected ones. |
| 529 | if test -z "$CONFIG_SITE"; then |
| 530 | if test "x$prefix" != xNONE; then |
| 531 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 532 | else |
| 533 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 534 | fi |
| 535 | fi |
| 536 | for ac_site_file in $CONFIG_SITE; do |
| 537 | if test -r "$ac_site_file"; then |
| 538 | echo "loading site script $ac_site_file" |
| 539 | . "$ac_site_file" |
| 540 | fi |
| 541 | done |
| 542 | |
| 543 | if test -r "$cache_file"; then |
| 544 | echo "loading cache $cache_file" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 545 | . $cache_file |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 546 | else |
| 547 | echo "creating cache $cache_file" |
| 548 | > $cache_file |
| 549 | fi |
| 550 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 551 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 552 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 553 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 554 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 555 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 556 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 557 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 558 | ac_exeext= |
| 559 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 560 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 561 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 562 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 563 | ac_n= ac_c=' |
| 564 | ' ac_t=' ' |
| 565 | else |
| 566 | ac_n=-n ac_c= ac_t= |
| 567 | fi |
| 568 | else |
| 569 | ac_n= ac_c='\c' ac_t= |
| 570 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 571 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 572 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 573 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 574 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 575 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 576 | |
Guido van Rossum | 6db412b | 2001-04-18 04:37:57 +0000 | [diff] [blame] | 577 | VERSION=2.2 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 578 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 579 | # Arguments passed to configure. |
| 580 | |
| 581 | CONFIG_ARGS="$ac_configure_args" |
| 582 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 583 | # NEXTSTEP|MacOSX|Darwin stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 584 | if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices/software_version ; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 585 | |
| 586 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 587 | echo "configure:588: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 588 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 589 | if test "${with_next_archs+set}" = set; then |
| 590 | withval="$with_next_archs" |
| 591 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 592 | if test -n "$withval"; then |
| 593 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 594 | # GCC does not currently support multi archs on the NeXT |
| 595 | with_gcc=no |
| 596 | fi |
| 597 | echo "$ac_t""$with_next_archs" 1>&6 |
| 598 | |
| 599 | else |
| 600 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 601 | fi |
| 602 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 603 | |
| 604 | if test -z "$MACHDEP" |
| 605 | then |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 606 | ac_sys_system=`uname -s` |
| 607 | if test "$ac_sys_system" = "Darwin" ; then |
| 608 | ac_sys_release=`uname -r` |
| 609 | else |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 610 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 611 | sed -e 's/://' -e 's/\./_/'` && \ |
| 612 | ac_sys_system=next && ac_sys_release=$4 |
| 613 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 614 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 615 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 616 | fi |
| 617 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 618 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 619 | # Check whether --with-next-framework or --without-next-framework was given. |
| 620 | if test "${with_next_framework+set}" = set; then |
| 621 | withval="$with_next_framework" |
| 622 | : |
| 623 | fi |
| 624 | |
| 625 | # Check whether --with-dyld or --without-dyld was given. |
| 626 | if test "${with_dyld+set}" = set; then |
| 627 | withval="$with_dyld" |
| 628 | : |
| 629 | fi |
| 630 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 631 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 632 | # Set name for machine-dependent library files |
| 633 | |
| 634 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 635 | echo "configure:636: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 636 | if test -z "$MACHDEP" |
| 637 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 638 | ac_sys_system=`uname -s` |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 639 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 640 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 641 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 642 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 643 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 644 | ac_md_system=`echo $ac_sys_system | |
| 645 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 646 | ac_md_release=`echo $ac_sys_release | |
| 647 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 648 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 649 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 650 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 651 | cygwin*) MACHDEP="cygwin";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 652 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 653 | esac |
| 654 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 655 | |
| 656 | # |
| 657 | # SGI compilers allow the specification of the both the ABI and the |
| 658 | # ISA on the command line. Depending on the values of these switches, |
| 659 | # different and often incompatable code will be generated. |
| 660 | # |
| 661 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 662 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 663 | # variable is also adjusted. |
| 664 | # |
| 665 | |
| 666 | if test ! -z "$SGI_ABI" |
| 667 | then |
| 668 | CC="cc $SGI_ABI" |
| 669 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 670 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 671 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 672 | echo "$ac_t""$MACHDEP" 1>&6 |
| 673 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 674 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 675 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 676 | echo "configure:677: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 677 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 678 | if test "${with_gcc+set}" = set; then |
| 679 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 680 | |
| 681 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 682 | no) CC=cc |
| 683 | without_gcc=yes;; |
| 684 | yes) CC=gcc |
| 685 | without_gcc=no;; |
| 686 | *) CC=$withval |
| 687 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 688 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 689 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 690 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 691 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 692 | AIX*) CC=cc_r |
| 693 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 694 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 695 | case $BE_HOST_CPU in |
| 696 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 697 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 698 | without_gcc=yes |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 699 | OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 700 | CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 701 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 702 | ;; |
| 703 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 704 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 705 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 706 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 707 | ;; |
| 708 | *) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 709 | { echo "configure: error: Unknown BeOS platform \"$BE_HOST_CPU\"" 1>&2; exit 1; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 710 | ;; |
| 711 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 712 | AR="\$(srcdir)/Modules/ar_beos" |
| 713 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 714 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 715 | Monterey*) |
| 716 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 717 | without_gcc=;; |
| 718 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 719 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 720 | fi |
| 721 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 722 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 723 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 724 | |
| 725 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 726 | MAINOBJ=python.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 727 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 728 | echo "configure:729: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 729 | # Check whether --with-cxx or --without-cxx was given. |
| 730 | if test "${with_cxx+set}" = set; then |
| 731 | withval="$with_cxx" |
| 732 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 733 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 734 | case $withval in |
| 735 | no) CXX= |
| 736 | with_cxx=no;; |
| 737 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 738 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 739 | with_cxx=$withval;; |
| 740 | esac |
| 741 | else |
| 742 | |
| 743 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 744 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 745 | |
| 746 | fi |
| 747 | |
| 748 | echo "$ac_t""$with_cxx" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 749 | |
| 750 | |
| 751 | if test "$check_cxx" = "yes" |
| 752 | then |
| 753 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 754 | do |
| 755 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 756 | set dummy $ac_prog; ac_word=$2 |
| 757 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 758 | echo "configure:759: checking for $ac_word" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 759 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| 760 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 761 | else |
| 762 | if test -n "$CXX"; then |
| 763 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 764 | else |
| 765 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 766 | ac_dummy="$PATH" |
| 767 | for ac_dir in $ac_dummy; do |
| 768 | test -z "$ac_dir" && ac_dir=. |
| 769 | if test -f $ac_dir/$ac_word; then |
| 770 | ac_cv_prog_CXX="$ac_prog" |
| 771 | break |
| 772 | fi |
| 773 | done |
| 774 | IFS="$ac_save_ifs" |
| 775 | fi |
| 776 | fi |
| 777 | CXX="$ac_cv_prog_CXX" |
| 778 | if test -n "$CXX"; then |
| 779 | echo "$ac_t""$CXX" 1>&6 |
| 780 | else |
| 781 | echo "$ac_t""no" 1>&6 |
| 782 | fi |
| 783 | |
| 784 | test -n "$CXX" && break |
| 785 | done |
| 786 | test -n "$CXX" || CXX="notfound" |
| 787 | |
| 788 | if test "$CXX" = "notfound" |
| 789 | then |
| 790 | CXX= |
| 791 | else |
| 792 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 793 | echo "configure:794: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 794 | |
| 795 | ac_ext=C |
| 796 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 797 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 798 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 799 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 800 | cross_compiling=$ac_cv_prog_cxx_cross |
| 801 | |
| 802 | cat > conftest.$ac_ext << EOF |
| 803 | |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 804 | #line 805 "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 805 | #include "confdefs.h" |
| 806 | |
| 807 | int main(){return(0);} |
| 808 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 809 | if { (eval echo configure:810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 810 | ac_cv_prog_cxx_works=yes |
| 811 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 812 | if (./conftest; exit) 2>/dev/null; then |
| 813 | ac_cv_prog_cxx_cross=no |
| 814 | else |
| 815 | ac_cv_prog_cxx_cross=yes |
| 816 | fi |
| 817 | else |
| 818 | echo "configure: failed program was:" >&5 |
| 819 | cat conftest.$ac_ext >&5 |
| 820 | ac_cv_prog_cxx_works=no |
| 821 | fi |
| 822 | rm -fr conftest* |
| 823 | ac_ext=c |
| 824 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 825 | ac_cpp='$CPP $CPPFLAGS' |
| 826 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 827 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 828 | cross_compiling=$ac_cv_prog_cc_cross |
| 829 | |
| 830 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| 831 | if test $ac_cv_prog_cxx_works = no; then |
| 832 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| 833 | fi |
| 834 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 835 | echo "configure:836: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 836 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| 837 | cross_compiling=$ac_cv_prog_cxx_cross |
| 838 | |
| 839 | fi |
| 840 | fi |
| 841 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 842 | # If the user switches compilers, we can't believe the cache |
| 843 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 844 | then |
| 845 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 846 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 847 | fi |
| 848 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 849 | # Extract the first word of "gcc", so it can be a program name with args. |
| 850 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 851 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 852 | echo "configure:853: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 853 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 854 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 855 | else |
| 856 | if test -n "$CC"; then |
| 857 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 858 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 859 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 860 | ac_dummy="$PATH" |
| 861 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 862 | test -z "$ac_dir" && ac_dir=. |
| 863 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 864 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 865 | break |
| 866 | fi |
| 867 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 868 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 869 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 870 | fi |
| 871 | CC="$ac_cv_prog_CC" |
| 872 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 873 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 874 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 875 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 876 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 877 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 878 | if test -z "$CC"; then |
| 879 | # Extract the first word of "cc", so it can be a program name with args. |
| 880 | set dummy cc; ac_word=$2 |
| 881 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 882 | echo "configure:883: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 883 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 884 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 885 | else |
| 886 | if test -n "$CC"; then |
| 887 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 888 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 889 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 890 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 891 | ac_dummy="$PATH" |
| 892 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 893 | test -z "$ac_dir" && ac_dir=. |
| 894 | if test -f $ac_dir/$ac_word; then |
| 895 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 896 | ac_prog_rejected=yes |
| 897 | continue |
| 898 | fi |
| 899 | ac_cv_prog_CC="cc" |
| 900 | break |
| 901 | fi |
| 902 | done |
| 903 | IFS="$ac_save_ifs" |
| 904 | if test $ac_prog_rejected = yes; then |
| 905 | # We found a bogon in the path, so make sure we never use it. |
| 906 | set dummy $ac_cv_prog_CC |
| 907 | shift |
| 908 | if test $# -gt 0; then |
| 909 | # We chose a different compiler from the bogus one. |
| 910 | # However, it has the same basename, so the bogon will be chosen |
| 911 | # first if we set CC to just the basename; use the full file name. |
| 912 | shift |
| 913 | set dummy "$ac_dir/$ac_word" "$@" |
| 914 | shift |
| 915 | ac_cv_prog_CC="$@" |
| 916 | fi |
| 917 | fi |
| 918 | fi |
| 919 | fi |
| 920 | CC="$ac_cv_prog_CC" |
| 921 | if test -n "$CC"; then |
| 922 | echo "$ac_t""$CC" 1>&6 |
| 923 | else |
| 924 | echo "$ac_t""no" 1>&6 |
| 925 | fi |
| 926 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 927 | if test -z "$CC"; then |
| 928 | case "`uname -s`" in |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 929 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 930 | # Extract the first word of "cl", so it can be a program name with args. |
| 931 | set dummy cl; ac_word=$2 |
| 932 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 933 | echo "configure:934: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 934 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 935 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 936 | else |
| 937 | if test -n "$CC"; then |
| 938 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 939 | else |
| 940 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 941 | ac_dummy="$PATH" |
| 942 | for ac_dir in $ac_dummy; do |
| 943 | test -z "$ac_dir" && ac_dir=. |
| 944 | if test -f $ac_dir/$ac_word; then |
| 945 | ac_cv_prog_CC="cl" |
| 946 | break |
| 947 | fi |
| 948 | done |
| 949 | IFS="$ac_save_ifs" |
| 950 | fi |
| 951 | fi |
| 952 | CC="$ac_cv_prog_CC" |
| 953 | if test -n "$CC"; then |
| 954 | echo "$ac_t""$CC" 1>&6 |
| 955 | else |
| 956 | echo "$ac_t""no" 1>&6 |
| 957 | fi |
| 958 | ;; |
| 959 | esac |
| 960 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 961 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 962 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 963 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 964 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 965 | echo "configure:966: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 966 | |
| 967 | ac_ext=c |
| 968 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 969 | ac_cpp='$CPP $CPPFLAGS' |
| 970 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 971 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 972 | cross_compiling=$ac_cv_prog_cc_cross |
| 973 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 974 | cat > conftest.$ac_ext << EOF |
| 975 | |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 976 | #line 977 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 977 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 978 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 979 | main(){return(0);} |
| 980 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 981 | if { (eval echo configure:982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 982 | ac_cv_prog_cc_works=yes |
| 983 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 984 | if (./conftest; exit) 2>/dev/null; then |
| 985 | ac_cv_prog_cc_cross=no |
| 986 | else |
| 987 | ac_cv_prog_cc_cross=yes |
| 988 | fi |
| 989 | else |
| 990 | echo "configure: failed program was:" >&5 |
| 991 | cat conftest.$ac_ext >&5 |
| 992 | ac_cv_prog_cc_works=no |
| 993 | fi |
| 994 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 995 | ac_ext=c |
| 996 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 997 | ac_cpp='$CPP $CPPFLAGS' |
| 998 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 999 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1000 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1001 | |
| 1002 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1003 | if test $ac_cv_prog_cc_works = no; then |
| 1004 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1005 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1006 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1007 | echo "configure:1008: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1008 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1009 | cross_compiling=$ac_cv_prog_cc_cross |
| 1010 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1011 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1012 | echo "configure:1013: checking whether we are using GNU C" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1013 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1014 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1015 | else |
| 1016 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1017 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1018 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1019 | #endif |
| 1020 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1021 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1022 | ac_cv_prog_gcc=yes |
| 1023 | else |
| 1024 | ac_cv_prog_gcc=no |
| 1025 | fi |
| 1026 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1027 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1028 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1029 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1030 | if test $ac_cv_prog_gcc = yes; then |
| 1031 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1032 | else |
| 1033 | GCC= |
| 1034 | fi |
| 1035 | |
| 1036 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1037 | ac_save_CFLAGS="$CFLAGS" |
| 1038 | CFLAGS= |
| 1039 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1040 | echo "configure:1041: checking whether ${CC-cc} accepts -g" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1041 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1042 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1043 | else |
| 1044 | echo 'void f(){}' > conftest.c |
| 1045 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1046 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1047 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1048 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1049 | fi |
| 1050 | rm -f conftest* |
| 1051 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1052 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1053 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1054 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1055 | if test "$ac_test_CFLAGS" = set; then |
| 1056 | CFLAGS="$ac_save_CFLAGS" |
| 1057 | elif test $ac_cv_prog_cc_g = yes; then |
| 1058 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1059 | CFLAGS="-g -O2" |
| 1060 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1061 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1062 | fi |
| 1063 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1064 | if test "$GCC" = yes; then |
| 1065 | CFLAGS="-O2" |
| 1066 | else |
| 1067 | CFLAGS= |
| 1068 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1069 | fi |
| 1070 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1071 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1072 | echo "configure:1073: checking for Cygwin environment" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1073 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1074 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1075 | else |
| 1076 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1077 | #line 1078 "configure" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1078 | #include "confdefs.h" |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1079 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1080 | int main() { |
| 1081 | |
| 1082 | #ifndef __CYGWIN__ |
| 1083 | #define __CYGWIN__ __CYGWIN32__ |
| 1084 | #endif |
| 1085 | return __CYGWIN__; |
| 1086 | ; return 0; } |
| 1087 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1088 | if { (eval echo configure:1089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1089 | rm -rf conftest* |
| 1090 | ac_cv_cygwin=yes |
| 1091 | else |
| 1092 | echo "configure: failed program was:" >&5 |
| 1093 | cat conftest.$ac_ext >&5 |
| 1094 | rm -rf conftest* |
| 1095 | ac_cv_cygwin=no |
| 1096 | fi |
| 1097 | rm -f conftest* |
| 1098 | rm -f conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1099 | fi |
| 1100 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1101 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1102 | CYGWIN= |
| 1103 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1104 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1105 | echo "configure:1106: checking for mingw32 environment" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1106 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1107 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1108 | else |
| 1109 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1110 | #line 1111 "configure" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1111 | #include "confdefs.h" |
| 1112 | |
| 1113 | int main() { |
| 1114 | return __MINGW32__; |
| 1115 | ; return 0; } |
| 1116 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1117 | if { (eval echo configure:1118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1118 | rm -rf conftest* |
| 1119 | ac_cv_mingw32=yes |
| 1120 | else |
| 1121 | echo "configure: failed program was:" >&5 |
| 1122 | cat conftest.$ac_ext >&5 |
| 1123 | rm -rf conftest* |
| 1124 | ac_cv_mingw32=no |
| 1125 | fi |
| 1126 | rm -f conftest* |
| 1127 | rm -f conftest* |
| 1128 | fi |
| 1129 | |
| 1130 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1131 | MINGW32= |
| 1132 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1133 | |
| 1134 | |
| 1135 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1136 | echo "configure:1137: checking for executable suffix" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1137 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 1138 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1139 | else |
| 1140 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 1141 | ac_cv_exeext=.exe |
| 1142 | else |
| 1143 | rm -f conftest* |
| 1144 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 1145 | ac_cv_exeext= |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1146 | if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1147 | for file in conftest.*; do |
| 1148 | case $file in |
| 1149 | *.c | *.o | *.obj) ;; |
| 1150 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 1151 | esac |
| 1152 | done |
| 1153 | else |
| 1154 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 1155 | fi |
| 1156 | rm -f conftest* |
| 1157 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 1158 | fi |
| 1159 | fi |
| 1160 | |
| 1161 | EXEEXT="" |
| 1162 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 1163 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 1164 | ac_exeext=$EXEEXT |
| 1165 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1166 | echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1167 | echo "configure:1168: checking for --with-suffix" >&5 |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1168 | # Check whether --with-suffix or --without-suffix was given. |
| 1169 | if test "${with_suffix+set}" = set; then |
| 1170 | withval="$with_suffix" |
| 1171 | |
| 1172 | case $withval in |
| 1173 | no) EXEEXT=;; |
| 1174 | yes) EXEEXT=.exe;; |
| 1175 | *) EXEEXT=$withval;; |
| 1176 | esac |
| 1177 | fi |
| 1178 | |
| 1179 | echo "$ac_t""$EXEEXT" 1>&6 |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1180 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1181 | case $MACHDEP in |
| 1182 | bsdos*) |
| 1183 | case $CC in |
| 1184 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1185 | esac;; |
| 1186 | esac |
| 1187 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1188 | case $ac_sys_system in |
| 1189 | hp*|HP*) |
| 1190 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1191 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1192 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1193 | Monterey*) |
| 1194 | case $CC in |
| 1195 | cc) CC="$CC -Wl,-Bexport";; |
| 1196 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1197 | SunOS*) |
| 1198 | # Some functions have a prototype only with that define, e.g. confstr |
| 1199 | cat >> confdefs.h <<\EOF |
| 1200 | #define __EXTENSIONS__ 1 |
| 1201 | EOF |
| 1202 | |
| 1203 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1204 | esac |
| 1205 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1206 | |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1207 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1208 | echo $ac_n "checking LIBRARY""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1209 | echo "configure:1210: checking LIBRARY" >&5 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1210 | if test -z "$LIBRARY" |
| 1211 | then |
| 1212 | LIBRARY='libpython$(VERSION).a' |
| 1213 | fi |
| 1214 | echo "$ac_t""$LIBRARY" 1>&6 |
| 1215 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1216 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1217 | # name of the library into which to insert object files). On systems |
| 1218 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1219 | # the Makefiles). On Cygwin LDLIBRARY is the import library, DLLLIBRARY is the |
| 1220 | # shared (i.e., DLL) library. |
| 1221 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1222 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1223 | LDLIBRARY="$LIBRARY" |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 1224 | DLLLIBRARY='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1225 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1226 | # LINKCC is the command that links the python executable -- default is $(CC). |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1227 | # 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] | 1228 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1229 | |
| 1230 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1231 | echo "configure:1232: checking LINKCC" >&5 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1232 | if test -z "$LINKCC" |
| 1233 | then |
| 1234 | case $ac_sys_system in |
| 1235 | AIX*) |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1236 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1237 | dgux*) |
| 1238 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1239 | Monterey64*) |
| 1240 | LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1241 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1242 | esac |
| 1243 | fi |
| 1244 | echo "$ac_t""$LINKCC" 1>&6 |
| 1245 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1246 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1247 | echo "configure:1248: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1248 | |
| 1249 | # NeXT framework builds require that the 'ar' library be converted into |
| 1250 | # a bundle using libtool. |
| 1251 | if test "$with_next_framework" |
| 1252 | then |
| 1253 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1254 | fi |
| 1255 | |
| 1256 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1257 | case $MACHDEP in |
| 1258 | dguxR4) |
| 1259 | LDLIBRARY='libpython$(VERSION).so' |
| 1260 | OPT="$OPT -pic" |
| 1261 | ;; |
| 1262 | beos*) |
| 1263 | LDLIBRARY='libpython$(VERSION).so' |
| 1264 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1265 | cygwin*) |
| 1266 | LDLIBRARY='libpython$(VERSION).dll.a' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1267 | DLLLIBRARY='libpython$(VERSION).dll' |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1268 | ;; |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1269 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1270 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1271 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1272 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1273 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1274 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1275 | echo "configure:1276: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1276 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1277 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1278 | else |
| 1279 | if test -n "$RANLIB"; then |
| 1280 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1281 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1282 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1283 | ac_dummy="$PATH" |
| 1284 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1285 | test -z "$ac_dir" && ac_dir=. |
| 1286 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1287 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1288 | break |
| 1289 | fi |
| 1290 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1291 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1292 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1293 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1294 | fi |
| 1295 | RANLIB="$ac_cv_prog_RANLIB" |
| 1296 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1297 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1298 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1299 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1300 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1301 | |
| 1302 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1303 | for ac_prog in ar aal |
| 1304 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1305 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1306 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1307 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1308 | echo "configure:1309: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1309 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1310 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1311 | else |
| 1312 | if test -n "$AR"; then |
| 1313 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1314 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1315 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1316 | ac_dummy="$PATH" |
| 1317 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1318 | test -z "$ac_dir" && ac_dir=. |
| 1319 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1320 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1321 | break |
| 1322 | fi |
| 1323 | done |
| 1324 | IFS="$ac_save_ifs" |
| 1325 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1326 | fi |
| 1327 | AR="$ac_cv_prog_AR" |
| 1328 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1329 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1330 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1331 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1332 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1333 | |
| 1334 | test -n "$AR" && break |
| 1335 | done |
| 1336 | test -n "$AR" || AR="ar" |
| 1337 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 1338 | |
| 1339 | case $MACHDEP in |
| 1340 | bsdos*) |
| 1341 | # install -d does not work on BSDI |
| 1342 | if test -z "$INSTALL" |
| 1343 | then |
| 1344 | INSTALL="${srcdir}/install-sh -c" |
| 1345 | fi |
| 1346 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1347 | ac_aux_dir= |
| 1348 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1349 | if test -f $ac_dir/install-sh; then |
| 1350 | ac_aux_dir=$ac_dir |
| 1351 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1352 | break |
| 1353 | elif test -f $ac_dir/install.sh; then |
| 1354 | ac_aux_dir=$ac_dir |
| 1355 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1356 | break |
| 1357 | fi |
| 1358 | done |
| 1359 | if test -z "$ac_aux_dir"; then |
| 1360 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1361 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1362 | ac_config_guess=$ac_aux_dir/config.guess |
| 1363 | ac_config_sub=$ac_aux_dir/config.sub |
| 1364 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 1365 | |
| 1366 | # Find a good install program. We prefer a C program (faster), |
| 1367 | # so one script is as good as another. But avoid the broken or |
| 1368 | # incompatible versions: |
| 1369 | # SysV /etc/install, /usr/sbin/install |
| 1370 | # SunOS /usr/etc/install |
| 1371 | # IRIX /sbin/install |
| 1372 | # AIX /bin/install |
| 1373 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1374 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1375 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1376 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1377 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1378 | echo "configure:1379: checking for a BSD compatible install" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1379 | if test -z "$INSTALL"; then |
| 1380 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1381 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1382 | else |
| 1383 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 1384 | for ac_dir in $PATH; do |
| 1385 | # Account for people who put trailing slashes in PATH elements. |
| 1386 | case "$ac_dir/" in |
| 1387 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1388 | *) |
| 1389 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1390 | # Don't use installbsd from OSF since it installs stuff as root |
| 1391 | # by default. |
| 1392 | for ac_prog in ginstall scoinst install; do |
| 1393 | if test -f $ac_dir/$ac_prog; then |
| 1394 | if test $ac_prog = install && |
| 1395 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1396 | # AIX install. It has an incompatible calling convention. |
| 1397 | : |
| 1398 | else |
| 1399 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1400 | break 2 |
| 1401 | fi |
| 1402 | fi |
| 1403 | done |
| 1404 | ;; |
| 1405 | esac |
| 1406 | done |
| 1407 | IFS="$ac_save_IFS" |
| 1408 | |
| 1409 | fi |
| 1410 | if test "${ac_cv_path_install+set}" = set; then |
| 1411 | INSTALL="$ac_cv_path_install" |
| 1412 | else |
| 1413 | # As a last resort, use the slow shell script. We don't cache a |
| 1414 | # path for INSTALL within a source directory, because that will |
| 1415 | # break other packages using the cache if that directory is |
| 1416 | # removed, or if the path is relative. |
| 1417 | INSTALL="$ac_install_sh" |
| 1418 | fi |
| 1419 | fi |
| 1420 | echo "$ac_t""$INSTALL" 1>&6 |
| 1421 | |
| 1422 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1423 | # It thinks the first close brace ends the variable substitution. |
| 1424 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1425 | |
| 1426 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 1427 | |
| 1428 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1429 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1430 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1431 | # Not every filesystem supports hard links |
| 1432 | |
| 1433 | if test -z "$LN" ; then |
| 1434 | case $ac_sys_system in |
| 1435 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1436 | CYGWIN*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1437 | *) LN=ln;; |
| 1438 | esac |
| 1439 | fi |
| 1440 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1441 | # Check for --with-pydebug |
| 1442 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1443 | echo "configure:1444: checking for --with-pydebug" >&5 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1444 | # Check whether --with-pydebug or --without-pydebug was given. |
| 1445 | if test "${with_pydebug+set}" = set; then |
| 1446 | withval="$with_pydebug" |
| 1447 | |
| 1448 | if test "$withval" != no |
| 1449 | then cat >> confdefs.h <<\EOF |
| 1450 | #define Py_DEBUG 1 |
| 1451 | EOF |
| 1452 | echo "$ac_t""yes" 1>&6; Py_DEBUG='true' |
| 1453 | else echo "$ac_t""no" 1>&6; Py_DEBUG='false' |
| 1454 | fi |
| 1455 | else |
| 1456 | echo "$ac_t""no" 1>&6 |
| 1457 | fi |
| 1458 | |
| 1459 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1460 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1461 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1462 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1463 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1464 | case $GCC in |
| 1465 | yes) |
| 1466 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1467 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1468 | if test "$Py_DEBUG" = 'true' ; then |
| 1469 | # Optimization messes up debuggers, so turn it off for |
| 1470 | # debug builds. |
| 1471 | OPT="-g -Wall -Wstrict-prototypes" |
| 1472 | else |
| 1473 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 1474 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1475 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1476 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 1477 | esac |
| 1478 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1479 | *) |
| 1480 | case $ac_sys_system in |
| 1481 | UnixWare*) |
| 1482 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
| 1483 | *) |
| 1484 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1485 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1486 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1487 | fi |
| 1488 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1489 | # The current (beta) Monterey compiler dies with optimizations |
| 1490 | case $ac_sys_system in |
| 1491 | Monterey*) OPT="";; |
| 1492 | esac |
| 1493 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1494 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1495 | then |
| 1496 | OPT="$OPT $ac_arch_flags" |
| 1497 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1498 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1499 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1500 | echo "configure:1501: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1501 | # On Suns, sometimes $CPP names a directory. |
| 1502 | if test -n "$CPP" && test -d "$CPP"; then |
| 1503 | CPP= |
| 1504 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1505 | if test -z "$CPP"; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1506 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1507 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1508 | else |
| 1509 | # This must be in double quotes, not single quotes, because CPP may get |
| 1510 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1511 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1512 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1513 | # not just through cpp. |
| 1514 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1515 | #line 1516 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1516 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1517 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1518 | Syntax Error |
| 1519 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1520 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1521 | { (eval echo configure:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1522 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1523 | if test -z "$ac_err"; then |
| 1524 | : |
| 1525 | else |
| 1526 | echo "$ac_err" >&5 |
| 1527 | echo "configure: failed program was:" >&5 |
| 1528 | cat conftest.$ac_ext >&5 |
| 1529 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1530 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1531 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1532 | #line 1533 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1533 | #include "confdefs.h" |
| 1534 | #include <assert.h> |
| 1535 | Syntax Error |
| 1536 | EOF |
| 1537 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1538 | { (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1539 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1540 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1541 | : |
| 1542 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1543 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1544 | echo "configure: failed program was:" >&5 |
| 1545 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1546 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1547 | CPP="${CC-cc} -nologo -E" |
| 1548 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1549 | #line 1550 "configure" |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1550 | #include "confdefs.h" |
| 1551 | #include <assert.h> |
| 1552 | Syntax Error |
| 1553 | EOF |
| 1554 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1555 | { (eval echo configure:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1556 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1557 | if test -z "$ac_err"; then |
| 1558 | : |
| 1559 | else |
| 1560 | echo "$ac_err" >&5 |
| 1561 | echo "configure: failed program was:" >&5 |
| 1562 | cat conftest.$ac_ext >&5 |
| 1563 | rm -rf conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1564 | CPP=/lib/cpp |
| 1565 | fi |
| 1566 | rm -f conftest* |
| 1567 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1568 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1569 | fi |
| 1570 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1571 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1572 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1573 | CPP="$ac_cv_prog_CPP" |
| 1574 | else |
| 1575 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1576 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1577 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1578 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1579 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1580 | echo "configure:1581: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1581 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1582 | #line 1583 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1583 | #include "confdefs.h" |
| 1584 | #ifdef _AIX |
| 1585 | yes |
| 1586 | #endif |
| 1587 | |
| 1588 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1589 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1590 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1591 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1592 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1593 | #define _ALL_SOURCE 1 |
| 1594 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1595 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1596 | else |
| 1597 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1598 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1599 | fi |
| 1600 | rm -f conftest* |
| 1601 | |
| 1602 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1603 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1604 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1605 | echo "configure:1606: checking for minix/config.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1606 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1607 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1608 | else |
| 1609 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1610 | #line 1611 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1611 | #include "confdefs.h" |
| 1612 | #include <minix/config.h> |
| 1613 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1614 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1615 | { (eval echo configure:1616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1616 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1617 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1618 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1619 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1620 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1621 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1622 | echo "configure: failed program was:" >&5 |
| 1623 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1624 | rm -rf conftest* |
| 1625 | eval "ac_cv_header_$ac_safe=no" |
| 1626 | fi |
| 1627 | rm -f conftest* |
| 1628 | fi |
| 1629 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1630 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1631 | MINIX=yes |
| 1632 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1633 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1634 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1635 | fi |
| 1636 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1637 | if test "$MINIX" = yes; then |
| 1638 | cat >> confdefs.h <<\EOF |
| 1639 | #define _POSIX_SOURCE 1 |
| 1640 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1641 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1642 | cat >> confdefs.h <<\EOF |
| 1643 | #define _POSIX_1_SOURCE 2 |
| 1644 | EOF |
| 1645 | |
| 1646 | cat >> confdefs.h <<\EOF |
| 1647 | #define _MINIX 1 |
| 1648 | EOF |
| 1649 | |
| 1650 | fi |
| 1651 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1652 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1653 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1654 | echo "configure:1655: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1655 | if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1656 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1657 | else |
| 1658 | ac_save_cc="$CC" |
| 1659 | CC="$CC -OPT:Olimit=0" |
| 1660 | if test "$cross_compiling" = yes; then |
| 1661 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1662 | else |
| 1663 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1664 | #line 1665 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1665 | #include "confdefs.h" |
| 1666 | int main() { return 0; } |
| 1667 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1668 | if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1669 | then |
| 1670 | ac_cv_opt_olimit_ok=yes |
| 1671 | else |
| 1672 | echo "configure: failed program was:" >&5 |
| 1673 | cat conftest.$ac_ext >&5 |
| 1674 | rm -fr conftest* |
| 1675 | ac_cv_opt_olimit_ok=no |
| 1676 | fi |
| 1677 | rm -fr conftest* |
| 1678 | fi |
| 1679 | |
| 1680 | CC="$ac_save_cc" |
| 1681 | fi |
| 1682 | |
| 1683 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1684 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 1685 | case $ac_sys_system in |
| 1686 | Darwin*) OPT="$OPT" ;; |
| 1687 | *) OPT="$OPT -OPT:Olimit=0";; |
| 1688 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1689 | else |
| 1690 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1691 | echo "configure:1692: checking whether $CC accepts -Olimit 1500" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1692 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1693 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1694 | else |
| 1695 | ac_save_cc="$CC" |
| 1696 | CC="$CC -Olimit 1500" |
| 1697 | if test "$cross_compiling" = yes; then |
| 1698 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1699 | else |
| 1700 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1701 | #line 1702 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1702 | #include "confdefs.h" |
| 1703 | int main() { return 0; } |
| 1704 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1705 | if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1706 | then |
| 1707 | ac_cv_olimit_ok=yes |
| 1708 | else |
| 1709 | echo "configure: failed program was:" >&5 |
| 1710 | cat conftest.$ac_ext >&5 |
| 1711 | rm -fr conftest* |
| 1712 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1713 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1714 | rm -fr conftest* |
| 1715 | fi |
| 1716 | |
| 1717 | CC="$ac_save_cc" |
| 1718 | fi |
| 1719 | |
| 1720 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1721 | if test $ac_cv_olimit_ok = yes; then |
| 1722 | OPT="$OPT -Olimit 1500" |
| 1723 | fi |
| 1724 | fi |
| 1725 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1726 | # Check for enable-ipv6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1727 | echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1728 | echo "configure:1729: checking whether to enable ipv6" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1729 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 1730 | if test "${enable_ipv6+set}" = set; then |
| 1731 | enableval="$enable_ipv6" |
| 1732 | case "$enableval" in |
| 1733 | no) |
| 1734 | echo "$ac_t""no" 1>&6 |
| 1735 | ipv6=no |
| 1736 | ;; |
| 1737 | *) echo "$ac_t""yes" 1>&6 |
| 1738 | cat >> confdefs.h <<\EOF |
| 1739 | #define ENABLE_IPV6 1 |
| 1740 | EOF |
| 1741 | |
| 1742 | ipv6=yes |
| 1743 | ;; |
| 1744 | esac |
| 1745 | else |
| 1746 | if test "$cross_compiling" = yes; then |
| 1747 | echo "$ac_t""no" 1>&6 |
| 1748 | ipv6=no |
| 1749 | |
| 1750 | else |
| 1751 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1752 | #line 1753 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1753 | #include "confdefs.h" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1754 | /* AF_INET6 available check */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1755 | #include <sys/types.h> |
| 1756 | #include <sys/socket.h> |
| 1757 | main() |
| 1758 | { |
| 1759 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 1760 | exit(1); |
| 1761 | else |
| 1762 | exit(0); |
| 1763 | } |
| 1764 | |
| 1765 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1766 | if { (eval echo configure:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1767 | then |
| 1768 | echo "$ac_t""yes" 1>&6 |
| 1769 | cat >> confdefs.h <<\EOF |
| 1770 | #define ENABLE_IPV6 1 |
| 1771 | EOF |
| 1772 | |
| 1773 | ipv6=yes |
| 1774 | else |
| 1775 | echo "configure: failed program was:" >&5 |
| 1776 | cat conftest.$ac_ext >&5 |
| 1777 | rm -fr conftest* |
| 1778 | echo "$ac_t""no" 1>&6 |
| 1779 | ipv6=no |
| 1780 | fi |
| 1781 | rm -fr conftest* |
| 1782 | fi |
| 1783 | |
| 1784 | fi |
| 1785 | |
| 1786 | |
| 1787 | ipv6type=unknown |
| 1788 | ipv6lib=none |
| 1789 | ipv6trylibc=no |
| 1790 | |
| 1791 | if test "$ipv6" = "yes"; then |
| 1792 | echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1793 | echo "configure:1794: checking ipv6 stack type" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1794 | for i in inria kame linux-glibc linux-inet6 toshiba v6d zeta; do |
| 1795 | case $i in |
| 1796 | inria) |
| 1797 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1798 | #line 1799 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1799 | #include "confdefs.h" |
| 1800 | dnl |
| 1801 | #include <netinet/in.h> |
| 1802 | #ifdef IPV6_INRIA_VERSION |
| 1803 | yes |
| 1804 | #endif |
| 1805 | EOF |
| 1806 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1807 | egrep "yes" >/dev/null 2>&1; then |
| 1808 | rm -rf conftest* |
| 1809 | ipv6type=$i; |
| 1810 | OPT="-DINET6 $OPT" |
| 1811 | fi |
| 1812 | rm -f conftest* |
| 1813 | |
| 1814 | ;; |
| 1815 | kame) |
| 1816 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1817 | #line 1818 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1818 | #include "confdefs.h" |
| 1819 | dnl |
| 1820 | #include <netinet/in.h> |
| 1821 | #ifdef __KAME__ |
| 1822 | yes |
| 1823 | #endif |
| 1824 | EOF |
| 1825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1826 | egrep "yes" >/dev/null 2>&1; then |
| 1827 | rm -rf conftest* |
| 1828 | ipv6type=$i; |
| 1829 | ipv6lib=inet6 |
| 1830 | ipv6libdir=/usr/local/v6/lib |
| 1831 | ipv6trylibc=yes |
| 1832 | OPT="-DINET6 $OPT" |
| 1833 | fi |
| 1834 | rm -f conftest* |
| 1835 | |
| 1836 | ;; |
| 1837 | linux-glibc) |
| 1838 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1839 | #line 1840 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1840 | #include "confdefs.h" |
| 1841 | dnl |
| 1842 | #include <features.h> |
| 1843 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 1844 | yes |
| 1845 | #endif |
| 1846 | EOF |
| 1847 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1848 | egrep "yes" >/dev/null 2>&1; then |
| 1849 | rm -rf conftest* |
| 1850 | ipv6type=$i; |
| 1851 | ipv6trylibc=yes |
| 1852 | OPT="-DINET6 $OPT" |
| 1853 | fi |
| 1854 | rm -f conftest* |
| 1855 | |
| 1856 | ;; |
| 1857 | linux-inet6) |
| 1858 | if test -d /usr/inet6; then |
| 1859 | ipv6type=$i |
| 1860 | ipv6lib=inet6 |
| 1861 | ipv6libdir=/usr/inet6/lib |
| 1862 | OPT="-DINET6 -I/usr/inet6/include $OPT" |
| 1863 | fi |
| 1864 | ;; |
| 1865 | toshiba) |
| 1866 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1867 | #line 1868 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1868 | #include "confdefs.h" |
| 1869 | dnl |
| 1870 | #include <sys/param.h> |
| 1871 | #ifdef _TOSHIBA_INET6 |
| 1872 | yes |
| 1873 | #endif |
| 1874 | EOF |
| 1875 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1876 | egrep "yes" >/dev/null 2>&1; then |
| 1877 | rm -rf conftest* |
| 1878 | ipv6type=$i; |
| 1879 | ipv6lib=inet6; |
| 1880 | ipv6libdir=/usr/local/v6/lib; |
| 1881 | OPT="-DINET6 $OPT" |
| 1882 | fi |
| 1883 | rm -f conftest* |
| 1884 | |
| 1885 | ;; |
| 1886 | v6d) |
| 1887 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1888 | #line 1889 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1889 | #include "confdefs.h" |
| 1890 | dnl |
| 1891 | #include </usr/local/v6/include/sys/v6config.h> |
| 1892 | #ifdef __V6D__ |
| 1893 | yes |
| 1894 | #endif |
| 1895 | EOF |
| 1896 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1897 | egrep "yes" >/dev/null 2>&1; then |
| 1898 | rm -rf conftest* |
| 1899 | ipv6type=$i; |
| 1900 | ipv6lib=v6; |
| 1901 | ipv6libdir=/usr/local/v6/lib; |
| 1902 | OPT="-I/usr/local/v6/include $OPT" |
| 1903 | fi |
| 1904 | rm -f conftest* |
| 1905 | |
| 1906 | ;; |
| 1907 | zeta) |
| 1908 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1909 | #line 1910 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1910 | #include "confdefs.h" |
| 1911 | dnl |
| 1912 | #include <sys/param.h> |
| 1913 | #ifdef _ZETA_MINAMI_INET6 |
| 1914 | yes |
| 1915 | #endif |
| 1916 | EOF |
| 1917 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1918 | egrep "yes" >/dev/null 2>&1; then |
| 1919 | rm -rf conftest* |
| 1920 | ipv6type=$i; |
| 1921 | ipv6lib=inet6; |
| 1922 | ipv6libdir=/usr/local/v6/lib; |
| 1923 | OPT="-DINET6 $OPT" |
| 1924 | fi |
| 1925 | rm -f conftest* |
| 1926 | |
| 1927 | ;; |
| 1928 | esac |
| 1929 | if test "$ipv6type" != "unknown"; then |
| 1930 | break |
| 1931 | fi |
| 1932 | done |
| 1933 | echo "$ac_t""$ipv6type" 1>&6 |
| 1934 | fi |
| 1935 | |
| 1936 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 1937 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 1938 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 1939 | echo "using lib$ipv6lib" |
| 1940 | else |
| 1941 | if test $ipv6trylibc = "yes"; then |
| 1942 | echo "using libc" |
| 1943 | else |
| 1944 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 1945 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 1946 | echo 'ipv6 kit and compile beforehand.' |
| 1947 | exit 1 |
| 1948 | fi |
| 1949 | fi |
| 1950 | fi |
| 1951 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1952 | # -Kpthread, if available, provides the right #defines |
| 1953 | # and linker options to make pthread_create available |
| 1954 | echo $ac_n "checking whether $CC accepts -Kpthread""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1955 | echo "configure:1956: checking whether $CC accepts -Kpthread" >&5 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1956 | if eval "test \"`echo '$''{'ac_cv_kpthread'+set}'`\" = set"; then |
| 1957 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1958 | else |
| 1959 | ac_save_cc="$CC" |
| 1960 | CC="$CC -Kpthread" |
| 1961 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1962 | #line 1963 "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1963 | #include "confdefs.h" |
| 1964 | #include <pthread.h> |
| 1965 | int main() { |
| 1966 | pthread_create(0,0,0,0) |
| 1967 | ; return 0; } |
| 1968 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1969 | if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1970 | rm -rf conftest* |
| 1971 | ac_cv_kpthread=yes |
| 1972 | else |
| 1973 | echo "configure: failed program was:" >&5 |
| 1974 | cat conftest.$ac_ext >&5 |
| 1975 | rm -rf conftest* |
| 1976 | ac_cv_kpthread=no |
| 1977 | fi |
| 1978 | rm -f conftest* |
| 1979 | CC="$ac_save_cc" |
| 1980 | fi |
| 1981 | |
| 1982 | |
| 1983 | # GCC does not reject -Kpthread as an illegal option, it merely complains that |
| 1984 | # it is unrecognized |
| 1985 | if test "$GCC" = "yes" |
| 1986 | then ac_cv_kpthread="no, we have gcc" |
| 1987 | fi |
| 1988 | echo "$ac_t""$ac_cv_kpthread" 1>&6 |
| 1989 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1990 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1991 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1992 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1993 | echo "configure:1994: checking for ANSI C header files" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1994 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1995 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1996 | else |
| 1997 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1998 | #line 1999 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1999 | #include "confdefs.h" |
| 2000 | #include <stdlib.h> |
| 2001 | #include <stdarg.h> |
| 2002 | #include <string.h> |
| 2003 | #include <float.h> |
| 2004 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2005 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2006 | { (eval echo configure:2007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2007 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2008 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2009 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2010 | ac_cv_header_stdc=yes |
| 2011 | else |
| 2012 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2013 | echo "configure: failed program was:" >&5 |
| 2014 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2015 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2016 | ac_cv_header_stdc=no |
| 2017 | fi |
| 2018 | rm -f conftest* |
| 2019 | |
| 2020 | if test $ac_cv_header_stdc = yes; then |
| 2021 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2022 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2023 | #line 2024 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2024 | #include "confdefs.h" |
| 2025 | #include <string.h> |
| 2026 | EOF |
| 2027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2028 | egrep "memchr" >/dev/null 2>&1; then |
| 2029 | : |
| 2030 | else |
| 2031 | rm -rf conftest* |
| 2032 | ac_cv_header_stdc=no |
| 2033 | fi |
| 2034 | rm -f conftest* |
| 2035 | |
| 2036 | fi |
| 2037 | |
| 2038 | if test $ac_cv_header_stdc = yes; then |
| 2039 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2040 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2041 | #line 2042 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2042 | #include "confdefs.h" |
| 2043 | #include <stdlib.h> |
| 2044 | EOF |
| 2045 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2046 | egrep "free" >/dev/null 2>&1; then |
| 2047 | : |
| 2048 | else |
| 2049 | rm -rf conftest* |
| 2050 | ac_cv_header_stdc=no |
| 2051 | fi |
| 2052 | rm -f conftest* |
| 2053 | |
| 2054 | fi |
| 2055 | |
| 2056 | if test $ac_cv_header_stdc = yes; then |
| 2057 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2058 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2059 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2060 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2061 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2062 | #line 2063 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2063 | #include "confdefs.h" |
| 2064 | #include <ctype.h> |
| 2065 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2066 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2067 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2068 | int main () { int i; for (i = 0; i < 256; i++) |
| 2069 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2070 | exit (0); } |
| 2071 | |
| 2072 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2073 | if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2074 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2075 | : |
| 2076 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2077 | echo "configure: failed program was:" >&5 |
| 2078 | cat conftest.$ac_ext >&5 |
| 2079 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2080 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2081 | fi |
| 2082 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2083 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2084 | |
| 2085 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2086 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2087 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2088 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2089 | if test $ac_cv_header_stdc = yes; then |
| 2090 | cat >> confdefs.h <<\EOF |
| 2091 | #define STDC_HEADERS 1 |
| 2092 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2093 | |
| 2094 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2095 | |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 2096 | for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 2097 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ |
Fred Drake | bbc3c5a | 2001-05-11 16:11:25 +0000 | [diff] [blame] | 2098 | sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2099 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Fred Drake | ae90f8d | 2000-09-15 03:38:12 +0000 | [diff] [blame] | 2100 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 2101 | ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2102 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2103 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2104 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2105 | echo "configure:2106: checking for $ac_hdr" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2106 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2107 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2108 | else |
| 2109 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2110 | #line 2111 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2111 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2112 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2113 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2114 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2115 | { (eval echo configure:2116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2116 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2117 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2118 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2119 | eval "ac_cv_header_$ac_safe=yes" |
| 2120 | else |
| 2121 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2122 | echo "configure: failed program was:" >&5 |
| 2123 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2124 | rm -rf conftest* |
| 2125 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2126 | fi |
| 2127 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2128 | fi |
| 2129 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2130 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2131 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2132 | cat >> confdefs.h <<EOF |
| 2133 | #define $ac_tr_hdr 1 |
| 2134 | EOF |
| 2135 | |
| 2136 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2137 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2138 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2139 | done |
| 2140 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2141 | ac_header_dirent=no |
| 2142 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 2143 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2144 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2145 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2146 | echo "configure:2147: checking for $ac_hdr that defines DIR" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2147 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2148 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2149 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2150 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2151 | #line 2152 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2152 | #include "confdefs.h" |
| 2153 | #include <sys/types.h> |
| 2154 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2155 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2156 | DIR *dirp = 0; |
| 2157 | ; return 0; } |
| 2158 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2159 | if { (eval echo configure:2160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2160 | rm -rf conftest* |
| 2161 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 2162 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2163 | echo "configure: failed program was:" >&5 |
| 2164 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2165 | rm -rf conftest* |
| 2166 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 2167 | fi |
| 2168 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2169 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2170 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2171 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2172 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2173 | cat >> confdefs.h <<EOF |
| 2174 | #define $ac_tr_hdr 1 |
| 2175 | EOF |
| 2176 | ac_header_dirent=$ac_hdr; break |
| 2177 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2178 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2179 | fi |
| 2180 | done |
| 2181 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 2182 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2183 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2184 | echo "configure:2185: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2185 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2186 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2187 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2188 | else |
| 2189 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2190 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2191 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2192 | #line 2193 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2193 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2194 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2195 | /* We use char because int might match the return type of a gcc2 |
| 2196 | builtin and then its argument prototype would still apply. */ |
| 2197 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2198 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2199 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2200 | opendir() |
| 2201 | ; return 0; } |
| 2202 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2203 | if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2204 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2205 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2206 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2207 | echo "configure: failed program was:" >&5 |
| 2208 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2209 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2210 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2211 | fi |
| 2212 | rm -f conftest* |
| 2213 | LIBS="$ac_save_LIBS" |
| 2214 | |
| 2215 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2216 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2217 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2218 | LIBS="$LIBS -ldir" |
| 2219 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2220 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2221 | fi |
| 2222 | |
| 2223 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2224 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2225 | echo "configure:2226: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2226 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2227 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2228 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2229 | else |
| 2230 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2231 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2232 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2233 | #line 2234 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2234 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2235 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2236 | /* We use char because int might match the return type of a gcc2 |
| 2237 | builtin and then its argument prototype would still apply. */ |
| 2238 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2239 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2240 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2241 | opendir() |
| 2242 | ; return 0; } |
| 2243 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2244 | if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2245 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2246 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2247 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2248 | echo "configure: failed program was:" >&5 |
| 2249 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2250 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2251 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2252 | fi |
| 2253 | rm -f conftest* |
| 2254 | LIBS="$ac_save_LIBS" |
| 2255 | |
| 2256 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2257 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2258 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2259 | LIBS="$LIBS -lx" |
| 2260 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2261 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2262 | fi |
| 2263 | |
| 2264 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2265 | |
| 2266 | |
| 2267 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2268 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2269 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2270 | echo "configure:2271: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2271 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2272 | #line 2273 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2273 | #include "confdefs.h" |
| 2274 | #include <time.h> |
| 2275 | EOF |
| 2276 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2277 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2278 | rm -rf conftest* |
| 2279 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2280 | else |
| 2281 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2282 | cat >> confdefs.h <<\EOF |
| 2283 | #define clock_t long |
| 2284 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2285 | |
| 2286 | fi |
| 2287 | rm -f conftest* |
| 2288 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2289 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2290 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2291 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 2292 | cat >> confdefs.h <<\EOF |
| 2293 | #if defined(SCO_DS) |
| 2294 | #undef _OFF_T |
| 2295 | #endif |
| 2296 | EOF |
| 2297 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2298 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2299 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2300 | echo "configure:2301: checking for mode_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2301 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2302 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2303 | else |
| 2304 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2305 | #line 2306 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2306 | #include "confdefs.h" |
| 2307 | #include <sys/types.h> |
| 2308 | #if STDC_HEADERS |
| 2309 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2310 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2311 | #endif |
| 2312 | EOF |
| 2313 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2314 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2315 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2316 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2317 | else |
| 2318 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2319 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2320 | fi |
| 2321 | rm -f conftest* |
| 2322 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2323 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2324 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 2325 | if test $ac_cv_type_mode_t = no; then |
| 2326 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2327 | #define mode_t int |
| 2328 | EOF |
| 2329 | |
| 2330 | fi |
| 2331 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2332 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2333 | echo "configure:2334: checking for off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2334 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2335 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2336 | else |
| 2337 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2338 | #line 2339 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2339 | #include "confdefs.h" |
| 2340 | #include <sys/types.h> |
| 2341 | #if STDC_HEADERS |
| 2342 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2343 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2344 | #endif |
| 2345 | EOF |
| 2346 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2347 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2348 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2349 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2350 | else |
| 2351 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2352 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2353 | fi |
| 2354 | rm -f conftest* |
| 2355 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2356 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2357 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2358 | if test $ac_cv_type_off_t = no; then |
| 2359 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2360 | #define off_t long |
| 2361 | EOF |
| 2362 | |
| 2363 | fi |
| 2364 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2365 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2366 | echo "configure:2367: checking for pid_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2367 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2368 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2369 | else |
| 2370 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2371 | #line 2372 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2372 | #include "confdefs.h" |
| 2373 | #include <sys/types.h> |
| 2374 | #if STDC_HEADERS |
| 2375 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2376 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2377 | #endif |
| 2378 | EOF |
| 2379 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2380 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2381 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2382 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2383 | else |
| 2384 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2385 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2386 | fi |
| 2387 | rm -f conftest* |
| 2388 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2389 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2390 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 2391 | if test $ac_cv_type_pid_t = no; then |
| 2392 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2393 | #define pid_t int |
| 2394 | EOF |
| 2395 | |
| 2396 | fi |
| 2397 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2398 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2399 | echo "configure:2400: checking return type of signal handlers" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2400 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2401 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2402 | else |
| 2403 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2404 | #line 2405 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2405 | #include "confdefs.h" |
| 2406 | #include <sys/types.h> |
| 2407 | #include <signal.h> |
| 2408 | #ifdef signal |
| 2409 | #undef signal |
| 2410 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2411 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2412 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 2413 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2414 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2415 | #endif |
| 2416 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2417 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2418 | int i; |
| 2419 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2420 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2421 | if { (eval echo configure:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2422 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2423 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2424 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2425 | echo "configure: failed program was:" >&5 |
| 2426 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2427 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2428 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2429 | fi |
| 2430 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2431 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2432 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2433 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2434 | cat >> confdefs.h <<EOF |
| 2435 | #define RETSIGTYPE $ac_cv_type_signal |
| 2436 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2437 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2438 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2439 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2440 | echo "configure:2441: checking for size_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2441 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2442 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2443 | else |
| 2444 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2445 | #line 2446 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2446 | #include "confdefs.h" |
| 2447 | #include <sys/types.h> |
| 2448 | #if STDC_HEADERS |
| 2449 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2450 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2451 | #endif |
| 2452 | EOF |
| 2453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2454 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2455 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2456 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2457 | else |
| 2458 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2459 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2460 | fi |
| 2461 | rm -f conftest* |
| 2462 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2463 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2464 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2465 | if test $ac_cv_type_size_t = no; then |
| 2466 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2467 | #define size_t unsigned |
| 2468 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2469 | |
| 2470 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2471 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2472 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2473 | echo "configure:2474: checking for uid_t in sys/types.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2474 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2475 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2476 | else |
| 2477 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2478 | #line 2479 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2479 | #include "confdefs.h" |
| 2480 | #include <sys/types.h> |
| 2481 | EOF |
| 2482 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2483 | egrep "uid_t" >/dev/null 2>&1; then |
| 2484 | rm -rf conftest* |
| 2485 | ac_cv_type_uid_t=yes |
| 2486 | else |
| 2487 | rm -rf conftest* |
| 2488 | ac_cv_type_uid_t=no |
| 2489 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2490 | rm -f conftest* |
| 2491 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2492 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2493 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2494 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2495 | if test $ac_cv_type_uid_t = no; then |
| 2496 | cat >> confdefs.h <<\EOF |
| 2497 | #define uid_t int |
| 2498 | EOF |
| 2499 | |
| 2500 | cat >> confdefs.h <<\EOF |
| 2501 | #define gid_t int |
| 2502 | EOF |
| 2503 | |
| 2504 | fi |
| 2505 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2506 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2507 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2508 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2509 | echo "configure:2510: checking size of int" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2510 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2511 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2512 | else |
| 2513 | if test "$cross_compiling" = yes; then |
| 2514 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2515 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2516 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2517 | #line 2518 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2518 | #include "confdefs.h" |
| 2519 | #include <stdio.h> |
| 2520 | main() |
| 2521 | { |
| 2522 | FILE *f=fopen("conftestval", "w"); |
| 2523 | if (!f) exit(1); |
| 2524 | fprintf(f, "%d\n", sizeof(int)); |
| 2525 | exit(0); |
| 2526 | } |
| 2527 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2528 | if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2529 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2530 | ac_cv_sizeof_int=`cat conftestval` |
| 2531 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2532 | echo "configure: failed program was:" >&5 |
| 2533 | cat conftest.$ac_ext >&5 |
| 2534 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2535 | ac_cv_sizeof_int=0 |
| 2536 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2537 | rm -fr conftest* |
| 2538 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2539 | |
| 2540 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2541 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 2542 | cat >> confdefs.h <<EOF |
| 2543 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2544 | EOF |
| 2545 | |
| 2546 | |
| 2547 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2548 | echo "configure:2549: checking size of long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2549 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2550 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2551 | else |
| 2552 | if test "$cross_compiling" = yes; then |
| 2553 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2554 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2555 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2556 | #line 2557 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2557 | #include "confdefs.h" |
| 2558 | #include <stdio.h> |
| 2559 | main() |
| 2560 | { |
| 2561 | FILE *f=fopen("conftestval", "w"); |
| 2562 | if (!f) exit(1); |
| 2563 | fprintf(f, "%d\n", sizeof(long)); |
| 2564 | exit(0); |
| 2565 | } |
| 2566 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2567 | if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2568 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2569 | ac_cv_sizeof_long=`cat conftestval` |
| 2570 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2571 | echo "configure: failed program was:" >&5 |
| 2572 | cat conftest.$ac_ext >&5 |
| 2573 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2574 | ac_cv_sizeof_long=0 |
| 2575 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2576 | rm -fr conftest* |
| 2577 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2578 | |
| 2579 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2580 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2581 | cat >> confdefs.h <<EOF |
| 2582 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2583 | EOF |
| 2584 | |
| 2585 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2586 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2587 | echo "configure:2588: checking size of void *" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2588 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2589 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2590 | else |
| 2591 | if test "$cross_compiling" = yes; then |
| 2592 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2593 | else |
| 2594 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2595 | #line 2596 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2596 | #include "confdefs.h" |
| 2597 | #include <stdio.h> |
| 2598 | main() |
| 2599 | { |
| 2600 | FILE *f=fopen("conftestval", "w"); |
| 2601 | if (!f) exit(1); |
| 2602 | fprintf(f, "%d\n", sizeof(void *)); |
| 2603 | exit(0); |
| 2604 | } |
| 2605 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2606 | if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2607 | then |
| 2608 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2609 | else |
| 2610 | echo "configure: failed program was:" >&5 |
| 2611 | cat conftest.$ac_ext >&5 |
| 2612 | rm -fr conftest* |
| 2613 | ac_cv_sizeof_void_p=0 |
| 2614 | fi |
| 2615 | rm -fr conftest* |
| 2616 | fi |
| 2617 | |
| 2618 | fi |
| 2619 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2620 | cat >> confdefs.h <<EOF |
| 2621 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2622 | EOF |
| 2623 | |
| 2624 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2625 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2626 | echo "configure:2627: checking size of char" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2627 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2628 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2629 | else |
| 2630 | if test "$cross_compiling" = yes; then |
| 2631 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2632 | else |
| 2633 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2634 | #line 2635 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2635 | #include "confdefs.h" |
| 2636 | #include <stdio.h> |
| 2637 | main() |
| 2638 | { |
| 2639 | FILE *f=fopen("conftestval", "w"); |
| 2640 | if (!f) exit(1); |
| 2641 | fprintf(f, "%d\n", sizeof(char)); |
| 2642 | exit(0); |
| 2643 | } |
| 2644 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2645 | if { (eval echo configure:2646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2646 | then |
| 2647 | ac_cv_sizeof_char=`cat conftestval` |
| 2648 | else |
| 2649 | echo "configure: failed program was:" >&5 |
| 2650 | cat conftest.$ac_ext >&5 |
| 2651 | rm -fr conftest* |
| 2652 | ac_cv_sizeof_char=0 |
| 2653 | fi |
| 2654 | rm -fr conftest* |
| 2655 | fi |
| 2656 | |
| 2657 | fi |
| 2658 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2659 | cat >> confdefs.h <<EOF |
| 2660 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2661 | EOF |
| 2662 | |
| 2663 | |
| 2664 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2665 | echo "configure:2666: checking size of short" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2666 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2667 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2668 | else |
| 2669 | if test "$cross_compiling" = yes; then |
| 2670 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2671 | else |
| 2672 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2673 | #line 2674 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2674 | #include "confdefs.h" |
| 2675 | #include <stdio.h> |
| 2676 | main() |
| 2677 | { |
| 2678 | FILE *f=fopen("conftestval", "w"); |
| 2679 | if (!f) exit(1); |
| 2680 | fprintf(f, "%d\n", sizeof(short)); |
| 2681 | exit(0); |
| 2682 | } |
| 2683 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2684 | if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2685 | then |
| 2686 | ac_cv_sizeof_short=`cat conftestval` |
| 2687 | else |
| 2688 | echo "configure: failed program was:" >&5 |
| 2689 | cat conftest.$ac_ext >&5 |
| 2690 | rm -fr conftest* |
| 2691 | ac_cv_sizeof_short=0 |
| 2692 | fi |
| 2693 | rm -fr conftest* |
| 2694 | fi |
| 2695 | |
| 2696 | fi |
| 2697 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2698 | cat >> confdefs.h <<EOF |
| 2699 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2700 | EOF |
| 2701 | |
| 2702 | |
| 2703 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2704 | echo "configure:2705: checking size of float" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2705 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2706 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2707 | else |
| 2708 | if test "$cross_compiling" = yes; then |
| 2709 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2710 | else |
| 2711 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2712 | #line 2713 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2713 | #include "confdefs.h" |
| 2714 | #include <stdio.h> |
| 2715 | main() |
| 2716 | { |
| 2717 | FILE *f=fopen("conftestval", "w"); |
| 2718 | if (!f) exit(1); |
| 2719 | fprintf(f, "%d\n", sizeof(float)); |
| 2720 | exit(0); |
| 2721 | } |
| 2722 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2723 | if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2724 | then |
| 2725 | ac_cv_sizeof_float=`cat conftestval` |
| 2726 | else |
| 2727 | echo "configure: failed program was:" >&5 |
| 2728 | cat conftest.$ac_ext >&5 |
| 2729 | rm -fr conftest* |
| 2730 | ac_cv_sizeof_float=0 |
| 2731 | fi |
| 2732 | rm -fr conftest* |
| 2733 | fi |
| 2734 | |
| 2735 | fi |
| 2736 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2737 | cat >> confdefs.h <<EOF |
| 2738 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2739 | EOF |
| 2740 | |
| 2741 | |
| 2742 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2743 | echo "configure:2744: checking size of double" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2744 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2745 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2746 | else |
| 2747 | if test "$cross_compiling" = yes; then |
| 2748 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2749 | else |
| 2750 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2751 | #line 2752 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2752 | #include "confdefs.h" |
| 2753 | #include <stdio.h> |
| 2754 | main() |
| 2755 | { |
| 2756 | FILE *f=fopen("conftestval", "w"); |
| 2757 | if (!f) exit(1); |
| 2758 | fprintf(f, "%d\n", sizeof(double)); |
| 2759 | exit(0); |
| 2760 | } |
| 2761 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2762 | if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2763 | then |
| 2764 | ac_cv_sizeof_double=`cat conftestval` |
| 2765 | else |
| 2766 | echo "configure: failed program was:" >&5 |
| 2767 | cat conftest.$ac_ext >&5 |
| 2768 | rm -fr conftest* |
| 2769 | ac_cv_sizeof_double=0 |
| 2770 | fi |
| 2771 | rm -fr conftest* |
| 2772 | fi |
| 2773 | |
| 2774 | fi |
| 2775 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2776 | cat >> confdefs.h <<EOF |
| 2777 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2778 | EOF |
| 2779 | |
| 2780 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2781 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2782 | echo "configure:2783: checking size of fpos_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2783 | if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2784 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2785 | else |
| 2786 | if test "$cross_compiling" = yes; then |
| 2787 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2788 | else |
| 2789 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2790 | #line 2791 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2791 | #include "confdefs.h" |
| 2792 | #include <stdio.h> |
| 2793 | main() |
| 2794 | { |
| 2795 | FILE *f=fopen("conftestval", "w"); |
| 2796 | if (!f) exit(1); |
| 2797 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2798 | exit(0); |
| 2799 | } |
| 2800 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2801 | if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2802 | then |
| 2803 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2804 | else |
| 2805 | echo "configure: failed program was:" >&5 |
| 2806 | cat conftest.$ac_ext >&5 |
| 2807 | rm -fr conftest* |
| 2808 | ac_cv_sizeof_fpos_t=0 |
| 2809 | fi |
| 2810 | rm -fr conftest* |
| 2811 | fi |
| 2812 | |
| 2813 | fi |
| 2814 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2815 | cat >> confdefs.h <<EOF |
| 2816 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2817 | EOF |
| 2818 | |
| 2819 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2820 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2821 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2822 | echo "configure:2823: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2823 | have_long_long=no |
| 2824 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2825 | #line 2826 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2826 | #include "confdefs.h" |
| 2827 | |
| 2828 | int main() { |
| 2829 | long long x; x = (long long)0; |
| 2830 | ; return 0; } |
| 2831 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2832 | if { (eval echo configure:2833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2833 | rm -rf conftest* |
| 2834 | cat >> confdefs.h <<\EOF |
| 2835 | #define HAVE_LONG_LONG 1 |
| 2836 | EOF |
| 2837 | have_long_long=yes |
| 2838 | else |
| 2839 | echo "configure: failed program was:" >&5 |
| 2840 | cat conftest.$ac_ext >&5 |
| 2841 | fi |
| 2842 | rm -f conftest* |
| 2843 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2844 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2845 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2846 | echo "configure:2847: checking size of long long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2847 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2848 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2849 | else |
| 2850 | if test "$cross_compiling" = yes; then |
| 2851 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2852 | else |
| 2853 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2854 | #line 2855 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2855 | #include "confdefs.h" |
| 2856 | #include <stdio.h> |
| 2857 | main() |
| 2858 | { |
| 2859 | FILE *f=fopen("conftestval", "w"); |
| 2860 | if (!f) exit(1); |
| 2861 | fprintf(f, "%d\n", sizeof(long long)); |
| 2862 | exit(0); |
| 2863 | } |
| 2864 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2865 | if { (eval echo configure:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2866 | then |
| 2867 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2868 | else |
| 2869 | echo "configure: failed program was:" >&5 |
| 2870 | cat conftest.$ac_ext >&5 |
| 2871 | rm -fr conftest* |
| 2872 | ac_cv_sizeof_long_long=0 |
| 2873 | fi |
| 2874 | rm -fr conftest* |
| 2875 | fi |
| 2876 | |
| 2877 | fi |
| 2878 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2879 | cat >> confdefs.h <<EOF |
| 2880 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2881 | EOF |
| 2882 | |
| 2883 | |
| 2884 | fi |
| 2885 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2886 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2887 | echo "configure:2888: checking for uintptr_t support" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2888 | have_uintptr_t=no |
| 2889 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2890 | #line 2891 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2891 | #include "confdefs.h" |
| 2892 | |
| 2893 | int main() { |
| 2894 | uintptr_t x; x = (uintptr_t)0; |
| 2895 | ; return 0; } |
| 2896 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2897 | if { (eval echo configure:2898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2898 | rm -rf conftest* |
| 2899 | cat >> confdefs.h <<\EOF |
| 2900 | #define HAVE_UINTPTR_T 1 |
| 2901 | EOF |
| 2902 | have_uintptr_t=yes |
| 2903 | else |
| 2904 | echo "configure: failed program was:" >&5 |
| 2905 | cat conftest.$ac_ext >&5 |
| 2906 | fi |
| 2907 | rm -f conftest* |
| 2908 | echo "$ac_t""$have_uintptr_t" 1>&6 |
| 2909 | if test "$have_uintptr_t" = yes ; then |
| 2910 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2911 | echo "configure:2912: checking size of uintptr_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2912 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2913 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2914 | else |
| 2915 | if test "$cross_compiling" = yes; then |
| 2916 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2917 | else |
| 2918 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2919 | #line 2920 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2920 | #include "confdefs.h" |
| 2921 | #include <stdio.h> |
| 2922 | main() |
| 2923 | { |
| 2924 | FILE *f=fopen("conftestval", "w"); |
| 2925 | if (!f) exit(1); |
| 2926 | fprintf(f, "%d\n", sizeof(uintptr_t)); |
| 2927 | exit(0); |
| 2928 | } |
| 2929 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2930 | if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2931 | then |
| 2932 | ac_cv_sizeof_uintptr_t=`cat conftestval` |
| 2933 | else |
| 2934 | echo "configure: failed program was:" >&5 |
| 2935 | cat conftest.$ac_ext >&5 |
| 2936 | rm -fr conftest* |
| 2937 | ac_cv_sizeof_uintptr_t=0 |
| 2938 | fi |
| 2939 | rm -fr conftest* |
| 2940 | fi |
| 2941 | |
| 2942 | fi |
| 2943 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 |
| 2944 | cat >> confdefs.h <<EOF |
| 2945 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 2946 | EOF |
| 2947 | |
| 2948 | |
| 2949 | fi |
| 2950 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2951 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2952 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2953 | echo "configure:2954: checking size of off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2954 | if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2955 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2956 | else |
| 2957 | if test "$cross_compiling" = yes; then |
| 2958 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2959 | else |
| 2960 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2961 | #line 2962 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2962 | #include "confdefs.h" |
| 2963 | #include <stdio.h> |
| 2964 | #include <sys/types.h> |
| 2965 | main() |
| 2966 | { |
| 2967 | FILE *f=fopen("conftestval", "w"); |
| 2968 | if (!f) exit(1); |
| 2969 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2970 | exit(0); |
| 2971 | } |
| 2972 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2973 | if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2974 | then |
| 2975 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2976 | else |
| 2977 | echo "configure: failed program was:" >&5 |
| 2978 | cat conftest.$ac_ext >&5 |
| 2979 | rm -fr conftest* |
| 2980 | ac_cv_sizeof_off_t=0 |
| 2981 | fi |
| 2982 | rm -fr conftest* |
| 2983 | fi |
| 2984 | |
| 2985 | |
| 2986 | fi |
| 2987 | |
| 2988 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2989 | cat >> confdefs.h <<EOF |
| 2990 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2991 | EOF |
| 2992 | |
| 2993 | |
| 2994 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 2995 | echo "configure:2996: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2996 | if test "$have_long_long" = yes -a \ |
| 2997 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2998 | "$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] | 2999 | cat >> confdefs.h <<\EOF |
| 3000 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 3001 | EOF |
| 3002 | |
| 3003 | echo "$ac_t""yes" 1>&6 |
| 3004 | else |
| 3005 | echo "$ac_t""no" 1>&6 |
| 3006 | fi |
| 3007 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 3008 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 3009 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3010 | echo "configure:3011: checking size of time_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3011 | if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 3012 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3013 | else |
| 3014 | if test "$cross_compiling" = yes; then |
| 3015 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 3016 | else |
| 3017 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3018 | #line 3019 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 3019 | #include "confdefs.h" |
| 3020 | #include <stdio.h> |
| 3021 | #include <time.h> |
| 3022 | main() |
| 3023 | { |
| 3024 | FILE *f=fopen("conftestval", "w"); |
| 3025 | if (!f) exit(1); |
| 3026 | fprintf(f, "%d\n", sizeof(time_t)); |
| 3027 | exit(0); |
| 3028 | } |
| 3029 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3030 | if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 3031 | then |
| 3032 | ac_cv_sizeof_time_t=`cat conftestval` |
| 3033 | else |
| 3034 | echo "configure: failed program was:" >&5 |
| 3035 | cat conftest.$ac_ext >&5 |
| 3036 | rm -fr conftest* |
| 3037 | ac_cv_sizeof_time_t=0 |
| 3038 | fi |
| 3039 | rm -fr conftest* |
| 3040 | fi |
| 3041 | |
| 3042 | |
| 3043 | fi |
| 3044 | |
| 3045 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 3046 | cat >> confdefs.h <<EOF |
| 3047 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 3048 | EOF |
| 3049 | |
| 3050 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3051 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3052 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 3053 | ac_save_cc="$CC" |
| 3054 | if test "$ac_cv_kpthread" = "yes" |
| 3055 | then CC="$CC -Kpthread" |
| 3056 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3057 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3058 | echo "configure:3059: checking for pthread_t" >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3059 | have_pthread_t=no |
| 3060 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3061 | #line 3062 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3062 | #include "confdefs.h" |
| 3063 | #include <pthread.h> |
| 3064 | int main() { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 3065 | pthread_t x; x = *(pthread_t*)0; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3066 | ; return 0; } |
| 3067 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3068 | if { (eval echo configure:3069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3069 | rm -rf conftest* |
| 3070 | have_pthread_t=yes |
| 3071 | else |
| 3072 | echo "configure: failed program was:" >&5 |
| 3073 | cat conftest.$ac_ext >&5 |
| 3074 | fi |
| 3075 | rm -f conftest* |
| 3076 | echo "$ac_t""$have_pthread_t" 1>&6 |
| 3077 | if test "$have_pthread_t" = yes ; then |
| 3078 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 3079 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3080 | echo "configure:3081: checking size of pthread_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3081 | if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3082 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3083 | else |
| 3084 | if test "$cross_compiling" = yes; then |
| 3085 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 3086 | else |
| 3087 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3088 | #line 3089 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3089 | #include "confdefs.h" |
| 3090 | #include <stdio.h> |
| 3091 | #include <pthread.h> |
| 3092 | main() |
| 3093 | { |
| 3094 | FILE *f=fopen("conftestval", "w"); |
| 3095 | if (!f) exit(1); |
| 3096 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 3097 | exit(0); |
| 3098 | } |
| 3099 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3100 | if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3101 | then |
| 3102 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 3103 | else |
| 3104 | echo "configure: failed program was:" >&5 |
| 3105 | cat conftest.$ac_ext >&5 |
| 3106 | rm -fr conftest* |
| 3107 | ac_cv_sizeof_pthread_t=0 |
| 3108 | fi |
| 3109 | rm -fr conftest* |
| 3110 | fi |
| 3111 | |
| 3112 | |
| 3113 | fi |
| 3114 | |
| 3115 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 |
| 3116 | cat >> confdefs.h <<EOF |
| 3117 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| 3118 | EOF |
| 3119 | |
| 3120 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 3121 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3122 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3123 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 3124 | |
| 3125 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3126 | Darwin/*) |
| 3127 | ns_undef_sym='_environ' |
| 3128 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3129 | next/4*) |
| 3130 | ns_undef_sym='__environ' |
| 3131 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 3132 | next/5*) |
| 3133 | ns_undef_sym='_environ' |
| 3134 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 3135 | esac |
| 3136 | |
| 3137 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3138 | echo "configure:3139: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3139 | if test "$with_next_framework" |
| 3140 | then |
| 3141 | OPT="$OPT -fno-common" |
| 3142 | # -U __environ is needed since bundles don't have access |
| 3143 | # to crt0 when built but will always be linked against it |
| 3144 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 3145 | cat >> confdefs.h <<\EOF |
| 3146 | #define WITH_NEXT_FRAMEWORK 1 |
| 3147 | EOF |
| 3148 | |
| 3149 | echo "$ac_t""yes" 1>&6 |
| 3150 | else |
| 3151 | echo "$ac_t""no" 1>&6 |
| 3152 | fi |
| 3153 | |
| 3154 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3155 | echo "configure:3156: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3156 | if test "$with_next_framework" -o "$with_dyld" |
| 3157 | then |
| 3158 | if test "$with_dyld" |
| 3159 | then |
| 3160 | echo "$ac_t""yes" 1>&6 |
| 3161 | else |
| 3162 | echo "$ac_t""required for framework build" 1>&6 |
| 3163 | fi |
| 3164 | cat >> confdefs.h <<\EOF |
| 3165 | #define WITH_DYLD 1 |
| 3166 | EOF |
| 3167 | |
| 3168 | ns_dyld='set' |
| 3169 | else |
| 3170 | echo "$ac_t""no" 1>&6 |
| 3171 | fi |
| 3172 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3173 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3174 | |
| 3175 | |
| 3176 | |
| 3177 | |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3178 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3179 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3180 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3181 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3182 | echo "configure:3183: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3183 | if test -z "$SO" |
| 3184 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3185 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3186 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3187 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3188 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3189 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3190 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3191 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3192 | # LDSHARED is the ld *command* used to create shared library |
| 3193 | # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3194 | # (Shared libraries in this instance are shared modules to be loaded into |
| 3195 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3196 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3197 | echo "configure:3198: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3198 | if test -z "$LDSHARED" |
| 3199 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3200 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3201 | AIX*) |
| 3202 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
| 3203 | LDSHARED="\$(BINLIBDEST)/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/python.exp" |
| 3204 | ;; |
| 3205 | BeOS*) |
| 3206 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
| 3207 | LDSHARED="\$(BINLIBDEST)/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
| 3208 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3209 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3210 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3211 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3212 | SunOS/5*) |
| 3213 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 3214 | then LDSHARED='$(CC) -shared' |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3215 | else LDSHARED="ld -G"; |
| 3216 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3217 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3218 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 3219 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3220 | Darwin/*|next/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3221 | if test "$ns_dyld" |
Guido van Rossum | acb14c7 | 2001-01-10 21:41:16 +0000 | [diff] [blame] | 3222 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3223 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 3224 | fi |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3225 | if test "$with_next_framework" ; then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3226 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 3227 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 3228 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3229 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 3230 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3231 | OpenBSD*) LDSHARED="ld -Bshareable";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3232 | NetBSD*) |
| 3233 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 3234 | then |
| 3235 | LDSHARED="cc -shared" |
| 3236 | else |
| 3237 | LDSHARED="ld -Bshareable" |
| 3238 | fi;; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3239 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 3240 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3241 | then |
| 3242 | LDSHARED="cc -shared ${LDFLAGS}" |
| 3243 | else |
| 3244 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 3245 | fi;; |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3246 | UnixWare*) |
| 3247 | if test "$GCC" = "yes" |
| 3248 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3249 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3250 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3251 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3252 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3253 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3254 | *) LDSHARED="ld";; |
| 3255 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3256 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3257 | echo "$ac_t""$LDSHARED" 1>&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3258 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3259 | # 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] | 3260 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3261 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3262 | echo "configure:3263: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3263 | if test -z "$CCSHARED" |
| 3264 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3265 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 3266 | SunOS*) if test "$GCC" = yes; |
| 3267 | then CCSHARED="-fPIC"; |
| 3268 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 3269 | hp*|HP*) if test "$GCC" = yes; |
| 3270 | then CCSHARED="-fpic"; |
| 3271 | else CCSHARED="+z"; |
| 3272 | fi;; |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3273 | Linux*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3274 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3275 | OpenBSD*) CCSHARED="-fpic";; |
| 3276 | FreeBSD*|NetBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3277 | UnixWare*) |
| 3278 | if test "$GCC" = "yes" |
| 3279 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3280 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3281 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3282 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3283 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3284 | IRIX*/6*) case $CC in |
| 3285 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 3286 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3287 | esac;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3288 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3289 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3290 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3291 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3292 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3293 | # the python executable -- this is only needed for a few systems |
| 3294 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3295 | echo "configure:3296: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3296 | if test -z "$LINKFORSHARED" |
| 3297 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3298 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3299 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 3300 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 3301 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3302 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 3303 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3304 | # -u libsys_s pulls in all symbols in libsys |
| 3305 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 3306 | # -u __dummy makes the linker aware of the objc runtime |
| 3307 | # in System.framework; otherwise, __objcInit (referenced in |
| 3308 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 3309 | # loading of any modules which reference it in System.framework |
| 3310 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 3311 | Darwin/*) LINKFORSHARED="-u __dummy -u _PyMac_Error -framework System -framework Foundation -framework Carbon" ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3312 | UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3313 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 3314 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3315 | FreeBSD*|NetBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3316 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 3317 | then |
| 3318 | LINKFORSHARED="-Wl,--export-dynamic" |
| 3319 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3320 | SunOS/5*) case $CC in |
| 3321 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 3322 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 3323 | then |
| 3324 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3325 | fi;; |
| 3326 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3327 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3328 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3329 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3330 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3331 | |
| 3332 | echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3333 | echo "configure:3334: checking CFLAGSFORSHARED" >&5 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3334 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 3335 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 3336 | case $ac_sys_system in |
| 3337 | CYGWIN*) |
| 3338 | # Cygwin needs CCSHARED when building extension DLLs |
| 3339 | # but not when building the interpreter DLL. |
| 3340 | CFLAGSFORSHARED='';; |
| 3341 | *) |
| 3342 | CFLAGSFORSHARED='$(CCSHARED)' |
| 3343 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3344 | fi |
| 3345 | echo "$ac_t""$CFLAGSFORSHARED" 1>&6 |
| 3346 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3347 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3348 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3349 | echo "configure:3350: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3350 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3351 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3352 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3353 | else |
| 3354 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3355 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3356 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3357 | #line 3358 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3358 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3359 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3360 | /* We use char because int might match the return type of a gcc2 |
| 3361 | builtin and then its argument prototype would still apply. */ |
| 3362 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3363 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3364 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3365 | dlopen() |
| 3366 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3367 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3368 | if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3369 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3370 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3371 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3372 | echo "configure: failed program was:" >&5 |
| 3373 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3374 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3375 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3376 | fi |
| 3377 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3378 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3379 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3380 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3381 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3382 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3383 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3384 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3385 | cat >> confdefs.h <<EOF |
| 3386 | #define $ac_tr_lib 1 |
| 3387 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3388 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3389 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3390 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3391 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3392 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3393 | fi |
| 3394 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3395 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3396 | echo "configure:3397: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3397 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3398 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3399 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3400 | else |
| 3401 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3402 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3403 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3404 | #line 3405 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3405 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3406 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3407 | /* We use char because int might match the return type of a gcc2 |
| 3408 | builtin and then its argument prototype would still apply. */ |
| 3409 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3410 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3411 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3412 | shl_load() |
| 3413 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3414 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3415 | if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3416 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3417 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3418 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3419 | echo "configure: failed program was:" >&5 |
| 3420 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3421 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3422 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3423 | fi |
| 3424 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3425 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3426 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3427 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3428 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3429 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3430 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3431 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3432 | cat >> confdefs.h <<EOF |
| 3433 | #define $ac_tr_lib 1 |
| 3434 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3435 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3436 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3437 | |
| 3438 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3439 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3440 | fi |
| 3441 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3442 | |
| 3443 | # checks for system dependent C++ extensions support |
| 3444 | case "$ac_sys_system" in |
| 3445 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3446 | echo "configure:3447: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3447 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3448 | #line 3449 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3449 | #include "confdefs.h" |
| 3450 | #include "/usr/lpp/xlC/include/load.h" |
| 3451 | int main() { |
| 3452 | loadAndInit("", 0, "") |
| 3453 | ; return 0; } |
| 3454 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3455 | if { (eval echo configure:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3456 | rm -rf conftest* |
| 3457 | cat >> confdefs.h <<\EOF |
| 3458 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 3459 | EOF |
| 3460 | |
| 3461 | echo "$ac_t""yes" 1>&6 |
| 3462 | else |
| 3463 | echo "configure: failed program was:" >&5 |
| 3464 | cat conftest.$ac_ext >&5 |
| 3465 | rm -rf conftest* |
| 3466 | echo "$ac_t""no" 1>&6 |
| 3467 | fi |
| 3468 | rm -f conftest*;; |
| 3469 | *) ;; |
| 3470 | esac |
| 3471 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3472 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 3473 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3474 | # BeOS' sockets are stashed in libnet. |
| 3475 | case "$ac_sys_system" in |
| 3476 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3477 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3478 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3479 | echo "configure:3480: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3480 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3481 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3482 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3483 | else |
| 3484 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3485 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3486 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3487 | #line 3488 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3488 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3489 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3490 | /* We use char because int might match the return type of a gcc2 |
| 3491 | builtin and then its argument prototype would still apply. */ |
| 3492 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3493 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3494 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3495 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3496 | ; return 0; } |
| 3497 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3498 | if { (eval echo configure:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3499 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3500 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3501 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3502 | echo "configure: failed program was:" >&5 |
| 3503 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3504 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3505 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3506 | fi |
| 3507 | rm -f conftest* |
| 3508 | LIBS="$ac_save_LIBS" |
| 3509 | |
| 3510 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3511 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3512 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3513 | LIBS="-lnsl $LIBS" |
| 3514 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3515 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3516 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3517 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3518 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3519 | echo "configure:3520: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3520 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3521 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3522 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3523 | else |
| 3524 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3525 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3526 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3527 | #line 3528 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3528 | #include "confdefs.h" |
| 3529 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3530 | /* We use char because int might match the return type of a gcc2 |
| 3531 | builtin and then its argument prototype would still apply. */ |
| 3532 | char socket(); |
| 3533 | |
| 3534 | int main() { |
| 3535 | socket() |
| 3536 | ; return 0; } |
| 3537 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3538 | if { (eval echo configure:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3539 | rm -rf conftest* |
| 3540 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3541 | else |
| 3542 | echo "configure: failed program was:" >&5 |
| 3543 | cat conftest.$ac_ext >&5 |
| 3544 | rm -rf conftest* |
| 3545 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3546 | fi |
| 3547 | rm -f conftest* |
| 3548 | LIBS="$ac_save_LIBS" |
| 3549 | |
| 3550 | fi |
| 3551 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3552 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3553 | LIBS="-lsocket $LIBS" |
| 3554 | else |
| 3555 | echo "$ac_t""no" 1>&6 |
| 3556 | fi |
| 3557 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3558 | ;; |
| 3559 | esac |
| 3560 | case "$ac_sys_system" in |
| 3561 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3562 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3563 | echo "configure:3564: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3564 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3565 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3566 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3567 | else |
| 3568 | ac_save_LIBS="$LIBS" |
| 3569 | LIBS="-lnet $LIBS $LIBS" |
| 3570 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3571 | #line 3572 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3572 | #include "confdefs.h" |
| 3573 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3574 | /* We use char because int might match the return type of a gcc2 |
| 3575 | builtin and then its argument prototype would still apply. */ |
| 3576 | char socket(); |
| 3577 | |
| 3578 | int main() { |
| 3579 | socket() |
| 3580 | ; return 0; } |
| 3581 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3582 | if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3583 | rm -rf conftest* |
| 3584 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3585 | else |
| 3586 | echo "configure: failed program was:" >&5 |
| 3587 | cat conftest.$ac_ext >&5 |
| 3588 | rm -rf conftest* |
| 3589 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3590 | fi |
| 3591 | rm -f conftest* |
| 3592 | LIBS="$ac_save_LIBS" |
| 3593 | |
| 3594 | fi |
| 3595 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3596 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3597 | LIBS="-lnet $LIBS" |
| 3598 | else |
| 3599 | echo "$ac_t""no" 1>&6 |
| 3600 | fi |
| 3601 | # BeOS |
| 3602 | ;; |
| 3603 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3604 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3605 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3606 | echo "configure:3607: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3607 | # Check whether --with-libs or --without-libs was given. |
| 3608 | if test "${with_libs+set}" = set; then |
| 3609 | withval="$with_libs" |
| 3610 | |
| 3611 | echo "$ac_t""$withval" 1>&6 |
| 3612 | LIBS="$withval $LIBS" |
| 3613 | |
| 3614 | else |
| 3615 | echo "$ac_t""no" 1>&6 |
| 3616 | fi |
| 3617 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3618 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3619 | # Determine if signalmodule should be used. |
| 3620 | |
| 3621 | |
| 3622 | echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3623 | echo "configure:3624: checking for --with-signal-module" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3624 | # Check whether --with-signal-module or --without-signal-module was given. |
| 3625 | if test "${with_signal_module+set}" = set; then |
| 3626 | withval="$with_signal_module" |
| 3627 | : |
| 3628 | fi |
| 3629 | |
| 3630 | |
| 3631 | if test -z "$with_signal_module" |
| 3632 | then with_signal_module="yes" |
| 3633 | fi |
| 3634 | echo "$ac_t""$with_signal_module" 1>&6 |
| 3635 | |
| 3636 | if test "${with_signal_module}" = "yes"; then |
| 3637 | USE_SIGNAL_MODULE="" |
| 3638 | SIGNAL_OBJS="" |
| 3639 | else |
| 3640 | USE_SIGNAL_MODULE="#" |
| 3641 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 3642 | fi |
| 3643 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3644 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3645 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3646 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3647 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3648 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3649 | echo "configure:3650: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3650 | |
| 3651 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 3652 | if test "${with_dec_threads+set}" = set; then |
| 3653 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3654 | |
| 3655 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3656 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3657 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3658 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3659 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3660 | else |
| 3661 | echo "$ac_t""no" 1>&6 |
| 3662 | fi |
| 3663 | |
| 3664 | |
| 3665 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3666 | echo "configure:3667: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3667 | # Check whether --with-threads or --without-threads was given. |
| 3668 | if test "${with_threads+set}" = set; then |
| 3669 | withval="$with_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3670 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3671 | fi |
| 3672 | |
| 3673 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3674 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3675 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3676 | if test "${with_thread+set}" = set; then |
| 3677 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3678 | |
| 3679 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3680 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3681 | |
| 3682 | |
| 3683 | if test -z "$with_threads" |
| 3684 | then with_threads="yes" |
| 3685 | fi |
| 3686 | echo "$ac_t""$with_threads" 1>&6 |
| 3687 | |
| 3688 | if test "$with_threads" = "no" |
| 3689 | then |
| 3690 | USE_THREAD_MODULE="#" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3691 | elif test "$ac_cv_kpthread" = "yes" |
| 3692 | then |
| 3693 | CC="$CC -Kpthread" |
| 3694 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3695 | #define WITH_THREAD 1 |
| 3696 | EOF |
| 3697 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3698 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3699 | #define _POSIX_THREADS 1 |
| 3700 | EOF |
| 3701 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3702 | LIBOBJS="$LIBOBJS thread.o" |
| 3703 | else |
| 3704 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 3705 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 3706 | fi |
| 3707 | if test ! -z "$withval" -a -d "$withval" |
| 3708 | then LDFLAGS="$LDFLAGS -L$withval" |
| 3709 | fi |
| 3710 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3711 | #define _REENTRANT 1 |
| 3712 | EOF |
| 3713 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3714 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3715 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3716 | echo "configure:3717: checking for mach/cthreads.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3717 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3718 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3719 | else |
| 3720 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3721 | #line 3722 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3722 | #include "confdefs.h" |
| 3723 | #include <mach/cthreads.h> |
| 3724 | EOF |
| 3725 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3726 | { (eval echo configure:3727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3727 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3728 | if test -z "$ac_err"; then |
| 3729 | rm -rf conftest* |
| 3730 | eval "ac_cv_header_$ac_safe=yes" |
| 3731 | else |
| 3732 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3733 | echo "configure: failed program was:" >&5 |
| 3734 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3735 | rm -rf conftest* |
| 3736 | eval "ac_cv_header_$ac_safe=no" |
| 3737 | fi |
| 3738 | rm -f conftest* |
| 3739 | fi |
| 3740 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3741 | echo "$ac_t""yes" 1>&6 |
| 3742 | cat >> confdefs.h <<\EOF |
| 3743 | #define WITH_THREAD 1 |
| 3744 | EOF |
| 3745 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3746 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3747 | #define C_THREADS 1 |
| 3748 | EOF |
| 3749 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3750 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3751 | else |
| 3752 | echo "$ac_t""no" 1>&6 |
| 3753 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3754 | echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3755 | echo "configure:3756: checking for --with-pth" >&5 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3756 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3757 | if test "${with_pth+set}" = set; then |
| 3758 | withval="$with_pth" |
| 3759 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3760 | echo "$ac_t""$withval" 1>&6 |
| 3761 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3762 | #define WITH_THREAD 1 |
| 3763 | EOF |
| 3764 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3765 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3766 | #define HAVE_PTH 1 |
| 3767 | EOF |
| 3768 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3769 | LIBS="-lpth $LIBS" |
| 3770 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3771 | else |
| 3772 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3773 | echo "$ac_t""no" 1>&6 |
| 3774 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3775 | echo "configure:3776: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3776 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3777 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3778 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3779 | else |
| 3780 | ac_save_LIBS="$LIBS" |
| 3781 | LIBS="-lpthread $LIBS" |
| 3782 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3783 | #line 3784 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3784 | #include "confdefs.h" |
| 3785 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3786 | /* We use char because int might match the return type of a gcc2 |
| 3787 | builtin and then its argument prototype would still apply. */ |
| 3788 | char pthread_create(); |
| 3789 | |
| 3790 | int main() { |
| 3791 | pthread_create() |
| 3792 | ; return 0; } |
| 3793 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3794 | if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3795 | rm -rf conftest* |
| 3796 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3797 | else |
| 3798 | echo "configure: failed program was:" >&5 |
| 3799 | cat conftest.$ac_ext >&5 |
| 3800 | rm -rf conftest* |
| 3801 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3802 | fi |
| 3803 | rm -f conftest* |
| 3804 | LIBS="$ac_save_LIBS" |
| 3805 | |
| 3806 | fi |
| 3807 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3808 | echo "$ac_t""yes" 1>&6 |
| 3809 | cat >> confdefs.h <<\EOF |
| 3810 | #define WITH_THREAD 1 |
| 3811 | EOF |
| 3812 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3813 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3814 | #define _POSIX_THREADS 1 |
| 3815 | EOF |
| 3816 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3817 | LIBS="-lpthread $LIBS" |
| 3818 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3819 | else |
| 3820 | echo "$ac_t""no" 1>&6 |
| 3821 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3822 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3823 | echo "configure:3824: checking for pthread_detach" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3824 | if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3825 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3826 | else |
| 3827 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3828 | #line 3829 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3829 | #include "confdefs.h" |
| 3830 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3831 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3832 | #include <assert.h> |
| 3833 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3834 | /* We use char because int might match the return type of a gcc2 |
| 3835 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3836 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3837 | |
| 3838 | int main() { |
| 3839 | |
| 3840 | /* The GNU C library defines this for functions which it implements |
| 3841 | to always fail with ENOSYS. Some functions are actually named |
| 3842 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3843 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3844 | choke me |
| 3845 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3846 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3847 | #endif |
| 3848 | |
| 3849 | ; return 0; } |
| 3850 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3851 | if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3852 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3853 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3854 | else |
| 3855 | echo "configure: failed program was:" >&5 |
| 3856 | cat conftest.$ac_ext >&5 |
| 3857 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3858 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3859 | fi |
| 3860 | rm -f conftest* |
| 3861 | fi |
| 3862 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3863 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3864 | echo "$ac_t""yes" 1>&6 |
| 3865 | cat >> confdefs.h <<\EOF |
| 3866 | #define WITH_THREAD 1 |
| 3867 | EOF |
| 3868 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3869 | case $ac_sys_system in |
| 3870 | Darwin*) ;; |
| 3871 | *) cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3872 | #define _POSIX_THREADS 1 |
| 3873 | EOF |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3874 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3875 | esac |
| 3876 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3877 | else |
| 3878 | echo "$ac_t""no" 1>&6 |
| 3879 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3880 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3881 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3882 | echo "configure:3883: checking for kernel/OS.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3883 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3884 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3885 | else |
| 3886 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3887 | #line 3888 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3888 | #include "confdefs.h" |
| 3889 | #include <kernel/OS.h> |
| 3890 | EOF |
| 3891 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3892 | { (eval echo configure:3893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3893 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3894 | if test -z "$ac_err"; then |
| 3895 | rm -rf conftest* |
| 3896 | eval "ac_cv_header_$ac_safe=yes" |
| 3897 | else |
| 3898 | echo "$ac_err" >&5 |
| 3899 | echo "configure: failed program was:" >&5 |
| 3900 | cat conftest.$ac_ext >&5 |
| 3901 | rm -rf conftest* |
| 3902 | eval "ac_cv_header_$ac_safe=no" |
| 3903 | fi |
| 3904 | rm -f conftest* |
| 3905 | fi |
| 3906 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3907 | echo "$ac_t""yes" 1>&6 |
| 3908 | cat >> confdefs.h <<\EOF |
| 3909 | #define WITH_THREAD 1 |
| 3910 | EOF |
| 3911 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3912 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3913 | #define BEOS_THREADS 1 |
| 3914 | EOF |
| 3915 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3916 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3917 | else |
| 3918 | echo "$ac_t""no" 1>&6 |
| 3919 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3920 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3921 | echo "configure:3922: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3922 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3923 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3924 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3925 | else |
| 3926 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3927 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3928 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3929 | #line 3930 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3930 | #include "confdefs.h" |
| 3931 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3932 | /* We use char because int might match the return type of a gcc2 |
| 3933 | builtin and then its argument prototype would still apply. */ |
| 3934 | char pthread_create(); |
| 3935 | |
| 3936 | int main() { |
| 3937 | pthread_create() |
| 3938 | ; return 0; } |
| 3939 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3940 | if { (eval echo configure:3941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3941 | rm -rf conftest* |
| 3942 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3943 | else |
| 3944 | echo "configure: failed program was:" >&5 |
| 3945 | cat conftest.$ac_ext >&5 |
| 3946 | rm -rf conftest* |
| 3947 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3948 | fi |
| 3949 | rm -f conftest* |
| 3950 | LIBS="$ac_save_LIBS" |
| 3951 | |
| 3952 | fi |
| 3953 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3954 | echo "$ac_t""yes" 1>&6 |
| 3955 | cat >> confdefs.h <<\EOF |
| 3956 | #define WITH_THREAD 1 |
| 3957 | EOF |
| 3958 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3959 | cat >> confdefs.h <<\EOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3960 | #define _POSIX_THREADS 1 |
| 3961 | EOF |
| 3962 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3963 | LIBS="$LIBS -lpthreads" |
| 3964 | LIBOBJS="$LIBOBJS thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3965 | else |
| 3966 | echo "$ac_t""no" 1>&6 |
| 3967 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3968 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3969 | echo "configure:3970: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3970 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3971 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3972 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3973 | else |
| 3974 | ac_save_LIBS="$LIBS" |
| 3975 | LIBS="-lc_r $LIBS" |
| 3976 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3977 | #line 3978 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3978 | #include "confdefs.h" |
| 3979 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3980 | /* We use char because int might match the return type of a gcc2 |
| 3981 | builtin and then its argument prototype would still apply. */ |
| 3982 | char pthread_create(); |
| 3983 | |
| 3984 | int main() { |
| 3985 | pthread_create() |
| 3986 | ; return 0; } |
| 3987 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 3988 | if { (eval echo configure:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3989 | rm -rf conftest* |
| 3990 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3991 | else |
| 3992 | echo "configure: failed program was:" >&5 |
| 3993 | cat conftest.$ac_ext >&5 |
| 3994 | rm -rf conftest* |
| 3995 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3996 | fi |
| 3997 | rm -f conftest* |
| 3998 | LIBS="$ac_save_LIBS" |
| 3999 | |
| 4000 | fi |
| 4001 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4002 | echo "$ac_t""yes" 1>&6 |
| 4003 | cat >> confdefs.h <<\EOF |
| 4004 | #define WITH_THREAD 1 |
| 4005 | EOF |
| 4006 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4007 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4008 | #define _POSIX_THREADS 1 |
| 4009 | EOF |
| 4010 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4011 | LIBS="$LIBS -lc_r" |
| 4012 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4013 | else |
| 4014 | echo "$ac_t""no" 1>&6 |
| 4015 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4016 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4017 | echo "configure:4018: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4018 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4019 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4020 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4021 | else |
| 4022 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4023 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4024 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4025 | #line 4026 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4026 | #include "confdefs.h" |
| 4027 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4028 | /* We use char because int might match the return type of a gcc2 |
| 4029 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4030 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4031 | |
| 4032 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4033 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4034 | ; return 0; } |
| 4035 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4036 | if { (eval echo configure:4037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4037 | rm -rf conftest* |
| 4038 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4039 | else |
| 4040 | echo "configure: failed program was:" >&5 |
| 4041 | cat conftest.$ac_ext >&5 |
| 4042 | rm -rf conftest* |
| 4043 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4044 | fi |
| 4045 | rm -f conftest* |
| 4046 | LIBS="$ac_save_LIBS" |
| 4047 | |
| 4048 | fi |
| 4049 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4050 | echo "$ac_t""yes" 1>&6 |
| 4051 | cat >> confdefs.h <<\EOF |
| 4052 | #define WITH_THREAD 1 |
| 4053 | EOF |
| 4054 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4055 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4056 | #define _POSIX_THREADS 1 |
| 4057 | EOF |
| 4058 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4059 | LIBS="$LIBS -lthread" |
| 4060 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4061 | else |
| 4062 | echo "$ac_t""no" 1>&6 |
| 4063 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4064 | echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4065 | echo "configure:4066: checking for __pthread_create_system in -lpthread" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4066 | ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` |
| 4067 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4068 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4069 | else |
| 4070 | ac_save_LIBS="$LIBS" |
| 4071 | LIBS="-lpthread $LIBS" |
| 4072 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4073 | #line 4074 "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4074 | #include "confdefs.h" |
| 4075 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4076 | /* We use char because int might match the return type of a gcc2 |
| 4077 | builtin and then its argument prototype would still apply. */ |
| 4078 | char __pthread_create_system(); |
| 4079 | |
| 4080 | int main() { |
| 4081 | __pthread_create_system() |
| 4082 | ; return 0; } |
| 4083 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4084 | if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4085 | rm -rf conftest* |
| 4086 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4087 | else |
| 4088 | echo "configure: failed program was:" >&5 |
| 4089 | cat conftest.$ac_ext >&5 |
| 4090 | rm -rf conftest* |
| 4091 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4092 | fi |
| 4093 | rm -f conftest* |
| 4094 | LIBS="$ac_save_LIBS" |
| 4095 | |
| 4096 | fi |
| 4097 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4098 | echo "$ac_t""yes" 1>&6 |
| 4099 | cat >> confdefs.h <<\EOF |
| 4100 | #define WITH_THREAD 1 |
| 4101 | EOF |
| 4102 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4103 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4104 | #define _POSIX_THREADS 1 |
| 4105 | EOF |
| 4106 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4107 | LIBS="$LIBS -lpthread" |
| 4108 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4109 | else |
| 4110 | echo "$ac_t""no" 1>&6 |
| 4111 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4112 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4113 | echo "configure:4114: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4114 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4115 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4116 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4117 | else |
| 4118 | ac_save_LIBS="$LIBS" |
| 4119 | LIBS="-lcma $LIBS" |
| 4120 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4121 | #line 4122 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4122 | #include "confdefs.h" |
| 4123 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4124 | /* We use char because int might match the return type of a gcc2 |
| 4125 | builtin and then its argument prototype would still apply. */ |
| 4126 | char pthread_create(); |
| 4127 | |
| 4128 | int main() { |
| 4129 | pthread_create() |
| 4130 | ; return 0; } |
| 4131 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4132 | if { (eval echo configure:4133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4133 | rm -rf conftest* |
| 4134 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4135 | else |
| 4136 | echo "configure: failed program was:" >&5 |
| 4137 | cat conftest.$ac_ext >&5 |
| 4138 | rm -rf conftest* |
| 4139 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4140 | fi |
| 4141 | rm -f conftest* |
| 4142 | LIBS="$ac_save_LIBS" |
| 4143 | |
| 4144 | fi |
| 4145 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4146 | echo "$ac_t""yes" 1>&6 |
| 4147 | cat >> confdefs.h <<\EOF |
| 4148 | #define WITH_THREAD 1 |
| 4149 | EOF |
| 4150 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4151 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4152 | #define _POSIX_THREADS 1 |
| 4153 | EOF |
| 4154 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4155 | LIBS="$LIBS -lcma" |
| 4156 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4157 | else |
| 4158 | echo "$ac_t""no" 1>&6 |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 4159 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4160 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 4161 | fi |
| 4162 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4163 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4164 | fi |
| 4165 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4166 | fi |
| 4167 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4168 | fi |
| 4169 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4170 | fi |
| 4171 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4172 | fi |
| 4173 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4174 | fi |
| 4175 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 4176 | fi |
| 4177 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4178 | fi |
| 4179 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4180 | fi |
| 4181 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4182 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4183 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4184 | echo "configure:4185: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4185 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4186 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4187 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4188 | else |
| 4189 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4190 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4191 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4192 | #line 4193 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4193 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4194 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4195 | /* We use char because int might match the return type of a gcc2 |
| 4196 | builtin and then its argument prototype would still apply. */ |
| 4197 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4198 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4199 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4200 | usconfig() |
| 4201 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4202 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4203 | if { (eval echo configure:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4204 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4205 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4206 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4207 | echo "configure: failed program was:" >&5 |
| 4208 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4209 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4210 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4211 | fi |
| 4212 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4213 | LIBS="$ac_save_LIBS" |
| 4214 | |
| 4215 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4216 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4217 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4218 | cat >> confdefs.h <<\EOF |
| 4219 | #define WITH_THREAD 1 |
| 4220 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4221 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4222 | LIBS="$LIBS -lmpc" |
| 4223 | LIBOBJS="$LIBOBJS thread.o" |
| 4224 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4225 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4226 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4227 | fi |
| 4228 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4229 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4230 | echo "configure:4231: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4231 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4232 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4233 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4234 | else |
| 4235 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4236 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4237 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4238 | #line 4239 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4239 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4240 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4241 | /* We use char because int might match the return type of a gcc2 |
| 4242 | builtin and then its argument prototype would still apply. */ |
| 4243 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4244 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4245 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4246 | thr_create() |
| 4247 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4248 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4249 | if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4250 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4251 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4252 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4253 | echo "configure: failed program was:" >&5 |
| 4254 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4255 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4256 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4257 | fi |
| 4258 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4259 | LIBS="$ac_save_LIBS" |
| 4260 | |
| 4261 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4262 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4263 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4264 | cat >> confdefs.h <<\EOF |
| 4265 | #define WITH_THREAD 1 |
| 4266 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4267 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4268 | LIBS="$LIBS -lthread" |
| 4269 | LIBOBJS="$LIBOBJS thread.o" |
| 4270 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4271 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4272 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4273 | fi |
| 4274 | |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4275 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4276 | if test "$USE_THREAD_MODULE" != "#" |
| 4277 | then |
| 4278 | # If the above checks didn't disable threads, (at least) OSF1 |
| 4279 | # needs this '-threads' argument during linking. |
| 4280 | case $ac_sys_system in |
| 4281 | OSF1) LDLAST=-threads;; |
| 4282 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4283 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4284 | fi |
| 4285 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4286 | # Check for GC support |
| 4287 | |
| 4288 | USE_GC_MODULE="" |
| 4289 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4290 | echo "configure:4291: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4291 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 4292 | if test "${with_cycle_gc+set}" = set; then |
| 4293 | withval="$with_cycle_gc" |
| 4294 | : |
| 4295 | fi |
| 4296 | |
| 4297 | |
| 4298 | if test -z "$with_cycle_gc" |
| 4299 | then with_cycle_gc="yes" |
| 4300 | fi |
| 4301 | if test "$with_cycle_gc" = "no" |
| 4302 | then |
| 4303 | USE_GC_MODULE="#" |
| 4304 | else |
| 4305 | cat >> confdefs.h <<\EOF |
| 4306 | #define WITH_CYCLE_GC 1 |
| 4307 | EOF |
| 4308 | |
| 4309 | fi |
| 4310 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 4311 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4312 | # Check for Python-specific malloc support |
| 4313 | echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4314 | echo "configure:4315: checking for --with-pymalloc" >&5 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4315 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 4316 | if test "${with_pymalloc+set}" = set; then |
| 4317 | withval="$with_pymalloc" |
| 4318 | |
| 4319 | if test "$withval" != no |
| 4320 | then cat >> confdefs.h <<\EOF |
| 4321 | #define WITH_PYMALLOC 1 |
| 4322 | EOF |
| 4323 | echo "$ac_t""yes" 1>&6 |
| 4324 | else echo "$ac_t""no" 1>&6 |
| 4325 | fi |
| 4326 | else |
| 4327 | echo "$ac_t""no" 1>&6 |
| 4328 | fi |
| 4329 | |
| 4330 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4331 | # Check for --with-wctype-functions |
| 4332 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4333 | echo "configure:4334: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4334 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 4335 | if test "${with_wctype_functions+set}" = set; then |
| 4336 | withval="$with_wctype_functions" |
| 4337 | |
| 4338 | if test "$withval" != no |
| 4339 | then cat >> confdefs.h <<\EOF |
| 4340 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 4341 | EOF |
| 4342 | echo "$ac_t""yes" 1>&6 |
| 4343 | else echo "$ac_t""no" 1>&6 |
| 4344 | fi |
| 4345 | else |
| 4346 | echo "$ac_t""no" 1>&6 |
| 4347 | fi |
| 4348 | |
| 4349 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4350 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4351 | |
| 4352 | DLINCLDIR=/ |
| 4353 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4354 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4355 | echo "configure:4356: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4356 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4357 | if test "${with_sgi_dl+set}" = set; then |
| 4358 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4359 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4360 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4361 | cat >> confdefs.h <<\EOF |
| 4362 | #define WITH_SGI_DL 1 |
| 4363 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4364 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4365 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4366 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 4367 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4368 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4369 | else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4370 | fi |
| 4371 | DLINCLDIR=${dldir} |
| 4372 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4373 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4374 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4375 | fi |
| 4376 | |
| 4377 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4378 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4379 | echo "configure:4380: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4380 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4381 | if test "${with_dl_dld+set}" = set; then |
| 4382 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4383 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4384 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4385 | cat >> confdefs.h <<\EOF |
| 4386 | #define WITH_DL_DLD 1 |
| 4387 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4388 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4389 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4390 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 4391 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 4392 | if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4393 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4394 | else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4395 | fi |
| 4396 | DLINCLDIR=${dldir} |
| 4397 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4398 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4399 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4400 | fi |
| 4401 | |
| 4402 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4403 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 4404 | # platforms, such as AIX, have dlopen(), but don't want to use it. |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4405 | for ac_func in dlopen |
| 4406 | do |
| 4407 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4408 | echo "configure:4409: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4409 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4410 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4411 | else |
| 4412 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4413 | #line 4414 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4414 | #include "confdefs.h" |
| 4415 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4416 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4417 | #include <assert.h> |
| 4418 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4419 | /* We use char because int might match the return type of a gcc2 |
| 4420 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4421 | char $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4422 | |
| 4423 | int main() { |
| 4424 | |
| 4425 | /* The GNU C library defines this for functions which it implements |
| 4426 | to always fail with ENOSYS. Some functions are actually named |
| 4427 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4428 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4429 | choke me |
| 4430 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4431 | $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4432 | #endif |
| 4433 | |
| 4434 | ; return 0; } |
| 4435 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4436 | if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4437 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4438 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4439 | else |
| 4440 | echo "configure: failed program was:" >&5 |
| 4441 | cat conftest.$ac_ext >&5 |
| 4442 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4443 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4444 | fi |
| 4445 | rm -f conftest* |
| 4446 | fi |
| 4447 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4448 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4449 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4450 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4451 | cat >> confdefs.h <<EOF |
| 4452 | #define $ac_tr_func 1 |
| 4453 | EOF |
| 4454 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4455 | else |
| 4456 | echo "$ac_t""no" 1>&6 |
| 4457 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4458 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4459 | |
| 4460 | |
| 4461 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 4462 | # loading of modules. |
| 4463 | |
| 4464 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4465 | echo "configure:4466: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4466 | if test -z "$DYNLOADFILE" |
| 4467 | then |
| 4468 | case $ac_sys_system/$ac_sys_release in |
| 4469 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 4470 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 4471 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4472 | Darwin/*|next/*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4473 | *) |
| 4474 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 4475 | # out any dynamic loading |
| 4476 | if test "$ac_cv_func_dlopen" = yes |
| 4477 | then DYNLOADFILE="dynload_shlib.o" |
| 4478 | else DYNLOADFILE="dynload_stub.o" |
| 4479 | fi |
| 4480 | ;; |
| 4481 | esac |
| 4482 | fi |
| 4483 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 4484 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 4485 | then |
| 4486 | cat >> confdefs.h <<\EOF |
| 4487 | #define HAVE_DYNAMIC_LOADING 1 |
| 4488 | EOF |
| 4489 | |
| 4490 | fi |
| 4491 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4492 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 4493 | |
| 4494 | |
| 4495 | echo $ac_n "checking MACHDEP_OBJS""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4496 | echo "configure:4497: checking MACHDEP_OBJS" >&5 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4497 | if test -z "$MACHDEP_OBJS" |
| 4498 | then |
| 4499 | case $ac_sys_system/$ac_sys_release in |
| 4500 | Darwin/*) |
| 4501 | MACHDEP_OBJS="Mac/Python/macglue.o" |
| 4502 | cat >> confdefs.h <<\EOF |
| 4503 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
| 4504 | EOF |
| 4505 | |
| 4506 | ;; |
| 4507 | *) MACHDEP_OBJS="";; |
| 4508 | esac |
| 4509 | fi |
| 4510 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 4511 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4512 | # checks for library functions |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4513 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4514 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Andrew M. Kuchling | a9586c7 | 2001-01-08 17:58:56 +0000 | [diff] [blame] | 4515 | getgroups getlogin getpeername getpid getpwent getwd \ |
Martin v. Löwis | b9ab159 | 2001-06-24 21:18:26 +0000 | [diff] [blame] | 4516 | inet_pton kill link lstat mkfifo mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 4517 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4518 | putenv readlink \ |
Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 4519 | select setegid seteuid setgid \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 4520 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4521 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 4522 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | c2c12dc | 2001-07-11 14:45:34 +0000 | [diff] [blame] | 4523 | truncate uname waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4524 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4525 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4526 | echo "configure:4527: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4527 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4528 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4529 | else |
| 4530 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4531 | #line 4532 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4532 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4533 | /* System header to define __stub macros and hopefully few prototypes, |
| 4534 | which can conflict with char $ac_func(); below. */ |
| 4535 | #include <assert.h> |
| 4536 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4537 | /* We use char because int might match the return type of a gcc2 |
| 4538 | builtin and then its argument prototype would still apply. */ |
| 4539 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4540 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4541 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4542 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4543 | /* The GNU C library defines this for functions which it implements |
| 4544 | to always fail with ENOSYS. Some functions are actually named |
| 4545 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4546 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4547 | choke me |
| 4548 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4549 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4550 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4551 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4552 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4553 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4554 | if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4555 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4556 | eval "ac_cv_func_$ac_func=yes" |
| 4557 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4558 | echo "configure: failed program was:" >&5 |
| 4559 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4560 | rm -rf conftest* |
| 4561 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4562 | fi |
| 4563 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4564 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4565 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4566 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4567 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4568 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4569 | cat >> confdefs.h <<EOF |
| 4570 | #define $ac_tr_func 1 |
| 4571 | EOF |
| 4572 | |
| 4573 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4574 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4575 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4576 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4577 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4578 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4579 | # check for openpty and forkpty |
| 4580 | |
| 4581 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4582 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4583 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4584 | echo "configure:4585: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4585 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4586 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4587 | else |
| 4588 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4589 | #line 4590 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4590 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4591 | /* System header to define __stub macros and hopefully few prototypes, |
| 4592 | which can conflict with char $ac_func(); below. */ |
| 4593 | #include <assert.h> |
| 4594 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4595 | /* We use char because int might match the return type of a gcc2 |
| 4596 | builtin and then its argument prototype would still apply. */ |
| 4597 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4598 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4599 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4600 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4601 | /* The GNU C library defines this for functions which it implements |
| 4602 | to always fail with ENOSYS. Some functions are actually named |
| 4603 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4604 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4605 | choke me |
| 4606 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4607 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4608 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4609 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4610 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4611 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4612 | if { (eval echo configure:4613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4613 | rm -rf conftest* |
| 4614 | eval "ac_cv_func_$ac_func=yes" |
| 4615 | else |
| 4616 | echo "configure: failed program was:" >&5 |
| 4617 | cat conftest.$ac_ext >&5 |
| 4618 | rm -rf conftest* |
| 4619 | eval "ac_cv_func_$ac_func=no" |
| 4620 | fi |
| 4621 | rm -f conftest* |
| 4622 | fi |
| 4623 | |
| 4624 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4625 | echo "$ac_t""yes" 1>&6 |
| 4626 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4627 | cat >> confdefs.h <<EOF |
| 4628 | #define $ac_tr_func 1 |
| 4629 | EOF |
| 4630 | |
| 4631 | else |
| 4632 | echo "$ac_t""no" 1>&6 |
| 4633 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4634 | echo "configure:4635: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4635 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4636 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4637 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4638 | else |
| 4639 | ac_save_LIBS="$LIBS" |
| 4640 | LIBS="-lutil $LIBS" |
| 4641 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4642 | #line 4643 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4643 | #include "confdefs.h" |
| 4644 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4645 | /* We use char because int might match the return type of a gcc2 |
| 4646 | builtin and then its argument prototype would still apply. */ |
| 4647 | char openpty(); |
| 4648 | |
| 4649 | int main() { |
| 4650 | openpty() |
| 4651 | ; return 0; } |
| 4652 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4653 | if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4654 | rm -rf conftest* |
| 4655 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4656 | else |
| 4657 | echo "configure: failed program was:" >&5 |
| 4658 | cat conftest.$ac_ext >&5 |
| 4659 | rm -rf conftest* |
| 4660 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4661 | fi |
| 4662 | rm -f conftest* |
| 4663 | LIBS="$ac_save_LIBS" |
| 4664 | |
| 4665 | fi |
| 4666 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4667 | echo "$ac_t""yes" 1>&6 |
| 4668 | cat >> confdefs.h <<\EOF |
| 4669 | #define HAVE_OPENPTY 1 |
| 4670 | EOF |
| 4671 | LIBS="$LIBS -lutil" |
| 4672 | else |
| 4673 | echo "$ac_t""no" 1>&6 |
| 4674 | fi |
| 4675 | |
| 4676 | fi |
| 4677 | done |
| 4678 | |
| 4679 | for ac_func in forkpty |
| 4680 | do |
| 4681 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4682 | echo "configure:4683: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4683 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4684 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4685 | else |
| 4686 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4687 | #line 4688 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4688 | #include "confdefs.h" |
| 4689 | /* System header to define __stub macros and hopefully few prototypes, |
| 4690 | which can conflict with char $ac_func(); below. */ |
| 4691 | #include <assert.h> |
| 4692 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4693 | /* We use char because int might match the return type of a gcc2 |
| 4694 | builtin and then its argument prototype would still apply. */ |
| 4695 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4696 | |
| 4697 | int main() { |
| 4698 | |
| 4699 | /* The GNU C library defines this for functions which it implements |
| 4700 | to always fail with ENOSYS. Some functions are actually named |
| 4701 | something starting with __ and the normal name is an alias. */ |
| 4702 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4703 | choke me |
| 4704 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4705 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4706 | #endif |
| 4707 | |
| 4708 | ; return 0; } |
| 4709 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4710 | if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4711 | rm -rf conftest* |
| 4712 | eval "ac_cv_func_$ac_func=yes" |
| 4713 | else |
| 4714 | echo "configure: failed program was:" >&5 |
| 4715 | cat conftest.$ac_ext >&5 |
| 4716 | rm -rf conftest* |
| 4717 | eval "ac_cv_func_$ac_func=no" |
| 4718 | fi |
| 4719 | rm -f conftest* |
| 4720 | fi |
| 4721 | |
| 4722 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4723 | echo "$ac_t""yes" 1>&6 |
| 4724 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4725 | cat >> confdefs.h <<EOF |
| 4726 | #define $ac_tr_func 1 |
| 4727 | EOF |
| 4728 | |
| 4729 | else |
| 4730 | echo "$ac_t""no" 1>&6 |
| 4731 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4732 | echo "configure:4733: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4733 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4734 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4735 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4736 | else |
| 4737 | ac_save_LIBS="$LIBS" |
| 4738 | LIBS="-lutil $LIBS" |
| 4739 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4740 | #line 4741 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4741 | #include "confdefs.h" |
| 4742 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4743 | /* We use char because int might match the return type of a gcc2 |
| 4744 | builtin and then its argument prototype would still apply. */ |
| 4745 | char forkpty(); |
| 4746 | |
| 4747 | int main() { |
| 4748 | forkpty() |
| 4749 | ; return 0; } |
| 4750 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4751 | if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4752 | rm -rf conftest* |
| 4753 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4754 | else |
| 4755 | echo "configure: failed program was:" >&5 |
| 4756 | cat conftest.$ac_ext >&5 |
| 4757 | rm -rf conftest* |
| 4758 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4759 | fi |
| 4760 | rm -f conftest* |
| 4761 | LIBS="$ac_save_LIBS" |
| 4762 | |
| 4763 | fi |
| 4764 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4765 | echo "$ac_t""yes" 1>&6 |
| 4766 | cat >> confdefs.h <<\EOF |
| 4767 | #define HAVE_FORKPTY 1 |
| 4768 | EOF |
| 4769 | LIBS="$LIBS -lutil" |
| 4770 | else |
| 4771 | echo "$ac_t""no" 1>&6 |
| 4772 | fi |
| 4773 | |
| 4774 | fi |
| 4775 | done |
| 4776 | |
| 4777 | |
| 4778 | # check for long file support functions |
| 4779 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 4780 | do |
| 4781 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4782 | echo "configure:4783: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4783 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4784 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4785 | else |
| 4786 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4787 | #line 4788 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4788 | #include "confdefs.h" |
| 4789 | /* System header to define __stub macros and hopefully few prototypes, |
| 4790 | which can conflict with char $ac_func(); below. */ |
| 4791 | #include <assert.h> |
| 4792 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4793 | /* We use char because int might match the return type of a gcc2 |
| 4794 | builtin and then its argument prototype would still apply. */ |
| 4795 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4796 | |
| 4797 | int main() { |
| 4798 | |
| 4799 | /* The GNU C library defines this for functions which it implements |
| 4800 | to always fail with ENOSYS. Some functions are actually named |
| 4801 | something starting with __ and the normal name is an alias. */ |
| 4802 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4803 | choke me |
| 4804 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4805 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4806 | #endif |
| 4807 | |
| 4808 | ; return 0; } |
| 4809 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4810 | if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4811 | rm -rf conftest* |
| 4812 | eval "ac_cv_func_$ac_func=yes" |
| 4813 | else |
| 4814 | echo "configure: failed program was:" >&5 |
| 4815 | cat conftest.$ac_ext >&5 |
| 4816 | rm -rf conftest* |
| 4817 | eval "ac_cv_func_$ac_func=no" |
| 4818 | fi |
| 4819 | rm -f conftest* |
| 4820 | fi |
| 4821 | |
| 4822 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4823 | echo "$ac_t""yes" 1>&6 |
| 4824 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4825 | cat >> confdefs.h <<EOF |
| 4826 | #define $ac_tr_func 1 |
| 4827 | EOF |
| 4828 | |
| 4829 | else |
| 4830 | echo "$ac_t""no" 1>&6 |
| 4831 | fi |
| 4832 | done |
| 4833 | |
| 4834 | |
| 4835 | for ac_func in dup2 getcwd strdup strerror memmove |
| 4836 | do |
| 4837 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4838 | echo "configure:4839: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4839 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4840 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4841 | else |
| 4842 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4843 | #line 4844 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4844 | #include "confdefs.h" |
| 4845 | /* System header to define __stub macros and hopefully few prototypes, |
| 4846 | which can conflict with char $ac_func(); below. */ |
| 4847 | #include <assert.h> |
| 4848 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4849 | /* We use char because int might match the return type of a gcc2 |
| 4850 | builtin and then its argument prototype would still apply. */ |
| 4851 | char $ac_func(); |
| 4852 | |
| 4853 | int main() { |
| 4854 | |
| 4855 | /* The GNU C library defines this for functions which it implements |
| 4856 | to always fail with ENOSYS. Some functions are actually named |
| 4857 | something starting with __ and the normal name is an alias. */ |
| 4858 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4859 | choke me |
| 4860 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4861 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4862 | #endif |
| 4863 | |
| 4864 | ; return 0; } |
| 4865 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4866 | if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4867 | rm -rf conftest* |
| 4868 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4869 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4870 | echo "configure: failed program was:" >&5 |
| 4871 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4872 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4873 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4874 | fi |
| 4875 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4876 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4877 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4878 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4879 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4880 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4881 | cat >> confdefs.h <<EOF |
| 4882 | #define $ac_tr_func 1 |
| 4883 | EOF |
| 4884 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4885 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4886 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4887 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4888 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4889 | done |
| 4890 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4891 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4892 | for ac_func in getpgrp |
| 4893 | do |
| 4894 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4895 | echo "configure:4896: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4896 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4897 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4898 | else |
| 4899 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4900 | #line 4901 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4901 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4902 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4903 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4904 | #include <assert.h> |
| 4905 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4906 | /* We use char because int might match the return type of a gcc2 |
| 4907 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4908 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4909 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4910 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4911 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4912 | /* The GNU C library defines this for functions which it implements |
| 4913 | to always fail with ENOSYS. Some functions are actually named |
| 4914 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4915 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4916 | choke me |
| 4917 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4918 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4919 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4920 | |
| 4921 | ; return 0; } |
| 4922 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4923 | if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4924 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4925 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4926 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4927 | echo "configure: failed program was:" >&5 |
| 4928 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4929 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4930 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4931 | fi |
| 4932 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4933 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4934 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4935 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4936 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4937 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4938 | cat >> confdefs.h <<EOF |
| 4939 | #define $ac_tr_func 1 |
| 4940 | EOF |
| 4941 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4942 | #line 4943 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4943 | #include "confdefs.h" |
| 4944 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4945 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4946 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4947 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4948 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4949 | if { (eval echo configure:4950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4950 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4951 | cat >> confdefs.h <<\EOF |
| 4952 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4953 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4954 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4955 | else |
| 4956 | echo "configure: failed program was:" >&5 |
| 4957 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4958 | fi |
| 4959 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4960 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4961 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4962 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4963 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4964 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4965 | for ac_func in setpgrp |
| 4966 | do |
| 4967 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4968 | echo "configure:4969: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4969 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4970 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4971 | else |
| 4972 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4973 | #line 4974 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4974 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4975 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4976 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4977 | #include <assert.h> |
| 4978 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4979 | /* We use char because int might match the return type of a gcc2 |
| 4980 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4981 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4982 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4983 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4984 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4985 | /* The GNU C library defines this for functions which it implements |
| 4986 | to always fail with ENOSYS. Some functions are actually named |
| 4987 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4988 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4989 | choke me |
| 4990 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4991 | $ac_func(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4992 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4993 | |
| 4994 | ; return 0; } |
| 4995 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 4996 | if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4997 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4998 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4999 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5000 | echo "configure: failed program was:" >&5 |
| 5001 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5002 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5003 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5004 | fi |
| 5005 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5006 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5007 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5008 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5009 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5010 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5011 | cat >> confdefs.h <<EOF |
| 5012 | #define $ac_tr_func 1 |
| 5013 | EOF |
| 5014 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5015 | #line 5016 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5016 | #include "confdefs.h" |
| 5017 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5018 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5019 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5020 | ; return 0; } |
| 5021 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5022 | if { (eval echo configure:5023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5023 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5024 | cat >> confdefs.h <<\EOF |
| 5025 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5026 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5027 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5028 | else |
| 5029 | echo "configure: failed program was:" >&5 |
| 5030 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5031 | fi |
| 5032 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5033 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5034 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5035 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5036 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5037 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5038 | for ac_func in gettimeofday |
| 5039 | do |
| 5040 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5041 | echo "configure:5042: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5042 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5043 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5044 | else |
| 5045 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5046 | #line 5047 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5047 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5048 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5049 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5050 | #include <assert.h> |
| 5051 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5052 | /* We use char because int might match the return type of a gcc2 |
| 5053 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5054 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5055 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5056 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5057 | |
| 5058 | /* The GNU C library defines this for functions which it implements |
| 5059 | to always fail with ENOSYS. Some functions are actually named |
| 5060 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5061 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5062 | choke me |
| 5063 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5064 | $ac_func(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5065 | #endif |
| 5066 | |
| 5067 | ; return 0; } |
| 5068 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5069 | if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5070 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5071 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5072 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5073 | echo "configure: failed program was:" >&5 |
| 5074 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5075 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5076 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5077 | fi |
| 5078 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5079 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5080 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5081 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5082 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5083 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5084 | cat >> confdefs.h <<EOF |
| 5085 | #define $ac_tr_func 1 |
| 5086 | EOF |
| 5087 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5088 | #line 5089 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5089 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5090 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5091 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5092 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 5093 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5094 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5095 | if { (eval echo configure:5096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5096 | : |
| 5097 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5098 | echo "configure: failed program was:" >&5 |
| 5099 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5100 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5101 | cat >> confdefs.h <<\EOF |
| 5102 | #define GETTIMEOFDAY_NO_TZ 1 |
| 5103 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5104 | |
| 5105 | fi |
| 5106 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5107 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5108 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5109 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5110 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5111 | |
| 5112 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5113 | for ac_func in getaddrinfo |
| 5114 | do |
| 5115 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5116 | echo "configure:5117: checking for $ac_func" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5117 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5118 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5119 | else |
| 5120 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5121 | #line 5122 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5122 | #include "confdefs.h" |
| 5123 | /* System header to define __stub macros and hopefully few prototypes, |
| 5124 | which can conflict with char $ac_func(); below. */ |
| 5125 | #include <assert.h> |
| 5126 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5127 | /* We use char because int might match the return type of a gcc2 |
| 5128 | builtin and then its argument prototype would still apply. */ |
| 5129 | char $ac_func(); |
| 5130 | |
| 5131 | int main() { |
| 5132 | |
| 5133 | /* The GNU C library defines this for functions which it implements |
| 5134 | to always fail with ENOSYS. Some functions are actually named |
| 5135 | something starting with __ and the normal name is an alias. */ |
| 5136 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5137 | choke me |
| 5138 | #else |
| 5139 | $ac_func(); |
| 5140 | #endif |
| 5141 | |
| 5142 | ; return 0; } |
| 5143 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5144 | if { (eval echo configure:5145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5145 | rm -rf conftest* |
| 5146 | eval "ac_cv_func_$ac_func=yes" |
| 5147 | else |
| 5148 | echo "configure: failed program was:" >&5 |
| 5149 | cat conftest.$ac_ext >&5 |
| 5150 | rm -rf conftest* |
| 5151 | eval "ac_cv_func_$ac_func=no" |
| 5152 | fi |
| 5153 | rm -f conftest* |
| 5154 | fi |
| 5155 | |
| 5156 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5157 | echo "$ac_t""yes" 1>&6 |
| 5158 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5159 | cat >> confdefs.h <<EOF |
| 5160 | #define $ac_tr_func 1 |
| 5161 | EOF |
| 5162 | echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5163 | echo "configure:5164: checking getaddrinfo bug" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5164 | if test "$cross_compiling" = yes; then |
| 5165 | echo "$ac_t""buggy" 1>&6 |
| 5166 | buggygetaddrinfo=yes |
| 5167 | else |
| 5168 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5169 | #line 5170 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5170 | #include "confdefs.h" |
| 5171 | |
| 5172 | #include <sys/types.h> |
| 5173 | #include <netdb.h> |
| 5174 | #include <string.h> |
| 5175 | #include <sys/socket.h> |
| 5176 | #include <netinet/in.h> |
| 5177 | |
| 5178 | main() |
| 5179 | { |
| 5180 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 5181 | struct addrinfo hints, *ai, *aitop; |
| 5182 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 5183 | |
| 5184 | for (passive = 0; passive <= 1; passive++) { |
| 5185 | memset(&hints, 0, sizeof(hints)); |
| 5186 | hints.ai_family = AF_UNSPEC; |
| 5187 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 5188 | hints.ai_socktype = SOCK_STREAM; |
| 5189 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 5190 | (void)gai_strerror(gaierr); |
| 5191 | goto bad; |
| 5192 | } |
| 5193 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 5194 | if (ai->ai_addr == NULL || |
| 5195 | ai->ai_addrlen == 0 || |
| 5196 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 5197 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 5198 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 5199 | goto bad; |
| 5200 | } |
| 5201 | switch (ai->ai_family) { |
| 5202 | case AF_INET: |
| 5203 | if (strcmp(strport, "54321") != 0) { |
| 5204 | goto bad; |
| 5205 | } |
| 5206 | if (passive) { |
| 5207 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 5208 | goto bad; |
| 5209 | } |
| 5210 | } else { |
| 5211 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 5212 | goto bad; |
| 5213 | } |
| 5214 | } |
| 5215 | inet4++; |
| 5216 | break; |
| 5217 | case AF_INET6: |
| 5218 | if (strcmp(strport, "54321") != 0) { |
| 5219 | goto bad; |
| 5220 | } |
| 5221 | if (passive) { |
| 5222 | if (strcmp(straddr, "::") != 0) { |
| 5223 | goto bad; |
| 5224 | } |
| 5225 | } else { |
| 5226 | if (strcmp(straddr, "::1") != 0) { |
| 5227 | goto bad; |
| 5228 | } |
| 5229 | } |
| 5230 | inet6++; |
| 5231 | break; |
| 5232 | case AF_UNSPEC: |
| 5233 | goto bad; |
| 5234 | break; |
| 5235 | default: |
| 5236 | /* another family support? */ |
| 5237 | break; |
| 5238 | } |
| 5239 | } |
| 5240 | } |
| 5241 | |
| 5242 | if (!(inet4 == 0 || inet4 == 2)) |
| 5243 | goto bad; |
| 5244 | if (!(inet6 == 0 || inet6 == 2)) |
| 5245 | goto bad; |
| 5246 | |
| 5247 | if (aitop) |
| 5248 | freeaddrinfo(aitop); |
| 5249 | exit(0); |
| 5250 | |
| 5251 | bad: |
| 5252 | if (aitop) |
| 5253 | freeaddrinfo(aitop); |
| 5254 | exit(1); |
| 5255 | } |
| 5256 | |
| 5257 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5258 | if { (eval echo configure:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5259 | then |
| 5260 | echo "$ac_t""good" 1>&6 |
| 5261 | buggygetaddrinfo=no |
| 5262 | else |
| 5263 | echo "configure: failed program was:" >&5 |
| 5264 | cat conftest.$ac_ext >&5 |
| 5265 | rm -fr conftest* |
| 5266 | echo "$ac_t""buggy" 1>&6 |
| 5267 | buggygetaddrinfo=yes |
| 5268 | fi |
| 5269 | rm -fr conftest* |
| 5270 | fi |
| 5271 | |
| 5272 | else |
| 5273 | echo "$ac_t""no" 1>&6 |
| 5274 | buggygetaddrinfo=yes |
| 5275 | fi |
| 5276 | done |
| 5277 | |
| 5278 | |
| 5279 | if test "$buggygetaddrinfo" = "yes"; then |
| 5280 | if test "$ipv6" = "yes"; then |
| 5281 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 5282 | echo ' or you can specify "--disable-ipv6"'. |
| 5283 | exit 1 |
| 5284 | fi |
| 5285 | fi |
| 5286 | for ac_func in getaddrinfo getnameinfo |
| 5287 | do |
| 5288 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5289 | echo "configure:5290: checking for $ac_func" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5290 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5291 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5292 | else |
| 5293 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5294 | #line 5295 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5295 | #include "confdefs.h" |
| 5296 | /* System header to define __stub macros and hopefully few prototypes, |
| 5297 | which can conflict with char $ac_func(); below. */ |
| 5298 | #include <assert.h> |
| 5299 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5300 | /* We use char because int might match the return type of a gcc2 |
| 5301 | builtin and then its argument prototype would still apply. */ |
| 5302 | char $ac_func(); |
| 5303 | |
| 5304 | int main() { |
| 5305 | |
| 5306 | /* The GNU C library defines this for functions which it implements |
| 5307 | to always fail with ENOSYS. Some functions are actually named |
| 5308 | something starting with __ and the normal name is an alias. */ |
| 5309 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5310 | choke me |
| 5311 | #else |
| 5312 | $ac_func(); |
| 5313 | #endif |
| 5314 | |
| 5315 | ; return 0; } |
| 5316 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5317 | if { (eval echo configure:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5318 | rm -rf conftest* |
| 5319 | eval "ac_cv_func_$ac_func=yes" |
| 5320 | else |
| 5321 | echo "configure: failed program was:" >&5 |
| 5322 | cat conftest.$ac_ext >&5 |
| 5323 | rm -rf conftest* |
| 5324 | eval "ac_cv_func_$ac_func=no" |
| 5325 | fi |
| 5326 | rm -f conftest* |
| 5327 | fi |
| 5328 | |
| 5329 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5330 | echo "$ac_t""yes" 1>&6 |
| 5331 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5332 | cat >> confdefs.h <<EOF |
| 5333 | #define $ac_tr_func 1 |
| 5334 | EOF |
| 5335 | |
| 5336 | else |
| 5337 | echo "$ac_t""no" 1>&6 |
| 5338 | fi |
| 5339 | done |
| 5340 | |
| 5341 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5342 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5343 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5344 | echo "configure:5345: checking whether time.h and sys/time.h may both be included" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5345 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5346 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5347 | else |
| 5348 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5349 | #line 5350 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5350 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5351 | #include <sys/types.h> |
| 5352 | #include <sys/time.h> |
| 5353 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5354 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5355 | struct tm *tp; |
| 5356 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5357 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5358 | if { (eval echo configure:5359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5359 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5360 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5361 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5362 | echo "configure: failed program was:" >&5 |
| 5363 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5364 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5365 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5366 | fi |
| 5367 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5368 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5369 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5370 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5371 | if test $ac_cv_header_time = yes; then |
| 5372 | cat >> confdefs.h <<\EOF |
| 5373 | #define TIME_WITH_SYS_TIME 1 |
| 5374 | EOF |
| 5375 | |
| 5376 | fi |
| 5377 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5378 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5379 | echo "configure:5380: checking whether struct tm is in sys/time.h or time.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5380 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5381 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5382 | else |
| 5383 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5384 | #line 5385 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5385 | #include "confdefs.h" |
| 5386 | #include <sys/types.h> |
| 5387 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5388 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5389 | struct tm *tp; tp->tm_sec; |
| 5390 | ; return 0; } |
| 5391 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5392 | if { (eval echo configure:5393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5393 | rm -rf conftest* |
| 5394 | ac_cv_struct_tm=time.h |
| 5395 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5396 | echo "configure: failed program was:" >&5 |
| 5397 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5398 | rm -rf conftest* |
| 5399 | ac_cv_struct_tm=sys/time.h |
| 5400 | fi |
| 5401 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5402 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5403 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5404 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5405 | if test $ac_cv_struct_tm = sys/time.h; then |
| 5406 | cat >> confdefs.h <<\EOF |
| 5407 | #define TM_IN_SYS_TIME 1 |
| 5408 | EOF |
| 5409 | |
| 5410 | fi |
| 5411 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5412 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5413 | echo "configure:5414: checking for tm_zone in struct tm" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5414 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5415 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5416 | else |
| 5417 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5418 | #line 5419 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5419 | #include "confdefs.h" |
| 5420 | #include <sys/types.h> |
| 5421 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5422 | int main() { |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5423 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5424 | ; return 0; } |
| 5425 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5426 | if { (eval echo configure:5427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5427 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5428 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5429 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5430 | echo "configure: failed program was:" >&5 |
| 5431 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5432 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5433 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5434 | fi |
| 5435 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5436 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5437 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5438 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 5439 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5440 | cat >> confdefs.h <<\EOF |
| 5441 | #define HAVE_TM_ZONE 1 |
| 5442 | EOF |
| 5443 | |
| 5444 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5445 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5446 | echo "configure:5447: checking for tzname" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5447 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5448 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5449 | else |
| 5450 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5451 | #line 5452 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5452 | #include "confdefs.h" |
| 5453 | #include <time.h> |
| 5454 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5455 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5456 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5457 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5458 | atoi(*tzname); |
| 5459 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5460 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5461 | if { (eval echo configure:5462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5462 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5463 | ac_cv_var_tzname=yes |
| 5464 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5465 | echo "configure: failed program was:" >&5 |
| 5466 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5467 | rm -rf conftest* |
| 5468 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5469 | fi |
| 5470 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5471 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5472 | |
| 5473 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5474 | if test $ac_cv_var_tzname = yes; then |
| 5475 | cat >> confdefs.h <<\EOF |
| 5476 | #define HAVE_TZNAME 1 |
| 5477 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5478 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5479 | fi |
| 5480 | fi |
| 5481 | |
| 5482 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5483 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5484 | echo "configure:5485: checking for time.h that defines altzone" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5485 | if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5486 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5487 | else |
| 5488 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5489 | #line 5490 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5490 | #include "confdefs.h" |
| 5491 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5492 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5493 | return altzone; |
| 5494 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5495 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5496 | if { (eval echo configure:5497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5497 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5498 | ac_cv_header_time_altzone=yes |
| 5499 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5500 | echo "configure: failed program was:" >&5 |
| 5501 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5502 | rm -rf conftest* |
| 5503 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5504 | fi |
| 5505 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5506 | fi |
| 5507 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5508 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5509 | if test $ac_cv_header_time_altzone = yes; then |
| 5510 | cat >> confdefs.h <<\EOF |
| 5511 | #define HAVE_ALTZONE 1 |
| 5512 | EOF |
| 5513 | |
| 5514 | fi |
| 5515 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5516 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5517 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5518 | echo "configure:5519: checking whether sys/select.h and sys/time.h may both be included" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5519 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5520 | #line 5521 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5521 | #include "confdefs.h" |
| 5522 | |
| 5523 | #include <sys/types.h> |
| 5524 | #include <sys/select.h> |
| 5525 | #include <sys/time.h> |
| 5526 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5527 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5528 | ; |
| 5529 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5530 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5531 | if { (eval echo configure:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5532 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5533 | cat >> confdefs.h <<\EOF |
| 5534 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 5535 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5536 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5537 | else |
| 5538 | echo "configure: failed program was:" >&5 |
| 5539 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5540 | fi |
| 5541 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5542 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5543 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5544 | echo $ac_n "checking for addrinfo""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5545 | echo "configure:5546: checking for addrinfo" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5546 | if eval "test \"`echo '$''{'ac_cv_struct_addrinfo'+set}'`\" = set"; then |
| 5547 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5548 | else |
| 5549 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5550 | #line 5551 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5551 | #include "confdefs.h" |
| 5552 | |
| 5553 | # include <netdb.h> |
| 5554 | int main() { |
| 5555 | struct addrinfo a |
| 5556 | ; return 0; } |
| 5557 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5558 | if { (eval echo configure:5559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5559 | rm -rf conftest* |
| 5560 | ac_cv_struct_addrinfo=yes |
| 5561 | else |
| 5562 | echo "configure: failed program was:" >&5 |
| 5563 | cat conftest.$ac_ext >&5 |
| 5564 | rm -rf conftest* |
| 5565 | ac_cv_struct_addrinfo=no |
| 5566 | fi |
| 5567 | rm -f conftest* |
| 5568 | fi |
| 5569 | |
| 5570 | echo "$ac_t""$ac_cv_struct_addrinfo" 1>&6 |
| 5571 | if test $ac_cv_struct_addrinfo = yes; then |
| 5572 | cat >> confdefs.h <<\EOF |
| 5573 | #define HAVE_ADDRINFO 1 |
| 5574 | EOF |
| 5575 | |
| 5576 | fi |
| 5577 | |
| 5578 | echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5579 | echo "configure:5580: checking for sockaddr_storage" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5580 | if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then |
| 5581 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5582 | else |
| 5583 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5584 | #line 5585 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5585 | #include "confdefs.h" |
| 5586 | |
| 5587 | # include <sys/types.h> |
| 5588 | # include <sys/socket.h> |
| 5589 | int main() { |
| 5590 | struct sockaddr_storage s |
| 5591 | ; return 0; } |
| 5592 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5593 | if { (eval echo configure:5594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5594 | rm -rf conftest* |
| 5595 | ac_cv_struct_sockaddr_storage=yes |
| 5596 | else |
| 5597 | echo "configure: failed program was:" >&5 |
| 5598 | cat conftest.$ac_ext >&5 |
| 5599 | rm -rf conftest* |
| 5600 | ac_cv_struct_sockaddr_storage=no |
| 5601 | fi |
| 5602 | rm -f conftest* |
| 5603 | fi |
| 5604 | |
| 5605 | echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6 |
| 5606 | if test $ac_cv_struct_sockaddr_storage = yes; then |
| 5607 | cat >> confdefs.h <<\EOF |
| 5608 | #define HAVE_SOCKADDR_STORAGE 1 |
| 5609 | EOF |
| 5610 | |
| 5611 | fi |
| 5612 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5613 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5614 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5615 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5616 | echo "configure:5617: checking whether char is unsigned" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5617 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5618 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5619 | else |
| 5620 | if test "$GCC" = yes; then |
| 5621 | # GCC predefines this symbol on systems where it applies. |
| 5622 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5623 | #line 5624 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5624 | #include "confdefs.h" |
| 5625 | #ifdef __CHAR_UNSIGNED__ |
| 5626 | yes |
| 5627 | #endif |
| 5628 | |
| 5629 | EOF |
| 5630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5631 | egrep "yes" >/dev/null 2>&1; then |
| 5632 | rm -rf conftest* |
| 5633 | ac_cv_c_char_unsigned=yes |
| 5634 | else |
| 5635 | rm -rf conftest* |
| 5636 | ac_cv_c_char_unsigned=no |
| 5637 | fi |
| 5638 | rm -f conftest* |
| 5639 | |
| 5640 | else |
| 5641 | if test "$cross_compiling" = yes; then |
| 5642 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5643 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5644 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5645 | #line 5646 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5646 | #include "confdefs.h" |
| 5647 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5648 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5649 | #define volatile |
| 5650 | #endif |
| 5651 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5652 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5653 | } |
| 5654 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5655 | if { (eval echo configure:5656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5656 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5657 | ac_cv_c_char_unsigned=yes |
| 5658 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5659 | echo "configure: failed program was:" >&5 |
| 5660 | cat conftest.$ac_ext >&5 |
| 5661 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5662 | ac_cv_c_char_unsigned=no |
| 5663 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5664 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5665 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5666 | |
| 5667 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5668 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5669 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5670 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5671 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 5672 | cat >> confdefs.h <<\EOF |
| 5673 | #define __CHAR_UNSIGNED__ 1 |
| 5674 | EOF |
| 5675 | |
| 5676 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5677 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5678 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5679 | echo "configure:5680: checking for working const" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5680 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5681 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5682 | else |
| 5683 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5684 | #line 5685 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5685 | #include "confdefs.h" |
| 5686 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5687 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5688 | |
| 5689 | /* Ultrix mips cc rejects this. */ |
Martin v. Löwis | 9db2f57 | 2001-07-23 01:30:10 +0000 | [diff] [blame] | 5690 | typedef int charset[2]; const charset x; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5691 | /* SunOS 4.1.1 cc rejects this. */ |
| 5692 | char const *const *ccp; |
| 5693 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5694 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5695 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5696 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5697 | /* AIX XL C 1.02.0.0 rejects this. |
| 5698 | It does not let you subtract one const X* pointer from another in an arm |
| 5699 | of an if-expression whose if-part is not a constant expression */ |
| 5700 | const char *g = "string"; |
| 5701 | ccp = &g + (g ? g-g : 0); |
| 5702 | /* HPUX 7.0 cc rejects these. */ |
| 5703 | ++ccp; |
| 5704 | p = (char**) ccp; |
| 5705 | ccp = (char const *const *) p; |
| 5706 | { /* SCO 3.2v4 cc rejects this. */ |
| 5707 | char *t; |
| 5708 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5709 | |
| 5710 | *t++ = 0; |
| 5711 | } |
| 5712 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5713 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5714 | const int *foo = &x[0]; |
| 5715 | ++foo; |
| 5716 | } |
| 5717 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5718 | typedef const int *iptr; |
| 5719 | iptr p = 0; |
| 5720 | ++p; |
| 5721 | } |
| 5722 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5723 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5724 | struct s { int j; const int *ap[3]; }; |
| 5725 | struct s *b; b->j = 5; |
| 5726 | } |
| 5727 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5728 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5729 | } |
| 5730 | |
| 5731 | ; return 0; } |
| 5732 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5733 | if { (eval echo configure:5734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5734 | rm -rf conftest* |
| 5735 | ac_cv_c_const=yes |
| 5736 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5737 | echo "configure: failed program was:" >&5 |
| 5738 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5739 | rm -rf conftest* |
| 5740 | ac_cv_c_const=no |
| 5741 | fi |
| 5742 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5743 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5744 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5745 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5746 | if test $ac_cv_c_const = no; then |
| 5747 | cat >> confdefs.h <<\EOF |
| 5748 | #define const |
| 5749 | EOF |
| 5750 | |
| 5751 | fi |
| 5752 | |
| 5753 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5754 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5755 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5756 | echo "configure:5757: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5757 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5758 | #line 5759 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5759 | #include "confdefs.h" |
| 5760 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5761 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5762 | volatile int x; x = 0; |
| 5763 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5764 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5765 | if { (eval echo configure:5766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5766 | rm -rf conftest* |
| 5767 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5768 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5769 | echo "configure: failed program was:" >&5 |
| 5770 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5771 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5772 | cat >> confdefs.h <<\EOF |
| 5773 | #define volatile |
| 5774 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5775 | |
| 5776 | fi |
| 5777 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5778 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5779 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5780 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5781 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5782 | echo "configure:5783: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5783 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5784 | #line 5785 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5785 | #include "confdefs.h" |
| 5786 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5787 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5788 | signed char c; |
| 5789 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5790 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5791 | if { (eval echo configure:5792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5792 | rm -rf conftest* |
| 5793 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5794 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5795 | echo "configure: failed program was:" >&5 |
| 5796 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5797 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5798 | cat >> confdefs.h <<\EOF |
| 5799 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5800 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5801 | |
| 5802 | fi |
| 5803 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5804 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5805 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5806 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5807 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5808 | echo "configure:5809: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5809 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5810 | #line 5811 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5811 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5812 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5813 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5814 | return foo(10); |
| 5815 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5816 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5817 | if { (eval echo configure:5818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5818 | rm -rf conftest* |
| 5819 | cat >> confdefs.h <<\EOF |
| 5820 | #define HAVE_PROTOTYPES 1 |
| 5821 | EOF |
| 5822 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5823 | else |
| 5824 | echo "configure: failed program was:" >&5 |
| 5825 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5826 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5827 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5828 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5829 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5830 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5831 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5832 | echo "configure:5833: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5833 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5834 | #line 5835 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5835 | #include "confdefs.h" |
| 5836 | |
| 5837 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5838 | int foo(int x, ...) { |
| 5839 | va_list va; |
| 5840 | va_start(va, x); |
| 5841 | va_arg(va, int); |
| 5842 | va_arg(va, char *); |
| 5843 | va_arg(va, double); |
| 5844 | return 0; |
| 5845 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5846 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5847 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5848 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5849 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5850 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5851 | if { (eval echo configure:5852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5852 | rm -rf conftest* |
| 5853 | cat >> confdefs.h <<\EOF |
| 5854 | #define HAVE_STDARG_PROTOTYPES 1 |
| 5855 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5856 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5857 | else |
| 5858 | echo "configure: failed program was:" >&5 |
| 5859 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5860 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5861 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5862 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5863 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5864 | if test "$have_prototypes" = yes; then |
| 5865 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5866 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5867 | echo "configure:5868: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5868 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5869 | #line 5870 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5870 | #include "confdefs.h" |
| 5871 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5872 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5873 | char **t;execve("@",t,t); |
| 5874 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5875 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5876 | if { (eval echo configure:5877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5877 | : |
| 5878 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5879 | echo "configure: failed program was:" >&5 |
| 5880 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5881 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5882 | cat >> confdefs.h <<\EOF |
| 5883 | #define BAD_EXEC_PROTOTYPES 1 |
| 5884 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5885 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5886 | fi |
| 5887 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5888 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5889 | fi |
| 5890 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5891 | # check if sockaddr has sa_len member |
| 5892 | echo $ac_n "checking if sockaddr has sa_len member""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5893 | echo "configure:5894: checking if sockaddr has sa_len member" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5894 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5895 | #line 5896 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5896 | #include "confdefs.h" |
| 5897 | #include <sys/types.h> |
| 5898 | #include <sys/socket.h> |
| 5899 | int main() { |
| 5900 | struct sockaddr x; |
| 5901 | x.sa_len = 0; |
| 5902 | ; return 0; } |
| 5903 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5904 | if { (eval echo configure:5905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5905 | rm -rf conftest* |
| 5906 | echo "$ac_t""yes" 1>&6 |
| 5907 | cat >> confdefs.h <<\EOF |
| 5908 | #define HAVE_SOCKADDR_SA_LEN 1 |
| 5909 | EOF |
| 5910 | |
| 5911 | else |
| 5912 | echo "configure: failed program was:" >&5 |
| 5913 | cat conftest.$ac_ext >&5 |
| 5914 | rm -rf conftest* |
| 5915 | echo "$ac_t""no" 1>&6 |
| 5916 | fi |
| 5917 | rm -f conftest* |
| 5918 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5919 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5920 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5921 | echo "configure:5922: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5922 | if test "$cross_compiling" = yes; then |
| 5923 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5924 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5925 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5926 | #line 5927 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5927 | #include "confdefs.h" |
| 5928 | |
| 5929 | struct s { int a; int b; }; |
| 5930 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5931 | int foobar() { |
| 5932 | static int random; |
| 5933 | random = (int) &foo; |
| 5934 | return random; |
| 5935 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5936 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5937 | main() { |
| 5938 | exit(!((int)&foo == foobar())); |
| 5939 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5940 | |
| 5941 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5942 | if { (eval echo configure:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5943 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5944 | : |
| 5945 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5946 | echo "configure: failed program was:" >&5 |
| 5947 | cat conftest.$ac_ext >&5 |
| 5948 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5949 | cat >> confdefs.h <<\EOF |
| 5950 | #define BAD_STATIC_FORWARD 1 |
| 5951 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5952 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5953 | fi |
| 5954 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5955 | fi |
| 5956 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5957 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5958 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5959 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5960 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5961 | echo "configure:5962: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5962 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5963 | #line 5964 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5964 | #include "confdefs.h" |
| 5965 | |
| 5966 | #ifdef HAVE_STDARG_PROTOTYPES |
| 5967 | #include <stdarg.h> |
| 5968 | #else |
| 5969 | #include <varargs.h> |
| 5970 | #endif |
| 5971 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5972 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5973 | va_list list1, list2; list1 = list2; |
| 5974 | ; return 0; } |
| 5975 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5976 | if { (eval echo configure:5977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5977 | : |
| 5978 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5979 | echo "configure: failed program was:" >&5 |
| 5980 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5981 | rm -rf conftest* |
| 5982 | cat >> confdefs.h <<\EOF |
| 5983 | #define VA_LIST_IS_ARRAY 1 |
| 5984 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5985 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5986 | fi |
| 5987 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5988 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5989 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5990 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 5991 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5992 | echo "configure:5993: checking for gethostbyname_r" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5993 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5994 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5995 | else |
| 5996 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 5997 | #line 5998 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5998 | #include "confdefs.h" |
| 5999 | /* System header to define __stub macros and hopefully few prototypes, |
| 6000 | which can conflict with char gethostbyname_r(); below. */ |
| 6001 | #include <assert.h> |
| 6002 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6003 | /* We use char because int might match the return type of a gcc2 |
| 6004 | builtin and then its argument prototype would still apply. */ |
| 6005 | char gethostbyname_r(); |
| 6006 | |
| 6007 | int main() { |
| 6008 | |
| 6009 | /* The GNU C library defines this for functions which it implements |
| 6010 | to always fail with ENOSYS. Some functions are actually named |
| 6011 | something starting with __ and the normal name is an alias. */ |
| 6012 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 6013 | choke me |
| 6014 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6015 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6016 | #endif |
| 6017 | |
| 6018 | ; return 0; } |
| 6019 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6020 | if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6021 | rm -rf conftest* |
| 6022 | eval "ac_cv_func_gethostbyname_r=yes" |
| 6023 | else |
| 6024 | echo "configure: failed program was:" >&5 |
| 6025 | cat conftest.$ac_ext >&5 |
| 6026 | rm -rf conftest* |
| 6027 | eval "ac_cv_func_gethostbyname_r=no" |
| 6028 | fi |
| 6029 | rm -f conftest* |
| 6030 | fi |
| 6031 | |
| 6032 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 6033 | echo "$ac_t""yes" 1>&6 |
| 6034 | |
| 6035 | cat >> confdefs.h <<\EOF |
| 6036 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6037 | EOF |
| 6038 | |
| 6039 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6040 | echo "configure:6041: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6041 | OLD_CFLAGS=$CFLAGS |
| 6042 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 6043 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6044 | #line 6045 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6045 | #include "confdefs.h" |
| 6046 | |
| 6047 | # include <netdb.h> |
| 6048 | |
| 6049 | int main() { |
| 6050 | |
| 6051 | char *name; |
| 6052 | struct hostent *he, *res; |
| 6053 | char buffer[2048]; |
| 6054 | int buflen = 2048; |
| 6055 | int h_errnop; |
| 6056 | |
| 6057 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 6058 | |
| 6059 | ; return 0; } |
| 6060 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6061 | if { (eval echo configure:6062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6062 | rm -rf conftest* |
| 6063 | |
| 6064 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6065 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6066 | EOF |
| 6067 | |
| 6068 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6069 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 6070 | EOF |
| 6071 | |
| 6072 | echo "$ac_t""yes" 1>&6 |
| 6073 | |
| 6074 | else |
| 6075 | echo "configure: failed program was:" >&5 |
| 6076 | cat conftest.$ac_ext >&5 |
| 6077 | rm -rf conftest* |
| 6078 | |
| 6079 | echo "$ac_t""no" 1>&6 |
| 6080 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6081 | echo "configure:6082: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6082 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6083 | #line 6084 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6084 | #include "confdefs.h" |
| 6085 | |
| 6086 | # include <netdb.h> |
| 6087 | |
| 6088 | int main() { |
| 6089 | |
| 6090 | char *name; |
| 6091 | struct hostent *he; |
| 6092 | char buffer[2048]; |
| 6093 | int buflen = 2048; |
| 6094 | int h_errnop; |
| 6095 | |
| 6096 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 6097 | |
| 6098 | ; return 0; } |
| 6099 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6100 | if { (eval echo configure:6101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6101 | rm -rf conftest* |
| 6102 | |
| 6103 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6104 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6105 | EOF |
| 6106 | |
| 6107 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6108 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 6109 | EOF |
| 6110 | |
| 6111 | echo "$ac_t""yes" 1>&6 |
| 6112 | |
| 6113 | else |
| 6114 | echo "configure: failed program was:" >&5 |
| 6115 | cat conftest.$ac_ext >&5 |
| 6116 | rm -rf conftest* |
| 6117 | |
| 6118 | echo "$ac_t""no" 1>&6 |
| 6119 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6120 | echo "configure:6121: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6121 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6122 | #line 6123 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6123 | #include "confdefs.h" |
| 6124 | |
| 6125 | # include <netdb.h> |
| 6126 | |
| 6127 | int main() { |
| 6128 | |
| 6129 | char *name; |
| 6130 | struct hostent *he; |
| 6131 | struct hostent_data data; |
| 6132 | |
| 6133 | (void) gethostbyname_r(name, he, &data); |
| 6134 | |
| 6135 | ; return 0; } |
| 6136 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6137 | if { (eval echo configure:6138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6138 | rm -rf conftest* |
| 6139 | |
| 6140 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6141 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6142 | EOF |
| 6143 | |
| 6144 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6145 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 6146 | EOF |
| 6147 | |
| 6148 | echo "$ac_t""yes" 1>&6 |
| 6149 | |
| 6150 | else |
| 6151 | echo "configure: failed program was:" >&5 |
| 6152 | cat conftest.$ac_ext >&5 |
| 6153 | rm -rf conftest* |
| 6154 | |
| 6155 | echo "$ac_t""no" 1>&6 |
| 6156 | |
| 6157 | fi |
| 6158 | rm -f conftest* |
| 6159 | |
| 6160 | fi |
| 6161 | rm -f conftest* |
| 6162 | |
| 6163 | fi |
| 6164 | rm -f conftest* |
| 6165 | CFLAGS=$OLD_CFLAGS |
| 6166 | |
| 6167 | else |
| 6168 | echo "$ac_t""no" 1>&6 |
| 6169 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6170 | for ac_func in gethostbyname |
| 6171 | do |
| 6172 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6173 | echo "configure:6174: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6174 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6175 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6176 | else |
| 6177 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6178 | #line 6179 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6179 | #include "confdefs.h" |
| 6180 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6181 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6182 | #include <assert.h> |
| 6183 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6184 | /* We use char because int might match the return type of a gcc2 |
| 6185 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6186 | char $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6187 | |
| 6188 | int main() { |
| 6189 | |
| 6190 | /* The GNU C library defines this for functions which it implements |
| 6191 | to always fail with ENOSYS. Some functions are actually named |
| 6192 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6193 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6194 | choke me |
| 6195 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6196 | $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6197 | #endif |
| 6198 | |
| 6199 | ; return 0; } |
| 6200 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6201 | if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6202 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6203 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6204 | else |
| 6205 | echo "configure: failed program was:" >&5 |
| 6206 | cat conftest.$ac_ext >&5 |
| 6207 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6208 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6209 | fi |
| 6210 | rm -f conftest* |
| 6211 | fi |
| 6212 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6213 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6214 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6215 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6216 | cat >> confdefs.h <<EOF |
| 6217 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6218 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6219 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6220 | else |
| 6221 | echo "$ac_t""no" 1>&6 |
| 6222 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6223 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6224 | |
| 6225 | |
| 6226 | fi |
| 6227 | |
| 6228 | |
| 6229 | |
| 6230 | |
| 6231 | |
| 6232 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6233 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6234 | # checks for system services |
| 6235 | # (none yet) |
| 6236 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6237 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6238 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6239 | echo "configure:6240: checking for __fpu_control" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6240 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6241 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6242 | else |
| 6243 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6244 | #line 6245 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6245 | #include "confdefs.h" |
| 6246 | /* System header to define __stub macros and hopefully few prototypes, |
| 6247 | which can conflict with char __fpu_control(); below. */ |
| 6248 | #include <assert.h> |
| 6249 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6250 | /* We use char because int might match the return type of a gcc2 |
| 6251 | builtin and then its argument prototype would still apply. */ |
| 6252 | char __fpu_control(); |
| 6253 | |
| 6254 | int main() { |
| 6255 | |
| 6256 | /* The GNU C library defines this for functions which it implements |
| 6257 | to always fail with ENOSYS. Some functions are actually named |
| 6258 | something starting with __ and the normal name is an alias. */ |
| 6259 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 6260 | choke me |
| 6261 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6262 | __fpu_control(); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6263 | #endif |
| 6264 | |
| 6265 | ; return 0; } |
| 6266 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6267 | if { (eval echo configure:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6268 | rm -rf conftest* |
| 6269 | eval "ac_cv_func___fpu_control=yes" |
| 6270 | else |
| 6271 | echo "configure: failed program was:" >&5 |
| 6272 | cat conftest.$ac_ext >&5 |
| 6273 | rm -rf conftest* |
| 6274 | eval "ac_cv_func___fpu_control=no" |
| 6275 | fi |
| 6276 | rm -f conftest* |
| 6277 | fi |
| 6278 | |
| 6279 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 6280 | echo "$ac_t""yes" 1>&6 |
| 6281 | : |
| 6282 | else |
| 6283 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6284 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6285 | echo "configure:6286: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6286 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6287 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6288 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6289 | else |
| 6290 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6291 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6292 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6293 | #line 6294 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6294 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6295 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6296 | /* We use char because int might match the return type of a gcc2 |
| 6297 | builtin and then its argument prototype would still apply. */ |
| 6298 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6299 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6300 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6301 | __fpu_control() |
| 6302 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6303 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6304 | if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6305 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6306 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6307 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6308 | echo "configure: failed program was:" >&5 |
| 6309 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6310 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6311 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6312 | fi |
| 6313 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6314 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6315 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6316 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6317 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6318 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6319 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 6320 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6321 | cat >> confdefs.h <<EOF |
| 6322 | #define $ac_tr_lib 1 |
| 6323 | EOF |
| 6324 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6325 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6326 | |
| 6327 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6328 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6329 | fi |
| 6330 | |
| 6331 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6332 | fi |
| 6333 | |
| 6334 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6335 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6336 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6337 | echo "configure:6338: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6338 | # Check whether --with-fpectl or --without-fpectl was given. |
| 6339 | if test "${with_fpectl+set}" = set; then |
| 6340 | withval="$with_fpectl" |
| 6341 | |
| 6342 | if test "$withval" != no |
| 6343 | then cat >> confdefs.h <<\EOF |
| 6344 | #define WANT_SIGFPE_HANDLER 1 |
| 6345 | EOF |
| 6346 | echo "$ac_t""yes" 1>&6 |
| 6347 | else echo "$ac_t""no" 1>&6 |
| 6348 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6349 | else |
| 6350 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6351 | fi |
| 6352 | |
| 6353 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6354 | # check for --with-libm=... |
| 6355 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6356 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 6357 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6358 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6359 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6360 | *) LIBM=-lm |
| 6361 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6362 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6363 | echo "configure:6364: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6364 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6365 | if test "${with_libm+set}" = set; then |
| 6366 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6367 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6368 | if test "$withval" = no |
| 6369 | then LIBM= |
| 6370 | echo "$ac_t""force LIBM empty" 1>&6 |
| 6371 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6372 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6373 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6374 | else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6375 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6376 | else |
| 6377 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6378 | fi |
| 6379 | |
| 6380 | |
| 6381 | # check for --with-libc=... |
| 6382 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6383 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6384 | echo "configure:6385: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6385 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6386 | if test "${with_libc+set}" = set; then |
| 6387 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6388 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6389 | if test "$withval" = no |
| 6390 | then LIBC= |
| 6391 | echo "$ac_t""force LIBC empty" 1>&6 |
| 6392 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6393 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6394 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6395 | else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6396 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6397 | else |
| 6398 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6399 | fi |
| 6400 | |
| 6401 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6402 | # check for hypot() in math library |
| 6403 | LIBS_SAVE=$LIBS |
| 6404 | LIBS="$LIBS $LIBM" |
| 6405 | for ac_func in hypot |
| 6406 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6407 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6408 | echo "configure:6409: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6409 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6410 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6411 | else |
| 6412 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6413 | #line 6414 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6414 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6415 | /* System header to define __stub macros and hopefully few prototypes, |
| 6416 | which can conflict with char $ac_func(); below. */ |
| 6417 | #include <assert.h> |
| 6418 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6419 | /* We use char because int might match the return type of a gcc2 |
| 6420 | builtin and then its argument prototype would still apply. */ |
| 6421 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6422 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6423 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6424 | |
| 6425 | /* The GNU C library defines this for functions which it implements |
| 6426 | to always fail with ENOSYS. Some functions are actually named |
| 6427 | something starting with __ and the normal name is an alias. */ |
| 6428 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6429 | choke me |
| 6430 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6431 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6432 | #endif |
| 6433 | |
| 6434 | ; return 0; } |
| 6435 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6436 | if { (eval echo configure:6437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6437 | rm -rf conftest* |
| 6438 | eval "ac_cv_func_$ac_func=yes" |
| 6439 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6440 | echo "configure: failed program was:" >&5 |
| 6441 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6442 | rm -rf conftest* |
| 6443 | eval "ac_cv_func_$ac_func=no" |
| 6444 | fi |
| 6445 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6446 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6447 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6448 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6449 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6450 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6451 | cat >> confdefs.h <<EOF |
| 6452 | #define $ac_tr_func 1 |
| 6453 | EOF |
| 6454 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6455 | else |
| 6456 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6457 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6458 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6459 | done |
| 6460 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6461 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6462 | LIBS=$LIBS_SAVE |
| 6463 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6464 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6465 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6466 | echo "configure:6467: checking what malloc(0) returns" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6467 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6468 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6469 | else |
| 6470 | if test "$cross_compiling" = yes; then |
| 6471 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6472 | else |
| 6473 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6474 | #line 6475 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6475 | #include "confdefs.h" |
| 6476 | #include <stdio.h> |
| 6477 | #ifdef HAVE_STDLIB |
| 6478 | #include <stdlib.h> |
| 6479 | #else |
| 6480 | char *malloc(), *realloc(); |
| 6481 | int *free(); |
| 6482 | #endif |
| 6483 | main() { |
| 6484 | char *p; |
| 6485 | p = malloc(0); |
| 6486 | if (p == NULL) exit(1); |
| 6487 | p = realloc(p, 0); |
| 6488 | if (p == NULL) exit(1); |
| 6489 | free(p); |
| 6490 | exit(0); |
| 6491 | } |
| 6492 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6493 | if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6494 | then |
| 6495 | ac_cv_malloc_zero=nonnull |
| 6496 | else |
| 6497 | echo "configure: failed program was:" >&5 |
| 6498 | cat conftest.$ac_ext >&5 |
| 6499 | rm -fr conftest* |
| 6500 | ac_cv_malloc_zero=null |
| 6501 | fi |
| 6502 | rm -fr conftest* |
| 6503 | fi |
| 6504 | |
| 6505 | fi |
| 6506 | |
| 6507 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 6508 | if test "$ac_cv_malloc_zero" = null |
| 6509 | then |
| 6510 | cat >> confdefs.h <<\EOF |
| 6511 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 6512 | EOF |
| 6513 | |
| 6514 | fi |
| 6515 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6516 | # check for wchar.h |
| 6517 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 6518 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6519 | echo "configure:6520: checking for wchar.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6520 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6521 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6522 | else |
| 6523 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6524 | #line 6525 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6525 | #include "confdefs.h" |
| 6526 | #include <wchar.h> |
| 6527 | EOF |
| 6528 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6529 | { (eval echo configure:6530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6530 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 6531 | if test -z "$ac_err"; then |
| 6532 | rm -rf conftest* |
| 6533 | eval "ac_cv_header_$ac_safe=yes" |
| 6534 | else |
| 6535 | echo "$ac_err" >&5 |
| 6536 | echo "configure: failed program was:" >&5 |
| 6537 | cat conftest.$ac_ext >&5 |
| 6538 | rm -rf conftest* |
| 6539 | eval "ac_cv_header_$ac_safe=no" |
| 6540 | fi |
| 6541 | rm -f conftest* |
| 6542 | fi |
| 6543 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 6544 | echo "$ac_t""yes" 1>&6 |
| 6545 | cat >> confdefs.h <<\EOF |
| 6546 | #define HAVE_WCHAR_H 1 |
| 6547 | EOF |
| 6548 | wchar_h="yes" |
| 6549 | else |
| 6550 | echo "$ac_t""no" 1>&6 |
| 6551 | wchar_h="no" |
| 6552 | |
| 6553 | fi |
| 6554 | |
| 6555 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6556 | # determine wchar_t size |
| 6557 | if test "$wchar_h" = yes |
| 6558 | then |
| 6559 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6560 | echo "configure:6561: checking size of wchar_t" >&5 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6561 | if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then |
| 6562 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6563 | else |
| 6564 | if test "$cross_compiling" = yes; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6565 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6566 | else |
| 6567 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6568 | #line 6569 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6569 | #include "confdefs.h" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6570 | #include <stdio.h> |
| 6571 | main() |
| 6572 | { |
| 6573 | FILE *f=fopen("conftestval", "w"); |
| 6574 | if (!f) exit(1); |
| 6575 | fprintf(f, "%d\n", sizeof(wchar_t)); |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6576 | exit(0); |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6577 | } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6578 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6579 | if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6580 | then |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6581 | ac_cv_sizeof_wchar_t=`cat conftestval` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6582 | else |
| 6583 | echo "configure: failed program was:" >&5 |
| 6584 | cat conftest.$ac_ext >&5 |
| 6585 | rm -fr conftest* |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6586 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6587 | fi |
| 6588 | rm -fr conftest* |
| 6589 | fi |
| 6590 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6591 | fi |
| 6592 | echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 |
| 6593 | cat >> confdefs.h <<EOF |
| 6594 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
| 6595 | EOF |
| 6596 | |
| 6597 | |
| 6598 | fi |
| 6599 | |
| 6600 | echo $ac_n "checking what type to use for unicode""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6601 | echo "configure:6602: checking what type to use for unicode" >&5 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6602 | # Check whether --enable-unicode or --disable-unicode was given. |
| 6603 | if test "${enable_unicode+set}" = set; then |
| 6604 | enableval="$enable_unicode" |
| 6605 | : |
| 6606 | else |
| 6607 | enable_unicode=yes |
| 6608 | fi |
| 6609 | |
| 6610 | |
| 6611 | if test $enable_unicode = yes |
| 6612 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 6613 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 6614 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6615 | fi |
| 6616 | |
| 6617 | case "$enable_unicode" in |
| 6618 | ucs2) unicode_size="2" |
| 6619 | cat >> confdefs.h <<\EOF |
| 6620 | #define Py_UNICODE_SIZE 2 |
| 6621 | EOF |
| 6622 | |
| 6623 | ;; |
| 6624 | ucs4) unicode_size="4" |
| 6625 | cat >> confdefs.h <<\EOF |
| 6626 | #define Py_UNICODE_SIZE 4 |
| 6627 | EOF |
| 6628 | |
| 6629 | ;; |
| 6630 | esac |
| 6631 | |
| 6632 | if test "$enable_unicode" = "no" |
| 6633 | then |
| 6634 | echo "$ac_t""not used" 1>&6 |
| 6635 | else |
| 6636 | cat >> confdefs.h <<\EOF |
| 6637 | #define Py_USING_UNICODE 1 |
| 6638 | EOF |
| 6639 | |
| 6640 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 6641 | then |
| 6642 | PY_UNICODE_TYPE="wchar_t" |
| 6643 | cat >> confdefs.h <<\EOF |
| 6644 | #define HAVE_USABLE_WCHAR_T 1 |
| 6645 | EOF |
| 6646 | |
| 6647 | cat >> confdefs.h <<\EOF |
| 6648 | #define PY_UNICODE_TYPE wchar_t |
| 6649 | EOF |
| 6650 | |
| 6651 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 6652 | then |
| 6653 | PY_UNICODE_TYPE="unsigned short" |
| 6654 | cat >> confdefs.h <<\EOF |
| 6655 | #define PY_UNICODE_TYPE unsigned short |
| 6656 | EOF |
| 6657 | |
| 6658 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 6659 | then |
| 6660 | PY_UNICODE_TYPE="unsigned long" |
| 6661 | cat >> confdefs.h <<\EOF |
| 6662 | #define PY_UNICODE_TYPE unsigned long |
| 6663 | EOF |
| 6664 | |
| 6665 | else |
| 6666 | PY_UNICODE_TYPE="no type found" |
| 6667 | fi |
| 6668 | echo "$ac_t""$PY_UNICODE_TYPE" 1>&6 |
| 6669 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6670 | |
| 6671 | # check for endianness |
| 6672 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6673 | echo "configure:6674: checking whether byte ordering is bigendian" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6674 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6675 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6676 | else |
| 6677 | ac_cv_c_bigendian=unknown |
| 6678 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 6679 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6680 | #line 6681 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6681 | #include "confdefs.h" |
| 6682 | #include <sys/types.h> |
| 6683 | #include <sys/param.h> |
| 6684 | int main() { |
| 6685 | |
| 6686 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 6687 | bogus endian macros |
| 6688 | #endif |
| 6689 | ; return 0; } |
| 6690 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6691 | if { (eval echo configure:6692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6692 | rm -rf conftest* |
| 6693 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 6694 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6695 | #line 6696 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6696 | #include "confdefs.h" |
| 6697 | #include <sys/types.h> |
| 6698 | #include <sys/param.h> |
| 6699 | int main() { |
| 6700 | |
| 6701 | #if BYTE_ORDER != BIG_ENDIAN |
| 6702 | not big endian |
| 6703 | #endif |
| 6704 | ; return 0; } |
| 6705 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6706 | if { (eval echo configure:6707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6707 | rm -rf conftest* |
| 6708 | ac_cv_c_bigendian=yes |
| 6709 | else |
| 6710 | echo "configure: failed program was:" >&5 |
| 6711 | cat conftest.$ac_ext >&5 |
| 6712 | rm -rf conftest* |
| 6713 | ac_cv_c_bigendian=no |
| 6714 | fi |
| 6715 | rm -f conftest* |
| 6716 | else |
| 6717 | echo "configure: failed program was:" >&5 |
| 6718 | cat conftest.$ac_ext >&5 |
| 6719 | fi |
| 6720 | rm -f conftest* |
| 6721 | if test $ac_cv_c_bigendian = unknown; then |
| 6722 | if test "$cross_compiling" = yes; then |
| 6723 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6724 | else |
| 6725 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6726 | #line 6727 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6727 | #include "confdefs.h" |
| 6728 | main () { |
| 6729 | /* Are we little or big endian? From Harbison&Steele. */ |
| 6730 | union |
| 6731 | { |
| 6732 | long l; |
| 6733 | char c[sizeof (long)]; |
| 6734 | } u; |
| 6735 | u.l = 1; |
| 6736 | exit (u.c[sizeof (long) - 1] == 1); |
| 6737 | } |
| 6738 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6739 | if { (eval echo configure:6740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6740 | then |
| 6741 | ac_cv_c_bigendian=no |
| 6742 | else |
| 6743 | echo "configure: failed program was:" >&5 |
| 6744 | cat conftest.$ac_ext >&5 |
| 6745 | rm -fr conftest* |
| 6746 | ac_cv_c_bigendian=yes |
| 6747 | fi |
| 6748 | rm -fr conftest* |
| 6749 | fi |
| 6750 | |
| 6751 | fi |
| 6752 | fi |
| 6753 | |
| 6754 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 6755 | if test $ac_cv_c_bigendian = yes; then |
| 6756 | cat >> confdefs.h <<\EOF |
| 6757 | #define WORDS_BIGENDIAN 1 |
| 6758 | EOF |
| 6759 | |
| 6760 | fi |
| 6761 | |
| 6762 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6763 | # Check whether right shifting a negative integer extends the sign bit |
| 6764 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 6765 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6766 | echo "configure:6767: checking whether right shift extends the sign bit" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6767 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6768 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6769 | else |
| 6770 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6771 | if test "$cross_compiling" = yes; then |
| 6772 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6773 | else |
| 6774 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6775 | #line 6776 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6776 | #include "confdefs.h" |
| 6777 | |
| 6778 | int main() |
| 6779 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6780 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6781 | } |
| 6782 | |
| 6783 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6784 | if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6785 | then |
| 6786 | ac_cv_rshift_extends_sign=yes |
| 6787 | else |
| 6788 | echo "configure: failed program was:" >&5 |
| 6789 | cat conftest.$ac_ext >&5 |
| 6790 | rm -fr conftest* |
| 6791 | ac_cv_rshift_extends_sign=no |
| 6792 | fi |
| 6793 | rm -fr conftest* |
| 6794 | fi |
| 6795 | |
| 6796 | fi |
| 6797 | |
| 6798 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 6799 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6800 | then |
| 6801 | cat >> confdefs.h <<\EOF |
| 6802 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 6803 | EOF |
| 6804 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6805 | fi |
| 6806 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6807 | # check for getc_unlocked and related locking functions |
| 6808 | echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6809 | echo "configure:6810: checking for getc_unlocked() and friends" >&5 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6810 | if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then |
| 6811 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6812 | else |
| 6813 | |
| 6814 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6815 | #line 6816 "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6816 | #include "confdefs.h" |
| 6817 | #include <stdio.h> |
| 6818 | int main() { |
| 6819 | |
| 6820 | FILE *f = fopen("/dev/null", "r"); |
| 6821 | flockfile(f); |
| 6822 | getc_unlocked(f); |
| 6823 | funlockfile(f); |
| 6824 | |
| 6825 | ; return 0; } |
| 6826 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6827 | if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6828 | rm -rf conftest* |
| 6829 | ac_cv_have_getc_unlocked=yes |
| 6830 | else |
| 6831 | echo "configure: failed program was:" >&5 |
| 6832 | cat conftest.$ac_ext >&5 |
| 6833 | rm -rf conftest* |
| 6834 | ac_cv_have_getc_unlocked=no |
| 6835 | fi |
| 6836 | rm -f conftest* |
| 6837 | fi |
| 6838 | |
| 6839 | echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6 |
| 6840 | if test "$ac_cv_have_getc_unlocked" = yes |
| 6841 | then |
| 6842 | cat >> confdefs.h <<\EOF |
| 6843 | #define HAVE_GETC_UNLOCKED 1 |
| 6844 | EOF |
| 6845 | |
| 6846 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6847 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6848 | # check for readline 4.2 |
| 6849 | echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6850 | echo "configure:6851: checking for rl_completion_matches in -lreadline" >&5 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6851 | ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'` |
| 6852 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 6853 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6854 | else |
| 6855 | ac_save_LIBS="$LIBS" |
| 6856 | LIBS="-lreadline -ltermcap $LIBS" |
| 6857 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6858 | #line 6859 "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6859 | #include "confdefs.h" |
| 6860 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6861 | /* We use char because int might match the return type of a gcc2 |
| 6862 | builtin and then its argument prototype would still apply. */ |
| 6863 | char rl_completion_matches(); |
| 6864 | |
| 6865 | int main() { |
| 6866 | rl_completion_matches() |
| 6867 | ; return 0; } |
| 6868 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6869 | if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6870 | rm -rf conftest* |
| 6871 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 6872 | else |
| 6873 | echo "configure: failed program was:" >&5 |
| 6874 | cat conftest.$ac_ext >&5 |
| 6875 | rm -rf conftest* |
| 6876 | eval "ac_cv_lib_$ac_lib_var=no" |
| 6877 | fi |
| 6878 | rm -f conftest* |
| 6879 | LIBS="$ac_save_LIBS" |
| 6880 | |
| 6881 | fi |
| 6882 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6883 | echo "$ac_t""yes" 1>&6 |
| 6884 | cat >> confdefs.h <<\EOF |
| 6885 | #define HAVE_RL_COMPLETION_MATCHES 1 |
| 6886 | EOF |
| 6887 | |
| 6888 | else |
| 6889 | echo "$ac_t""no" 1>&6 |
| 6890 | fi |
| 6891 | |
| 6892 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6893 | echo $ac_n "checking for broken nice()""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6894 | echo "configure:6895: checking for broken nice()" >&5 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6895 | if eval "test \"`echo '$''{'ac_cv_broken_nice'+set}'`\" = set"; then |
| 6896 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6897 | else |
| 6898 | |
| 6899 | if test "$cross_compiling" = yes; then |
| 6900 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6901 | else |
| 6902 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6903 | #line 6904 "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6904 | #include "confdefs.h" |
| 6905 | |
| 6906 | int main() |
| 6907 | { |
| 6908 | int val1 = nice(1); |
| 6909 | if (val1 != -1 && val1 == nice(2)) |
| 6910 | exit(0); |
| 6911 | exit(1); |
| 6912 | } |
| 6913 | |
| 6914 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6915 | if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6916 | then |
| 6917 | ac_cv_broken_nice=yes |
| 6918 | else |
| 6919 | echo "configure: failed program was:" >&5 |
| 6920 | cat conftest.$ac_ext >&5 |
| 6921 | rm -fr conftest* |
| 6922 | ac_cv_broken_nice=no |
| 6923 | fi |
| 6924 | rm -fr conftest* |
| 6925 | fi |
| 6926 | |
| 6927 | fi |
| 6928 | |
| 6929 | echo "$ac_t""$ac_cv_broken_nice" 1>&6 |
| 6930 | if test "$ac_cv_broken_nice" = yes |
| 6931 | then |
| 6932 | cat >> confdefs.h <<\EOF |
| 6933 | #define HAVE_BROKEN_NICE 1 |
| 6934 | EOF |
| 6935 | |
| 6936 | fi |
| 6937 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6938 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 6939 | # Add sys/socket.h to confdefs.h |
| 6940 | cat >> confdefs.h <<\EOF |
| 6941 | #ifdef HAVE_SYS_SOCKET_H |
| 6942 | #include <sys/socket.h> |
| 6943 | #endif |
| 6944 | EOF |
| 6945 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6946 | echo "configure:6947: checking for socklen_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6947 | if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6948 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6949 | else |
| 6950 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 6951 | #line 6952 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6952 | #include "confdefs.h" |
| 6953 | #include <sys/types.h> |
| 6954 | #if STDC_HEADERS |
| 6955 | #include <stdlib.h> |
| 6956 | #include <stddef.h> |
| 6957 | #endif |
| 6958 | EOF |
| 6959 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6960 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6961 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6962 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6963 | else |
| 6964 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6965 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6966 | fi |
| 6967 | rm -f conftest* |
| 6968 | |
| 6969 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6970 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 6971 | if test $ac_cv_type_socklen_t = no; then |
| 6972 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6973 | #define socklen_t int |
| 6974 | EOF |
| 6975 | |
| 6976 | fi |
| 6977 | |
| 6978 | |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 6979 | # Add Python/ prefix to LIBOBJS |
| 6980 | libobjs=$LIBOBJS |
| 6981 | LIBOBJS= |
| 6982 | for obj in $libobjs; do |
| 6983 | LIBOBJS="$LIBOBJS Python/$obj" |
| 6984 | done |
| 6985 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6986 | #AC_MSG_CHECKING(for Modules/Setup) |
| 6987 | #if test ! -f Modules/Setup ; then |
| 6988 | # if test ! -d Modules ; then |
| 6989 | # mkdir Modules |
| 6990 | # fi |
| 6991 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 6992 | # AC_MSG_RESULT(creating) |
| 6993 | #else |
| 6994 | # AC_MSG_RESULT(already exists) |
| 6995 | #fi |
| 6996 | |
| 6997 | |
Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 6998 | SRCDIRS="Parser Grammar Objects Python Modules" |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 6999 | echo $ac_n "checking for build directories""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 7000 | echo "configure:7001: checking for build directories" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7001 | for dir in $SRCDIRS; do |
| 7002 | if test ! -d $dir; then |
| 7003 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 7004 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7005 | done |
| 7006 | echo "$ac_t""done" 1>&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 7007 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7008 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7009 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7010 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7011 | # This file is a shell script that caches the results of configure |
| 7012 | # tests run on this system so they can be shared between configure |
| 7013 | # scripts and configure runs. It is not useful on other systems. |
| 7014 | # If it contains results you don't want to keep, you may remove or edit it. |
| 7015 | # |
| 7016 | # By default, configure uses ./config.cache as the cache file, |
| 7017 | # creating it if it does not exist already. You can give configure |
| 7018 | # the --cache-file=FILE option to use a different cache file; that is |
| 7019 | # what configure does when it calls configure scripts in |
| 7020 | # subdirectories, so they share the cache. |
| 7021 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 7022 | # config.status only pays attention to the cache file if you give it the |
| 7023 | # --recheck option to rerun configure. |
| 7024 | # |
| 7025 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7026 | # The following way of writing the cache mishandles newlines in values, |
| 7027 | # but we know of no workaround that is simple, portable, and efficient. |
| 7028 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7029 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7030 | # and sets the high bit in the cache file unless we assign to the vars. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7031 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7032 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7033 | *ac_space=\ *) |
| 7034 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 7035 | # turns \\\\ into \\, and sed turns \\ into \). |
| 7036 | sed -n \ |
| 7037 | -e "s/'/'\\\\''/g" \ |
| 7038 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 7039 | ;; |
| 7040 | *) |
| 7041 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 7042 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 7043 | ;; |
| 7044 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7045 | if cmp -s $cache_file confcache; then |
| 7046 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7047 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7048 | if test -w $cache_file; then |
| 7049 | echo "updating cache $cache_file" |
| 7050 | cat confcache > $cache_file |
| 7051 | else |
| 7052 | echo "not updating unwritable cache $cache_file" |
| 7053 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7054 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7055 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7056 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7057 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7058 | |
| 7059 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7060 | # Let make expand exec_prefix. |
| 7061 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7062 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7063 | # Any assignment to VPATH causes Sun make to only execute |
| 7064 | # the first set of double-colon rules, so remove it if not needed. |
| 7065 | # If there is a colon in the path, we need to keep it. |
| 7066 | if test "x$srcdir" = x.; then |
| 7067 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 7068 | fi |
| 7069 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7070 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7071 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7072 | DEFS=-DHAVE_CONFIG_H |
| 7073 | |
| 7074 | # Without the "./", some shells look in PATH for config.status. |
| 7075 | : ${CONFIG_STATUS=./config.status} |
| 7076 | |
| 7077 | echo creating $CONFIG_STATUS |
| 7078 | rm -f $CONFIG_STATUS |
| 7079 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7080 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7081 | # Generated automatically by configure. |
| 7082 | # Run this file to recreate the current configuration. |
| 7083 | # This directory was configured as follows, |
| 7084 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7085 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7086 | # $0 $ac_configure_args |
| 7087 | # |
| 7088 | # Compiler output produced by configure, useful for debugging |
| 7089 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7090 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7091 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7092 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7093 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7094 | case "\$ac_option" in |
| 7095 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7096 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 7097 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7098 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7099 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7100 | exit 0 ;; |
| 7101 | -help | --help | --hel | --he | --h) |
| 7102 | echo "\$ac_cs_usage"; exit 0 ;; |
| 7103 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7104 | esac |
| 7105 | done |
| 7106 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7107 | ac_given_srcdir=$srcdir |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7108 | ac_given_INSTALL="$INSTALL" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7109 | |
Martin v. Löwis | 4f1cd8b | 2001-07-26 13:41:06 +0000 | [diff] [blame^] | 7110 | trap 'rm -fr `echo "Makefile.pre Modules/Setup.config pyconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7111 | EOF |
| 7112 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7113 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7114 | # Protect against being on the right side of a sed subst in config.status. |
| 7115 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 7116 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7117 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7118 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7119 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7120 | s%@CFLAGS@%$CFLAGS%g |
| 7121 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 7122 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7123 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7124 | s%@DEFS@%$DEFS%g |
| 7125 | s%@LDFLAGS@%$LDFLAGS%g |
| 7126 | s%@LIBS@%$LIBS%g |
| 7127 | s%@exec_prefix@%$exec_prefix%g |
| 7128 | s%@prefix@%$prefix%g |
| 7129 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7130 | s%@bindir@%$bindir%g |
| 7131 | s%@sbindir@%$sbindir%g |
| 7132 | s%@libexecdir@%$libexecdir%g |
| 7133 | s%@datadir@%$datadir%g |
| 7134 | s%@sysconfdir@%$sysconfdir%g |
| 7135 | s%@sharedstatedir@%$sharedstatedir%g |
| 7136 | s%@localstatedir@%$localstatedir%g |
| 7137 | s%@libdir@%$libdir%g |
| 7138 | s%@includedir@%$includedir%g |
| 7139 | s%@oldincludedir@%$oldincludedir%g |
| 7140 | s%@infodir@%$infodir%g |
| 7141 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 7142 | s%@VERSION@%$VERSION%g |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 7143 | s%@CONFIG_ARGS@%$CONFIG_ARGS%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 7144 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7145 | s%@SGI_ABI@%$SGI_ABI%g |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 7146 | s%@CXX@%$CXX%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 7147 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7148 | s%@CC@%$CC%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7149 | s%@EXEEXT@%$EXEEXT%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7150 | s%@LIBRARY@%$LIBRARY%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7151 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 7152 | s%@DLLLIBRARY@%$DLLLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 7153 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7154 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7155 | s%@AR@%$AR%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7156 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7157 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7158 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7159 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 7160 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7161 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7162 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7163 | s%@SO@%$SO%g |
| 7164 | s%@LDSHARED@%$LDSHARED%g |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7165 | s%@BLDSHARED@%$BLDSHARED%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7166 | s%@CCSHARED@%$CCSHARED%g |
| 7167 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7168 | s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7169 | s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g |
| 7170 | s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 7171 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 7172 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 7173 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7174 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 7175 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 7176 | s%@MACHDEP_OBJS@%$MACHDEP_OBJS%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7177 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 7178 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 7179 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 7180 | s%@HAVE_GETHOSTBYNAME_R_3_ARG@%$HAVE_GETHOSTBYNAME_R_3_ARG%g |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 7181 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 7182 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7183 | s%@LIBM@%$LIBM%g |
| 7184 | s%@LIBC@%$LIBC%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7185 | s%@SRCDIRS@%$SRCDIRS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7186 | |
| 7187 | CEOF |
| 7188 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7189 | |
| 7190 | cat >> $CONFIG_STATUS <<\EOF |
| 7191 | |
| 7192 | # Split the substitutions into bite-sized pieces for seds with |
| 7193 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 7194 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 7195 | ac_file=1 # Number of current file. |
| 7196 | ac_beg=1 # First line for current file. |
| 7197 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 7198 | ac_more_lines=: |
| 7199 | ac_sed_cmds="" |
| 7200 | while $ac_more_lines; do |
| 7201 | if test $ac_beg -gt 1; then |
| 7202 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 7203 | else |
| 7204 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 7205 | fi |
| 7206 | if test ! -s conftest.s$ac_file; then |
| 7207 | ac_more_lines=false |
| 7208 | rm -f conftest.s$ac_file |
| 7209 | else |
| 7210 | if test -z "$ac_sed_cmds"; then |
| 7211 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 7212 | else |
| 7213 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 7214 | fi |
| 7215 | ac_file=`expr $ac_file + 1` |
| 7216 | ac_beg=$ac_end |
| 7217 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 7218 | fi |
| 7219 | done |
| 7220 | if test -z "$ac_sed_cmds"; then |
| 7221 | ac_sed_cmds=cat |
| 7222 | fi |
| 7223 | EOF |
| 7224 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7225 | cat >> $CONFIG_STATUS <<EOF |
| 7226 | |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 7227 | CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7228 | EOF |
| 7229 | cat >> $CONFIG_STATUS <<\EOF |
| 7230 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7231 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7232 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7233 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7234 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 7235 | *) ac_file_in="${ac_file}.in" ;; |
| 7236 | esac |
| 7237 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7238 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7239 | |
| 7240 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 7241 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 7242 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 7243 | # The file is in a subdirectory. |
| 7244 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7245 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7246 | # A "../" for each directory in $ac_dir_suffix. |
| 7247 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 7248 | else |
| 7249 | ac_dir_suffix= ac_dots= |
| 7250 | fi |
| 7251 | |
| 7252 | case "$ac_given_srcdir" in |
| 7253 | .) srcdir=. |
| 7254 | if test -z "$ac_dots"; then top_srcdir=. |
| 7255 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 7256 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 7257 | *) # Relative path. |
| 7258 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 7259 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 7260 | esac |
| 7261 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7262 | case "$ac_given_INSTALL" in |
| 7263 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 7264 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 7265 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7266 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7267 | echo creating "$ac_file" |
| 7268 | rm -f "$ac_file" |
| 7269 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 7270 | case "$ac_file" in |
| 7271 | *Makefile*) ac_comsub="1i\\ |
| 7272 | # $configure_input" ;; |
| 7273 | *) ac_comsub= ;; |
| 7274 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7275 | |
| 7276 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7277 | sed -e "$ac_comsub |
| 7278 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7279 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7280 | s%@top_srcdir@%$top_srcdir%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7281 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7282 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7283 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7284 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7285 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7286 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 7287 | # 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] | 7288 | # |
| 7289 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7290 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 7291 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7292 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7293 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7294 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7295 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7296 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7297 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7298 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7299 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7300 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7301 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7302 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7303 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7304 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7305 | if test "${CONFIG_HEADERS+set}" != set; then |
| 7306 | EOF |
| 7307 | cat >> $CONFIG_STATUS <<EOF |
Martin v. Löwis | 4f1cd8b | 2001-07-26 13:41:06 +0000 | [diff] [blame^] | 7308 | CONFIG_HEADERS="pyconfig.h" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7309 | EOF |
| 7310 | cat >> $CONFIG_STATUS <<\EOF |
| 7311 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7312 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7313 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7314 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7315 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7316 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 7317 | *) ac_file_in="${ac_file}.in" ;; |
| 7318 | esac |
| 7319 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7320 | echo creating $ac_file |
| 7321 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7322 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7323 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 7324 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7325 | |
| 7326 | EOF |
| 7327 | |
| 7328 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 7329 | # the proper values into config.h.in to produce config.h. And first: |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7330 | # Protect against being on the right side of a sed subst in config.status. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7331 | # Protect against being in an unquoted here document in config.status. |
| 7332 | rm -f conftest.vals |
| 7333 | cat > conftest.hdr <<\EOF |
| 7334 | s/[\\&%]/\\&/g |
| 7335 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7336 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7337 | s%ac_d%ac_u%gp |
| 7338 | s%ac_u%ac_e%gp |
| 7339 | EOF |
| 7340 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 7341 | rm -f conftest.hdr |
| 7342 | |
| 7343 | # This sed command replaces #undef with comments. This is necessary, for |
| 7344 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 7345 | # on some systems where configure will not decide to define it. |
| 7346 | cat >> conftest.vals <<\EOF |
| 7347 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 7348 | EOF |
| 7349 | |
| 7350 | # Break up conftest.vals because some shells have a limit on |
| 7351 | # the size of here documents, and old seds have small limits too. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7352 | |
| 7353 | rm -f conftest.tail |
| 7354 | while : |
| 7355 | do |
| 7356 | ac_lines=`grep -c . conftest.vals` |
| 7357 | # grep -c gives empty output for an empty file on some AIX systems. |
| 7358 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 7359 | # Write a limited-size here document to conftest.frag. |
| 7360 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 7361 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 7362 | echo 'CEOF |
| 7363 | sed -f conftest.frag conftest.in > conftest.out |
| 7364 | rm -f conftest.in |
| 7365 | mv conftest.out conftest.in |
| 7366 | ' >> $CONFIG_STATUS |
| 7367 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 7368 | rm -f conftest.vals |
| 7369 | mv conftest.tail conftest.vals |
| 7370 | done |
| 7371 | rm -f conftest.vals |
| 7372 | |
| 7373 | cat >> $CONFIG_STATUS <<\EOF |
| 7374 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7375 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7376 | cat conftest.in >> conftest.h |
| 7377 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7378 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7379 | echo "$ac_file is unchanged" |
| 7380 | rm -f conftest.h |
| 7381 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7382 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 7383 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 7384 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 7385 | # The file is in a subdirectory. |
| 7386 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 7387 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7388 | rm -f $ac_file |
| 7389 | mv conftest.h $ac_file |
| 7390 | fi |
| 7391 | fi; done |
| 7392 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7393 | EOF |
| 7394 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7395 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7396 | EOF |
| 7397 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7398 | |
| 7399 | exit 0 |
| 7400 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7401 | chmod +x $CONFIG_STATUS |
| 7402 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7403 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7404 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7405 | |
| 7406 | echo "creating Setup" |
| 7407 | if test ! -f Modules/Setup |
| 7408 | then |
| 7409 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 7410 | fi |
| 7411 | |
| 7412 | echo "creating Setup.local" |
| 7413 | if test ! -f Modules/Setup.local |
| 7414 | then |
| 7415 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 7416 | fi |
| 7417 | |
| 7418 | echo "creating Makefile" |
| 7419 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 7420 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 7421 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7422 | mv config.c Modules |