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 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame^] | 3 | # From configure.in Revision: 1.208 |
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 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 29 | --with-pydebug build with Py_DEBUG defined" |
| 30 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 31 | --with-libs='lib1 ...' link against additional libs" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 32 | ac_help="$ac_help |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 33 | --with-signal-module disable/enable signal module" |
| 34 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 35 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 36 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 37 | --with(out)-threads[=DIRECTORY] disable/enable thread support" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 38 | ac_help="$ac_help |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 39 | --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 40 | ac_help="$ac_help |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 41 | --with-pth use GNU pth threading libraries" |
| 42 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 43 | --with(out)-cycle-gc disable/enable garbage collection" |
| 44 | ac_help="$ac_help |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 45 | --with(out)-pymalloc disable/enable specialized mallocs" |
| 46 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 47 | --with-wctype-functions use wctype.h functions" |
| 48 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 49 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 50 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 51 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 52 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 53 | --with-fpectl enable SIGFPE catching" |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 54 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 55 | --with-libm=STRING math library" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 56 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 57 | --with-libc=STRING C library" |
Guido van Rossum | 4c3f57c | 2001-01-10 20:40:46 +0000 | [diff] [blame] | 58 | ac_help="$ac_help |
| 59 | --with-check-import-case enable imported module name case checking" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 60 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 61 | # Initialize some variables set by options. |
| 62 | # The variables have the same names as the options, with |
| 63 | # dashes changed to underlines. |
| 64 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 65 | cache_file=./config.cache |
| 66 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 67 | host=NONE |
| 68 | no_create= |
| 69 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 70 | no_recursion= |
| 71 | prefix=NONE |
| 72 | program_prefix=NONE |
| 73 | program_suffix=NONE |
| 74 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 75 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 76 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 77 | srcdir= |
| 78 | target=NONE |
| 79 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 80 | x_includes=NONE |
| 81 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 82 | bindir='${exec_prefix}/bin' |
| 83 | sbindir='${exec_prefix}/sbin' |
| 84 | libexecdir='${exec_prefix}/libexec' |
| 85 | datadir='${prefix}/share' |
| 86 | sysconfdir='${prefix}/etc' |
| 87 | sharedstatedir='${prefix}/com' |
| 88 | localstatedir='${prefix}/var' |
| 89 | libdir='${exec_prefix}/lib' |
| 90 | includedir='${prefix}/include' |
| 91 | oldincludedir='/usr/include' |
| 92 | infodir='${prefix}/info' |
| 93 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 94 | |
| 95 | # Initialize some other variables. |
| 96 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 97 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 98 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 99 | # Maximum number of lines to put in a shell here document. |
| 100 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 101 | |
| 102 | ac_prev= |
| 103 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 104 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 105 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 106 | # If the previous option needs an argument, assign it. |
| 107 | if test -n "$ac_prev"; then |
| 108 | eval "$ac_prev=\$ac_option" |
| 109 | ac_prev= |
| 110 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 111 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 112 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 113 | case "$ac_option" in |
| 114 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 115 | *) ac_optarg= ;; |
| 116 | esac |
| 117 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 118 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 119 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 120 | case "$ac_option" in |
| 121 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 122 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 123 | ac_prev=bindir ;; |
| 124 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 125 | bindir="$ac_optarg" ;; |
| 126 | |
| 127 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 128 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 129 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 130 | build="$ac_optarg" ;; |
| 131 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 132 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 133 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 134 | ac_prev=cache_file ;; |
| 135 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 136 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 137 | cache_file="$ac_optarg" ;; |
| 138 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 139 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 140 | ac_prev=datadir ;; |
| 141 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 142 | | --da=*) |
| 143 | datadir="$ac_optarg" ;; |
| 144 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 145 | -disable-* | --disable-*) |
| 146 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 147 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 148 | 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] | 149 | { 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] | 150 | fi |
| 151 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 152 | eval "enable_${ac_feature}=no" ;; |
| 153 | |
| 154 | -enable-* | --enable-*) |
| 155 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 156 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 157 | 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] | 158 | { 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] | 159 | fi |
| 160 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 161 | case "$ac_option" in |
| 162 | *=*) ;; |
| 163 | *) ac_optarg=yes ;; |
| 164 | esac |
| 165 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 166 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 167 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 168 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 169 | | --exec | --exe | --ex) |
| 170 | ac_prev=exec_prefix ;; |
| 171 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 172 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 173 | | --exec=* | --exe=* | --ex=*) |
| 174 | exec_prefix="$ac_optarg" ;; |
| 175 | |
| 176 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 177 | # Obsolete; use --with-gas. |
| 178 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 179 | |
| 180 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 181 | # Omit some internal or obsolete options to make the list less imposing. |
| 182 | # 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] | 183 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 184 | Usage: configure [options] [host] |
| 185 | Options: [defaults in brackets after descriptions] |
| 186 | Configuration: |
| 187 | --cache-file=FILE cache test results in FILE |
| 188 | --help print this message |
| 189 | --no-create do not create output files |
| 190 | --quiet, --silent do not print \`checking...' messages |
| 191 | --version print the version of autoconf that created configure |
| 192 | Directory and file names: |
| 193 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 194 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 195 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 196 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 197 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 198 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 199 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 200 | --datadir=DIR read-only architecture-independent data in DIR |
| 201 | [PREFIX/share] |
| 202 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 203 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 204 | [PREFIX/com] |
| 205 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 206 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 207 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 208 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 209 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 210 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 211 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 212 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 213 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 214 | --program-transform-name=PROGRAM |
| 215 | run sed PROGRAM on installed program names |
| 216 | EOF |
| 217 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 218 | Host type: |
| 219 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 220 | --host=HOST configure for HOST [guessed] |
| 221 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 222 | Features and packages: |
| 223 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 224 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 225 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 226 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 227 | --x-includes=DIR X include files are in DIR |
| 228 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 229 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 230 | if test -n "$ac_help"; then |
| 231 | echo "--enable and --with options recognized:$ac_help" |
| 232 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 233 | exit 0 ;; |
| 234 | |
| 235 | -host | --host | --hos | --ho) |
| 236 | ac_prev=host ;; |
| 237 | -host=* | --host=* | --hos=* | --ho=*) |
| 238 | host="$ac_optarg" ;; |
| 239 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 240 | -includedir | --includedir | --includedi | --included | --include \ |
| 241 | | --includ | --inclu | --incl | --inc) |
| 242 | ac_prev=includedir ;; |
| 243 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 244 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 245 | includedir="$ac_optarg" ;; |
| 246 | |
| 247 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 248 | ac_prev=infodir ;; |
| 249 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 250 | infodir="$ac_optarg" ;; |
| 251 | |
| 252 | -libdir | --libdir | --libdi | --libd) |
| 253 | ac_prev=libdir ;; |
| 254 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 255 | libdir="$ac_optarg" ;; |
| 256 | |
| 257 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 258 | | --libexe | --libex | --libe) |
| 259 | ac_prev=libexecdir ;; |
| 260 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 261 | | --libexe=* | --libex=* | --libe=*) |
| 262 | libexecdir="$ac_optarg" ;; |
| 263 | |
| 264 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 265 | | --localstate | --localstat | --localsta | --localst \ |
| 266 | | --locals | --local | --loca | --loc | --lo) |
| 267 | ac_prev=localstatedir ;; |
| 268 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 269 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 270 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 271 | localstatedir="$ac_optarg" ;; |
| 272 | |
| 273 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 274 | ac_prev=mandir ;; |
| 275 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 276 | mandir="$ac_optarg" ;; |
| 277 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 278 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 279 | # Obsolete; use --without-fp. |
| 280 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 281 | |
| 282 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 283 | | --no-cr | --no-c) |
| 284 | no_create=yes ;; |
| 285 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 286 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 287 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 288 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 289 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 290 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 291 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 292 | | --oldin | --oldi | --old | --ol | --o) |
| 293 | ac_prev=oldincludedir ;; |
| 294 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 295 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 296 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 297 | oldincludedir="$ac_optarg" ;; |
| 298 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 299 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 300 | ac_prev=prefix ;; |
| 301 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 302 | prefix="$ac_optarg" ;; |
| 303 | |
| 304 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 305 | | --program-pre | --program-pr | --program-p) |
| 306 | ac_prev=program_prefix ;; |
| 307 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 308 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 309 | program_prefix="$ac_optarg" ;; |
| 310 | |
| 311 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 312 | | --program-suf | --program-su | --program-s) |
| 313 | ac_prev=program_suffix ;; |
| 314 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 315 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 316 | program_suffix="$ac_optarg" ;; |
| 317 | |
| 318 | -program-transform-name | --program-transform-name \ |
| 319 | | --program-transform-nam | --program-transform-na \ |
| 320 | | --program-transform-n | --program-transform- \ |
| 321 | | --program-transform | --program-transfor \ |
| 322 | | --program-transfo | --program-transf \ |
| 323 | | --program-trans | --program-tran \ |
| 324 | | --progr-tra | --program-tr | --program-t) |
| 325 | ac_prev=program_transform_name ;; |
| 326 | -program-transform-name=* | --program-transform-name=* \ |
| 327 | | --program-transform-nam=* | --program-transform-na=* \ |
| 328 | | --program-transform-n=* | --program-transform-=* \ |
| 329 | | --program-transform=* | --program-transfor=* \ |
| 330 | | --program-transfo=* | --program-transf=* \ |
| 331 | | --program-trans=* | --program-tran=* \ |
| 332 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 333 | program_transform_name="$ac_optarg" ;; |
| 334 | |
| 335 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 336 | | -silent | --silent | --silen | --sile | --sil) |
| 337 | silent=yes ;; |
| 338 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 339 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 340 | ac_prev=sbindir ;; |
| 341 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 342 | | --sbi=* | --sb=*) |
| 343 | sbindir="$ac_optarg" ;; |
| 344 | |
| 345 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 346 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 347 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 348 | | --sha | --sh) |
| 349 | ac_prev=sharedstatedir ;; |
| 350 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 351 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 352 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 353 | | --sha=* | --sh=*) |
| 354 | sharedstatedir="$ac_optarg" ;; |
| 355 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 356 | -site | --site | --sit) |
| 357 | ac_prev=site ;; |
| 358 | -site=* | --site=* | --sit=*) |
| 359 | site="$ac_optarg" ;; |
| 360 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 361 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 362 | ac_prev=srcdir ;; |
| 363 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 364 | srcdir="$ac_optarg" ;; |
| 365 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 366 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 367 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 368 | ac_prev=sysconfdir ;; |
| 369 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 370 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 371 | sysconfdir="$ac_optarg" ;; |
| 372 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 373 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 374 | ac_prev=target ;; |
| 375 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 376 | target="$ac_optarg" ;; |
| 377 | |
| 378 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 379 | verbose=yes ;; |
| 380 | |
| 381 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 382 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 383 | exit 0 ;; |
| 384 | |
| 385 | -with-* | --with-*) |
| 386 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 387 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 388 | 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] | 389 | { 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] | 390 | fi |
| 391 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 392 | case "$ac_option" in |
| 393 | *=*) ;; |
| 394 | *) ac_optarg=yes ;; |
| 395 | esac |
| 396 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 397 | |
| 398 | -without-* | --without-*) |
| 399 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 400 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 401 | 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] | 402 | { 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] | 403 | fi |
| 404 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 405 | eval "with_${ac_package}=no" ;; |
| 406 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 407 | --x) |
| 408 | # Obsolete; use --with-x. |
| 409 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 410 | |
| 411 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 412 | | --x-incl | --x-inc | --x-in | --x-i) |
| 413 | ac_prev=x_includes ;; |
| 414 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 415 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 416 | x_includes="$ac_optarg" ;; |
| 417 | |
| 418 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 419 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 420 | ac_prev=x_libraries ;; |
| 421 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 422 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 423 | x_libraries="$ac_optarg" ;; |
| 424 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 425 | -*) { 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] | 426 | ;; |
| 427 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 428 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 429 | 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] | 430 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 431 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 432 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 433 | { 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] | 434 | fi |
| 435 | nonopt="$ac_option" |
| 436 | ;; |
| 437 | |
| 438 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 439 | done |
| 440 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 441 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 442 | { 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] | 443 | fi |
| 444 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 445 | 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] | 446 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 447 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 448 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 449 | # 1 file creation |
| 450 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 451 | # 3 some systems may open it to /dev/tty |
| 452 | # 4 used on the Kubota Titan |
| 453 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 454 | # 5 compiler messages saved in config.log |
| 455 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 456 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 457 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 458 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 459 | fi |
| 460 | exec 5>./config.log |
| 461 | |
| 462 | echo "\ |
| 463 | This file contains any messages produced by compilers while |
| 464 | running configure, to aid debugging if configure makes a mistake. |
| 465 | " 1>&5 |
| 466 | |
| 467 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 468 | # Also quote any args containing shell metacharacters. |
| 469 | ac_configure_args= |
| 470 | for ac_arg |
| 471 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 472 | case "$ac_arg" in |
| 473 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 474 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 475 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 476 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 477 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 478 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 479 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 480 | esac |
| 481 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 482 | |
| 483 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 484 | # Only set these to C if already set. These must not be set unconditionally |
| 485 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 486 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 487 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 488 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 489 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 490 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 491 | 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] | 492 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 493 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 494 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 495 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 496 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 497 | |
| 498 | # A filename unique to this package, relative to the directory that |
| 499 | # 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] | 500 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 501 | |
| 502 | # Find the source files, if location was not specified. |
| 503 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 504 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 505 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 506 | ac_prog=$0 |
| 507 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 508 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 509 | srcdir=$ac_confdir |
| 510 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 511 | srcdir=.. |
| 512 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 513 | else |
| 514 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 515 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 516 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 517 | if test "$ac_srcdir_defaulted" = yes; then |
| 518 | { 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] | 519 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 520 | { 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] | 521 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 522 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 523 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 524 | |
| 525 | # Prefer explicitly selected file to automatically selected ones. |
| 526 | if test -z "$CONFIG_SITE"; then |
| 527 | if test "x$prefix" != xNONE; then |
| 528 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 529 | else |
| 530 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 531 | fi |
| 532 | fi |
| 533 | for ac_site_file in $CONFIG_SITE; do |
| 534 | if test -r "$ac_site_file"; then |
| 535 | echo "loading site script $ac_site_file" |
| 536 | . "$ac_site_file" |
| 537 | fi |
| 538 | done |
| 539 | |
| 540 | if test -r "$cache_file"; then |
| 541 | echo "loading cache $cache_file" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 542 | . $cache_file |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 543 | else |
| 544 | echo "creating cache $cache_file" |
| 545 | > $cache_file |
| 546 | fi |
| 547 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 548 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 549 | # 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] | 550 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 551 | 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] | 552 | 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] | 553 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 554 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 555 | ac_exeext= |
| 556 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 557 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 558 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 559 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 560 | ac_n= ac_c=' |
| 561 | ' ac_t=' ' |
| 562 | else |
| 563 | ac_n=-n ac_c= ac_t= |
| 564 | fi |
| 565 | else |
| 566 | ac_n= ac_c='\c' ac_t= |
| 567 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 568 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 569 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 570 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 571 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 572 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 573 | |
Neil Schemenauer | 7d64577 | 2001-01-17 21:59:33 +0000 | [diff] [blame] | 574 | VERSION=2.1 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 575 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 576 | # NEXTSTEP|MacOSX|Darwin stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 577 | 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] | 578 | |
| 579 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 580 | echo "configure:581: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 581 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 582 | if test "${with_next_archs+set}" = set; then |
| 583 | withval="$with_next_archs" |
| 584 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 585 | if test -n "$withval"; then |
| 586 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 587 | # GCC does not currently support multi archs on the NeXT |
| 588 | with_gcc=no |
| 589 | fi |
| 590 | echo "$ac_t""$with_next_archs" 1>&6 |
| 591 | |
| 592 | else |
| 593 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 594 | fi |
| 595 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 596 | |
| 597 | if test -z "$MACHDEP" |
| 598 | then |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 599 | ac_sys_system=`uname -s` |
| 600 | if test "$ac_sys_system" = "Darwin" ; then |
| 601 | ac_sys_release=`uname -r` |
| 602 | else |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 603 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 604 | sed -e 's/://' -e 's/\./_/'` && \ |
| 605 | ac_sys_system=next && ac_sys_release=$4 |
| 606 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 607 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 608 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 609 | fi |
| 610 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 611 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 612 | # Check whether --with-next-framework or --without-next-framework was given. |
| 613 | if test "${with_next_framework+set}" = set; then |
| 614 | withval="$with_next_framework" |
| 615 | : |
| 616 | fi |
| 617 | |
| 618 | # Check whether --with-dyld or --without-dyld was given. |
| 619 | if test "${with_dyld+set}" = set; then |
| 620 | withval="$with_dyld" |
| 621 | : |
| 622 | fi |
| 623 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 624 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 625 | # Set name for machine-dependent library files |
| 626 | |
| 627 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 628 | echo "configure:629: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 629 | if test -z "$MACHDEP" |
| 630 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 631 | ac_sys_system=`uname -s` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 632 | 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] | 633 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 634 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 635 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 636 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 637 | ac_md_system=`echo $ac_sys_system | |
| 638 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 639 | ac_md_release=`echo $ac_sys_release | |
| 640 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 641 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 642 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 643 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 644 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 645 | esac |
| 646 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 647 | |
| 648 | # |
| 649 | # SGI compilers allow the specification of the both the ABI and the |
| 650 | # ISA on the command line. Depending on the values of these switches, |
| 651 | # different and often incompatable code will be generated. |
| 652 | # |
| 653 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 654 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 655 | # variable is also adjusted. |
| 656 | # |
| 657 | |
| 658 | if test ! -z "$SGI_ABI" |
| 659 | then |
| 660 | CC="cc $SGI_ABI" |
| 661 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 662 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 663 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 664 | echo "$ac_t""$MACHDEP" 1>&6 |
| 665 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 666 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 667 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 668 | echo "configure:669: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 669 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 670 | if test "${with_gcc+set}" = set; then |
| 671 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 672 | |
| 673 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 674 | no) CC=cc |
| 675 | without_gcc=yes;; |
| 676 | yes) CC=gcc |
| 677 | without_gcc=no;; |
| 678 | *) CC=$withval |
| 679 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 680 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 681 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 682 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 683 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 684 | OSF1) CC=cc |
| 685 | without_gcc=;; |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 686 | AIX*) CC=cc_r |
| 687 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 688 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 689 | case $BE_HOST_CPU in |
| 690 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 691 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 692 | without_gcc=yes |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 693 | 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] | 694 | CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 695 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 696 | ;; |
| 697 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 698 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 699 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 700 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 701 | ;; |
| 702 | *) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 703 | { 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] | 704 | ;; |
| 705 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 706 | AR="\$(srcdir)/Modules/ar_beos" |
| 707 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 708 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 709 | Monterey*) |
| 710 | RANLIB=: |
| 711 | without_gcc=;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 712 | *) without_gcc=no;; |
| 713 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 714 | fi |
| 715 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 716 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 717 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 718 | |
| 719 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame^] | 720 | MAINOBJ=python.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 721 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 722 | echo "configure:723: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 723 | # Check whether --with-cxx or --without-cxx was given. |
| 724 | if test "${with_cxx+set}" = set; then |
| 725 | withval="$with_cxx" |
| 726 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 727 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 728 | case $withval in |
| 729 | no) CXX= |
| 730 | with_cxx=no;; |
| 731 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame^] | 732 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 733 | with_cxx=$withval;; |
| 734 | esac |
| 735 | else |
| 736 | |
| 737 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 738 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 739 | |
| 740 | fi |
| 741 | |
| 742 | echo "$ac_t""$with_cxx" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 743 | |
| 744 | |
| 745 | if test "$check_cxx" = "yes" |
| 746 | then |
| 747 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 748 | do |
| 749 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 750 | set dummy $ac_prog; ac_word=$2 |
| 751 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 752 | echo "configure:753: checking for $ac_word" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 753 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| 754 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 755 | else |
| 756 | if test -n "$CXX"; then |
| 757 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 758 | else |
| 759 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 760 | ac_dummy="$PATH" |
| 761 | for ac_dir in $ac_dummy; do |
| 762 | test -z "$ac_dir" && ac_dir=. |
| 763 | if test -f $ac_dir/$ac_word; then |
| 764 | ac_cv_prog_CXX="$ac_prog" |
| 765 | break |
| 766 | fi |
| 767 | done |
| 768 | IFS="$ac_save_ifs" |
| 769 | fi |
| 770 | fi |
| 771 | CXX="$ac_cv_prog_CXX" |
| 772 | if test -n "$CXX"; then |
| 773 | echo "$ac_t""$CXX" 1>&6 |
| 774 | else |
| 775 | echo "$ac_t""no" 1>&6 |
| 776 | fi |
| 777 | |
| 778 | test -n "$CXX" && break |
| 779 | done |
| 780 | test -n "$CXX" || CXX="notfound" |
| 781 | |
| 782 | if test "$CXX" = "notfound" |
| 783 | then |
| 784 | CXX= |
| 785 | else |
| 786 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 787 | echo "configure:788: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 788 | |
| 789 | ac_ext=C |
| 790 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 791 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 792 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 793 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 794 | cross_compiling=$ac_cv_prog_cxx_cross |
| 795 | |
| 796 | cat > conftest.$ac_ext << EOF |
| 797 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 798 | #line 799 "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 799 | #include "confdefs.h" |
| 800 | |
| 801 | int main(){return(0);} |
| 802 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 803 | if { (eval echo configure:804: \"$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] | 804 | ac_cv_prog_cxx_works=yes |
| 805 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 806 | if (./conftest; exit) 2>/dev/null; then |
| 807 | ac_cv_prog_cxx_cross=no |
| 808 | else |
| 809 | ac_cv_prog_cxx_cross=yes |
| 810 | fi |
| 811 | else |
| 812 | echo "configure: failed program was:" >&5 |
| 813 | cat conftest.$ac_ext >&5 |
| 814 | ac_cv_prog_cxx_works=no |
| 815 | fi |
| 816 | rm -fr conftest* |
| 817 | ac_ext=c |
| 818 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 819 | ac_cpp='$CPP $CPPFLAGS' |
| 820 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 821 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 822 | cross_compiling=$ac_cv_prog_cc_cross |
| 823 | |
| 824 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| 825 | if test $ac_cv_prog_cxx_works = no; then |
| 826 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| 827 | fi |
| 828 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 829 | echo "configure:830: 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] | 830 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| 831 | cross_compiling=$ac_cv_prog_cxx_cross |
| 832 | |
| 833 | fi |
| 834 | fi |
| 835 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 836 | # If the user switches compilers, we can't believe the cache |
| 837 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 838 | then |
| 839 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 840 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 841 | fi |
| 842 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 843 | # Extract the first word of "gcc", so it can be a program name with args. |
| 844 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 845 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 846 | echo "configure:847: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 847 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 848 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 849 | else |
| 850 | if test -n "$CC"; then |
| 851 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 852 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 853 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 854 | ac_dummy="$PATH" |
| 855 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 856 | test -z "$ac_dir" && ac_dir=. |
| 857 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 858 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 859 | break |
| 860 | fi |
| 861 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 862 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 863 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 864 | fi |
| 865 | CC="$ac_cv_prog_CC" |
| 866 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 867 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 868 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 869 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 870 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 871 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 872 | if test -z "$CC"; then |
| 873 | # Extract the first word of "cc", so it can be a program name with args. |
| 874 | set dummy cc; ac_word=$2 |
| 875 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 876 | echo "configure:877: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 877 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 878 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 879 | else |
| 880 | if test -n "$CC"; then |
| 881 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 882 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 883 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 884 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 885 | ac_dummy="$PATH" |
| 886 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 887 | test -z "$ac_dir" && ac_dir=. |
| 888 | if test -f $ac_dir/$ac_word; then |
| 889 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 890 | ac_prog_rejected=yes |
| 891 | continue |
| 892 | fi |
| 893 | ac_cv_prog_CC="cc" |
| 894 | break |
| 895 | fi |
| 896 | done |
| 897 | IFS="$ac_save_ifs" |
| 898 | if test $ac_prog_rejected = yes; then |
| 899 | # We found a bogon in the path, so make sure we never use it. |
| 900 | set dummy $ac_cv_prog_CC |
| 901 | shift |
| 902 | if test $# -gt 0; then |
| 903 | # We chose a different compiler from the bogus one. |
| 904 | # However, it has the same basename, so the bogon will be chosen |
| 905 | # first if we set CC to just the basename; use the full file name. |
| 906 | shift |
| 907 | set dummy "$ac_dir/$ac_word" "$@" |
| 908 | shift |
| 909 | ac_cv_prog_CC="$@" |
| 910 | fi |
| 911 | fi |
| 912 | fi |
| 913 | fi |
| 914 | CC="$ac_cv_prog_CC" |
| 915 | if test -n "$CC"; then |
| 916 | echo "$ac_t""$CC" 1>&6 |
| 917 | else |
| 918 | echo "$ac_t""no" 1>&6 |
| 919 | fi |
| 920 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 921 | if test -z "$CC"; then |
| 922 | case "`uname -s`" in |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 923 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 924 | # Extract the first word of "cl", so it can be a program name with args. |
| 925 | set dummy cl; ac_word=$2 |
| 926 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 927 | echo "configure:928: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 928 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 929 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 930 | else |
| 931 | if test -n "$CC"; then |
| 932 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 933 | else |
| 934 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 935 | ac_dummy="$PATH" |
| 936 | for ac_dir in $ac_dummy; do |
| 937 | test -z "$ac_dir" && ac_dir=. |
| 938 | if test -f $ac_dir/$ac_word; then |
| 939 | ac_cv_prog_CC="cl" |
| 940 | break |
| 941 | fi |
| 942 | done |
| 943 | IFS="$ac_save_ifs" |
| 944 | fi |
| 945 | fi |
| 946 | CC="$ac_cv_prog_CC" |
| 947 | if test -n "$CC"; then |
| 948 | echo "$ac_t""$CC" 1>&6 |
| 949 | else |
| 950 | echo "$ac_t""no" 1>&6 |
| 951 | fi |
| 952 | ;; |
| 953 | esac |
| 954 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 955 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 956 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 957 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 958 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 959 | echo "configure:960: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 960 | |
| 961 | ac_ext=c |
| 962 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 963 | ac_cpp='$CPP $CPPFLAGS' |
| 964 | 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] | 965 | 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] | 966 | cross_compiling=$ac_cv_prog_cc_cross |
| 967 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 968 | cat > conftest.$ac_ext << EOF |
| 969 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 970 | #line 971 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 971 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 972 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 973 | main(){return(0);} |
| 974 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 975 | if { (eval echo configure:976: \"$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] | 976 | ac_cv_prog_cc_works=yes |
| 977 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 978 | if (./conftest; exit) 2>/dev/null; then |
| 979 | ac_cv_prog_cc_cross=no |
| 980 | else |
| 981 | ac_cv_prog_cc_cross=yes |
| 982 | fi |
| 983 | else |
| 984 | echo "configure: failed program was:" >&5 |
| 985 | cat conftest.$ac_ext >&5 |
| 986 | ac_cv_prog_cc_works=no |
| 987 | fi |
| 988 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 989 | ac_ext=c |
| 990 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 991 | ac_cpp='$CPP $CPPFLAGS' |
| 992 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 993 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 994 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 995 | |
| 996 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 997 | if test $ac_cv_prog_cc_works = no; then |
| 998 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 999 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1000 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1001 | echo "configure:1002: 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] | 1002 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1003 | cross_compiling=$ac_cv_prog_cc_cross |
| 1004 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1005 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1006 | echo "configure:1007: checking whether we are using GNU C" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1007 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1008 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1009 | else |
| 1010 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1011 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1012 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1013 | #endif |
| 1014 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1015 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1016: \"$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] | 1016 | ac_cv_prog_gcc=yes |
| 1017 | else |
| 1018 | ac_cv_prog_gcc=no |
| 1019 | fi |
| 1020 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1021 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1022 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1023 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1024 | if test $ac_cv_prog_gcc = yes; then |
| 1025 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1026 | else |
| 1027 | GCC= |
| 1028 | fi |
| 1029 | |
| 1030 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1031 | ac_save_CFLAGS="$CFLAGS" |
| 1032 | CFLAGS= |
| 1033 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1034 | echo "configure:1035: checking whether ${CC-cc} accepts -g" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1035 | 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] | 1036 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1037 | else |
| 1038 | echo 'void f(){}' > conftest.c |
| 1039 | 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] | 1040 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1041 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1042 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1043 | fi |
| 1044 | rm -f conftest* |
| 1045 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1046 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1047 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1048 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1049 | if test "$ac_test_CFLAGS" = set; then |
| 1050 | CFLAGS="$ac_save_CFLAGS" |
| 1051 | elif test $ac_cv_prog_cc_g = yes; then |
| 1052 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1053 | CFLAGS="-g -O2" |
| 1054 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1055 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1056 | fi |
| 1057 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1058 | if test "$GCC" = yes; then |
| 1059 | CFLAGS="-O2" |
| 1060 | else |
| 1061 | CFLAGS= |
| 1062 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1063 | fi |
| 1064 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1065 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1066 | echo "configure:1067: checking for Cygwin environment" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1067 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1068 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1069 | else |
| 1070 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1071 | #line 1072 "configure" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1072 | #include "confdefs.h" |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1073 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1074 | int main() { |
| 1075 | |
| 1076 | #ifndef __CYGWIN__ |
| 1077 | #define __CYGWIN__ __CYGWIN32__ |
| 1078 | #endif |
| 1079 | return __CYGWIN__; |
| 1080 | ; return 0; } |
| 1081 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1082 | if { (eval echo configure:1083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1083 | rm -rf conftest* |
| 1084 | ac_cv_cygwin=yes |
| 1085 | else |
| 1086 | echo "configure: failed program was:" >&5 |
| 1087 | cat conftest.$ac_ext >&5 |
| 1088 | rm -rf conftest* |
| 1089 | ac_cv_cygwin=no |
| 1090 | fi |
| 1091 | rm -f conftest* |
| 1092 | rm -f conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1093 | fi |
| 1094 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1095 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1096 | CYGWIN= |
| 1097 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1098 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1099 | echo "configure:1100: checking for mingw32 environment" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1100 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1101 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1102 | else |
| 1103 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1104 | #line 1105 "configure" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1105 | #include "confdefs.h" |
| 1106 | |
| 1107 | int main() { |
| 1108 | return __MINGW32__; |
| 1109 | ; return 0; } |
| 1110 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1111 | if { (eval echo configure:1112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1112 | rm -rf conftest* |
| 1113 | ac_cv_mingw32=yes |
| 1114 | else |
| 1115 | echo "configure: failed program was:" >&5 |
| 1116 | cat conftest.$ac_ext >&5 |
| 1117 | rm -rf conftest* |
| 1118 | ac_cv_mingw32=no |
| 1119 | fi |
| 1120 | rm -f conftest* |
| 1121 | rm -f conftest* |
| 1122 | fi |
| 1123 | |
| 1124 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1125 | MINGW32= |
| 1126 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1127 | |
| 1128 | |
| 1129 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1130 | echo "configure:1131: checking for executable suffix" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1131 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 1132 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1133 | else |
| 1134 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 1135 | ac_cv_exeext=.exe |
| 1136 | else |
| 1137 | rm -f conftest* |
| 1138 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 1139 | ac_cv_exeext= |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1140 | if { (eval echo configure:1141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1141 | for file in conftest.*; do |
| 1142 | case $file in |
| 1143 | *.c | *.o | *.obj) ;; |
| 1144 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 1145 | esac |
| 1146 | done |
| 1147 | else |
| 1148 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 1149 | fi |
| 1150 | rm -f conftest* |
| 1151 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 1152 | fi |
| 1153 | fi |
| 1154 | |
| 1155 | EXEEXT="" |
| 1156 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 1157 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 1158 | ac_exeext=$EXEEXT |
| 1159 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1160 | echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1161 | echo "configure:1162: checking for --with-suffix" >&5 |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1162 | # Check whether --with-suffix or --without-suffix was given. |
| 1163 | if test "${with_suffix+set}" = set; then |
| 1164 | withval="$with_suffix" |
| 1165 | |
| 1166 | case $withval in |
| 1167 | no) EXEEXT=;; |
| 1168 | yes) EXEEXT=.exe;; |
| 1169 | *) EXEEXT=$withval;; |
| 1170 | esac |
| 1171 | fi |
| 1172 | |
| 1173 | echo "$ac_t""$EXEEXT" 1>&6 |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1174 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1175 | case $MACHDEP in |
| 1176 | bsdos*) |
| 1177 | case $CC in |
| 1178 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1179 | esac;; |
| 1180 | esac |
| 1181 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1182 | case $ac_sys_system in |
| 1183 | hp*|HP*) |
| 1184 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1185 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1186 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1187 | Monterey*) |
| 1188 | case $CC in |
| 1189 | cc) CC="$CC -Wl,-Bexport";; |
| 1190 | esac;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1191 | esac |
| 1192 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1193 | |
| 1194 | echo $ac_n "checking LIBRARY""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1195 | echo "configure:1196: checking LIBRARY" >&5 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1196 | if test -z "$LIBRARY" |
| 1197 | then |
| 1198 | LIBRARY='libpython$(VERSION).a' |
| 1199 | fi |
| 1200 | echo "$ac_t""$LIBRARY" 1>&6 |
| 1201 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1202 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1203 | # name of the library into which to insert object files). On systems |
| 1204 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1205 | # the Makefiles). On Cygwin LDLIBRARY is the import library, DLLLIBRARY is the |
| 1206 | # shared (i.e., DLL) library. |
| 1207 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1208 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1209 | LDLIBRARY="$LIBRARY" |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 1210 | DLLLIBRARY='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1211 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1212 | # LINKCC is the command that links the python executable -- default is $(CC). |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1213 | # 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] | 1214 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1215 | |
| 1216 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1217 | echo "configure:1218: checking LINKCC" >&5 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1218 | if test -z "$LINKCC" |
| 1219 | then |
| 1220 | case $ac_sys_system in |
| 1221 | AIX*) |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1222 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1223 | dgux*) |
| 1224 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1225 | Monterey64*) |
| 1226 | LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1227 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1228 | esac |
| 1229 | fi |
| 1230 | echo "$ac_t""$LINKCC" 1>&6 |
| 1231 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1232 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1233 | echo "configure:1234: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1234 | |
| 1235 | # NeXT framework builds require that the 'ar' library be converted into |
| 1236 | # a bundle using libtool. |
| 1237 | if test "$with_next_framework" |
| 1238 | then |
| 1239 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1240 | fi |
| 1241 | |
| 1242 | # 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] | 1243 | case $MACHDEP in |
| 1244 | dguxR4) |
| 1245 | LDLIBRARY='libpython$(VERSION).so' |
| 1246 | OPT="$OPT -pic" |
| 1247 | ;; |
| 1248 | beos*) |
| 1249 | LDLIBRARY='libpython$(VERSION).so' |
| 1250 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1251 | cygwin*) |
| 1252 | LDLIBRARY='libpython$(VERSION).dll.a' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1253 | DLLLIBRARY='libpython$(VERSION).dll' |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1254 | ;; |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1255 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1256 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1257 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1258 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1259 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1260 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1261 | echo "configure:1262: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1262 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1263 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1264 | else |
| 1265 | if test -n "$RANLIB"; then |
| 1266 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1267 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1268 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1269 | ac_dummy="$PATH" |
| 1270 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1271 | test -z "$ac_dir" && ac_dir=. |
| 1272 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1273 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1274 | break |
| 1275 | fi |
| 1276 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1277 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1278 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1279 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1280 | fi |
| 1281 | RANLIB="$ac_cv_prog_RANLIB" |
| 1282 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1283 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1284 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1285 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1286 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1287 | |
| 1288 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1289 | for ac_prog in ar aal |
| 1290 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1291 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1292 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1293 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1294 | echo "configure:1295: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1295 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1296 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1297 | else |
| 1298 | if test -n "$AR"; then |
| 1299 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1300 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1301 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1302 | ac_dummy="$PATH" |
| 1303 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1304 | test -z "$ac_dir" && ac_dir=. |
| 1305 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1306 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1307 | break |
| 1308 | fi |
| 1309 | done |
| 1310 | IFS="$ac_save_ifs" |
| 1311 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1312 | fi |
| 1313 | AR="$ac_cv_prog_AR" |
| 1314 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1315 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1316 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1317 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1318 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1319 | |
| 1320 | test -n "$AR" && break |
| 1321 | done |
| 1322 | test -n "$AR" || AR="ar" |
| 1323 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1324 | ac_aux_dir= |
| 1325 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1326 | if test -f $ac_dir/install-sh; then |
| 1327 | ac_aux_dir=$ac_dir |
| 1328 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1329 | break |
| 1330 | elif test -f $ac_dir/install.sh; then |
| 1331 | ac_aux_dir=$ac_dir |
| 1332 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1333 | break |
| 1334 | fi |
| 1335 | done |
| 1336 | if test -z "$ac_aux_dir"; then |
| 1337 | { 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] | 1338 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1339 | ac_config_guess=$ac_aux_dir/config.guess |
| 1340 | ac_config_sub=$ac_aux_dir/config.sub |
| 1341 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 1342 | |
| 1343 | # Find a good install program. We prefer a C program (faster), |
| 1344 | # so one script is as good as another. But avoid the broken or |
| 1345 | # incompatible versions: |
| 1346 | # SysV /etc/install, /usr/sbin/install |
| 1347 | # SunOS /usr/etc/install |
| 1348 | # IRIX /sbin/install |
| 1349 | # AIX /bin/install |
| 1350 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1351 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1352 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1353 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1354 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1355 | echo "configure:1356: checking for a BSD compatible install" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1356 | if test -z "$INSTALL"; then |
| 1357 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1358 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1359 | else |
| 1360 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 1361 | for ac_dir in $PATH; do |
| 1362 | # Account for people who put trailing slashes in PATH elements. |
| 1363 | case "$ac_dir/" in |
| 1364 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1365 | *) |
| 1366 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1367 | # Don't use installbsd from OSF since it installs stuff as root |
| 1368 | # by default. |
| 1369 | for ac_prog in ginstall scoinst install; do |
| 1370 | if test -f $ac_dir/$ac_prog; then |
| 1371 | if test $ac_prog = install && |
| 1372 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1373 | # AIX install. It has an incompatible calling convention. |
| 1374 | : |
| 1375 | else |
| 1376 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1377 | break 2 |
| 1378 | fi |
| 1379 | fi |
| 1380 | done |
| 1381 | ;; |
| 1382 | esac |
| 1383 | done |
| 1384 | IFS="$ac_save_IFS" |
| 1385 | |
| 1386 | fi |
| 1387 | if test "${ac_cv_path_install+set}" = set; then |
| 1388 | INSTALL="$ac_cv_path_install" |
| 1389 | else |
| 1390 | # As a last resort, use the slow shell script. We don't cache a |
| 1391 | # path for INSTALL within a source directory, because that will |
| 1392 | # break other packages using the cache if that directory is |
| 1393 | # removed, or if the path is relative. |
| 1394 | INSTALL="$ac_install_sh" |
| 1395 | fi |
| 1396 | fi |
| 1397 | echo "$ac_t""$INSTALL" 1>&6 |
| 1398 | |
| 1399 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1400 | # It thinks the first close brace ends the variable substitution. |
| 1401 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1402 | |
| 1403 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 1404 | |
| 1405 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1406 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1407 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1408 | # Not every filesystem supports hard links |
| 1409 | |
| 1410 | if test -z "$LN" ; then |
| 1411 | case $ac_sys_system in |
| 1412 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1413 | CYGWIN*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1414 | *) LN=ln;; |
| 1415 | esac |
| 1416 | fi |
| 1417 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1418 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1419 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1420 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1421 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1422 | case $GCC in |
| 1423 | yes) |
| 1424 | case $ac_cv_prog_cc_g in |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1425 | yes) OPT="-g -O2 -Wall -Wstrict-prototypes";; |
| 1426 | *) OPT="-O2 -Wall -Wstrict-prototypes";; |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1427 | esac |
| 1428 | ;; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1429 | *) OPT="-O";; |
| 1430 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1431 | fi |
| 1432 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1433 | # The current (beta) Monterey compiler dies with optimizations |
| 1434 | case $ac_sys_system in |
| 1435 | Monterey*) OPT="";; |
| 1436 | esac |
| 1437 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1438 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1439 | then |
| 1440 | OPT="$OPT $ac_arch_flags" |
| 1441 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1442 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1443 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1444 | echo "configure:1445: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1445 | # On Suns, sometimes $CPP names a directory. |
| 1446 | if test -n "$CPP" && test -d "$CPP"; then |
| 1447 | CPP= |
| 1448 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1449 | if test -z "$CPP"; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1450 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1451 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1452 | else |
| 1453 | # This must be in double quotes, not single quotes, because CPP may get |
| 1454 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1455 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1456 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1457 | # not just through cpp. |
| 1458 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1459 | #line 1460 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1460 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1461 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1462 | Syntax Error |
| 1463 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1464 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1465 | { (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1466 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1467 | if test -z "$ac_err"; then |
| 1468 | : |
| 1469 | else |
| 1470 | echo "$ac_err" >&5 |
| 1471 | echo "configure: failed program was:" >&5 |
| 1472 | cat conftest.$ac_ext >&5 |
| 1473 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1474 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1475 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1476 | #line 1477 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1477 | #include "confdefs.h" |
| 1478 | #include <assert.h> |
| 1479 | Syntax Error |
| 1480 | EOF |
| 1481 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1482 | { (eval echo configure:1483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1483 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1484 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1485 | : |
| 1486 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1487 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1488 | echo "configure: failed program was:" >&5 |
| 1489 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1490 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1491 | CPP="${CC-cc} -nologo -E" |
| 1492 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1493 | #line 1494 "configure" |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1494 | #include "confdefs.h" |
| 1495 | #include <assert.h> |
| 1496 | Syntax Error |
| 1497 | EOF |
| 1498 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1499 | { (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1500 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1501 | if test -z "$ac_err"; then |
| 1502 | : |
| 1503 | else |
| 1504 | echo "$ac_err" >&5 |
| 1505 | echo "configure: failed program was:" >&5 |
| 1506 | cat conftest.$ac_ext >&5 |
| 1507 | rm -rf conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1508 | CPP=/lib/cpp |
| 1509 | fi |
| 1510 | rm -f conftest* |
| 1511 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1512 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1513 | fi |
| 1514 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1515 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1516 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1517 | CPP="$ac_cv_prog_CPP" |
| 1518 | else |
| 1519 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1520 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1521 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1522 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1523 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1524 | echo "configure:1525: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1525 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1526 | #line 1527 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1527 | #include "confdefs.h" |
| 1528 | #ifdef _AIX |
| 1529 | yes |
| 1530 | #endif |
| 1531 | |
| 1532 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1534 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1535 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1536 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1537 | #define _ALL_SOURCE 1 |
| 1538 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1539 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1540 | else |
| 1541 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1542 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1543 | fi |
| 1544 | rm -f conftest* |
| 1545 | |
| 1546 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1547 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1548 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1549 | echo "configure:1550: checking for minix/config.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1550 | 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] | 1551 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1552 | else |
| 1553 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1554 | #line 1555 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1555 | #include "confdefs.h" |
| 1556 | #include <minix/config.h> |
| 1557 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1558 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1559 | { (eval echo configure:1560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1560 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1561 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1562 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1563 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1564 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1565 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1566 | echo "configure: failed program was:" >&5 |
| 1567 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1568 | rm -rf conftest* |
| 1569 | eval "ac_cv_header_$ac_safe=no" |
| 1570 | fi |
| 1571 | rm -f conftest* |
| 1572 | fi |
| 1573 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1574 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1575 | MINIX=yes |
| 1576 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1577 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1578 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1579 | fi |
| 1580 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1581 | if test "$MINIX" = yes; then |
| 1582 | cat >> confdefs.h <<\EOF |
| 1583 | #define _POSIX_SOURCE 1 |
| 1584 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1585 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1586 | cat >> confdefs.h <<\EOF |
| 1587 | #define _POSIX_1_SOURCE 2 |
| 1588 | EOF |
| 1589 | |
| 1590 | cat >> confdefs.h <<\EOF |
| 1591 | #define _MINIX 1 |
| 1592 | EOF |
| 1593 | |
| 1594 | fi |
| 1595 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1596 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1597 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1598 | echo "configure:1599: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1599 | 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] | 1600 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1601 | else |
| 1602 | ac_save_cc="$CC" |
| 1603 | CC="$CC -OPT:Olimit=0" |
| 1604 | if test "$cross_compiling" = yes; then |
| 1605 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1606 | else |
| 1607 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1608 | #line 1609 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1609 | #include "confdefs.h" |
| 1610 | int main() { return 0; } |
| 1611 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1612 | if { (eval echo configure:1613: \"$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] | 1613 | then |
| 1614 | ac_cv_opt_olimit_ok=yes |
| 1615 | else |
| 1616 | echo "configure: failed program was:" >&5 |
| 1617 | cat conftest.$ac_ext >&5 |
| 1618 | rm -fr conftest* |
| 1619 | ac_cv_opt_olimit_ok=no |
| 1620 | fi |
| 1621 | rm -fr conftest* |
| 1622 | fi |
| 1623 | |
| 1624 | CC="$ac_save_cc" |
| 1625 | fi |
| 1626 | |
| 1627 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1628 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 1629 | case $ac_sys_system in |
| 1630 | Darwin*) OPT="$OPT" ;; |
| 1631 | *) OPT="$OPT -OPT:Olimit=0";; |
| 1632 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1633 | else |
| 1634 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1635 | echo "configure:1636: checking whether $CC accepts -Olimit 1500" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1636 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1637 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1638 | else |
| 1639 | ac_save_cc="$CC" |
| 1640 | CC="$CC -Olimit 1500" |
| 1641 | if test "$cross_compiling" = yes; then |
| 1642 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1643 | else |
| 1644 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1645 | #line 1646 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1646 | #include "confdefs.h" |
| 1647 | int main() { return 0; } |
| 1648 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1649 | if { (eval echo configure:1650: \"$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] | 1650 | then |
| 1651 | ac_cv_olimit_ok=yes |
| 1652 | else |
| 1653 | echo "configure: failed program was:" >&5 |
| 1654 | cat conftest.$ac_ext >&5 |
| 1655 | rm -fr conftest* |
| 1656 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1657 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1658 | rm -fr conftest* |
| 1659 | fi |
| 1660 | |
| 1661 | CC="$ac_save_cc" |
| 1662 | fi |
| 1663 | |
| 1664 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1665 | if test $ac_cv_olimit_ok = yes; then |
| 1666 | OPT="$OPT -Olimit 1500" |
| 1667 | fi |
| 1668 | fi |
| 1669 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1670 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1671 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1672 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1673 | echo "configure:1674: checking for ANSI C header files" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1674 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1675 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1676 | else |
| 1677 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1678 | #line 1679 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1679 | #include "confdefs.h" |
| 1680 | #include <stdlib.h> |
| 1681 | #include <stdarg.h> |
| 1682 | #include <string.h> |
| 1683 | #include <float.h> |
| 1684 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1685 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1686 | { (eval echo configure:1687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1687 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1688 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1689 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1690 | ac_cv_header_stdc=yes |
| 1691 | else |
| 1692 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1693 | echo "configure: failed program was:" >&5 |
| 1694 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1695 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1696 | ac_cv_header_stdc=no |
| 1697 | fi |
| 1698 | rm -f conftest* |
| 1699 | |
| 1700 | if test $ac_cv_header_stdc = yes; then |
| 1701 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1702 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1703 | #line 1704 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1704 | #include "confdefs.h" |
| 1705 | #include <string.h> |
| 1706 | EOF |
| 1707 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1708 | egrep "memchr" >/dev/null 2>&1; then |
| 1709 | : |
| 1710 | else |
| 1711 | rm -rf conftest* |
| 1712 | ac_cv_header_stdc=no |
| 1713 | fi |
| 1714 | rm -f conftest* |
| 1715 | |
| 1716 | fi |
| 1717 | |
| 1718 | if test $ac_cv_header_stdc = yes; then |
| 1719 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1720 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1721 | #line 1722 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1722 | #include "confdefs.h" |
| 1723 | #include <stdlib.h> |
| 1724 | EOF |
| 1725 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1726 | egrep "free" >/dev/null 2>&1; then |
| 1727 | : |
| 1728 | else |
| 1729 | rm -rf conftest* |
| 1730 | ac_cv_header_stdc=no |
| 1731 | fi |
| 1732 | rm -f conftest* |
| 1733 | |
| 1734 | fi |
| 1735 | |
| 1736 | if test $ac_cv_header_stdc = yes; then |
| 1737 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1738 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1739 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1740 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1741 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1742 | #line 1743 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1743 | #include "confdefs.h" |
| 1744 | #include <ctype.h> |
| 1745 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1746 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1747 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1748 | int main () { int i; for (i = 0; i < 256; i++) |
| 1749 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1750 | exit (0); } |
| 1751 | |
| 1752 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1753 | if { (eval echo configure:1754: \"$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] | 1754 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1755 | : |
| 1756 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1757 | echo "configure: failed program was:" >&5 |
| 1758 | cat conftest.$ac_ext >&5 |
| 1759 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1760 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1761 | fi |
| 1762 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1763 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1764 | |
| 1765 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1766 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1767 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1768 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1769 | if test $ac_cv_header_stdc = yes; then |
| 1770 | cat >> confdefs.h <<\EOF |
| 1771 | #define STDC_HEADERS 1 |
| 1772 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1773 | |
| 1774 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1775 | |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 1776 | 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] | 1777 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 1778 | sys/audioio.h sys/file.h sys/lock.h db_185.h db.h \ |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 1779 | sys/param.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] | 1780 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
| 1781 | ndbm.h db1/ndbm.h gdbm/ndbm.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1782 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1783 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1784 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1785 | echo "configure:1786: checking for $ac_hdr" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1786 | 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] | 1787 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1788 | else |
| 1789 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1790 | #line 1791 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1791 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1792 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1793 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1794 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1795 | { (eval echo configure:1796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1796 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1797 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1798 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1799 | eval "ac_cv_header_$ac_safe=yes" |
| 1800 | else |
| 1801 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1802 | echo "configure: failed program was:" >&5 |
| 1803 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1804 | rm -rf conftest* |
| 1805 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1806 | fi |
| 1807 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1808 | fi |
| 1809 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1810 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1811 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1812 | cat >> confdefs.h <<EOF |
| 1813 | #define $ac_tr_hdr 1 |
| 1814 | EOF |
| 1815 | |
| 1816 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1817 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1818 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1819 | done |
| 1820 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1821 | ac_header_dirent=no |
| 1822 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1823 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1824 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1825 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1826 | echo "configure:1827: checking for $ac_hdr that defines DIR" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1827 | 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] | 1828 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1829 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1830 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1831 | #line 1832 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1832 | #include "confdefs.h" |
| 1833 | #include <sys/types.h> |
| 1834 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1835 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1836 | DIR *dirp = 0; |
| 1837 | ; return 0; } |
| 1838 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1839 | if { (eval echo configure:1840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1840 | rm -rf conftest* |
| 1841 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1842 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1843 | echo "configure: failed program was:" >&5 |
| 1844 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1845 | rm -rf conftest* |
| 1846 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1847 | fi |
| 1848 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1849 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1850 | 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] | 1851 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1852 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1853 | cat >> confdefs.h <<EOF |
| 1854 | #define $ac_tr_hdr 1 |
| 1855 | EOF |
| 1856 | ac_header_dirent=$ac_hdr; break |
| 1857 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1858 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1859 | fi |
| 1860 | done |
| 1861 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1862 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1863 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1864 | echo "configure:1865: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1865 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1866 | 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] | 1867 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1868 | else |
| 1869 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1870 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1871 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1872 | #line 1873 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1873 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1874 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1875 | /* We use char because int might match the return type of a gcc2 |
| 1876 | builtin and then its argument prototype would still apply. */ |
| 1877 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1878 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1879 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1880 | opendir() |
| 1881 | ; return 0; } |
| 1882 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1883 | if { (eval echo configure:1884: \"$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] | 1884 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1885 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1886 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1887 | echo "configure: failed program was:" >&5 |
| 1888 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1889 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1890 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1891 | fi |
| 1892 | rm -f conftest* |
| 1893 | LIBS="$ac_save_LIBS" |
| 1894 | |
| 1895 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1896 | 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] | 1897 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1898 | LIBS="$LIBS -ldir" |
| 1899 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1900 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1901 | fi |
| 1902 | |
| 1903 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1904 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1905 | echo "configure:1906: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1906 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1907 | 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] | 1908 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1909 | else |
| 1910 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1911 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1912 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1913 | #line 1914 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1914 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1915 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1916 | /* We use char because int might match the return type of a gcc2 |
| 1917 | builtin and then its argument prototype would still apply. */ |
| 1918 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1919 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1920 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1921 | opendir() |
| 1922 | ; return 0; } |
| 1923 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1924 | if { (eval echo configure:1925: \"$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] | 1925 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1926 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1927 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1928 | echo "configure: failed program was:" >&5 |
| 1929 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1930 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1931 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1932 | fi |
| 1933 | rm -f conftest* |
| 1934 | LIBS="$ac_save_LIBS" |
| 1935 | |
| 1936 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1937 | 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] | 1938 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1939 | LIBS="$LIBS -lx" |
| 1940 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1941 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1942 | fi |
| 1943 | |
| 1944 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1945 | |
| 1946 | |
| 1947 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1948 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1949 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1950 | echo "configure:1951: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1951 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1952 | #line 1953 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1953 | #include "confdefs.h" |
| 1954 | #include <time.h> |
| 1955 | EOF |
| 1956 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1957 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1958 | rm -rf conftest* |
| 1959 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1960 | else |
| 1961 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1962 | cat >> confdefs.h <<\EOF |
| 1963 | #define clock_t long |
| 1964 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1965 | |
| 1966 | fi |
| 1967 | rm -f conftest* |
| 1968 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1969 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1970 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1971 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1972 | cat >> confdefs.h <<\EOF |
| 1973 | #if defined(SCO_DS) |
| 1974 | #undef _OFF_T |
| 1975 | #endif |
| 1976 | EOF |
| 1977 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1978 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1979 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1980 | echo "configure:1981: checking for mode_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1981 | 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] | 1982 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1983 | else |
| 1984 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 1985 | #line 1986 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1986 | #include "confdefs.h" |
| 1987 | #include <sys/types.h> |
| 1988 | #if STDC_HEADERS |
| 1989 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1990 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1991 | #endif |
| 1992 | EOF |
| 1993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1994 | 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] | 1995 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1996 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1997 | else |
| 1998 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1999 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2000 | fi |
| 2001 | rm -f conftest* |
| 2002 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2003 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2004 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 2005 | if test $ac_cv_type_mode_t = no; then |
| 2006 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2007 | #define mode_t int |
| 2008 | EOF |
| 2009 | |
| 2010 | fi |
| 2011 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2012 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2013 | echo "configure:2014: checking for off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2014 | 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] | 2015 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2016 | else |
| 2017 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2018 | #line 2019 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2019 | #include "confdefs.h" |
| 2020 | #include <sys/types.h> |
| 2021 | #if STDC_HEADERS |
| 2022 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2023 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2024 | #endif |
| 2025 | EOF |
| 2026 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2027 | 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] | 2028 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2029 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2030 | else |
| 2031 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2032 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2033 | fi |
| 2034 | rm -f conftest* |
| 2035 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2036 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2037 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2038 | if test $ac_cv_type_off_t = no; then |
| 2039 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2040 | #define off_t long |
| 2041 | EOF |
| 2042 | |
| 2043 | fi |
| 2044 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2045 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2046 | echo "configure:2047: checking for pid_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2047 | 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] | 2048 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2049 | else |
| 2050 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2051 | #line 2052 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2052 | #include "confdefs.h" |
| 2053 | #include <sys/types.h> |
| 2054 | #if STDC_HEADERS |
| 2055 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2056 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2057 | #endif |
| 2058 | EOF |
| 2059 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2060 | 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] | 2061 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2062 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2063 | else |
| 2064 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2065 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2066 | fi |
| 2067 | rm -f conftest* |
| 2068 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2069 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2070 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 2071 | if test $ac_cv_type_pid_t = no; then |
| 2072 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2073 | #define pid_t int |
| 2074 | EOF |
| 2075 | |
| 2076 | fi |
| 2077 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2078 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2079 | echo "configure:2080: checking return type of signal handlers" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2080 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2081 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2082 | else |
| 2083 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2084 | #line 2085 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2085 | #include "confdefs.h" |
| 2086 | #include <sys/types.h> |
| 2087 | #include <signal.h> |
| 2088 | #ifdef signal |
| 2089 | #undef signal |
| 2090 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2091 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2092 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 2093 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2094 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2095 | #endif |
| 2096 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2097 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2098 | int i; |
| 2099 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2100 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2101 | if { (eval echo configure:2102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2102 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2103 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2104 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2105 | echo "configure: failed program was:" >&5 |
| 2106 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2107 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2108 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2109 | fi |
| 2110 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2111 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2112 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2113 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2114 | cat >> confdefs.h <<EOF |
| 2115 | #define RETSIGTYPE $ac_cv_type_signal |
| 2116 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2117 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2118 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2119 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2120 | echo "configure:2121: checking for size_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2121 | 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] | 2122 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2123 | else |
| 2124 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2125 | #line 2126 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2126 | #include "confdefs.h" |
| 2127 | #include <sys/types.h> |
| 2128 | #if STDC_HEADERS |
| 2129 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2130 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2131 | #endif |
| 2132 | EOF |
| 2133 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2134 | 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] | 2135 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2136 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2137 | else |
| 2138 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2139 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2140 | fi |
| 2141 | rm -f conftest* |
| 2142 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2143 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2144 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2145 | if test $ac_cv_type_size_t = no; then |
| 2146 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2147 | #define size_t unsigned |
| 2148 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2149 | |
| 2150 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2151 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2152 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2153 | echo "configure:2154: checking for uid_t in sys/types.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2154 | 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] | 2155 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2156 | else |
| 2157 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2158 | #line 2159 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2159 | #include "confdefs.h" |
| 2160 | #include <sys/types.h> |
| 2161 | EOF |
| 2162 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2163 | egrep "uid_t" >/dev/null 2>&1; then |
| 2164 | rm -rf conftest* |
| 2165 | ac_cv_type_uid_t=yes |
| 2166 | else |
| 2167 | rm -rf conftest* |
| 2168 | ac_cv_type_uid_t=no |
| 2169 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2170 | rm -f conftest* |
| 2171 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2172 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2173 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2174 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2175 | if test $ac_cv_type_uid_t = no; then |
| 2176 | cat >> confdefs.h <<\EOF |
| 2177 | #define uid_t int |
| 2178 | EOF |
| 2179 | |
| 2180 | cat >> confdefs.h <<\EOF |
| 2181 | #define gid_t int |
| 2182 | EOF |
| 2183 | |
| 2184 | fi |
| 2185 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2186 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2187 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2188 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2189 | echo "configure:2190: checking size of int" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2190 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2191 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2192 | else |
| 2193 | if test "$cross_compiling" = yes; then |
| 2194 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2195 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2196 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2197 | #line 2198 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2198 | #include "confdefs.h" |
| 2199 | #include <stdio.h> |
| 2200 | main() |
| 2201 | { |
| 2202 | FILE *f=fopen("conftestval", "w"); |
| 2203 | if (!f) exit(1); |
| 2204 | fprintf(f, "%d\n", sizeof(int)); |
| 2205 | exit(0); |
| 2206 | } |
| 2207 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2208 | if { (eval echo configure:2209: \"$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] | 2209 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2210 | ac_cv_sizeof_int=`cat conftestval` |
| 2211 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2212 | echo "configure: failed program was:" >&5 |
| 2213 | cat conftest.$ac_ext >&5 |
| 2214 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2215 | ac_cv_sizeof_int=0 |
| 2216 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2217 | rm -fr conftest* |
| 2218 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2219 | |
| 2220 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2221 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 2222 | cat >> confdefs.h <<EOF |
| 2223 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2224 | EOF |
| 2225 | |
| 2226 | |
| 2227 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2228 | echo "configure:2229: checking size of long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2229 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2230 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2231 | else |
| 2232 | if test "$cross_compiling" = yes; then |
| 2233 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2234 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2235 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2236 | #line 2237 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2237 | #include "confdefs.h" |
| 2238 | #include <stdio.h> |
| 2239 | main() |
| 2240 | { |
| 2241 | FILE *f=fopen("conftestval", "w"); |
| 2242 | if (!f) exit(1); |
| 2243 | fprintf(f, "%d\n", sizeof(long)); |
| 2244 | exit(0); |
| 2245 | } |
| 2246 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2247 | if { (eval echo configure:2248: \"$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] | 2248 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2249 | ac_cv_sizeof_long=`cat conftestval` |
| 2250 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2251 | echo "configure: failed program was:" >&5 |
| 2252 | cat conftest.$ac_ext >&5 |
| 2253 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2254 | ac_cv_sizeof_long=0 |
| 2255 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2256 | rm -fr conftest* |
| 2257 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2258 | |
| 2259 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2260 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2261 | cat >> confdefs.h <<EOF |
| 2262 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2263 | EOF |
| 2264 | |
| 2265 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2266 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2267 | echo "configure:2268: checking size of void *" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2268 | 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] | 2269 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2270 | else |
| 2271 | if test "$cross_compiling" = yes; then |
| 2272 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2273 | else |
| 2274 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2275 | #line 2276 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2276 | #include "confdefs.h" |
| 2277 | #include <stdio.h> |
| 2278 | main() |
| 2279 | { |
| 2280 | FILE *f=fopen("conftestval", "w"); |
| 2281 | if (!f) exit(1); |
| 2282 | fprintf(f, "%d\n", sizeof(void *)); |
| 2283 | exit(0); |
| 2284 | } |
| 2285 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2286 | if { (eval echo configure:2287: \"$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] | 2287 | then |
| 2288 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2289 | else |
| 2290 | echo "configure: failed program was:" >&5 |
| 2291 | cat conftest.$ac_ext >&5 |
| 2292 | rm -fr conftest* |
| 2293 | ac_cv_sizeof_void_p=0 |
| 2294 | fi |
| 2295 | rm -fr conftest* |
| 2296 | fi |
| 2297 | |
| 2298 | fi |
| 2299 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2300 | cat >> confdefs.h <<EOF |
| 2301 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2302 | EOF |
| 2303 | |
| 2304 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2305 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2306 | echo "configure:2307: checking size of char" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2307 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2308 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2309 | else |
| 2310 | if test "$cross_compiling" = yes; then |
| 2311 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2312 | else |
| 2313 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2314 | #line 2315 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2315 | #include "confdefs.h" |
| 2316 | #include <stdio.h> |
| 2317 | main() |
| 2318 | { |
| 2319 | FILE *f=fopen("conftestval", "w"); |
| 2320 | if (!f) exit(1); |
| 2321 | fprintf(f, "%d\n", sizeof(char)); |
| 2322 | exit(0); |
| 2323 | } |
| 2324 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2325 | if { (eval echo configure:2326: \"$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] | 2326 | then |
| 2327 | ac_cv_sizeof_char=`cat conftestval` |
| 2328 | else |
| 2329 | echo "configure: failed program was:" >&5 |
| 2330 | cat conftest.$ac_ext >&5 |
| 2331 | rm -fr conftest* |
| 2332 | ac_cv_sizeof_char=0 |
| 2333 | fi |
| 2334 | rm -fr conftest* |
| 2335 | fi |
| 2336 | |
| 2337 | fi |
| 2338 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2339 | cat >> confdefs.h <<EOF |
| 2340 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2341 | EOF |
| 2342 | |
| 2343 | |
| 2344 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2345 | echo "configure:2346: checking size of short" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2346 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2347 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2348 | else |
| 2349 | if test "$cross_compiling" = yes; then |
| 2350 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2351 | else |
| 2352 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2353 | #line 2354 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2354 | #include "confdefs.h" |
| 2355 | #include <stdio.h> |
| 2356 | main() |
| 2357 | { |
| 2358 | FILE *f=fopen("conftestval", "w"); |
| 2359 | if (!f) exit(1); |
| 2360 | fprintf(f, "%d\n", sizeof(short)); |
| 2361 | exit(0); |
| 2362 | } |
| 2363 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2364 | if { (eval echo configure:2365: \"$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] | 2365 | then |
| 2366 | ac_cv_sizeof_short=`cat conftestval` |
| 2367 | else |
| 2368 | echo "configure: failed program was:" >&5 |
| 2369 | cat conftest.$ac_ext >&5 |
| 2370 | rm -fr conftest* |
| 2371 | ac_cv_sizeof_short=0 |
| 2372 | fi |
| 2373 | rm -fr conftest* |
| 2374 | fi |
| 2375 | |
| 2376 | fi |
| 2377 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2378 | cat >> confdefs.h <<EOF |
| 2379 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2380 | EOF |
| 2381 | |
| 2382 | |
| 2383 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2384 | echo "configure:2385: checking size of float" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2385 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2386 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2387 | else |
| 2388 | if test "$cross_compiling" = yes; then |
| 2389 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2390 | else |
| 2391 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2392 | #line 2393 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2393 | #include "confdefs.h" |
| 2394 | #include <stdio.h> |
| 2395 | main() |
| 2396 | { |
| 2397 | FILE *f=fopen("conftestval", "w"); |
| 2398 | if (!f) exit(1); |
| 2399 | fprintf(f, "%d\n", sizeof(float)); |
| 2400 | exit(0); |
| 2401 | } |
| 2402 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2403 | if { (eval echo configure:2404: \"$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] | 2404 | then |
| 2405 | ac_cv_sizeof_float=`cat conftestval` |
| 2406 | else |
| 2407 | echo "configure: failed program was:" >&5 |
| 2408 | cat conftest.$ac_ext >&5 |
| 2409 | rm -fr conftest* |
| 2410 | ac_cv_sizeof_float=0 |
| 2411 | fi |
| 2412 | rm -fr conftest* |
| 2413 | fi |
| 2414 | |
| 2415 | fi |
| 2416 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2417 | cat >> confdefs.h <<EOF |
| 2418 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2419 | EOF |
| 2420 | |
| 2421 | |
| 2422 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2423 | echo "configure:2424: checking size of double" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2424 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2425 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2426 | else |
| 2427 | if test "$cross_compiling" = yes; then |
| 2428 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2429 | else |
| 2430 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2431 | #line 2432 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2432 | #include "confdefs.h" |
| 2433 | #include <stdio.h> |
| 2434 | main() |
| 2435 | { |
| 2436 | FILE *f=fopen("conftestval", "w"); |
| 2437 | if (!f) exit(1); |
| 2438 | fprintf(f, "%d\n", sizeof(double)); |
| 2439 | exit(0); |
| 2440 | } |
| 2441 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2442 | if { (eval echo configure:2443: \"$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] | 2443 | then |
| 2444 | ac_cv_sizeof_double=`cat conftestval` |
| 2445 | else |
| 2446 | echo "configure: failed program was:" >&5 |
| 2447 | cat conftest.$ac_ext >&5 |
| 2448 | rm -fr conftest* |
| 2449 | ac_cv_sizeof_double=0 |
| 2450 | fi |
| 2451 | rm -fr conftest* |
| 2452 | fi |
| 2453 | |
| 2454 | fi |
| 2455 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2456 | cat >> confdefs.h <<EOF |
| 2457 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2458 | EOF |
| 2459 | |
| 2460 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2461 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2462 | echo "configure:2463: checking size of fpos_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2463 | 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] | 2464 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2465 | else |
| 2466 | if test "$cross_compiling" = yes; then |
| 2467 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2468 | else |
| 2469 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2470 | #line 2471 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2471 | #include "confdefs.h" |
| 2472 | #include <stdio.h> |
| 2473 | main() |
| 2474 | { |
| 2475 | FILE *f=fopen("conftestval", "w"); |
| 2476 | if (!f) exit(1); |
| 2477 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2478 | exit(0); |
| 2479 | } |
| 2480 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2481 | if { (eval echo configure:2482: \"$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] | 2482 | then |
| 2483 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2484 | else |
| 2485 | echo "configure: failed program was:" >&5 |
| 2486 | cat conftest.$ac_ext >&5 |
| 2487 | rm -fr conftest* |
| 2488 | ac_cv_sizeof_fpos_t=0 |
| 2489 | fi |
| 2490 | rm -fr conftest* |
| 2491 | fi |
| 2492 | |
| 2493 | fi |
| 2494 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2495 | cat >> confdefs.h <<EOF |
| 2496 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2497 | EOF |
| 2498 | |
| 2499 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2500 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2501 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2502 | echo "configure:2503: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2503 | have_long_long=no |
| 2504 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2505 | #line 2506 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2506 | #include "confdefs.h" |
| 2507 | |
| 2508 | int main() { |
| 2509 | long long x; x = (long long)0; |
| 2510 | ; return 0; } |
| 2511 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2512 | if { (eval echo configure:2513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2513 | rm -rf conftest* |
| 2514 | cat >> confdefs.h <<\EOF |
| 2515 | #define HAVE_LONG_LONG 1 |
| 2516 | EOF |
| 2517 | have_long_long=yes |
| 2518 | else |
| 2519 | echo "configure: failed program was:" >&5 |
| 2520 | cat conftest.$ac_ext >&5 |
| 2521 | fi |
| 2522 | rm -f conftest* |
| 2523 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2524 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2525 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2526 | echo "configure:2527: checking size of long long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2527 | 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] | 2528 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2529 | else |
| 2530 | if test "$cross_compiling" = yes; then |
| 2531 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2532 | else |
| 2533 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2534 | #line 2535 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2535 | #include "confdefs.h" |
| 2536 | #include <stdio.h> |
| 2537 | main() |
| 2538 | { |
| 2539 | FILE *f=fopen("conftestval", "w"); |
| 2540 | if (!f) exit(1); |
| 2541 | fprintf(f, "%d\n", sizeof(long long)); |
| 2542 | exit(0); |
| 2543 | } |
| 2544 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2545 | if { (eval echo configure:2546: \"$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] | 2546 | then |
| 2547 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2548 | else |
| 2549 | echo "configure: failed program was:" >&5 |
| 2550 | cat conftest.$ac_ext >&5 |
| 2551 | rm -fr conftest* |
| 2552 | ac_cv_sizeof_long_long=0 |
| 2553 | fi |
| 2554 | rm -fr conftest* |
| 2555 | fi |
| 2556 | |
| 2557 | fi |
| 2558 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2559 | cat >> confdefs.h <<EOF |
| 2560 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2561 | EOF |
| 2562 | |
| 2563 | |
| 2564 | fi |
| 2565 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2566 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2567 | echo "configure:2568: checking for uintptr_t support" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2568 | have_uintptr_t=no |
| 2569 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2570 | #line 2571 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2571 | #include "confdefs.h" |
| 2572 | |
| 2573 | int main() { |
| 2574 | uintptr_t x; x = (uintptr_t)0; |
| 2575 | ; return 0; } |
| 2576 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2577 | if { (eval echo configure:2578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2578 | rm -rf conftest* |
| 2579 | cat >> confdefs.h <<\EOF |
| 2580 | #define HAVE_UINTPTR_T 1 |
| 2581 | EOF |
| 2582 | have_uintptr_t=yes |
| 2583 | else |
| 2584 | echo "configure: failed program was:" >&5 |
| 2585 | cat conftest.$ac_ext >&5 |
| 2586 | fi |
| 2587 | rm -f conftest* |
| 2588 | echo "$ac_t""$have_uintptr_t" 1>&6 |
| 2589 | if test "$have_uintptr_t" = yes ; then |
| 2590 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2591 | echo "configure:2592: checking size of uintptr_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2592 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2593 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2594 | else |
| 2595 | if test "$cross_compiling" = yes; then |
| 2596 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2597 | else |
| 2598 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2599 | #line 2600 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2600 | #include "confdefs.h" |
| 2601 | #include <stdio.h> |
| 2602 | main() |
| 2603 | { |
| 2604 | FILE *f=fopen("conftestval", "w"); |
| 2605 | if (!f) exit(1); |
| 2606 | fprintf(f, "%d\n", sizeof(uintptr_t)); |
| 2607 | exit(0); |
| 2608 | } |
| 2609 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2610 | if { (eval echo configure:2611: \"$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] | 2611 | then |
| 2612 | ac_cv_sizeof_uintptr_t=`cat conftestval` |
| 2613 | else |
| 2614 | echo "configure: failed program was:" >&5 |
| 2615 | cat conftest.$ac_ext >&5 |
| 2616 | rm -fr conftest* |
| 2617 | ac_cv_sizeof_uintptr_t=0 |
| 2618 | fi |
| 2619 | rm -fr conftest* |
| 2620 | fi |
| 2621 | |
| 2622 | fi |
| 2623 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 |
| 2624 | cat >> confdefs.h <<EOF |
| 2625 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 2626 | EOF |
| 2627 | |
| 2628 | |
| 2629 | fi |
| 2630 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2631 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2632 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2633 | echo "configure:2634: checking size of off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2634 | 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] | 2635 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2636 | else |
| 2637 | if test "$cross_compiling" = yes; then |
| 2638 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2639 | else |
| 2640 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2641 | #line 2642 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2642 | #include "confdefs.h" |
| 2643 | #include <stdio.h> |
| 2644 | #include <sys/types.h> |
| 2645 | main() |
| 2646 | { |
| 2647 | FILE *f=fopen("conftestval", "w"); |
| 2648 | if (!f) exit(1); |
| 2649 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2650 | exit(0); |
| 2651 | } |
| 2652 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2653 | if { (eval echo configure:2654: \"$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] | 2654 | then |
| 2655 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2656 | else |
| 2657 | echo "configure: failed program was:" >&5 |
| 2658 | cat conftest.$ac_ext >&5 |
| 2659 | rm -fr conftest* |
| 2660 | ac_cv_sizeof_off_t=0 |
| 2661 | fi |
| 2662 | rm -fr conftest* |
| 2663 | fi |
| 2664 | |
| 2665 | |
| 2666 | fi |
| 2667 | |
| 2668 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2669 | cat >> confdefs.h <<EOF |
| 2670 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2671 | EOF |
| 2672 | |
| 2673 | |
| 2674 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2675 | echo "configure:2676: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2676 | if test "$have_long_long" = yes -a \ |
| 2677 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2678 | "$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] | 2679 | cat >> confdefs.h <<\EOF |
| 2680 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2681 | EOF |
| 2682 | |
| 2683 | echo "$ac_t""yes" 1>&6 |
| 2684 | else |
| 2685 | echo "$ac_t""no" 1>&6 |
| 2686 | fi |
| 2687 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2688 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2689 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2690 | echo "configure:2691: checking size of time_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2691 | 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] | 2692 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2693 | else |
| 2694 | if test "$cross_compiling" = yes; then |
| 2695 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2696 | else |
| 2697 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2698 | #line 2699 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2699 | #include "confdefs.h" |
| 2700 | #include <stdio.h> |
| 2701 | #include <time.h> |
| 2702 | main() |
| 2703 | { |
| 2704 | FILE *f=fopen("conftestval", "w"); |
| 2705 | if (!f) exit(1); |
| 2706 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2707 | exit(0); |
| 2708 | } |
| 2709 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2710 | if { (eval echo configure:2711: \"$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] | 2711 | then |
| 2712 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2713 | else |
| 2714 | echo "configure: failed program was:" >&5 |
| 2715 | cat conftest.$ac_ext >&5 |
| 2716 | rm -fr conftest* |
| 2717 | ac_cv_sizeof_time_t=0 |
| 2718 | fi |
| 2719 | rm -fr conftest* |
| 2720 | fi |
| 2721 | |
| 2722 | |
| 2723 | fi |
| 2724 | |
| 2725 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2726 | cat >> confdefs.h <<EOF |
| 2727 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2728 | EOF |
| 2729 | |
| 2730 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2731 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2732 | # if have pthread_t then define SIZEOF_PTHREAD_T |
| 2733 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2734 | echo "configure:2735: checking for pthread_t" >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2735 | have_pthread_t=no |
| 2736 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2737 | #line 2738 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2738 | #include "confdefs.h" |
| 2739 | #include <pthread.h> |
| 2740 | int main() { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 2741 | pthread_t x; x = *(pthread_t*)0; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2742 | ; return 0; } |
| 2743 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2744 | if { (eval echo configure:2745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2745 | rm -rf conftest* |
| 2746 | have_pthread_t=yes |
| 2747 | else |
| 2748 | echo "configure: failed program was:" >&5 |
| 2749 | cat conftest.$ac_ext >&5 |
| 2750 | fi |
| 2751 | rm -f conftest* |
| 2752 | echo "$ac_t""$have_pthread_t" 1>&6 |
| 2753 | if test "$have_pthread_t" = yes ; then |
| 2754 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 2755 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2756 | echo "configure:2757: checking size of pthread_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2757 | if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2758 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2759 | else |
| 2760 | if test "$cross_compiling" = yes; then |
| 2761 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2762 | else |
| 2763 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2764 | #line 2765 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2765 | #include "confdefs.h" |
| 2766 | #include <stdio.h> |
| 2767 | #include <pthread.h> |
| 2768 | main() |
| 2769 | { |
| 2770 | FILE *f=fopen("conftestval", "w"); |
| 2771 | if (!f) exit(1); |
| 2772 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 2773 | exit(0); |
| 2774 | } |
| 2775 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2776 | if { (eval echo configure:2777: \"$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] | 2777 | then |
| 2778 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 2779 | else |
| 2780 | echo "configure: failed program was:" >&5 |
| 2781 | cat conftest.$ac_ext >&5 |
| 2782 | rm -fr conftest* |
| 2783 | ac_cv_sizeof_pthread_t=0 |
| 2784 | fi |
| 2785 | rm -fr conftest* |
| 2786 | fi |
| 2787 | |
| 2788 | |
| 2789 | fi |
| 2790 | |
| 2791 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 |
| 2792 | cat >> confdefs.h <<EOF |
| 2793 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| 2794 | EOF |
| 2795 | |
| 2796 | fi |
| 2797 | |
| 2798 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2799 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2800 | |
| 2801 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 2802 | Darwin/*) |
| 2803 | ns_undef_sym='_environ' |
| 2804 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2805 | next/4*) |
| 2806 | ns_undef_sym='__environ' |
| 2807 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2808 | next/5*) |
| 2809 | ns_undef_sym='_environ' |
| 2810 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2811 | esac |
| 2812 | |
| 2813 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2814 | echo "configure:2815: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2815 | if test "$with_next_framework" |
| 2816 | then |
| 2817 | OPT="$OPT -fno-common" |
| 2818 | # -U __environ is needed since bundles don't have access |
| 2819 | # to crt0 when built but will always be linked against it |
| 2820 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2821 | cat >> confdefs.h <<\EOF |
| 2822 | #define WITH_NEXT_FRAMEWORK 1 |
| 2823 | EOF |
| 2824 | |
| 2825 | echo "$ac_t""yes" 1>&6 |
| 2826 | else |
| 2827 | echo "$ac_t""no" 1>&6 |
| 2828 | fi |
| 2829 | |
| 2830 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2831 | echo "configure:2832: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2832 | if test "$with_next_framework" -o "$with_dyld" |
| 2833 | then |
| 2834 | if test "$with_dyld" |
| 2835 | then |
| 2836 | echo "$ac_t""yes" 1>&6 |
| 2837 | else |
| 2838 | echo "$ac_t""required for framework build" 1>&6 |
| 2839 | fi |
| 2840 | cat >> confdefs.h <<\EOF |
| 2841 | #define WITH_DYLD 1 |
| 2842 | EOF |
| 2843 | |
| 2844 | ns_dyld='set' |
| 2845 | else |
| 2846 | echo "$ac_t""no" 1>&6 |
| 2847 | fi |
| 2848 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2849 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2850 | |
| 2851 | |
| 2852 | |
| 2853 | |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2854 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2855 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2856 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2857 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2858 | echo "configure:2859: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2859 | if test -z "$SO" |
| 2860 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2861 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2862 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2863 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2864 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2865 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2866 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2867 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2868 | # LDSHARED is the ld *command* used to create shared library |
| 2869 | # -- "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] | 2870 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2871 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2872 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2873 | echo "configure:2874: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2874 | if test -z "$LDSHARED" |
| 2875 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2876 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2877 | AIX*) |
| 2878 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
| 2879 | LDSHARED="\$(BINLIBDEST)/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/python.exp" |
| 2880 | ;; |
| 2881 | BeOS*) |
| 2882 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
| 2883 | LDSHARED="\$(BINLIBDEST)/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
| 2884 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2885 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2886 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2887 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2888 | SunOS/5*) |
| 2889 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 2890 | then LDSHARED='$(CC) -shared' |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2891 | else LDSHARED="ld -G"; |
| 2892 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2893 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2894 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2895 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2896 | Darwin/*|next/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2897 | if test "$ns_dyld" |
Guido van Rossum | acb14c7 | 2001-01-10 21:41:16 +0000 | [diff] [blame] | 2898 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2899 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2900 | fi |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2901 | if test "$with_next_framework" ; then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2902 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2903 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2904 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2905 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2906 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2907 | OpenBSD*) LDSHARED="ld -Bshareable";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2908 | NetBSD*) |
| 2909 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2910 | then |
| 2911 | LDSHARED="cc -shared" |
| 2912 | else |
| 2913 | LDSHARED="ld -Bshareable" |
| 2914 | fi;; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2915 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 2916 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2917 | then |
| 2918 | LDSHARED="cc -shared ${LDFLAGS}" |
| 2919 | else |
| 2920 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 2921 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2922 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2923 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2924 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2925 | *) LDSHARED="ld";; |
| 2926 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2927 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2928 | echo "$ac_t""$LDSHARED" 1>&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2929 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2930 | # 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] | 2931 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2932 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2933 | echo "configure:2934: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2934 | if test -z "$CCSHARED" |
| 2935 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2936 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 2937 | SunOS*) if test "$GCC" = yes; |
| 2938 | then CCSHARED="-fPIC"; |
| 2939 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2940 | hp*|HP*) if test "$GCC" = yes; |
| 2941 | then CCSHARED="-fpic"; |
| 2942 | else CCSHARED="+z"; |
| 2943 | fi;; |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2944 | Linux*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2945 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2946 | OpenBSD*) CCSHARED="-fpic";; |
| 2947 | FreeBSD*|NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2948 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2949 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2950 | IRIX*/6*) case $CC in |
| 2951 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2952 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2953 | esac;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2954 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2955 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2956 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2957 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2958 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2959 | # the python executable -- this is only needed for a few systems |
| 2960 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2961 | echo "configure:2962: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2962 | if test -z "$LINKFORSHARED" |
| 2963 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2964 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2965 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2966 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2967 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2968 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2969 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2970 | # -u libsys_s pulls in all symbols in libsys |
| 2971 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2972 | # -u __dummy makes the linker aware of the objc runtime |
| 2973 | # in System.framework; otherwise, __objcInit (referenced in |
| 2974 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2975 | # loading of any modules which reference it in System.framework |
| 2976 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | acb14c7 | 2001-01-10 21:41:16 +0000 | [diff] [blame] | 2977 | Darwin/*) LINKFORSHARED="-u __dummy -framework System -framework Foundation" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2978 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 2979 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2980 | FreeBSD*|NetBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2981 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2982 | then |
| 2983 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2984 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2985 | SunOS/5*) case $CC in |
| 2986 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 2987 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2988 | then |
| 2989 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2990 | fi;; |
| 2991 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2992 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2993 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2994 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2995 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2996 | |
| 2997 | echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 2998 | echo "configure:2999: checking CFLAGSFORSHARED" >&5 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2999 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 3000 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 3001 | case $ac_sys_system in |
| 3002 | CYGWIN*) |
| 3003 | # Cygwin needs CCSHARED when building extension DLLs |
| 3004 | # but not when building the interpreter DLL. |
| 3005 | CFLAGSFORSHARED='';; |
| 3006 | *) |
| 3007 | CFLAGSFORSHARED='$(CCSHARED)' |
| 3008 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3009 | fi |
| 3010 | echo "$ac_t""$CFLAGSFORSHARED" 1>&6 |
| 3011 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3012 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3013 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3014 | echo "configure:3015: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3015 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3016 | 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] | 3017 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3018 | else |
| 3019 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3020 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3021 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3022 | #line 3023 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3023 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3024 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3025 | /* We use char because int might match the return type of a gcc2 |
| 3026 | builtin and then its argument prototype would still apply. */ |
| 3027 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3028 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3029 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3030 | dlopen() |
| 3031 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3032 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3033 | if { (eval echo configure:3034: \"$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] | 3034 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3035 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3036 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3037 | echo "configure: failed program was:" >&5 |
| 3038 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3039 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3040 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3041 | fi |
| 3042 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3043 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3044 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3045 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3046 | 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] | 3047 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3048 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3049 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3050 | cat >> confdefs.h <<EOF |
| 3051 | #define $ac_tr_lib 1 |
| 3052 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3053 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3054 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3055 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3056 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3057 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3058 | fi |
| 3059 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3060 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3061 | echo "configure:3062: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3062 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3063 | 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] | 3064 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3065 | else |
| 3066 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3067 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3068 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3069 | #line 3070 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3070 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3071 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3072 | /* We use char because int might match the return type of a gcc2 |
| 3073 | builtin and then its argument prototype would still apply. */ |
| 3074 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3075 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3076 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3077 | shl_load() |
| 3078 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3079 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3080 | if { (eval echo configure:3081: \"$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] | 3081 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3082 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3083 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3084 | echo "configure: failed program was:" >&5 |
| 3085 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3086 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3087 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3088 | fi |
| 3089 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3090 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3091 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3092 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3093 | 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] | 3094 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3095 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3096 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3097 | cat >> confdefs.h <<EOF |
| 3098 | #define $ac_tr_lib 1 |
| 3099 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3100 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3101 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3102 | |
| 3103 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3104 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3105 | fi |
| 3106 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3107 | |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3108 | # Check for --with-pydebug |
| 3109 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3110 | echo "configure:3111: checking for --with-pydebug" >&5 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3111 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3112 | if test "${with_pydebug+set}" = set; then |
| 3113 | withval="$with_pydebug" |
| 3114 | |
| 3115 | if test "$withval" != no |
| 3116 | then cat >> confdefs.h <<\EOF |
| 3117 | #define Py_DEBUG 1 |
| 3118 | EOF |
| 3119 | echo "$ac_t""yes" 1>&6 |
| 3120 | else echo "$ac_t""no" 1>&6 |
| 3121 | fi |
| 3122 | else |
| 3123 | echo "$ac_t""no" 1>&6 |
| 3124 | fi |
| 3125 | |
| 3126 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3127 | # checks for system dependent C++ extensions support |
| 3128 | case "$ac_sys_system" in |
| 3129 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3130 | echo "configure:3131: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3131 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3132 | #line 3133 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3133 | #include "confdefs.h" |
| 3134 | #include "/usr/lpp/xlC/include/load.h" |
| 3135 | int main() { |
| 3136 | loadAndInit("", 0, "") |
| 3137 | ; return 0; } |
| 3138 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3139 | if { (eval echo configure:3140: \"$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] | 3140 | rm -rf conftest* |
| 3141 | cat >> confdefs.h <<\EOF |
| 3142 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 3143 | EOF |
| 3144 | |
| 3145 | echo "$ac_t""yes" 1>&6 |
| 3146 | else |
| 3147 | echo "configure: failed program was:" >&5 |
| 3148 | cat conftest.$ac_ext >&5 |
| 3149 | rm -rf conftest* |
| 3150 | echo "$ac_t""no" 1>&6 |
| 3151 | fi |
| 3152 | rm -f conftest*;; |
| 3153 | *) ;; |
| 3154 | esac |
| 3155 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3156 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 3157 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3158 | # BeOS' sockets are stashed in libnet. |
| 3159 | case "$ac_sys_system" in |
| 3160 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3161 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3162 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3163 | echo "configure:3164: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3164 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3165 | 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] | 3166 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3167 | else |
| 3168 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3169 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3170 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3171 | #line 3172 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3172 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3173 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3174 | /* We use char because int might match the return type of a gcc2 |
| 3175 | builtin and then its argument prototype would still apply. */ |
| 3176 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3177 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3178 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3179 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3180 | ; return 0; } |
| 3181 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3182 | if { (eval echo configure:3183: \"$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] | 3183 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3184 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3185 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3186 | echo "configure: failed program was:" >&5 |
| 3187 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3188 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3189 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3190 | fi |
| 3191 | rm -f conftest* |
| 3192 | LIBS="$ac_save_LIBS" |
| 3193 | |
| 3194 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3195 | 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] | 3196 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3197 | LIBS="-lnsl $LIBS" |
| 3198 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3199 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3200 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3201 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3202 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3203 | echo "configure:3204: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3204 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3205 | 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] | 3206 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3207 | else |
| 3208 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3209 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3210 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3211 | #line 3212 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3212 | #include "confdefs.h" |
| 3213 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3214 | /* We use char because int might match the return type of a gcc2 |
| 3215 | builtin and then its argument prototype would still apply. */ |
| 3216 | char socket(); |
| 3217 | |
| 3218 | int main() { |
| 3219 | socket() |
| 3220 | ; return 0; } |
| 3221 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3222 | if { (eval echo configure:3223: \"$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] | 3223 | rm -rf conftest* |
| 3224 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3225 | else |
| 3226 | echo "configure: failed program was:" >&5 |
| 3227 | cat conftest.$ac_ext >&5 |
| 3228 | rm -rf conftest* |
| 3229 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3230 | fi |
| 3231 | rm -f conftest* |
| 3232 | LIBS="$ac_save_LIBS" |
| 3233 | |
| 3234 | fi |
| 3235 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3236 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3237 | LIBS="-lsocket $LIBS" |
| 3238 | else |
| 3239 | echo "$ac_t""no" 1>&6 |
| 3240 | fi |
| 3241 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3242 | ;; |
| 3243 | esac |
| 3244 | case "$ac_sys_system" in |
| 3245 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3246 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3247 | echo "configure:3248: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3248 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3249 | 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] | 3250 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3251 | else |
| 3252 | ac_save_LIBS="$LIBS" |
| 3253 | LIBS="-lnet $LIBS $LIBS" |
| 3254 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3255 | #line 3256 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3256 | #include "confdefs.h" |
| 3257 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3258 | /* We use char because int might match the return type of a gcc2 |
| 3259 | builtin and then its argument prototype would still apply. */ |
| 3260 | char socket(); |
| 3261 | |
| 3262 | int main() { |
| 3263 | socket() |
| 3264 | ; return 0; } |
| 3265 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3266 | if { (eval echo configure:3267: \"$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] | 3267 | rm -rf conftest* |
| 3268 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3269 | else |
| 3270 | echo "configure: failed program was:" >&5 |
| 3271 | cat conftest.$ac_ext >&5 |
| 3272 | rm -rf conftest* |
| 3273 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3274 | fi |
| 3275 | rm -f conftest* |
| 3276 | LIBS="$ac_save_LIBS" |
| 3277 | |
| 3278 | fi |
| 3279 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3280 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3281 | LIBS="-lnet $LIBS" |
| 3282 | else |
| 3283 | echo "$ac_t""no" 1>&6 |
| 3284 | fi |
| 3285 | # BeOS |
| 3286 | ;; |
| 3287 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3288 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3289 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3290 | echo "configure:3291: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3291 | # Check whether --with-libs or --without-libs was given. |
| 3292 | if test "${with_libs+set}" = set; then |
| 3293 | withval="$with_libs" |
| 3294 | |
| 3295 | echo "$ac_t""$withval" 1>&6 |
| 3296 | LIBS="$withval $LIBS" |
| 3297 | |
| 3298 | else |
| 3299 | echo "$ac_t""no" 1>&6 |
| 3300 | fi |
| 3301 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3302 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3303 | # Determine if signalmodule should be used. |
| 3304 | |
| 3305 | |
| 3306 | echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3307 | echo "configure:3308: checking for --with-signal-module" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3308 | # Check whether --with-signal-module or --without-signal-module was given. |
| 3309 | if test "${with_signal_module+set}" = set; then |
| 3310 | withval="$with_signal_module" |
| 3311 | : |
| 3312 | fi |
| 3313 | |
| 3314 | |
| 3315 | if test -z "$with_signal_module" |
| 3316 | then with_signal_module="yes" |
| 3317 | fi |
| 3318 | echo "$ac_t""$with_signal_module" 1>&6 |
| 3319 | |
| 3320 | if test "${with_signal_module}" = "yes"; then |
| 3321 | USE_SIGNAL_MODULE="" |
| 3322 | SIGNAL_OBJS="" |
| 3323 | else |
| 3324 | USE_SIGNAL_MODULE="#" |
| 3325 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 3326 | fi |
| 3327 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3328 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3329 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3330 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3331 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3332 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3333 | echo "configure:3334: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3334 | |
| 3335 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 3336 | if test "${with_dec_threads+set}" = set; then |
| 3337 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3338 | |
| 3339 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3340 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3341 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3342 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3343 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3344 | else |
| 3345 | echo "$ac_t""no" 1>&6 |
| 3346 | fi |
| 3347 | |
| 3348 | |
| 3349 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3350 | echo "configure:3351: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3351 | # Check whether --with-threads or --without-threads was given. |
| 3352 | if test "${with_threads+set}" = set; then |
| 3353 | withval="$with_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3354 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3355 | fi |
| 3356 | |
| 3357 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3358 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3359 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3360 | if test "${with_thread+set}" = set; then |
| 3361 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3362 | |
| 3363 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3364 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3365 | |
| 3366 | |
| 3367 | if test -z "$with_threads" |
| 3368 | then with_threads="yes" |
| 3369 | fi |
| 3370 | echo "$ac_t""$with_threads" 1>&6 |
| 3371 | |
| 3372 | if test "$with_threads" = "no" |
| 3373 | then |
| 3374 | USE_THREAD_MODULE="#" |
| 3375 | else |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 3376 | if test ! -z "$with_threads" -a -d "$with_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3377 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 3378 | fi |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 3379 | if test ! -z "$withval" -a -d "$withval" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3380 | then LDFLAGS="$LDFLAGS -L$withval" |
| 3381 | fi |
| 3382 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3383 | #define _REENTRANT 1 |
| 3384 | EOF |
| 3385 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3386 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3387 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3388 | echo "configure:3389: checking for mach/cthreads.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3389 | 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] | 3390 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3391 | else |
| 3392 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3393 | #line 3394 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3394 | #include "confdefs.h" |
| 3395 | #include <mach/cthreads.h> |
| 3396 | EOF |
| 3397 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3398 | { (eval echo configure:3399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3399 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3400 | if test -z "$ac_err"; then |
| 3401 | rm -rf conftest* |
| 3402 | eval "ac_cv_header_$ac_safe=yes" |
| 3403 | else |
| 3404 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3405 | echo "configure: failed program was:" >&5 |
| 3406 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3407 | rm -rf conftest* |
| 3408 | eval "ac_cv_header_$ac_safe=no" |
| 3409 | fi |
| 3410 | rm -f conftest* |
| 3411 | fi |
| 3412 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3413 | echo "$ac_t""yes" 1>&6 |
| 3414 | cat >> confdefs.h <<\EOF |
| 3415 | #define WITH_THREAD 1 |
| 3416 | EOF |
| 3417 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3418 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3419 | #define C_THREADS 1 |
| 3420 | EOF |
| 3421 | |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 3422 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3423 | else |
| 3424 | echo "$ac_t""no" 1>&6 |
| 3425 | |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3426 | echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3427 | echo "configure:3428: checking for --with-pth" >&5 |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3428 | # Check whether --with-pth or --without-pth was given. |
| 3429 | if test "${with_pth+set}" = set; then |
| 3430 | withval="$with_pth" |
| 3431 | |
| 3432 | echo "$ac_t""$withval" 1>&6 |
| 3433 | cat >> confdefs.h <<\EOF |
| 3434 | #define WITH_THREAD 1 |
| 3435 | EOF |
| 3436 | |
| 3437 | cat >> confdefs.h <<\EOF |
| 3438 | #define HAVE_PTH 1 |
| 3439 | EOF |
| 3440 | |
| 3441 | LIBS="-lpth $LIBS" |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 3442 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3443 | else |
| 3444 | |
| 3445 | echo "$ac_t""no" 1>&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3446 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3447 | echo "configure:3448: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3448 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3449 | 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] | 3450 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3451 | else |
| 3452 | ac_save_LIBS="$LIBS" |
| 3453 | LIBS="-lpthread $LIBS" |
| 3454 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3455 | #line 3456 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3456 | #include "confdefs.h" |
| 3457 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3458 | /* We use char because int might match the return type of a gcc2 |
| 3459 | builtin and then its argument prototype would still apply. */ |
| 3460 | char pthread_create(); |
| 3461 | |
| 3462 | int main() { |
| 3463 | pthread_create() |
| 3464 | ; return 0; } |
| 3465 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3466 | if { (eval echo configure:3467: \"$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] | 3467 | rm -rf conftest* |
| 3468 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3469 | else |
| 3470 | echo "configure: failed program was:" >&5 |
| 3471 | cat conftest.$ac_ext >&5 |
| 3472 | rm -rf conftest* |
| 3473 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3474 | fi |
| 3475 | rm -f conftest* |
| 3476 | LIBS="$ac_save_LIBS" |
| 3477 | |
| 3478 | fi |
| 3479 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3480 | echo "$ac_t""yes" 1>&6 |
| 3481 | cat >> confdefs.h <<\EOF |
| 3482 | #define WITH_THREAD 1 |
| 3483 | EOF |
| 3484 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3485 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3486 | #define _POSIX_THREADS 1 |
| 3487 | EOF |
| 3488 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3489 | LIBS="-lpthread $LIBS" |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 3490 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3491 | else |
| 3492 | echo "$ac_t""no" 1>&6 |
| 3493 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3494 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3495 | echo "configure:3496: checking for pthread_detach" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3496 | 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] | 3497 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3498 | else |
| 3499 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3500 | #line 3501 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3501 | #include "confdefs.h" |
| 3502 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3503 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3504 | #include <assert.h> |
| 3505 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3506 | /* We use char because int might match the return type of a gcc2 |
| 3507 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3508 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3509 | |
| 3510 | int main() { |
| 3511 | |
| 3512 | /* The GNU C library defines this for functions which it implements |
| 3513 | to always fail with ENOSYS. Some functions are actually named |
| 3514 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3515 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3516 | choke me |
| 3517 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3518 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3519 | #endif |
| 3520 | |
| 3521 | ; return 0; } |
| 3522 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3523 | if { (eval echo configure:3524: \"$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] | 3524 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3525 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3526 | else |
| 3527 | echo "configure: failed program was:" >&5 |
| 3528 | cat conftest.$ac_ext >&5 |
| 3529 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3530 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3531 | fi |
| 3532 | rm -f conftest* |
| 3533 | fi |
| 3534 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3535 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3536 | echo "$ac_t""yes" 1>&6 |
| 3537 | cat >> confdefs.h <<\EOF |
| 3538 | #define WITH_THREAD 1 |
| 3539 | EOF |
| 3540 | |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3541 | case $ac_sys_system in |
| 3542 | Darwin*) ;; |
| 3543 | *) cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3544 | #define _POSIX_THREADS 1 |
| 3545 | EOF |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3546 | ;; |
| 3547 | esac |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 3548 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3549 | else |
| 3550 | echo "$ac_t""no" 1>&6 |
| 3551 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3552 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3553 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3554 | echo "configure:3555: checking for kernel/OS.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3555 | 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] | 3556 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3557 | else |
| 3558 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3559 | #line 3560 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3560 | #include "confdefs.h" |
| 3561 | #include <kernel/OS.h> |
| 3562 | EOF |
| 3563 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3564 | { (eval echo configure:3565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3565 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3566 | if test -z "$ac_err"; then |
| 3567 | rm -rf conftest* |
| 3568 | eval "ac_cv_header_$ac_safe=yes" |
| 3569 | else |
| 3570 | echo "$ac_err" >&5 |
| 3571 | echo "configure: failed program was:" >&5 |
| 3572 | cat conftest.$ac_ext >&5 |
| 3573 | rm -rf conftest* |
| 3574 | eval "ac_cv_header_$ac_safe=no" |
| 3575 | fi |
| 3576 | rm -f conftest* |
| 3577 | fi |
| 3578 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3579 | echo "$ac_t""yes" 1>&6 |
| 3580 | cat >> confdefs.h <<\EOF |
| 3581 | #define WITH_THREAD 1 |
| 3582 | EOF |
| 3583 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3584 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3585 | #define BEOS_THREADS 1 |
| 3586 | EOF |
| 3587 | |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 3588 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3589 | else |
| 3590 | echo "$ac_t""no" 1>&6 |
| 3591 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3592 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3593 | echo "configure:3594: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3594 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3595 | 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] | 3596 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3597 | else |
| 3598 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3599 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3600 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3601 | #line 3602 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3602 | #include "confdefs.h" |
| 3603 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3604 | /* We use char because int might match the return type of a gcc2 |
| 3605 | builtin and then its argument prototype would still apply. */ |
| 3606 | char pthread_create(); |
| 3607 | |
| 3608 | int main() { |
| 3609 | pthread_create() |
| 3610 | ; return 0; } |
| 3611 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3612 | if { (eval echo configure:3613: \"$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] | 3613 | rm -rf conftest* |
| 3614 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3615 | else |
| 3616 | echo "configure: failed program was:" >&5 |
| 3617 | cat conftest.$ac_ext >&5 |
| 3618 | rm -rf conftest* |
| 3619 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3620 | fi |
| 3621 | rm -f conftest* |
| 3622 | LIBS="$ac_save_LIBS" |
| 3623 | |
| 3624 | fi |
| 3625 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3626 | echo "$ac_t""yes" 1>&6 |
| 3627 | cat >> confdefs.h <<\EOF |
| 3628 | #define WITH_THREAD 1 |
| 3629 | EOF |
| 3630 | |
| 3631 | cat >> confdefs.h <<\EOF |
| 3632 | #define _POSIX_THREADS 1 |
| 3633 | EOF |
| 3634 | |
| 3635 | LIBS="$LIBS -lpthreads" |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 3636 | LIBOBJS="$LIBOBJS thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3637 | else |
| 3638 | echo "$ac_t""no" 1>&6 |
| 3639 | |
| 3640 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3641 | echo "configure:3642: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3642 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3643 | 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] | 3644 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3645 | else |
| 3646 | ac_save_LIBS="$LIBS" |
| 3647 | LIBS="-lc_r $LIBS" |
| 3648 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3649 | #line 3650 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3650 | #include "confdefs.h" |
| 3651 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3652 | /* We use char because int might match the return type of a gcc2 |
| 3653 | builtin and then its argument prototype would still apply. */ |
| 3654 | char pthread_create(); |
| 3655 | |
| 3656 | int main() { |
| 3657 | pthread_create() |
| 3658 | ; return 0; } |
| 3659 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3660 | if { (eval echo configure:3661: \"$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] | 3661 | rm -rf conftest* |
| 3662 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3663 | else |
| 3664 | echo "configure: failed program was:" >&5 |
| 3665 | cat conftest.$ac_ext >&5 |
| 3666 | rm -rf conftest* |
| 3667 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3668 | fi |
| 3669 | rm -f conftest* |
| 3670 | LIBS="$ac_save_LIBS" |
| 3671 | |
| 3672 | fi |
| 3673 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3674 | echo "$ac_t""yes" 1>&6 |
| 3675 | cat >> confdefs.h <<\EOF |
| 3676 | #define WITH_THREAD 1 |
| 3677 | EOF |
| 3678 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3679 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3680 | #define _POSIX_THREADS 1 |
| 3681 | EOF |
| 3682 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3683 | LIBS="$LIBS -lc_r" |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 3684 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3685 | else |
| 3686 | echo "$ac_t""no" 1>&6 |
| 3687 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3688 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3689 | echo "configure:3690: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3690 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3691 | 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] | 3692 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3693 | else |
| 3694 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3695 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3696 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3697 | #line 3698 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3698 | #include "confdefs.h" |
| 3699 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3700 | /* We use char because int might match the return type of a gcc2 |
| 3701 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3702 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3703 | |
| 3704 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3705 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3706 | ; return 0; } |
| 3707 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3708 | if { (eval echo configure:3709: \"$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] | 3709 | rm -rf conftest* |
| 3710 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3711 | else |
| 3712 | echo "configure: failed program was:" >&5 |
| 3713 | cat conftest.$ac_ext >&5 |
| 3714 | rm -rf conftest* |
| 3715 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3716 | fi |
| 3717 | rm -f conftest* |
| 3718 | LIBS="$ac_save_LIBS" |
| 3719 | |
| 3720 | fi |
| 3721 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3722 | echo "$ac_t""yes" 1>&6 |
| 3723 | cat >> confdefs.h <<\EOF |
| 3724 | #define WITH_THREAD 1 |
| 3725 | EOF |
| 3726 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3727 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3728 | #define _POSIX_THREADS 1 |
| 3729 | EOF |
| 3730 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3731 | LIBS="$LIBS -lthread" |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 3732 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3733 | else |
| 3734 | echo "$ac_t""no" 1>&6 |
| 3735 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3736 | echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3737 | echo "configure:3738: checking for __pthread_create_system in -lpthread" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3738 | ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` |
| 3739 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3740 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3741 | else |
| 3742 | ac_save_LIBS="$LIBS" |
| 3743 | LIBS="-lpthread $LIBS" |
| 3744 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3745 | #line 3746 "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3746 | #include "confdefs.h" |
| 3747 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3748 | /* We use char because int might match the return type of a gcc2 |
| 3749 | builtin and then its argument prototype would still apply. */ |
| 3750 | char __pthread_create_system(); |
| 3751 | |
| 3752 | int main() { |
| 3753 | __pthread_create_system() |
| 3754 | ; return 0; } |
| 3755 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3756 | if { (eval echo configure:3757: \"$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] | 3757 | rm -rf conftest* |
| 3758 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3759 | else |
| 3760 | echo "configure: failed program was:" >&5 |
| 3761 | cat conftest.$ac_ext >&5 |
| 3762 | rm -rf conftest* |
| 3763 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3764 | fi |
| 3765 | rm -f conftest* |
| 3766 | LIBS="$ac_save_LIBS" |
| 3767 | |
| 3768 | fi |
| 3769 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3770 | echo "$ac_t""yes" 1>&6 |
| 3771 | cat >> confdefs.h <<\EOF |
| 3772 | #define WITH_THREAD 1 |
| 3773 | EOF |
| 3774 | |
| 3775 | cat >> confdefs.h <<\EOF |
| 3776 | #define _POSIX_THREADS 1 |
| 3777 | EOF |
| 3778 | |
| 3779 | LIBS="$LIBS -lpthread" |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 3780 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3781 | else |
| 3782 | echo "$ac_t""no" 1>&6 |
| 3783 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3784 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3785 | echo "configure:3786: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3786 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3787 | 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] | 3788 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3789 | else |
| 3790 | ac_save_LIBS="$LIBS" |
| 3791 | LIBS="-lcma $LIBS" |
| 3792 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3793 | #line 3794 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3794 | #include "confdefs.h" |
| 3795 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3796 | /* We use char because int might match the return type of a gcc2 |
| 3797 | builtin and then its argument prototype would still apply. */ |
| 3798 | char pthread_create(); |
| 3799 | |
| 3800 | int main() { |
| 3801 | pthread_create() |
| 3802 | ; return 0; } |
| 3803 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3804 | if { (eval echo configure:3805: \"$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] | 3805 | rm -rf conftest* |
| 3806 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3807 | else |
| 3808 | echo "configure: failed program was:" >&5 |
| 3809 | cat conftest.$ac_ext >&5 |
| 3810 | rm -rf conftest* |
| 3811 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3812 | fi |
| 3813 | rm -f conftest* |
| 3814 | LIBS="$ac_save_LIBS" |
| 3815 | |
| 3816 | fi |
| 3817 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3818 | echo "$ac_t""yes" 1>&6 |
| 3819 | cat >> confdefs.h <<\EOF |
| 3820 | #define WITH_THREAD 1 |
| 3821 | EOF |
| 3822 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3823 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3824 | #define _POSIX_THREADS 1 |
| 3825 | EOF |
| 3826 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3827 | LIBS="$LIBS -lcma" |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 3828 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3829 | else |
| 3830 | echo "$ac_t""no" 1>&6 |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3831 | |
| 3832 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3833 | fi |
| 3834 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3835 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3836 | fi |
| 3837 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3838 | fi |
| 3839 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3840 | fi |
| 3841 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3842 | fi |
| 3843 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3844 | fi |
| 3845 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3846 | fi |
| 3847 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3848 | fi |
| 3849 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3850 | fi |
| 3851 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3852 | fi |
| 3853 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3854 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3855 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3856 | echo "configure:3857: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3857 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3858 | 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] | 3859 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3860 | else |
| 3861 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3862 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3863 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3864 | #line 3865 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3865 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3866 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3867 | /* We use char because int might match the return type of a gcc2 |
| 3868 | builtin and then its argument prototype would still apply. */ |
| 3869 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3870 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3871 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3872 | usconfig() |
| 3873 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3874 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3875 | if { (eval echo configure:3876: \"$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] | 3876 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3877 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3878 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3879 | echo "configure: failed program was:" >&5 |
| 3880 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3881 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3882 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3883 | fi |
| 3884 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3885 | LIBS="$ac_save_LIBS" |
| 3886 | |
| 3887 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3888 | 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] | 3889 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3890 | cat >> confdefs.h <<\EOF |
| 3891 | #define WITH_THREAD 1 |
| 3892 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3893 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3894 | LIBS="$LIBS -lmpc" |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 3895 | LIBOBJS="$LIBOBJS thread.o" |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3896 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3897 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3898 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3899 | fi |
| 3900 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3901 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3902 | echo "configure:3903: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3903 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3904 | 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] | 3905 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3906 | else |
| 3907 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3908 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3909 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3910 | #line 3911 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3911 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3912 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3913 | /* We use char because int might match the return type of a gcc2 |
| 3914 | builtin and then its argument prototype would still apply. */ |
| 3915 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3916 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3917 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3918 | thr_create() |
| 3919 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3920 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3921 | if { (eval echo configure:3922: \"$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] | 3922 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3923 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3924 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3925 | echo "configure: failed program was:" >&5 |
| 3926 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3927 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3928 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3929 | fi |
| 3930 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3931 | LIBS="$ac_save_LIBS" |
| 3932 | |
| 3933 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3934 | 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] | 3935 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3936 | cat >> confdefs.h <<\EOF |
| 3937 | #define WITH_THREAD 1 |
| 3938 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3939 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3940 | LIBS="$LIBS -lthread" |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 3941 | LIBOBJS="$LIBOBJS thread.o" |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3942 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3943 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3944 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3945 | fi |
| 3946 | |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 3947 | |
| 3948 | if test "$USE_THREAD_MODULE" != "#" |
| 3949 | then |
| 3950 | # If the above checks didn't disable threads, (at least) OSF1 |
| 3951 | # needs this '-threads' argument during linking. |
| 3952 | case $ac_sys_system in |
| 3953 | OSF1) LDLAST=-threads;; |
| 3954 | esac |
| 3955 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3956 | fi |
| 3957 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3958 | # Check for GC support |
| 3959 | |
| 3960 | USE_GC_MODULE="" |
| 3961 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3962 | echo "configure:3963: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3963 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 3964 | if test "${with_cycle_gc+set}" = set; then |
| 3965 | withval="$with_cycle_gc" |
| 3966 | : |
| 3967 | fi |
| 3968 | |
| 3969 | |
| 3970 | if test -z "$with_cycle_gc" |
| 3971 | then with_cycle_gc="yes" |
| 3972 | fi |
| 3973 | if test "$with_cycle_gc" = "no" |
| 3974 | then |
| 3975 | USE_GC_MODULE="#" |
| 3976 | else |
| 3977 | cat >> confdefs.h <<\EOF |
| 3978 | #define WITH_CYCLE_GC 1 |
| 3979 | EOF |
| 3980 | |
| 3981 | fi |
| 3982 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 3983 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 3984 | # Check for Python-specific malloc support |
| 3985 | echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6 |
| 3986 | echo "configure:3987: checking for --with-pymalloc" >&5 |
| 3987 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 3988 | if test "${with_pymalloc+set}" = set; then |
| 3989 | withval="$with_pymalloc" |
| 3990 | |
| 3991 | if test "$withval" != no |
| 3992 | then cat >> confdefs.h <<\EOF |
| 3993 | #define WITH_PYMALLOC 1 |
| 3994 | EOF |
| 3995 | echo "$ac_t""yes" 1>&6 |
| 3996 | else echo "$ac_t""no" 1>&6 |
| 3997 | fi |
| 3998 | else |
| 3999 | echo "$ac_t""no" 1>&6 |
| 4000 | fi |
| 4001 | |
| 4002 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4003 | # Check for --with-wctype-functions |
| 4004 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4005 | echo "configure:4006: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4006 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 4007 | if test "${with_wctype_functions+set}" = set; then |
| 4008 | withval="$with_wctype_functions" |
| 4009 | |
| 4010 | if test "$withval" != no |
| 4011 | then cat >> confdefs.h <<\EOF |
| 4012 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 4013 | EOF |
| 4014 | echo "$ac_t""yes" 1>&6 |
| 4015 | else echo "$ac_t""no" 1>&6 |
| 4016 | fi |
| 4017 | else |
| 4018 | echo "$ac_t""no" 1>&6 |
| 4019 | fi |
| 4020 | |
| 4021 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4022 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4023 | |
| 4024 | DLINCLDIR=/ |
| 4025 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4026 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4027 | echo "configure:4028: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4028 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4029 | if test "${with_sgi_dl+set}" = set; then |
| 4030 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4031 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4032 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4033 | cat >> confdefs.h <<\EOF |
| 4034 | #define WITH_SGI_DL 1 |
| 4035 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4036 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4037 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4038 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 4039 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4040 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4041 | 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] | 4042 | fi |
| 4043 | DLINCLDIR=${dldir} |
| 4044 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4045 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4046 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4047 | fi |
| 4048 | |
| 4049 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4050 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4051 | echo "configure:4052: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4052 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4053 | if test "${with_dl_dld+set}" = set; then |
| 4054 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4055 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4056 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4057 | cat >> confdefs.h <<\EOF |
| 4058 | #define WITH_DL_DLD 1 |
| 4059 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4060 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4061 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4062 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 4063 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 4064 | 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] | 4065 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4066 | 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] | 4067 | fi |
| 4068 | DLINCLDIR=${dldir} |
| 4069 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4070 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4071 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4072 | fi |
| 4073 | |
| 4074 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4075 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 4076 | # 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] | 4077 | for ac_func in dlopen |
| 4078 | do |
| 4079 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4080 | echo "configure:4081: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4081 | 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] | 4082 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4083 | else |
| 4084 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4085 | #line 4086 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4086 | #include "confdefs.h" |
| 4087 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4088 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4089 | #include <assert.h> |
| 4090 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4091 | /* We use char because int might match the return type of a gcc2 |
| 4092 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4093 | char $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4094 | |
| 4095 | int main() { |
| 4096 | |
| 4097 | /* The GNU C library defines this for functions which it implements |
| 4098 | to always fail with ENOSYS. Some functions are actually named |
| 4099 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4100 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4101 | choke me |
| 4102 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4103 | $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4104 | #endif |
| 4105 | |
| 4106 | ; return 0; } |
| 4107 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4108 | if { (eval echo configure:4109: \"$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] | 4109 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4110 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4111 | else |
| 4112 | echo "configure: failed program was:" >&5 |
| 4113 | cat conftest.$ac_ext >&5 |
| 4114 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4115 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4116 | fi |
| 4117 | rm -f conftest* |
| 4118 | fi |
| 4119 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4120 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4121 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4122 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4123 | cat >> confdefs.h <<EOF |
| 4124 | #define $ac_tr_func 1 |
| 4125 | EOF |
| 4126 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4127 | else |
| 4128 | echo "$ac_t""no" 1>&6 |
| 4129 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4130 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4131 | |
| 4132 | |
| 4133 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 4134 | # loading of modules. |
| 4135 | |
| 4136 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4137 | echo "configure:4138: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4138 | if test -z "$DYNLOADFILE" |
| 4139 | then |
| 4140 | case $ac_sys_system/$ac_sys_release in |
| 4141 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 4142 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 4143 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4144 | Darwin/*|next/*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4145 | *) |
| 4146 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 4147 | # out any dynamic loading |
| 4148 | if test "$ac_cv_func_dlopen" = yes |
| 4149 | then DYNLOADFILE="dynload_shlib.o" |
| 4150 | else DYNLOADFILE="dynload_stub.o" |
| 4151 | fi |
| 4152 | ;; |
| 4153 | esac |
| 4154 | fi |
| 4155 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 4156 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 4157 | then |
| 4158 | cat >> confdefs.h <<\EOF |
| 4159 | #define HAVE_DYNAMIC_LOADING 1 |
| 4160 | EOF |
| 4161 | |
| 4162 | fi |
| 4163 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4164 | # checks for library functions |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4165 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4166 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Andrew M. Kuchling | a9586c7 | 2001-01-08 17:58:56 +0000 | [diff] [blame] | 4167 | getgroups getlogin getpeername getpid getpwent getwd \ |
Andrew M. Kuchling | 22c6934 | 2000-06-18 15:07:40 +0000 | [diff] [blame] | 4168 | kill link lstat mkfifo mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 4169 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4170 | putenv readlink \ |
Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 4171 | select setegid seteuid setgid \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4172 | setlocale setregid setreuid setsid setpgid setuid setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4173 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 4174 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | 70c21a1 | 2000-07-14 14:28:33 +0000 | [diff] [blame] | 4175 | truncate uname waitpid _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4176 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4177 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4178 | echo "configure:4179: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4179 | 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] | 4180 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4181 | else |
| 4182 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4183 | #line 4184 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4184 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4185 | /* System header to define __stub macros and hopefully few prototypes, |
| 4186 | which can conflict with char $ac_func(); below. */ |
| 4187 | #include <assert.h> |
| 4188 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4189 | /* We use char because int might match the return type of a gcc2 |
| 4190 | builtin and then its argument prototype would still apply. */ |
| 4191 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4192 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4193 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4194 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4195 | /* The GNU C library defines this for functions which it implements |
| 4196 | to always fail with ENOSYS. Some functions are actually named |
| 4197 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4198 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4199 | choke me |
| 4200 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4201 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4202 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4203 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4204 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4205 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4206 | if { (eval echo configure:4207: \"$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] | 4207 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4208 | eval "ac_cv_func_$ac_func=yes" |
| 4209 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4210 | echo "configure: failed program was:" >&5 |
| 4211 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4212 | rm -rf conftest* |
| 4213 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4214 | fi |
| 4215 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4216 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4217 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4218 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4219 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4220 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4221 | cat >> confdefs.h <<EOF |
| 4222 | #define $ac_tr_func 1 |
| 4223 | EOF |
| 4224 | |
| 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 | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4227 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4228 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4229 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4230 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4231 | # check for openpty and forkpty |
| 4232 | |
| 4233 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4234 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4235 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4236 | echo "configure:4237: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4237 | 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] | 4238 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4239 | else |
| 4240 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4241 | #line 4242 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4242 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4243 | /* System header to define __stub macros and hopefully few prototypes, |
| 4244 | which can conflict with char $ac_func(); below. */ |
| 4245 | #include <assert.h> |
| 4246 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4247 | /* We use char because int might match the return type of a gcc2 |
| 4248 | builtin and then its argument prototype would still apply. */ |
| 4249 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4250 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4251 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4252 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4253 | /* The GNU C library defines this for functions which it implements |
| 4254 | to always fail with ENOSYS. Some functions are actually named |
| 4255 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4256 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4257 | choke me |
| 4258 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4259 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4260 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4261 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4262 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4263 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4264 | if { (eval echo configure:4265: \"$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] | 4265 | rm -rf conftest* |
| 4266 | eval "ac_cv_func_$ac_func=yes" |
| 4267 | else |
| 4268 | echo "configure: failed program was:" >&5 |
| 4269 | cat conftest.$ac_ext >&5 |
| 4270 | rm -rf conftest* |
| 4271 | eval "ac_cv_func_$ac_func=no" |
| 4272 | fi |
| 4273 | rm -f conftest* |
| 4274 | fi |
| 4275 | |
| 4276 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4277 | echo "$ac_t""yes" 1>&6 |
| 4278 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4279 | cat >> confdefs.h <<EOF |
| 4280 | #define $ac_tr_func 1 |
| 4281 | EOF |
| 4282 | |
| 4283 | else |
| 4284 | echo "$ac_t""no" 1>&6 |
| 4285 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4286 | echo "configure:4287: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4287 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4288 | 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] | 4289 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4290 | else |
| 4291 | ac_save_LIBS="$LIBS" |
| 4292 | LIBS="-lutil $LIBS" |
| 4293 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4294 | #line 4295 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4295 | #include "confdefs.h" |
| 4296 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4297 | /* We use char because int might match the return type of a gcc2 |
| 4298 | builtin and then its argument prototype would still apply. */ |
| 4299 | char openpty(); |
| 4300 | |
| 4301 | int main() { |
| 4302 | openpty() |
| 4303 | ; return 0; } |
| 4304 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4305 | if { (eval echo configure:4306: \"$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] | 4306 | rm -rf conftest* |
| 4307 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4308 | else |
| 4309 | echo "configure: failed program was:" >&5 |
| 4310 | cat conftest.$ac_ext >&5 |
| 4311 | rm -rf conftest* |
| 4312 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4313 | fi |
| 4314 | rm -f conftest* |
| 4315 | LIBS="$ac_save_LIBS" |
| 4316 | |
| 4317 | fi |
| 4318 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4319 | echo "$ac_t""yes" 1>&6 |
| 4320 | cat >> confdefs.h <<\EOF |
| 4321 | #define HAVE_OPENPTY 1 |
| 4322 | EOF |
| 4323 | LIBS="$LIBS -lutil" |
| 4324 | else |
| 4325 | echo "$ac_t""no" 1>&6 |
| 4326 | fi |
| 4327 | |
| 4328 | fi |
| 4329 | done |
| 4330 | |
| 4331 | for ac_func in forkpty |
| 4332 | do |
| 4333 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4334 | echo "configure:4335: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4335 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4336 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4337 | else |
| 4338 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4339 | #line 4340 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4340 | #include "confdefs.h" |
| 4341 | /* System header to define __stub macros and hopefully few prototypes, |
| 4342 | which can conflict with char $ac_func(); below. */ |
| 4343 | #include <assert.h> |
| 4344 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4345 | /* We use char because int might match the return type of a gcc2 |
| 4346 | builtin and then its argument prototype would still apply. */ |
| 4347 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4348 | |
| 4349 | int main() { |
| 4350 | |
| 4351 | /* The GNU C library defines this for functions which it implements |
| 4352 | to always fail with ENOSYS. Some functions are actually named |
| 4353 | something starting with __ and the normal name is an alias. */ |
| 4354 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4355 | choke me |
| 4356 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4357 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4358 | #endif |
| 4359 | |
| 4360 | ; return 0; } |
| 4361 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4362 | if { (eval echo configure:4363: \"$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] | 4363 | rm -rf conftest* |
| 4364 | eval "ac_cv_func_$ac_func=yes" |
| 4365 | else |
| 4366 | echo "configure: failed program was:" >&5 |
| 4367 | cat conftest.$ac_ext >&5 |
| 4368 | rm -rf conftest* |
| 4369 | eval "ac_cv_func_$ac_func=no" |
| 4370 | fi |
| 4371 | rm -f conftest* |
| 4372 | fi |
| 4373 | |
| 4374 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4375 | echo "$ac_t""yes" 1>&6 |
| 4376 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4377 | cat >> confdefs.h <<EOF |
| 4378 | #define $ac_tr_func 1 |
| 4379 | EOF |
| 4380 | |
| 4381 | else |
| 4382 | echo "$ac_t""no" 1>&6 |
| 4383 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4384 | echo "configure:4385: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4385 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4386 | 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] | 4387 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4388 | else |
| 4389 | ac_save_LIBS="$LIBS" |
| 4390 | LIBS="-lutil $LIBS" |
| 4391 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4392 | #line 4393 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4393 | #include "confdefs.h" |
| 4394 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4395 | /* We use char because int might match the return type of a gcc2 |
| 4396 | builtin and then its argument prototype would still apply. */ |
| 4397 | char forkpty(); |
| 4398 | |
| 4399 | int main() { |
| 4400 | forkpty() |
| 4401 | ; return 0; } |
| 4402 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4403 | if { (eval echo configure:4404: \"$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] | 4404 | rm -rf conftest* |
| 4405 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4406 | else |
| 4407 | echo "configure: failed program was:" >&5 |
| 4408 | cat conftest.$ac_ext >&5 |
| 4409 | rm -rf conftest* |
| 4410 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4411 | fi |
| 4412 | rm -f conftest* |
| 4413 | LIBS="$ac_save_LIBS" |
| 4414 | |
| 4415 | fi |
| 4416 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4417 | echo "$ac_t""yes" 1>&6 |
| 4418 | cat >> confdefs.h <<\EOF |
| 4419 | #define HAVE_FORKPTY 1 |
| 4420 | EOF |
| 4421 | LIBS="$LIBS -lutil" |
| 4422 | else |
| 4423 | echo "$ac_t""no" 1>&6 |
| 4424 | fi |
| 4425 | |
| 4426 | fi |
| 4427 | done |
| 4428 | |
| 4429 | |
| 4430 | # check for long file support functions |
| 4431 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 4432 | do |
| 4433 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4434 | echo "configure:4435: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4435 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4436 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4437 | else |
| 4438 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4439 | #line 4440 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4440 | #include "confdefs.h" |
| 4441 | /* System header to define __stub macros and hopefully few prototypes, |
| 4442 | which can conflict with char $ac_func(); below. */ |
| 4443 | #include <assert.h> |
| 4444 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4445 | /* We use char because int might match the return type of a gcc2 |
| 4446 | builtin and then its argument prototype would still apply. */ |
| 4447 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4448 | |
| 4449 | int main() { |
| 4450 | |
| 4451 | /* The GNU C library defines this for functions which it implements |
| 4452 | to always fail with ENOSYS. Some functions are actually named |
| 4453 | something starting with __ and the normal name is an alias. */ |
| 4454 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4455 | choke me |
| 4456 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4457 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4458 | #endif |
| 4459 | |
| 4460 | ; return 0; } |
| 4461 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4462 | if { (eval echo configure:4463: \"$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] | 4463 | rm -rf conftest* |
| 4464 | eval "ac_cv_func_$ac_func=yes" |
| 4465 | else |
| 4466 | echo "configure: failed program was:" >&5 |
| 4467 | cat conftest.$ac_ext >&5 |
| 4468 | rm -rf conftest* |
| 4469 | eval "ac_cv_func_$ac_func=no" |
| 4470 | fi |
| 4471 | rm -f conftest* |
| 4472 | fi |
| 4473 | |
| 4474 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4475 | echo "$ac_t""yes" 1>&6 |
| 4476 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4477 | cat >> confdefs.h <<EOF |
| 4478 | #define $ac_tr_func 1 |
| 4479 | EOF |
| 4480 | |
| 4481 | else |
| 4482 | echo "$ac_t""no" 1>&6 |
| 4483 | fi |
| 4484 | done |
| 4485 | |
| 4486 | |
| 4487 | for ac_func in dup2 getcwd strdup strerror memmove |
| 4488 | do |
| 4489 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4490 | echo "configure:4491: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4491 | 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] | 4492 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4493 | else |
| 4494 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4495 | #line 4496 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4496 | #include "confdefs.h" |
| 4497 | /* System header to define __stub macros and hopefully few prototypes, |
| 4498 | which can conflict with char $ac_func(); below. */ |
| 4499 | #include <assert.h> |
| 4500 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4501 | /* We use char because int might match the return type of a gcc2 |
| 4502 | builtin and then its argument prototype would still apply. */ |
| 4503 | char $ac_func(); |
| 4504 | |
| 4505 | int main() { |
| 4506 | |
| 4507 | /* The GNU C library defines this for functions which it implements |
| 4508 | to always fail with ENOSYS. Some functions are actually named |
| 4509 | something starting with __ and the normal name is an alias. */ |
| 4510 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4511 | choke me |
| 4512 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4513 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4514 | #endif |
| 4515 | |
| 4516 | ; return 0; } |
| 4517 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4518 | if { (eval echo configure:4519: \"$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] | 4519 | rm -rf conftest* |
| 4520 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4521 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4522 | echo "configure: failed program was:" >&5 |
| 4523 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4524 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4525 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4526 | fi |
| 4527 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4528 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4529 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4530 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4531 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4532 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4533 | cat >> confdefs.h <<EOF |
| 4534 | #define $ac_tr_func 1 |
| 4535 | EOF |
| 4536 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4537 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4538 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4539 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4540 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4541 | done |
| 4542 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4543 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4544 | for ac_func in getpgrp |
| 4545 | do |
| 4546 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4547 | echo "configure:4548: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4548 | 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] | 4549 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4550 | else |
| 4551 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4552 | #line 4553 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4553 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4554 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4555 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4556 | #include <assert.h> |
| 4557 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4558 | /* We use char because int might match the return type of a gcc2 |
| 4559 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4560 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4561 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4562 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4563 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4564 | /* The GNU C library defines this for functions which it implements |
| 4565 | to always fail with ENOSYS. Some functions are actually named |
| 4566 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4567 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4568 | choke me |
| 4569 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4570 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4571 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4572 | |
| 4573 | ; return 0; } |
| 4574 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4575 | if { (eval echo configure:4576: \"$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] | 4576 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4577 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4578 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4579 | echo "configure: failed program was:" >&5 |
| 4580 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4581 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4582 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4583 | fi |
| 4584 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4585 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4586 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4587 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4588 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4589 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4590 | cat >> confdefs.h <<EOF |
| 4591 | #define $ac_tr_func 1 |
| 4592 | EOF |
| 4593 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4594 | #line 4595 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4595 | #include "confdefs.h" |
| 4596 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4597 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4598 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4599 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4600 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4601 | if { (eval echo configure:4602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4602 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4603 | cat >> confdefs.h <<\EOF |
| 4604 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4605 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4606 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4607 | else |
| 4608 | echo "configure: failed program was:" >&5 |
| 4609 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4610 | fi |
| 4611 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4612 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4613 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4614 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4615 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4616 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4617 | for ac_func in setpgrp |
| 4618 | do |
| 4619 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4620 | echo "configure:4621: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4621 | 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] | 4622 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4623 | else |
| 4624 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4625 | #line 4626 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4626 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4627 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4628 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4629 | #include <assert.h> |
| 4630 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4631 | /* We use char because int might match the return type of a gcc2 |
| 4632 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4633 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4634 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4635 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4636 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4637 | /* The GNU C library defines this for functions which it implements |
| 4638 | to always fail with ENOSYS. Some functions are actually named |
| 4639 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4640 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4641 | choke me |
| 4642 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4643 | $ac_func(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4644 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4645 | |
| 4646 | ; return 0; } |
| 4647 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4648 | if { (eval echo configure:4649: \"$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] | 4649 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4650 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4651 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4652 | echo "configure: failed program was:" >&5 |
| 4653 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4654 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4655 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4656 | fi |
| 4657 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4658 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4659 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4660 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4661 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4662 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4663 | cat >> confdefs.h <<EOF |
| 4664 | #define $ac_tr_func 1 |
| 4665 | EOF |
| 4666 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4667 | #line 4668 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4668 | #include "confdefs.h" |
| 4669 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4670 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4671 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4672 | ; return 0; } |
| 4673 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4674 | if { (eval echo configure:4675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4675 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4676 | cat >> confdefs.h <<\EOF |
| 4677 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4678 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4679 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4680 | else |
| 4681 | echo "configure: failed program was:" >&5 |
| 4682 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4683 | fi |
| 4684 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4685 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4686 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4687 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4688 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4689 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4690 | for ac_func in gettimeofday |
| 4691 | do |
| 4692 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4693 | echo "configure:4694: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4694 | 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] | 4695 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4696 | else |
| 4697 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4698 | #line 4699 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4699 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4700 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4701 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4702 | #include <assert.h> |
| 4703 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4704 | /* We use char because int might match the return type of a gcc2 |
| 4705 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4706 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4707 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4708 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4709 | |
| 4710 | /* The GNU C library defines this for functions which it implements |
| 4711 | to always fail with ENOSYS. Some functions are actually named |
| 4712 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4713 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4714 | choke me |
| 4715 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4716 | $ac_func(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4717 | #endif |
| 4718 | |
| 4719 | ; return 0; } |
| 4720 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4721 | if { (eval echo configure:4722: \"$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] | 4722 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4723 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4724 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4725 | echo "configure: failed program was:" >&5 |
| 4726 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4727 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4728 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4729 | fi |
| 4730 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4731 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4732 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4733 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4734 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4735 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4736 | cat >> confdefs.h <<EOF |
| 4737 | #define $ac_tr_func 1 |
| 4738 | EOF |
| 4739 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4740 | #line 4741 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4741 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4742 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4743 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4744 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 4745 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4746 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4747 | if { (eval echo configure:4748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4748 | : |
| 4749 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4750 | echo "configure: failed program was:" >&5 |
| 4751 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4752 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4753 | cat >> confdefs.h <<\EOF |
| 4754 | #define GETTIMEOFDAY_NO_TZ 1 |
| 4755 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4756 | |
| 4757 | fi |
| 4758 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4759 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4760 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4761 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4762 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4763 | |
| 4764 | |
| 4765 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4766 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4767 | echo "configure:4768: 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] | 4768 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4769 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4770 | else |
| 4771 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4772 | #line 4773 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4773 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4774 | #include <sys/types.h> |
| 4775 | #include <sys/time.h> |
| 4776 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4777 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4778 | struct tm *tp; |
| 4779 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4780 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4781 | if { (eval echo configure:4782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4782 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4783 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4784 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4785 | echo "configure: failed program was:" >&5 |
| 4786 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4787 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4788 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4789 | fi |
| 4790 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4791 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4792 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4793 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4794 | if test $ac_cv_header_time = yes; then |
| 4795 | cat >> confdefs.h <<\EOF |
| 4796 | #define TIME_WITH_SYS_TIME 1 |
| 4797 | EOF |
| 4798 | |
| 4799 | fi |
| 4800 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4801 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4802 | echo "configure:4803: 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] | 4803 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4804 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4805 | else |
| 4806 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4807 | #line 4808 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4808 | #include "confdefs.h" |
| 4809 | #include <sys/types.h> |
| 4810 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4811 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4812 | struct tm *tp; tp->tm_sec; |
| 4813 | ; return 0; } |
| 4814 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4815 | if { (eval echo configure:4816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4816 | rm -rf conftest* |
| 4817 | ac_cv_struct_tm=time.h |
| 4818 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4819 | echo "configure: failed program was:" >&5 |
| 4820 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4821 | rm -rf conftest* |
| 4822 | ac_cv_struct_tm=sys/time.h |
| 4823 | fi |
| 4824 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4825 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4826 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4827 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4828 | if test $ac_cv_struct_tm = sys/time.h; then |
| 4829 | cat >> confdefs.h <<\EOF |
| 4830 | #define TM_IN_SYS_TIME 1 |
| 4831 | EOF |
| 4832 | |
| 4833 | fi |
| 4834 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4835 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4836 | echo "configure:4837: checking for tm_zone in struct tm" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4837 | 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] | 4838 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4839 | else |
| 4840 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4841 | #line 4842 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4842 | #include "confdefs.h" |
| 4843 | #include <sys/types.h> |
| 4844 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4845 | int main() { |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4846 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4847 | ; return 0; } |
| 4848 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4849 | if { (eval echo configure:4850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4850 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4851 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4852 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4853 | echo "configure: failed program was:" >&5 |
| 4854 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4855 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4856 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4857 | fi |
| 4858 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4859 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4860 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4861 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 4862 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4863 | cat >> confdefs.h <<\EOF |
| 4864 | #define HAVE_TM_ZONE 1 |
| 4865 | EOF |
| 4866 | |
| 4867 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4868 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4869 | echo "configure:4870: checking for tzname" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4870 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4871 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4872 | else |
| 4873 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4874 | #line 4875 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4875 | #include "confdefs.h" |
| 4876 | #include <time.h> |
| 4877 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4878 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4879 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4880 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4881 | atoi(*tzname); |
| 4882 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4883 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4884 | if { (eval echo configure:4885: \"$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] | 4885 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4886 | ac_cv_var_tzname=yes |
| 4887 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4888 | echo "configure: failed program was:" >&5 |
| 4889 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4890 | rm -rf conftest* |
| 4891 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4892 | fi |
| 4893 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4894 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4895 | |
| 4896 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4897 | if test $ac_cv_var_tzname = yes; then |
| 4898 | cat >> confdefs.h <<\EOF |
| 4899 | #define HAVE_TZNAME 1 |
| 4900 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4901 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4902 | fi |
| 4903 | fi |
| 4904 | |
| 4905 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4906 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4907 | echo "configure:4908: checking for time.h that defines altzone" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4908 | 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] | 4909 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4910 | else |
| 4911 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4912 | #line 4913 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4913 | #include "confdefs.h" |
| 4914 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4915 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4916 | return altzone; |
| 4917 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4918 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4919 | if { (eval echo configure:4920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4920 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4921 | ac_cv_header_time_altzone=yes |
| 4922 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4923 | echo "configure: failed program was:" >&5 |
| 4924 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4925 | rm -rf conftest* |
| 4926 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4927 | fi |
| 4928 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4929 | fi |
| 4930 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4931 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4932 | if test $ac_cv_header_time_altzone = yes; then |
| 4933 | cat >> confdefs.h <<\EOF |
| 4934 | #define HAVE_ALTZONE 1 |
| 4935 | EOF |
| 4936 | |
| 4937 | fi |
| 4938 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4939 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4940 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4941 | echo "configure:4942: 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] | 4942 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4943 | #line 4944 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4944 | #include "confdefs.h" |
| 4945 | |
| 4946 | #include <sys/types.h> |
| 4947 | #include <sys/select.h> |
| 4948 | #include <sys/time.h> |
| 4949 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4950 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4951 | ; |
| 4952 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4953 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4954 | if { (eval echo configure:4955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4955 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4956 | cat >> confdefs.h <<\EOF |
| 4957 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 4958 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4959 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4960 | else |
| 4961 | echo "configure: failed program was:" >&5 |
| 4962 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4963 | fi |
| 4964 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4965 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4966 | |
| 4967 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4968 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4969 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4970 | echo "configure:4971: checking whether char is unsigned" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4971 | 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] | 4972 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4973 | else |
| 4974 | if test "$GCC" = yes; then |
| 4975 | # GCC predefines this symbol on systems where it applies. |
| 4976 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4977 | #line 4978 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4978 | #include "confdefs.h" |
| 4979 | #ifdef __CHAR_UNSIGNED__ |
| 4980 | yes |
| 4981 | #endif |
| 4982 | |
| 4983 | EOF |
| 4984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4985 | egrep "yes" >/dev/null 2>&1; then |
| 4986 | rm -rf conftest* |
| 4987 | ac_cv_c_char_unsigned=yes |
| 4988 | else |
| 4989 | rm -rf conftest* |
| 4990 | ac_cv_c_char_unsigned=no |
| 4991 | fi |
| 4992 | rm -f conftest* |
| 4993 | |
| 4994 | else |
| 4995 | if test "$cross_compiling" = yes; then |
| 4996 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4997 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4998 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4999 | #line 5000 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5000 | #include "confdefs.h" |
| 5001 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5002 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5003 | #define volatile |
| 5004 | #endif |
| 5005 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5006 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5007 | } |
| 5008 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5009 | if { (eval echo configure:5010: \"$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] | 5010 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5011 | ac_cv_c_char_unsigned=yes |
| 5012 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5013 | echo "configure: failed program was:" >&5 |
| 5014 | cat conftest.$ac_ext >&5 |
| 5015 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5016 | ac_cv_c_char_unsigned=no |
| 5017 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5018 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5019 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5020 | |
| 5021 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5022 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5023 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5024 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5025 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 5026 | cat >> confdefs.h <<\EOF |
| 5027 | #define __CHAR_UNSIGNED__ 1 |
| 5028 | EOF |
| 5029 | |
| 5030 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5031 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5032 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5033 | echo "configure:5034: checking for working const" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5034 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5035 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5036 | else |
| 5037 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5038 | #line 5039 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5039 | #include "confdefs.h" |
| 5040 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5041 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5042 | |
| 5043 | /* Ultrix mips cc rejects this. */ |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame^] | 5044 | typedef int charset[2]; const charset x; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5045 | /* SunOS 4.1.1 cc rejects this. */ |
| 5046 | char const *const *ccp; |
| 5047 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5048 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5049 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5050 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5051 | /* AIX XL C 1.02.0.0 rejects this. |
| 5052 | It does not let you subtract one const X* pointer from another in an arm |
| 5053 | of an if-expression whose if-part is not a constant expression */ |
| 5054 | const char *g = "string"; |
| 5055 | ccp = &g + (g ? g-g : 0); |
| 5056 | /* HPUX 7.0 cc rejects these. */ |
| 5057 | ++ccp; |
| 5058 | p = (char**) ccp; |
| 5059 | ccp = (char const *const *) p; |
| 5060 | { /* SCO 3.2v4 cc rejects this. */ |
| 5061 | char *t; |
| 5062 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5063 | |
| 5064 | *t++ = 0; |
| 5065 | } |
| 5066 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5067 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5068 | const int *foo = &x[0]; |
| 5069 | ++foo; |
| 5070 | } |
| 5071 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5072 | typedef const int *iptr; |
| 5073 | iptr p = 0; |
| 5074 | ++p; |
| 5075 | } |
| 5076 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5077 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5078 | struct s { int j; const int *ap[3]; }; |
| 5079 | struct s *b; b->j = 5; |
| 5080 | } |
| 5081 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5082 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5083 | } |
| 5084 | |
| 5085 | ; return 0; } |
| 5086 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5087 | if { (eval echo configure:5088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5088 | rm -rf conftest* |
| 5089 | ac_cv_c_const=yes |
| 5090 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5091 | echo "configure: failed program was:" >&5 |
| 5092 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5093 | rm -rf conftest* |
| 5094 | ac_cv_c_const=no |
| 5095 | fi |
| 5096 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5097 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5098 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5099 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5100 | if test $ac_cv_c_const = no; then |
| 5101 | cat >> confdefs.h <<\EOF |
| 5102 | #define const |
| 5103 | EOF |
| 5104 | |
| 5105 | fi |
| 5106 | |
| 5107 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5108 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5109 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5110 | echo "configure:5111: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5111 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5112 | #line 5113 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5113 | #include "confdefs.h" |
| 5114 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5115 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5116 | volatile int x; x = 0; |
| 5117 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5118 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5119 | if { (eval echo configure:5120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5120 | rm -rf conftest* |
| 5121 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5122 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5123 | echo "configure: failed program was:" >&5 |
| 5124 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5125 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5126 | cat >> confdefs.h <<\EOF |
| 5127 | #define volatile |
| 5128 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5129 | |
| 5130 | fi |
| 5131 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5132 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5133 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5134 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5135 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5136 | echo "configure:5137: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5137 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5138 | #line 5139 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5139 | #include "confdefs.h" |
| 5140 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5141 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5142 | signed char c; |
| 5143 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5144 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5145 | if { (eval echo configure:5146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5146 | rm -rf conftest* |
| 5147 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5148 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5149 | echo "configure: failed program was:" >&5 |
| 5150 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5151 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5152 | cat >> confdefs.h <<\EOF |
| 5153 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5154 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5155 | |
| 5156 | fi |
| 5157 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5158 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5159 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5160 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5161 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5162 | echo "configure:5163: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5163 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5164 | #line 5165 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5165 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5166 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5167 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5168 | return foo(10); |
| 5169 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5170 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5171 | if { (eval echo configure:5172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5172 | rm -rf conftest* |
| 5173 | cat >> confdefs.h <<\EOF |
| 5174 | #define HAVE_PROTOTYPES 1 |
| 5175 | EOF |
| 5176 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5177 | else |
| 5178 | echo "configure: failed program was:" >&5 |
| 5179 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5180 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5181 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5182 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5183 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5184 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5185 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5186 | echo "configure:5187: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5187 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5188 | #line 5189 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5189 | #include "confdefs.h" |
| 5190 | |
| 5191 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5192 | int foo(int x, ...) { |
| 5193 | va_list va; |
| 5194 | va_start(va, x); |
| 5195 | va_arg(va, int); |
| 5196 | va_arg(va, char *); |
| 5197 | va_arg(va, double); |
| 5198 | return 0; |
| 5199 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5200 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5201 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5202 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5203 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5204 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5205 | if { (eval echo configure:5206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5206 | rm -rf conftest* |
| 5207 | cat >> confdefs.h <<\EOF |
| 5208 | #define HAVE_STDARG_PROTOTYPES 1 |
| 5209 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5210 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5211 | else |
| 5212 | echo "configure: failed program was:" >&5 |
| 5213 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5214 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5215 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5216 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5217 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5218 | if test "$have_prototypes" = yes; then |
| 5219 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5220 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5221 | echo "configure:5222: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5222 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5223 | #line 5224 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5224 | #include "confdefs.h" |
| 5225 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5226 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5227 | char **t;execve("@",t,t); |
| 5228 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5229 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5230 | if { (eval echo configure:5231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5231 | : |
| 5232 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5233 | echo "configure: failed program was:" >&5 |
| 5234 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5235 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5236 | cat >> confdefs.h <<\EOF |
| 5237 | #define BAD_EXEC_PROTOTYPES 1 |
| 5238 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5239 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5240 | fi |
| 5241 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5242 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5243 | fi |
| 5244 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5245 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5246 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5247 | echo "configure:5248: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5248 | if test "$cross_compiling" = yes; then |
| 5249 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5250 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5251 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5252 | #line 5253 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5253 | #include "confdefs.h" |
| 5254 | |
| 5255 | struct s { int a; int b; }; |
| 5256 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5257 | int foobar() { |
| 5258 | static int random; |
| 5259 | random = (int) &foo; |
| 5260 | return random; |
| 5261 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5262 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5263 | main() { |
| 5264 | exit(!((int)&foo == foobar())); |
| 5265 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5266 | |
| 5267 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5268 | if { (eval echo configure:5269: \"$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] | 5269 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5270 | : |
| 5271 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5272 | echo "configure: failed program was:" >&5 |
| 5273 | cat conftest.$ac_ext >&5 |
| 5274 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5275 | cat >> confdefs.h <<\EOF |
| 5276 | #define BAD_STATIC_FORWARD 1 |
| 5277 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5278 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5279 | fi |
| 5280 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5281 | fi |
| 5282 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5283 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5284 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5285 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5286 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5287 | echo "configure:5288: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5288 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5289 | #line 5290 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5290 | #include "confdefs.h" |
| 5291 | |
| 5292 | #ifdef HAVE_STDARG_PROTOTYPES |
| 5293 | #include <stdarg.h> |
| 5294 | #else |
| 5295 | #include <varargs.h> |
| 5296 | #endif |
| 5297 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5298 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5299 | va_list list1, list2; list1 = list2; |
| 5300 | ; return 0; } |
| 5301 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5302 | if { (eval echo configure:5303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5303 | : |
| 5304 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5305 | echo "configure: failed program was:" >&5 |
| 5306 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5307 | rm -rf conftest* |
| 5308 | cat >> confdefs.h <<\EOF |
| 5309 | #define VA_LIST_IS_ARRAY 1 |
| 5310 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5311 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5312 | fi |
| 5313 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5314 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5315 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5316 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 5317 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5318 | echo "configure:5319: checking for gethostbyname_r" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5319 | 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] | 5320 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5321 | else |
| 5322 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5323 | #line 5324 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5324 | #include "confdefs.h" |
| 5325 | /* System header to define __stub macros and hopefully few prototypes, |
| 5326 | which can conflict with char gethostbyname_r(); below. */ |
| 5327 | #include <assert.h> |
| 5328 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5329 | /* We use char because int might match the return type of a gcc2 |
| 5330 | builtin and then its argument prototype would still apply. */ |
| 5331 | char gethostbyname_r(); |
| 5332 | |
| 5333 | int main() { |
| 5334 | |
| 5335 | /* The GNU C library defines this for functions which it implements |
| 5336 | to always fail with ENOSYS. Some functions are actually named |
| 5337 | something starting with __ and the normal name is an alias. */ |
| 5338 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 5339 | choke me |
| 5340 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5341 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5342 | #endif |
| 5343 | |
| 5344 | ; return 0; } |
| 5345 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5346 | if { (eval echo configure:5347: \"$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] | 5347 | rm -rf conftest* |
| 5348 | eval "ac_cv_func_gethostbyname_r=yes" |
| 5349 | else |
| 5350 | echo "configure: failed program was:" >&5 |
| 5351 | cat conftest.$ac_ext >&5 |
| 5352 | rm -rf conftest* |
| 5353 | eval "ac_cv_func_gethostbyname_r=no" |
| 5354 | fi |
| 5355 | rm -f conftest* |
| 5356 | fi |
| 5357 | |
| 5358 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 5359 | echo "$ac_t""yes" 1>&6 |
| 5360 | |
| 5361 | cat >> confdefs.h <<\EOF |
| 5362 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5363 | EOF |
| 5364 | |
| 5365 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5366 | echo "configure:5367: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5367 | OLD_CFLAGS=$CFLAGS |
| 5368 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 5369 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5370 | #line 5371 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5371 | #include "confdefs.h" |
| 5372 | |
| 5373 | # include <netdb.h> |
| 5374 | |
| 5375 | int main() { |
| 5376 | |
| 5377 | char *name; |
| 5378 | struct hostent *he, *res; |
| 5379 | char buffer[2048]; |
| 5380 | int buflen = 2048; |
| 5381 | int h_errnop; |
| 5382 | |
| 5383 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 5384 | |
| 5385 | ; return 0; } |
| 5386 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5387 | if { (eval echo configure:5388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5388 | rm -rf conftest* |
| 5389 | |
| 5390 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5391 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5392 | EOF |
| 5393 | |
| 5394 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5395 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 5396 | EOF |
| 5397 | |
| 5398 | echo "$ac_t""yes" 1>&6 |
| 5399 | |
| 5400 | else |
| 5401 | echo "configure: failed program was:" >&5 |
| 5402 | cat conftest.$ac_ext >&5 |
| 5403 | rm -rf conftest* |
| 5404 | |
| 5405 | echo "$ac_t""no" 1>&6 |
| 5406 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5407 | echo "configure:5408: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5408 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5409 | #line 5410 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5410 | #include "confdefs.h" |
| 5411 | |
| 5412 | # include <netdb.h> |
| 5413 | |
| 5414 | int main() { |
| 5415 | |
| 5416 | char *name; |
| 5417 | struct hostent *he; |
| 5418 | char buffer[2048]; |
| 5419 | int buflen = 2048; |
| 5420 | int h_errnop; |
| 5421 | |
| 5422 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 5423 | |
| 5424 | ; return 0; } |
| 5425 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5426 | if { (eval echo configure:5427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5427 | rm -rf conftest* |
| 5428 | |
| 5429 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5430 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5431 | EOF |
| 5432 | |
| 5433 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5434 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 5435 | EOF |
| 5436 | |
| 5437 | echo "$ac_t""yes" 1>&6 |
| 5438 | |
| 5439 | else |
| 5440 | echo "configure: failed program was:" >&5 |
| 5441 | cat conftest.$ac_ext >&5 |
| 5442 | rm -rf conftest* |
| 5443 | |
| 5444 | echo "$ac_t""no" 1>&6 |
| 5445 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5446 | echo "configure:5447: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5447 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5448 | #line 5449 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5449 | #include "confdefs.h" |
| 5450 | |
| 5451 | # include <netdb.h> |
| 5452 | |
| 5453 | int main() { |
| 5454 | |
| 5455 | char *name; |
| 5456 | struct hostent *he; |
| 5457 | struct hostent_data data; |
| 5458 | |
| 5459 | (void) gethostbyname_r(name, he, &data); |
| 5460 | |
| 5461 | ; return 0; } |
| 5462 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5463 | if { (eval echo configure:5464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5464 | rm -rf conftest* |
| 5465 | |
| 5466 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5467 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5468 | EOF |
| 5469 | |
| 5470 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5471 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 5472 | EOF |
| 5473 | |
| 5474 | echo "$ac_t""yes" 1>&6 |
| 5475 | |
| 5476 | else |
| 5477 | echo "configure: failed program was:" >&5 |
| 5478 | cat conftest.$ac_ext >&5 |
| 5479 | rm -rf conftest* |
| 5480 | |
| 5481 | echo "$ac_t""no" 1>&6 |
| 5482 | |
| 5483 | fi |
| 5484 | rm -f conftest* |
| 5485 | |
| 5486 | fi |
| 5487 | rm -f conftest* |
| 5488 | |
| 5489 | fi |
| 5490 | rm -f conftest* |
| 5491 | CFLAGS=$OLD_CFLAGS |
| 5492 | |
| 5493 | else |
| 5494 | echo "$ac_t""no" 1>&6 |
| 5495 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5496 | for ac_func in gethostbyname |
| 5497 | do |
| 5498 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5499 | echo "configure:5500: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5500 | 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] | 5501 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5502 | else |
| 5503 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5504 | #line 5505 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5505 | #include "confdefs.h" |
| 5506 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5507 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5508 | #include <assert.h> |
| 5509 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5510 | /* We use char because int might match the return type of a gcc2 |
| 5511 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5512 | char $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5513 | |
| 5514 | int main() { |
| 5515 | |
| 5516 | /* The GNU C library defines this for functions which it implements |
| 5517 | to always fail with ENOSYS. Some functions are actually named |
| 5518 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5519 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5520 | choke me |
| 5521 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5522 | $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5523 | #endif |
| 5524 | |
| 5525 | ; return 0; } |
| 5526 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5527 | if { (eval echo configure:5528: \"$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] | 5528 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5529 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5530 | else |
| 5531 | echo "configure: failed program was:" >&5 |
| 5532 | cat conftest.$ac_ext >&5 |
| 5533 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5534 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5535 | fi |
| 5536 | rm -f conftest* |
| 5537 | fi |
| 5538 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5539 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5540 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5541 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5542 | cat >> confdefs.h <<EOF |
| 5543 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5544 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5545 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5546 | else |
| 5547 | echo "$ac_t""no" 1>&6 |
| 5548 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5549 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5550 | |
| 5551 | |
| 5552 | fi |
| 5553 | |
| 5554 | |
| 5555 | |
| 5556 | |
| 5557 | |
| 5558 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5559 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5560 | # checks for system services |
| 5561 | # (none yet) |
| 5562 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5563 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5564 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5565 | echo "configure:5566: checking for __fpu_control" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5566 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5567 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5568 | else |
| 5569 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5570 | #line 5571 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5571 | #include "confdefs.h" |
| 5572 | /* System header to define __stub macros and hopefully few prototypes, |
| 5573 | which can conflict with char __fpu_control(); below. */ |
| 5574 | #include <assert.h> |
| 5575 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5576 | /* We use char because int might match the return type of a gcc2 |
| 5577 | builtin and then its argument prototype would still apply. */ |
| 5578 | char __fpu_control(); |
| 5579 | |
| 5580 | int main() { |
| 5581 | |
| 5582 | /* The GNU C library defines this for functions which it implements |
| 5583 | to always fail with ENOSYS. Some functions are actually named |
| 5584 | something starting with __ and the normal name is an alias. */ |
| 5585 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 5586 | choke me |
| 5587 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5588 | __fpu_control(); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5589 | #endif |
| 5590 | |
| 5591 | ; return 0; } |
| 5592 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5593 | if { (eval echo configure:5594: \"$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] | 5594 | rm -rf conftest* |
| 5595 | eval "ac_cv_func___fpu_control=yes" |
| 5596 | else |
| 5597 | echo "configure: failed program was:" >&5 |
| 5598 | cat conftest.$ac_ext >&5 |
| 5599 | rm -rf conftest* |
| 5600 | eval "ac_cv_func___fpu_control=no" |
| 5601 | fi |
| 5602 | rm -f conftest* |
| 5603 | fi |
| 5604 | |
| 5605 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 5606 | echo "$ac_t""yes" 1>&6 |
| 5607 | : |
| 5608 | else |
| 5609 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5610 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5611 | echo "configure:5612: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5612 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5613 | 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] | 5614 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5615 | else |
| 5616 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5617 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5618 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5619 | #line 5620 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5620 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5621 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5622 | /* We use char because int might match the return type of a gcc2 |
| 5623 | builtin and then its argument prototype would still apply. */ |
| 5624 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5625 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5626 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5627 | __fpu_control() |
| 5628 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5629 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5630 | if { (eval echo configure:5631: \"$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] | 5631 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5632 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5633 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5634 | echo "configure: failed program was:" >&5 |
| 5635 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5636 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5637 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5638 | fi |
| 5639 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5640 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5641 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5642 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5643 | 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] | 5644 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5645 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5646 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5647 | cat >> confdefs.h <<EOF |
| 5648 | #define $ac_tr_lib 1 |
| 5649 | EOF |
| 5650 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5651 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5652 | |
| 5653 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5654 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5655 | fi |
| 5656 | |
| 5657 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5658 | fi |
| 5659 | |
| 5660 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5661 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5662 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5663 | echo "configure:5664: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5664 | # Check whether --with-fpectl or --without-fpectl was given. |
| 5665 | if test "${with_fpectl+set}" = set; then |
| 5666 | withval="$with_fpectl" |
| 5667 | |
| 5668 | if test "$withval" != no |
| 5669 | then cat >> confdefs.h <<\EOF |
| 5670 | #define WANT_SIGFPE_HANDLER 1 |
| 5671 | EOF |
| 5672 | echo "$ac_t""yes" 1>&6 |
| 5673 | else echo "$ac_t""no" 1>&6 |
| 5674 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5675 | else |
| 5676 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5677 | fi |
| 5678 | |
| 5679 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5680 | # check for --with-libm=... |
| 5681 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5682 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5683 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5684 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5685 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5686 | *) LIBM=-lm |
| 5687 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5688 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5689 | echo "configure:5690: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5690 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5691 | if test "${with_libm+set}" = set; then |
| 5692 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5693 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5694 | if test "$withval" = no |
| 5695 | then LIBM= |
| 5696 | echo "$ac_t""force LIBM empty" 1>&6 |
| 5697 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5698 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5699 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5700 | 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] | 5701 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5702 | else |
| 5703 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5704 | fi |
| 5705 | |
| 5706 | |
| 5707 | # check for --with-libc=... |
| 5708 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5709 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5710 | echo "configure:5711: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5711 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5712 | if test "${with_libc+set}" = set; then |
| 5713 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5714 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5715 | if test "$withval" = no |
| 5716 | then LIBC= |
| 5717 | echo "$ac_t""force LIBC empty" 1>&6 |
| 5718 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5719 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5720 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5721 | 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] | 5722 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5723 | else |
| 5724 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5725 | fi |
| 5726 | |
| 5727 | |
Guido van Rossum | 4c3f57c | 2001-01-10 20:40:46 +0000 | [diff] [blame] | 5728 | # check for --with-check-import-case |
| 5729 | # Check whether --with-check-import-case or --without-check-import-case was given. |
| 5730 | if test "${with_check_import_case+set}" = set; then |
| 5731 | withval="$with_check_import_case" |
| 5732 | : |
| 5733 | fi |
| 5734 | |
| 5735 | echo $ac_n "checking for --with-check-import-case""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5736 | echo "configure:5737: checking for --with-check-import-case" >&5 |
Guido van Rossum | 4c3f57c | 2001-01-10 20:40:46 +0000 | [diff] [blame] | 5737 | if test "$with_check_import_case" |
| 5738 | then |
| 5739 | cat >> confdefs.h <<\EOF |
| 5740 | #define CHECK_IMPORT_CASE 1 |
| 5741 | EOF |
| 5742 | |
| 5743 | echo "$ac_t""yes" 1>&6 |
| 5744 | else |
| 5745 | echo "$ac_t""no" 1>&6 |
| 5746 | fi |
| 5747 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5748 | # check for hypot() in math library |
| 5749 | LIBS_SAVE=$LIBS |
| 5750 | LIBS="$LIBS $LIBM" |
| 5751 | for ac_func in hypot |
| 5752 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5753 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5754 | echo "configure:5755: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5755 | 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] | 5756 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5757 | else |
| 5758 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5759 | #line 5760 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5760 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5761 | /* System header to define __stub macros and hopefully few prototypes, |
| 5762 | which can conflict with char $ac_func(); below. */ |
| 5763 | #include <assert.h> |
| 5764 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5765 | /* We use char because int might match the return type of a gcc2 |
| 5766 | builtin and then its argument prototype would still apply. */ |
| 5767 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5768 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5769 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5770 | |
| 5771 | /* The GNU C library defines this for functions which it implements |
| 5772 | to always fail with ENOSYS. Some functions are actually named |
| 5773 | something starting with __ and the normal name is an alias. */ |
| 5774 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5775 | choke me |
| 5776 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5777 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5778 | #endif |
| 5779 | |
| 5780 | ; return 0; } |
| 5781 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5782 | if { (eval echo configure:5783: \"$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] | 5783 | rm -rf conftest* |
| 5784 | eval "ac_cv_func_$ac_func=yes" |
| 5785 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5786 | echo "configure: failed program was:" >&5 |
| 5787 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5788 | rm -rf conftest* |
| 5789 | eval "ac_cv_func_$ac_func=no" |
| 5790 | fi |
| 5791 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5792 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5793 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5794 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5795 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5796 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5797 | cat >> confdefs.h <<EOF |
| 5798 | #define $ac_tr_func 1 |
| 5799 | EOF |
| 5800 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5801 | else |
| 5802 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5803 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5804 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5805 | done |
| 5806 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5807 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5808 | LIBS=$LIBS_SAVE |
| 5809 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5810 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5811 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5812 | echo "configure:5813: checking what malloc(0) returns" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5813 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5814 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5815 | else |
| 5816 | if test "$cross_compiling" = yes; then |
| 5817 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5818 | else |
| 5819 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5820 | #line 5821 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5821 | #include "confdefs.h" |
| 5822 | #include <stdio.h> |
| 5823 | #ifdef HAVE_STDLIB |
| 5824 | #include <stdlib.h> |
| 5825 | #else |
| 5826 | char *malloc(), *realloc(); |
| 5827 | int *free(); |
| 5828 | #endif |
| 5829 | main() { |
| 5830 | char *p; |
| 5831 | p = malloc(0); |
| 5832 | if (p == NULL) exit(1); |
| 5833 | p = realloc(p, 0); |
| 5834 | if (p == NULL) exit(1); |
| 5835 | free(p); |
| 5836 | exit(0); |
| 5837 | } |
| 5838 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5839 | if { (eval echo configure:5840: \"$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] | 5840 | then |
| 5841 | ac_cv_malloc_zero=nonnull |
| 5842 | else |
| 5843 | echo "configure: failed program was:" >&5 |
| 5844 | cat conftest.$ac_ext >&5 |
| 5845 | rm -fr conftest* |
| 5846 | ac_cv_malloc_zero=null |
| 5847 | fi |
| 5848 | rm -fr conftest* |
| 5849 | fi |
| 5850 | |
| 5851 | fi |
| 5852 | |
| 5853 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 5854 | if test "$ac_cv_malloc_zero" = null |
| 5855 | then |
| 5856 | cat >> confdefs.h <<\EOF |
| 5857 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 5858 | EOF |
| 5859 | |
| 5860 | fi |
| 5861 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5862 | # check for wchar.h |
| 5863 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 5864 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5865 | echo "configure:5866: checking for wchar.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5866 | 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] | 5867 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5868 | else |
| 5869 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5870 | #line 5871 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5871 | #include "confdefs.h" |
| 5872 | #include <wchar.h> |
| 5873 | EOF |
| 5874 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5875 | { (eval echo configure:5876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5876 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5877 | if test -z "$ac_err"; then |
| 5878 | rm -rf conftest* |
| 5879 | eval "ac_cv_header_$ac_safe=yes" |
| 5880 | else |
| 5881 | echo "$ac_err" >&5 |
| 5882 | echo "configure: failed program was:" >&5 |
| 5883 | cat conftest.$ac_ext >&5 |
| 5884 | rm -rf conftest* |
| 5885 | eval "ac_cv_header_$ac_safe=no" |
| 5886 | fi |
| 5887 | rm -f conftest* |
| 5888 | fi |
| 5889 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5890 | echo "$ac_t""yes" 1>&6 |
| 5891 | cat >> confdefs.h <<\EOF |
| 5892 | #define HAVE_WCHAR_H 1 |
| 5893 | EOF |
| 5894 | wchar_h="yes" |
| 5895 | else |
| 5896 | echo "$ac_t""no" 1>&6 |
| 5897 | wchar_h="no" |
| 5898 | |
| 5899 | fi |
| 5900 | |
| 5901 | |
| 5902 | # check for usable wchar_t |
| 5903 | usable_wchar_t="unkown" |
| 5904 | echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5905 | echo "configure:5906: checking for usable wchar_t" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5906 | if test "$cross_compiling" = yes; then |
| 5907 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5908 | else |
| 5909 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5910 | #line 5911 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5911 | #include "confdefs.h" |
| 5912 | |
| 5913 | #include "wchar.h" |
| 5914 | #include "wctype.h" |
| 5915 | main() { |
| 5916 | wchar_t s; |
| 5917 | if (sizeof(s) == 2) |
| 5918 | exit(0); |
| 5919 | else |
| 5920 | exit(1); |
| 5921 | } |
| 5922 | |
| 5923 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5924 | if { (eval echo configure:5925: \"$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] | 5925 | then |
| 5926 | cat >> confdefs.h <<\EOF |
| 5927 | #define HAVE_USABLE_WCHAR_T 1 |
| 5928 | EOF |
| 5929 | usable_wchar_t="yes" |
| 5930 | else |
| 5931 | echo "configure: failed program was:" >&5 |
| 5932 | cat conftest.$ac_ext >&5 |
| 5933 | rm -fr conftest* |
| 5934 | usable_wchar_t="no" |
| 5935 | fi |
| 5936 | rm -fr conftest* |
| 5937 | fi |
| 5938 | |
| 5939 | echo "$ac_t""$usable_wchar_t" 1>&6 |
| 5940 | |
| 5941 | # check for endianness |
| 5942 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5943 | echo "configure:5944: checking whether byte ordering is bigendian" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5944 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5945 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5946 | else |
| 5947 | ac_cv_c_bigendian=unknown |
| 5948 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5949 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5950 | #line 5951 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5951 | #include "confdefs.h" |
| 5952 | #include <sys/types.h> |
| 5953 | #include <sys/param.h> |
| 5954 | int main() { |
| 5955 | |
| 5956 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5957 | bogus endian macros |
| 5958 | #endif |
| 5959 | ; return 0; } |
| 5960 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5961 | if { (eval echo configure:5962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5962 | rm -rf conftest* |
| 5963 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5964 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5965 | #line 5966 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5966 | #include "confdefs.h" |
| 5967 | #include <sys/types.h> |
| 5968 | #include <sys/param.h> |
| 5969 | int main() { |
| 5970 | |
| 5971 | #if BYTE_ORDER != BIG_ENDIAN |
| 5972 | not big endian |
| 5973 | #endif |
| 5974 | ; return 0; } |
| 5975 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5976 | if { (eval echo configure:5977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5977 | rm -rf conftest* |
| 5978 | ac_cv_c_bigendian=yes |
| 5979 | else |
| 5980 | echo "configure: failed program was:" >&5 |
| 5981 | cat conftest.$ac_ext >&5 |
| 5982 | rm -rf conftest* |
| 5983 | ac_cv_c_bigendian=no |
| 5984 | fi |
| 5985 | rm -f conftest* |
| 5986 | else |
| 5987 | echo "configure: failed program was:" >&5 |
| 5988 | cat conftest.$ac_ext >&5 |
| 5989 | fi |
| 5990 | rm -f conftest* |
| 5991 | if test $ac_cv_c_bigendian = unknown; then |
| 5992 | if test "$cross_compiling" = yes; then |
| 5993 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5994 | else |
| 5995 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 5996 | #line 5997 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5997 | #include "confdefs.h" |
| 5998 | main () { |
| 5999 | /* Are we little or big endian? From Harbison&Steele. */ |
| 6000 | union |
| 6001 | { |
| 6002 | long l; |
| 6003 | char c[sizeof (long)]; |
| 6004 | } u; |
| 6005 | u.l = 1; |
| 6006 | exit (u.c[sizeof (long) - 1] == 1); |
| 6007 | } |
| 6008 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 6009 | if { (eval echo configure:6010: \"$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] | 6010 | then |
| 6011 | ac_cv_c_bigendian=no |
| 6012 | else |
| 6013 | echo "configure: failed program was:" >&5 |
| 6014 | cat conftest.$ac_ext >&5 |
| 6015 | rm -fr conftest* |
| 6016 | ac_cv_c_bigendian=yes |
| 6017 | fi |
| 6018 | rm -fr conftest* |
| 6019 | fi |
| 6020 | |
| 6021 | fi |
| 6022 | fi |
| 6023 | |
| 6024 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 6025 | if test $ac_cv_c_bigendian = yes; then |
| 6026 | cat >> confdefs.h <<\EOF |
| 6027 | #define WORDS_BIGENDIAN 1 |
| 6028 | EOF |
| 6029 | |
| 6030 | fi |
| 6031 | |
| 6032 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6033 | # Check whether right shifting a negative integer extends the sign bit |
| 6034 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 6035 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 6036 | echo "configure:6037: checking whether right shift extends the sign bit" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6037 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6038 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6039 | else |
| 6040 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6041 | if test "$cross_compiling" = yes; then |
| 6042 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6043 | else |
| 6044 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 6045 | #line 6046 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6046 | #include "confdefs.h" |
| 6047 | |
| 6048 | int main() |
| 6049 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6050 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6051 | } |
| 6052 | |
| 6053 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 6054 | if { (eval echo configure:6055: \"$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] | 6055 | then |
| 6056 | ac_cv_rshift_extends_sign=yes |
| 6057 | else |
| 6058 | echo "configure: failed program was:" >&5 |
| 6059 | cat conftest.$ac_ext >&5 |
| 6060 | rm -fr conftest* |
| 6061 | ac_cv_rshift_extends_sign=no |
| 6062 | fi |
| 6063 | rm -fr conftest* |
| 6064 | fi |
| 6065 | |
| 6066 | fi |
| 6067 | |
| 6068 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 6069 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6070 | then |
| 6071 | cat >> confdefs.h <<\EOF |
| 6072 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 6073 | EOF |
| 6074 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6075 | fi |
| 6076 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6077 | # check for getc_unlocked and related locking functions |
| 6078 | echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 6079 | echo "configure:6080: checking for getc_unlocked() and friends" >&5 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6080 | if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then |
| 6081 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6082 | else |
| 6083 | |
| 6084 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 6085 | #line 6086 "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6086 | #include "confdefs.h" |
| 6087 | #include <stdio.h> |
| 6088 | int main() { |
| 6089 | |
| 6090 | FILE *f = fopen("/dev/null", "r"); |
| 6091 | flockfile(f); |
| 6092 | getc_unlocked(f); |
| 6093 | funlockfile(f); |
| 6094 | |
| 6095 | ; return 0; } |
| 6096 | EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 6097 | if { (eval echo configure:6098: \"$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] | 6098 | rm -rf conftest* |
| 6099 | ac_cv_have_getc_unlocked=yes |
| 6100 | else |
| 6101 | echo "configure: failed program was:" >&5 |
| 6102 | cat conftest.$ac_ext >&5 |
| 6103 | rm -rf conftest* |
| 6104 | ac_cv_have_getc_unlocked=no |
| 6105 | fi |
| 6106 | rm -f conftest* |
| 6107 | fi |
| 6108 | |
| 6109 | echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6 |
| 6110 | if test "$ac_cv_have_getc_unlocked" = yes |
| 6111 | then |
| 6112 | cat >> confdefs.h <<\EOF |
| 6113 | #define HAVE_GETC_UNLOCKED 1 |
| 6114 | EOF |
| 6115 | |
| 6116 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6117 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6118 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 6119 | # Add sys/socket.h to confdefs.h |
| 6120 | cat >> confdefs.h <<\EOF |
| 6121 | #ifdef HAVE_SYS_SOCKET_H |
| 6122 | #include <sys/socket.h> |
| 6123 | #endif |
| 6124 | EOF |
| 6125 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 6126 | echo "configure:6127: checking for socklen_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6127 | 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] | 6128 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6129 | else |
| 6130 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 6131 | #line 6132 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6132 | #include "confdefs.h" |
| 6133 | #include <sys/types.h> |
| 6134 | #if STDC_HEADERS |
| 6135 | #include <stdlib.h> |
| 6136 | #include <stddef.h> |
| 6137 | #endif |
| 6138 | EOF |
| 6139 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6140 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6141 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6142 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6143 | else |
| 6144 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6145 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6146 | fi |
| 6147 | rm -f conftest* |
| 6148 | |
| 6149 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6150 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 6151 | if test $ac_cv_type_socklen_t = no; then |
| 6152 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6153 | #define socklen_t int |
| 6154 | EOF |
| 6155 | |
| 6156 | fi |
| 6157 | |
| 6158 | |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 6159 | # Add Python/ prefix to LIBOBJS |
| 6160 | libobjs=$LIBOBJS |
| 6161 | LIBOBJS= |
| 6162 | for obj in $libobjs; do |
| 6163 | LIBOBJS="$LIBOBJS Python/$obj" |
| 6164 | done |
| 6165 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6166 | #AC_MSG_CHECKING(for Modules/Setup) |
| 6167 | #if test ! -f Modules/Setup ; then |
| 6168 | # if test ! -d Modules ; then |
| 6169 | # mkdir Modules |
| 6170 | # fi |
| 6171 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 6172 | # AC_MSG_RESULT(creating) |
| 6173 | #else |
| 6174 | # AC_MSG_RESULT(already exists) |
| 6175 | #fi |
| 6176 | |
| 6177 | |
Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 6178 | SRCDIRS="Parser Grammar Objects Python Modules" |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 6179 | echo $ac_n "checking for build directories""... $ac_c" 1>&6 |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 6180 | echo "configure:6181: checking for build directories" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6181 | for dir in $SRCDIRS; do |
| 6182 | if test ! -d $dir; then |
| 6183 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 6184 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6185 | done |
| 6186 | echo "$ac_t""done" 1>&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 6187 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6188 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6189 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6190 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6191 | # This file is a shell script that caches the results of configure |
| 6192 | # tests run on this system so they can be shared between configure |
| 6193 | # scripts and configure runs. It is not useful on other systems. |
| 6194 | # If it contains results you don't want to keep, you may remove or edit it. |
| 6195 | # |
| 6196 | # By default, configure uses ./config.cache as the cache file, |
| 6197 | # creating it if it does not exist already. You can give configure |
| 6198 | # the --cache-file=FILE option to use a different cache file; that is |
| 6199 | # what configure does when it calls configure scripts in |
| 6200 | # subdirectories, so they share the cache. |
| 6201 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6202 | # config.status only pays attention to the cache file if you give it the |
| 6203 | # --recheck option to rerun configure. |
| 6204 | # |
| 6205 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6206 | # The following way of writing the cache mishandles newlines in values, |
| 6207 | # but we know of no workaround that is simple, portable, and efficient. |
| 6208 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6209 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6210 | # 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] | 6211 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6212 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6213 | *ac_space=\ *) |
| 6214 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 6215 | # turns \\\\ into \\, and sed turns \\ into \). |
| 6216 | sed -n \ |
| 6217 | -e "s/'/'\\\\''/g" \ |
| 6218 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 6219 | ;; |
| 6220 | *) |
| 6221 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6222 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 6223 | ;; |
| 6224 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6225 | if cmp -s $cache_file confcache; then |
| 6226 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6227 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6228 | if test -w $cache_file; then |
| 6229 | echo "updating cache $cache_file" |
| 6230 | cat confcache > $cache_file |
| 6231 | else |
| 6232 | echo "not updating unwritable cache $cache_file" |
| 6233 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6234 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6235 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6236 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6237 | 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] | 6238 | |
| 6239 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6240 | # Let make expand exec_prefix. |
| 6241 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6242 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6243 | # Any assignment to VPATH causes Sun make to only execute |
| 6244 | # the first set of double-colon rules, so remove it if not needed. |
| 6245 | # If there is a colon in the path, we need to keep it. |
| 6246 | if test "x$srcdir" = x.; then |
| 6247 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 6248 | fi |
| 6249 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6250 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6251 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6252 | DEFS=-DHAVE_CONFIG_H |
| 6253 | |
| 6254 | # Without the "./", some shells look in PATH for config.status. |
| 6255 | : ${CONFIG_STATUS=./config.status} |
| 6256 | |
| 6257 | echo creating $CONFIG_STATUS |
| 6258 | rm -f $CONFIG_STATUS |
| 6259 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6260 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6261 | # Generated automatically by configure. |
| 6262 | # Run this file to recreate the current configuration. |
| 6263 | # This directory was configured as follows, |
| 6264 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6265 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6266 | # $0 $ac_configure_args |
| 6267 | # |
| 6268 | # Compiler output produced by configure, useful for debugging |
| 6269 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6270 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6271 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6272 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6273 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6274 | case "\$ac_option" in |
| 6275 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6276 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6277 | 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] | 6278 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6279 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6280 | exit 0 ;; |
| 6281 | -help | --help | --hel | --he | --h) |
| 6282 | echo "\$ac_cs_usage"; exit 0 ;; |
| 6283 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6284 | esac |
| 6285 | done |
| 6286 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6287 | ac_given_srcdir=$srcdir |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6288 | ac_given_INSTALL="$INSTALL" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6289 | |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 6290 | trap 'rm -fr `echo "Makefile.pre Modules/Setup.config config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6291 | EOF |
| 6292 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6293 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6294 | # Protect against being on the right side of a sed subst in config.status. |
| 6295 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6296 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6297 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6298 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6299 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6300 | s%@CFLAGS@%$CFLAGS%g |
| 6301 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 6302 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6303 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6304 | s%@DEFS@%$DEFS%g |
| 6305 | s%@LDFLAGS@%$LDFLAGS%g |
| 6306 | s%@LIBS@%$LIBS%g |
| 6307 | s%@exec_prefix@%$exec_prefix%g |
| 6308 | s%@prefix@%$prefix%g |
| 6309 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6310 | s%@bindir@%$bindir%g |
| 6311 | s%@sbindir@%$sbindir%g |
| 6312 | s%@libexecdir@%$libexecdir%g |
| 6313 | s%@datadir@%$datadir%g |
| 6314 | s%@sysconfdir@%$sysconfdir%g |
| 6315 | s%@sharedstatedir@%$sharedstatedir%g |
| 6316 | s%@localstatedir@%$localstatedir%g |
| 6317 | s%@libdir@%$libdir%g |
| 6318 | s%@includedir@%$includedir%g |
| 6319 | s%@oldincludedir@%$oldincludedir%g |
| 6320 | s%@infodir@%$infodir%g |
| 6321 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 6322 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6323 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 6324 | s%@SGI_ABI@%$SGI_ABI%g |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 6325 | s%@CXX@%$CXX%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 6326 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6327 | s%@CC@%$CC%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6328 | s%@EXEEXT@%$EXEEXT%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6329 | s%@LIBRARY@%$LIBRARY%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6330 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 6331 | s%@DLLLIBRARY@%$DLLLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 6332 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6333 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6334 | s%@AR@%$AR%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6335 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6336 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6337 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6338 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 6339 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6340 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6341 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6342 | s%@SO@%$SO%g |
| 6343 | s%@LDSHARED@%$LDSHARED%g |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 6344 | s%@BLDSHARED@%$BLDSHARED%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6345 | s%@CCSHARED@%$CCSHARED%g |
| 6346 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6347 | s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6348 | s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g |
| 6349 | s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6350 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 6351 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6352 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6353 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 6354 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6355 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6356 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 6357 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 6358 | 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] | 6359 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6360 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6361 | s%@LIBM@%$LIBM%g |
| 6362 | s%@LIBC@%$LIBC%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6363 | s%@SRCDIRS@%$SRCDIRS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6364 | |
| 6365 | CEOF |
| 6366 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6367 | |
| 6368 | cat >> $CONFIG_STATUS <<\EOF |
| 6369 | |
| 6370 | # Split the substitutions into bite-sized pieces for seds with |
| 6371 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6372 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6373 | ac_file=1 # Number of current file. |
| 6374 | ac_beg=1 # First line for current file. |
| 6375 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6376 | ac_more_lines=: |
| 6377 | ac_sed_cmds="" |
| 6378 | while $ac_more_lines; do |
| 6379 | if test $ac_beg -gt 1; then |
| 6380 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6381 | else |
| 6382 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6383 | fi |
| 6384 | if test ! -s conftest.s$ac_file; then |
| 6385 | ac_more_lines=false |
| 6386 | rm -f conftest.s$ac_file |
| 6387 | else |
| 6388 | if test -z "$ac_sed_cmds"; then |
| 6389 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6390 | else |
| 6391 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6392 | fi |
| 6393 | ac_file=`expr $ac_file + 1` |
| 6394 | ac_beg=$ac_end |
| 6395 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6396 | fi |
| 6397 | done |
| 6398 | if test -z "$ac_sed_cmds"; then |
| 6399 | ac_sed_cmds=cat |
| 6400 | fi |
| 6401 | EOF |
| 6402 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6403 | cat >> $CONFIG_STATUS <<EOF |
| 6404 | |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 6405 | CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6406 | EOF |
| 6407 | cat >> $CONFIG_STATUS <<\EOF |
| 6408 | 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] | 6409 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6410 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6411 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6412 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6413 | *) ac_file_in="${ac_file}.in" ;; |
| 6414 | esac |
| 6415 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6416 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6417 | |
| 6418 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6419 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6420 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6421 | # The file is in a subdirectory. |
| 6422 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6423 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6424 | # A "../" for each directory in $ac_dir_suffix. |
| 6425 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6426 | else |
| 6427 | ac_dir_suffix= ac_dots= |
| 6428 | fi |
| 6429 | |
| 6430 | case "$ac_given_srcdir" in |
| 6431 | .) srcdir=. |
| 6432 | if test -z "$ac_dots"; then top_srcdir=. |
| 6433 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6434 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6435 | *) # Relative path. |
| 6436 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6437 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6438 | esac |
| 6439 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6440 | case "$ac_given_INSTALL" in |
| 6441 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 6442 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 6443 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6444 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6445 | echo creating "$ac_file" |
| 6446 | rm -f "$ac_file" |
| 6447 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6448 | case "$ac_file" in |
| 6449 | *Makefile*) ac_comsub="1i\\ |
| 6450 | # $configure_input" ;; |
| 6451 | *) ac_comsub= ;; |
| 6452 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6453 | |
| 6454 | 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] | 6455 | sed -e "$ac_comsub |
| 6456 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6457 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6458 | s%@top_srcdir@%$top_srcdir%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6459 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6460 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6461 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6462 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6463 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6464 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 6465 | # 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] | 6466 | # |
| 6467 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6468 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 6469 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6470 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6471 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6472 | # 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] | 6473 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6474 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6475 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6476 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6477 | # 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] | 6478 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6479 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6480 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6481 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6482 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6483 | if test "${CONFIG_HEADERS+set}" != set; then |
| 6484 | EOF |
| 6485 | cat >> $CONFIG_STATUS <<EOF |
| 6486 | CONFIG_HEADERS="config.h" |
| 6487 | EOF |
| 6488 | cat >> $CONFIG_STATUS <<\EOF |
| 6489 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6490 | 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] | 6491 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6492 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6493 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6494 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6495 | *) ac_file_in="${ac_file}.in" ;; |
| 6496 | esac |
| 6497 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6498 | echo creating $ac_file |
| 6499 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6500 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6501 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6502 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6503 | |
| 6504 | EOF |
| 6505 | |
| 6506 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 6507 | # 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] | 6508 | # 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] | 6509 | # Protect against being in an unquoted here document in config.status. |
| 6510 | rm -f conftest.vals |
| 6511 | cat > conftest.hdr <<\EOF |
| 6512 | s/[\\&%]/\\&/g |
| 6513 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6514 | 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] | 6515 | s%ac_d%ac_u%gp |
| 6516 | s%ac_u%ac_e%gp |
| 6517 | EOF |
| 6518 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 6519 | rm -f conftest.hdr |
| 6520 | |
| 6521 | # This sed command replaces #undef with comments. This is necessary, for |
| 6522 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6523 | # on some systems where configure will not decide to define it. |
| 6524 | cat >> conftest.vals <<\EOF |
| 6525 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6526 | EOF |
| 6527 | |
| 6528 | # Break up conftest.vals because some shells have a limit on |
| 6529 | # 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] | 6530 | |
| 6531 | rm -f conftest.tail |
| 6532 | while : |
| 6533 | do |
| 6534 | ac_lines=`grep -c . conftest.vals` |
| 6535 | # grep -c gives empty output for an empty file on some AIX systems. |
| 6536 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6537 | # Write a limited-size here document to conftest.frag. |
| 6538 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6539 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6540 | echo 'CEOF |
| 6541 | sed -f conftest.frag conftest.in > conftest.out |
| 6542 | rm -f conftest.in |
| 6543 | mv conftest.out conftest.in |
| 6544 | ' >> $CONFIG_STATUS |
| 6545 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6546 | rm -f conftest.vals |
| 6547 | mv conftest.tail conftest.vals |
| 6548 | done |
| 6549 | rm -f conftest.vals |
| 6550 | |
| 6551 | cat >> $CONFIG_STATUS <<\EOF |
| 6552 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6553 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6554 | cat conftest.in >> conftest.h |
| 6555 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6556 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6557 | echo "$ac_file is unchanged" |
| 6558 | rm -f conftest.h |
| 6559 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6560 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6561 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6562 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6563 | # The file is in a subdirectory. |
| 6564 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6565 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6566 | rm -f $ac_file |
| 6567 | mv conftest.h $ac_file |
| 6568 | fi |
| 6569 | fi; done |
| 6570 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6571 | EOF |
| 6572 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6573 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6574 | EOF |
| 6575 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6576 | |
| 6577 | exit 0 |
| 6578 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6579 | chmod +x $CONFIG_STATUS |
| 6580 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6581 | 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] | 6582 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6583 | |
| 6584 | echo "creating Setup" |
| 6585 | if test ! -f Modules/Setup |
| 6586 | then |
| 6587 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 6588 | fi |
| 6589 | |
| 6590 | echo "creating Setup.local" |
| 6591 | if test ! -f Modules/Setup.local |
| 6592 | then |
| 6593 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 6594 | fi |
| 6595 | |
| 6596 | echo "creating Makefile" |
| 6597 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 6598 | -s Modules Modules/Setup.config \ |
| 6599 | Modules/Setup Modules/Setup.local |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 6600 | mv config.c Modules |