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 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.215 |
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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 57 | --with-libc=STRING C library" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 58 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 59 | # Initialize some variables set by options. |
| 60 | # The variables have the same names as the options, with |
| 61 | # dashes changed to underlines. |
| 62 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 63 | cache_file=./config.cache |
| 64 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 65 | host=NONE |
| 66 | no_create= |
| 67 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 68 | no_recursion= |
| 69 | prefix=NONE |
| 70 | program_prefix=NONE |
| 71 | program_suffix=NONE |
| 72 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 73 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 74 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 75 | srcdir= |
| 76 | target=NONE |
| 77 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 78 | x_includes=NONE |
| 79 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 80 | bindir='${exec_prefix}/bin' |
| 81 | sbindir='${exec_prefix}/sbin' |
| 82 | libexecdir='${exec_prefix}/libexec' |
| 83 | datadir='${prefix}/share' |
| 84 | sysconfdir='${prefix}/etc' |
| 85 | sharedstatedir='${prefix}/com' |
| 86 | localstatedir='${prefix}/var' |
| 87 | libdir='${exec_prefix}/lib' |
| 88 | includedir='${prefix}/include' |
| 89 | oldincludedir='/usr/include' |
| 90 | infodir='${prefix}/info' |
| 91 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 92 | |
| 93 | # Initialize some other variables. |
| 94 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 95 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 96 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 97 | # Maximum number of lines to put in a shell here document. |
| 98 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 99 | |
| 100 | ac_prev= |
| 101 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 102 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 103 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 104 | # If the previous option needs an argument, assign it. |
| 105 | if test -n "$ac_prev"; then |
| 106 | eval "$ac_prev=\$ac_option" |
| 107 | ac_prev= |
| 108 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 109 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 110 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 111 | case "$ac_option" in |
| 112 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 113 | *) ac_optarg= ;; |
| 114 | esac |
| 115 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 116 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 117 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 118 | case "$ac_option" in |
| 119 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 120 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 121 | ac_prev=bindir ;; |
| 122 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 123 | bindir="$ac_optarg" ;; |
| 124 | |
| 125 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 126 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 127 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 128 | build="$ac_optarg" ;; |
| 129 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 130 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 131 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 132 | ac_prev=cache_file ;; |
| 133 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 134 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 135 | cache_file="$ac_optarg" ;; |
| 136 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 137 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 138 | ac_prev=datadir ;; |
| 139 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 140 | | --da=*) |
| 141 | datadir="$ac_optarg" ;; |
| 142 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 143 | -disable-* | --disable-*) |
| 144 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 145 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 146 | 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] | 147 | { 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] | 148 | fi |
| 149 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 150 | eval "enable_${ac_feature}=no" ;; |
| 151 | |
| 152 | -enable-* | --enable-*) |
| 153 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 154 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 155 | 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] | 156 | { 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] | 157 | fi |
| 158 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 159 | case "$ac_option" in |
| 160 | *=*) ;; |
| 161 | *) ac_optarg=yes ;; |
| 162 | esac |
| 163 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 164 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 165 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 166 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 167 | | --exec | --exe | --ex) |
| 168 | ac_prev=exec_prefix ;; |
| 169 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 170 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 171 | | --exec=* | --exe=* | --ex=*) |
| 172 | exec_prefix="$ac_optarg" ;; |
| 173 | |
| 174 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 175 | # Obsolete; use --with-gas. |
| 176 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 177 | |
| 178 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 179 | # Omit some internal or obsolete options to make the list less imposing. |
| 180 | # 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] | 181 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 182 | Usage: configure [options] [host] |
| 183 | Options: [defaults in brackets after descriptions] |
| 184 | Configuration: |
| 185 | --cache-file=FILE cache test results in FILE |
| 186 | --help print this message |
| 187 | --no-create do not create output files |
| 188 | --quiet, --silent do not print \`checking...' messages |
| 189 | --version print the version of autoconf that created configure |
| 190 | Directory and file names: |
| 191 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 192 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 193 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 194 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 195 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 196 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 197 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 198 | --datadir=DIR read-only architecture-independent data in DIR |
| 199 | [PREFIX/share] |
| 200 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 201 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 202 | [PREFIX/com] |
| 203 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 204 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 205 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 206 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 207 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 208 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 209 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 210 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 211 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 212 | --program-transform-name=PROGRAM |
| 213 | run sed PROGRAM on installed program names |
| 214 | EOF |
| 215 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 216 | Host type: |
| 217 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 218 | --host=HOST configure for HOST [guessed] |
| 219 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 220 | Features and packages: |
| 221 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 222 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 223 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 224 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 225 | --x-includes=DIR X include files are in DIR |
| 226 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 227 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 228 | if test -n "$ac_help"; then |
| 229 | echo "--enable and --with options recognized:$ac_help" |
| 230 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 231 | exit 0 ;; |
| 232 | |
| 233 | -host | --host | --hos | --ho) |
| 234 | ac_prev=host ;; |
| 235 | -host=* | --host=* | --hos=* | --ho=*) |
| 236 | host="$ac_optarg" ;; |
| 237 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 238 | -includedir | --includedir | --includedi | --included | --include \ |
| 239 | | --includ | --inclu | --incl | --inc) |
| 240 | ac_prev=includedir ;; |
| 241 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 242 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 243 | includedir="$ac_optarg" ;; |
| 244 | |
| 245 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 246 | ac_prev=infodir ;; |
| 247 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 248 | infodir="$ac_optarg" ;; |
| 249 | |
| 250 | -libdir | --libdir | --libdi | --libd) |
| 251 | ac_prev=libdir ;; |
| 252 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 253 | libdir="$ac_optarg" ;; |
| 254 | |
| 255 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 256 | | --libexe | --libex | --libe) |
| 257 | ac_prev=libexecdir ;; |
| 258 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 259 | | --libexe=* | --libex=* | --libe=*) |
| 260 | libexecdir="$ac_optarg" ;; |
| 261 | |
| 262 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 263 | | --localstate | --localstat | --localsta | --localst \ |
| 264 | | --locals | --local | --loca | --loc | --lo) |
| 265 | ac_prev=localstatedir ;; |
| 266 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 267 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 268 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 269 | localstatedir="$ac_optarg" ;; |
| 270 | |
| 271 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 272 | ac_prev=mandir ;; |
| 273 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 274 | mandir="$ac_optarg" ;; |
| 275 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 276 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 277 | # Obsolete; use --without-fp. |
| 278 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 279 | |
| 280 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 281 | | --no-cr | --no-c) |
| 282 | no_create=yes ;; |
| 283 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 284 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 285 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 286 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 287 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 288 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 289 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 290 | | --oldin | --oldi | --old | --ol | --o) |
| 291 | ac_prev=oldincludedir ;; |
| 292 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 293 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 294 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 295 | oldincludedir="$ac_optarg" ;; |
| 296 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 297 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 298 | ac_prev=prefix ;; |
| 299 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 300 | prefix="$ac_optarg" ;; |
| 301 | |
| 302 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 303 | | --program-pre | --program-pr | --program-p) |
| 304 | ac_prev=program_prefix ;; |
| 305 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 306 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 307 | program_prefix="$ac_optarg" ;; |
| 308 | |
| 309 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 310 | | --program-suf | --program-su | --program-s) |
| 311 | ac_prev=program_suffix ;; |
| 312 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 313 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 314 | program_suffix="$ac_optarg" ;; |
| 315 | |
| 316 | -program-transform-name | --program-transform-name \ |
| 317 | | --program-transform-nam | --program-transform-na \ |
| 318 | | --program-transform-n | --program-transform- \ |
| 319 | | --program-transform | --program-transfor \ |
| 320 | | --program-transfo | --program-transf \ |
| 321 | | --program-trans | --program-tran \ |
| 322 | | --progr-tra | --program-tr | --program-t) |
| 323 | ac_prev=program_transform_name ;; |
| 324 | -program-transform-name=* | --program-transform-name=* \ |
| 325 | | --program-transform-nam=* | --program-transform-na=* \ |
| 326 | | --program-transform-n=* | --program-transform-=* \ |
| 327 | | --program-transform=* | --program-transfor=* \ |
| 328 | | --program-transfo=* | --program-transf=* \ |
| 329 | | --program-trans=* | --program-tran=* \ |
| 330 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 331 | program_transform_name="$ac_optarg" ;; |
| 332 | |
| 333 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 334 | | -silent | --silent | --silen | --sile | --sil) |
| 335 | silent=yes ;; |
| 336 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 337 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 338 | ac_prev=sbindir ;; |
| 339 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 340 | | --sbi=* | --sb=*) |
| 341 | sbindir="$ac_optarg" ;; |
| 342 | |
| 343 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 344 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 345 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 346 | | --sha | --sh) |
| 347 | ac_prev=sharedstatedir ;; |
| 348 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 349 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 350 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 351 | | --sha=* | --sh=*) |
| 352 | sharedstatedir="$ac_optarg" ;; |
| 353 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 354 | -site | --site | --sit) |
| 355 | ac_prev=site ;; |
| 356 | -site=* | --site=* | --sit=*) |
| 357 | site="$ac_optarg" ;; |
| 358 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 359 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 360 | ac_prev=srcdir ;; |
| 361 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 362 | srcdir="$ac_optarg" ;; |
| 363 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 364 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 365 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 366 | ac_prev=sysconfdir ;; |
| 367 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 368 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 369 | sysconfdir="$ac_optarg" ;; |
| 370 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 371 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 372 | ac_prev=target ;; |
| 373 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 374 | target="$ac_optarg" ;; |
| 375 | |
| 376 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 377 | verbose=yes ;; |
| 378 | |
| 379 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 380 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 381 | exit 0 ;; |
| 382 | |
| 383 | -with-* | --with-*) |
| 384 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 385 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 386 | 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] | 387 | { 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] | 388 | fi |
| 389 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 390 | case "$ac_option" in |
| 391 | *=*) ;; |
| 392 | *) ac_optarg=yes ;; |
| 393 | esac |
| 394 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 395 | |
| 396 | -without-* | --without-*) |
| 397 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 398 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 399 | 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] | 400 | { 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] | 401 | fi |
| 402 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 403 | eval "with_${ac_package}=no" ;; |
| 404 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 405 | --x) |
| 406 | # Obsolete; use --with-x. |
| 407 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 408 | |
| 409 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 410 | | --x-incl | --x-inc | --x-in | --x-i) |
| 411 | ac_prev=x_includes ;; |
| 412 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 413 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 414 | x_includes="$ac_optarg" ;; |
| 415 | |
| 416 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 417 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 418 | ac_prev=x_libraries ;; |
| 419 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 420 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 421 | x_libraries="$ac_optarg" ;; |
| 422 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 423 | -*) { 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] | 424 | ;; |
| 425 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 426 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 427 | 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] | 428 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 429 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 430 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 431 | { 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] | 432 | fi |
| 433 | nonopt="$ac_option" |
| 434 | ;; |
| 435 | |
| 436 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 437 | done |
| 438 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 439 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 440 | { 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] | 441 | fi |
| 442 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 443 | 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] | 444 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 445 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 446 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 447 | # 1 file creation |
| 448 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 449 | # 3 some systems may open it to /dev/tty |
| 450 | # 4 used on the Kubota Titan |
| 451 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 452 | # 5 compiler messages saved in config.log |
| 453 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 454 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 455 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 456 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 457 | fi |
| 458 | exec 5>./config.log |
| 459 | |
| 460 | echo "\ |
| 461 | This file contains any messages produced by compilers while |
| 462 | running configure, to aid debugging if configure makes a mistake. |
| 463 | " 1>&5 |
| 464 | |
| 465 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 466 | # Also quote any args containing shell metacharacters. |
| 467 | ac_configure_args= |
| 468 | for ac_arg |
| 469 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 470 | case "$ac_arg" in |
| 471 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 472 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 473 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 474 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 475 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 476 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 477 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 478 | esac |
| 479 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 480 | |
| 481 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 482 | # Only set these to C if already set. These must not be set unconditionally |
| 483 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 484 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 485 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 486 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 487 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 488 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 489 | 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] | 490 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 491 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 492 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 493 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 494 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 495 | |
| 496 | # A filename unique to this package, relative to the directory that |
| 497 | # 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] | 498 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 499 | |
| 500 | # Find the source files, if location was not specified. |
| 501 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 502 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 503 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 504 | ac_prog=$0 |
| 505 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 506 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 507 | srcdir=$ac_confdir |
| 508 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 509 | srcdir=.. |
| 510 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 511 | else |
| 512 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 513 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 514 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 515 | if test "$ac_srcdir_defaulted" = yes; then |
| 516 | { 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] | 517 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 518 | { 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] | 519 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 520 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 521 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 522 | |
| 523 | # Prefer explicitly selected file to automatically selected ones. |
| 524 | if test -z "$CONFIG_SITE"; then |
| 525 | if test "x$prefix" != xNONE; then |
| 526 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 527 | else |
| 528 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 529 | fi |
| 530 | fi |
| 531 | for ac_site_file in $CONFIG_SITE; do |
| 532 | if test -r "$ac_site_file"; then |
| 533 | echo "loading site script $ac_site_file" |
| 534 | . "$ac_site_file" |
| 535 | fi |
| 536 | done |
| 537 | |
| 538 | if test -r "$cache_file"; then |
| 539 | echo "loading cache $cache_file" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 540 | . $cache_file |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 541 | else |
| 542 | echo "creating cache $cache_file" |
| 543 | > $cache_file |
| 544 | fi |
| 545 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 546 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 547 | # 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] | 548 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 549 | 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] | 550 | 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] | 551 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 552 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 553 | ac_exeext= |
| 554 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 555 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 556 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 557 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 558 | ac_n= ac_c=' |
| 559 | ' ac_t=' ' |
| 560 | else |
| 561 | ac_n=-n ac_c= ac_t= |
| 562 | fi |
| 563 | else |
| 564 | ac_n= ac_c='\c' ac_t= |
| 565 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 566 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 567 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 568 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 569 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 570 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 571 | |
Neil Schemenauer | 7d64577 | 2001-01-17 21:59:33 +0000 | [diff] [blame] | 572 | VERSION=2.1 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 573 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 574 | # Arguments passed to configure. |
| 575 | |
| 576 | CONFIG_ARGS="$ac_configure_args" |
| 577 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 578 | # NEXTSTEP|MacOSX|Darwin stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 579 | 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] | 580 | |
| 581 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 582 | echo "configure:583: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 583 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 584 | if test "${with_next_archs+set}" = set; then |
| 585 | withval="$with_next_archs" |
| 586 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 587 | if test -n "$withval"; then |
| 588 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 589 | # GCC does not currently support multi archs on the NeXT |
| 590 | with_gcc=no |
| 591 | fi |
| 592 | echo "$ac_t""$with_next_archs" 1>&6 |
| 593 | |
| 594 | else |
| 595 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 596 | fi |
| 597 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 598 | |
| 599 | if test -z "$MACHDEP" |
| 600 | then |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 601 | ac_sys_system=`uname -s` |
| 602 | if test "$ac_sys_system" = "Darwin" ; then |
| 603 | ac_sys_release=`uname -r` |
| 604 | else |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 605 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 606 | sed -e 's/://' -e 's/\./_/'` && \ |
| 607 | ac_sys_system=next && ac_sys_release=$4 |
| 608 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 609 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 610 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 611 | fi |
| 612 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 613 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 614 | # Check whether --with-next-framework or --without-next-framework was given. |
| 615 | if test "${with_next_framework+set}" = set; then |
| 616 | withval="$with_next_framework" |
| 617 | : |
| 618 | fi |
| 619 | |
| 620 | # Check whether --with-dyld or --without-dyld was given. |
| 621 | if test "${with_dyld+set}" = set; then |
| 622 | withval="$with_dyld" |
| 623 | : |
| 624 | fi |
| 625 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 626 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 627 | # Set name for machine-dependent library files |
| 628 | |
| 629 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 630 | echo "configure:631: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 631 | if test -z "$MACHDEP" |
| 632 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 633 | ac_sys_system=`uname -s` |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 634 | if test "$ac_sys_system" = "AIX" -o \ |
| 635 | "$ac_sys_system" = "Monterey64" -o \ |
| 636 | "$ac_sys_system" = "UnixWare"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 637 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 638 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 639 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 640 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 641 | ac_md_system=`echo $ac_sys_system | |
| 642 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 643 | ac_md_release=`echo $ac_sys_release | |
| 644 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 645 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 646 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 647 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 648 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 649 | esac |
| 650 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 651 | |
| 652 | # |
| 653 | # SGI compilers allow the specification of the both the ABI and the |
| 654 | # ISA on the command line. Depending on the values of these switches, |
| 655 | # different and often incompatable code will be generated. |
| 656 | # |
| 657 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 658 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 659 | # variable is also adjusted. |
| 660 | # |
| 661 | |
| 662 | if test ! -z "$SGI_ABI" |
| 663 | then |
| 664 | CC="cc $SGI_ABI" |
| 665 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 666 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 667 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 668 | echo "$ac_t""$MACHDEP" 1>&6 |
| 669 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 670 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 671 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 672 | echo "configure:673: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 673 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 674 | if test "${with_gcc+set}" = set; then |
| 675 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 676 | |
| 677 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 678 | no) CC=cc |
| 679 | without_gcc=yes;; |
| 680 | yes) CC=gcc |
| 681 | without_gcc=no;; |
| 682 | *) CC=$withval |
| 683 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 684 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 685 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 686 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 687 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 688 | OSF1) CC=cc |
| 689 | without_gcc=;; |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 690 | AIX*) CC=cc_r |
| 691 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 692 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 693 | case $BE_HOST_CPU in |
| 694 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 695 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 696 | without_gcc=yes |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 697 | 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] | 698 | CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 699 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 700 | ;; |
| 701 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 702 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 703 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 704 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 705 | ;; |
| 706 | *) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 707 | { 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] | 708 | ;; |
| 709 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 710 | AR="\$(srcdir)/Modules/ar_beos" |
| 711 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 712 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 713 | Monterey*) |
| 714 | RANLIB=: |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 715 | without_gcc= |
| 716 | ;; |
| 717 | UnixWare*) |
| 718 | RANLIB=: |
| 719 | without_gcc= |
| 720 | ;; |
| 721 | *) |
| 722 | without_gcc=no |
| 723 | ;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 724 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 725 | fi |
| 726 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 727 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 728 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 729 | |
| 730 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 731 | MAINOBJ=python.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 732 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 733 | echo "configure:734: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 734 | # Check whether --with-cxx or --without-cxx was given. |
| 735 | if test "${with_cxx+set}" = set; then |
| 736 | withval="$with_cxx" |
| 737 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 738 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 739 | case $withval in |
| 740 | no) CXX= |
| 741 | with_cxx=no;; |
| 742 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 743 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 744 | with_cxx=$withval;; |
| 745 | esac |
| 746 | else |
| 747 | |
| 748 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 749 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 750 | |
| 751 | fi |
| 752 | |
| 753 | echo "$ac_t""$with_cxx" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 754 | |
| 755 | |
| 756 | if test "$check_cxx" = "yes" |
| 757 | then |
| 758 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 759 | do |
| 760 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 761 | set dummy $ac_prog; ac_word=$2 |
| 762 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 763 | echo "configure:764: checking for $ac_word" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 764 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| 765 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 766 | else |
| 767 | if test -n "$CXX"; then |
| 768 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 769 | else |
| 770 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 771 | ac_dummy="$PATH" |
| 772 | for ac_dir in $ac_dummy; do |
| 773 | test -z "$ac_dir" && ac_dir=. |
| 774 | if test -f $ac_dir/$ac_word; then |
| 775 | ac_cv_prog_CXX="$ac_prog" |
| 776 | break |
| 777 | fi |
| 778 | done |
| 779 | IFS="$ac_save_ifs" |
| 780 | fi |
| 781 | fi |
| 782 | CXX="$ac_cv_prog_CXX" |
| 783 | if test -n "$CXX"; then |
| 784 | echo "$ac_t""$CXX" 1>&6 |
| 785 | else |
| 786 | echo "$ac_t""no" 1>&6 |
| 787 | fi |
| 788 | |
| 789 | test -n "$CXX" && break |
| 790 | done |
| 791 | test -n "$CXX" || CXX="notfound" |
| 792 | |
| 793 | if test "$CXX" = "notfound" |
| 794 | then |
| 795 | CXX= |
| 796 | else |
| 797 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 798 | echo "configure:799: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 799 | |
| 800 | ac_ext=C |
| 801 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 802 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 803 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 804 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 805 | cross_compiling=$ac_cv_prog_cxx_cross |
| 806 | |
| 807 | cat > conftest.$ac_ext << EOF |
| 808 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 809 | #line 810 "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 810 | #include "confdefs.h" |
| 811 | |
| 812 | int main(){return(0);} |
| 813 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 814 | if { (eval echo configure:815: \"$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] | 815 | ac_cv_prog_cxx_works=yes |
| 816 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 817 | if (./conftest; exit) 2>/dev/null; then |
| 818 | ac_cv_prog_cxx_cross=no |
| 819 | else |
| 820 | ac_cv_prog_cxx_cross=yes |
| 821 | fi |
| 822 | else |
| 823 | echo "configure: failed program was:" >&5 |
| 824 | cat conftest.$ac_ext >&5 |
| 825 | ac_cv_prog_cxx_works=no |
| 826 | fi |
| 827 | rm -fr conftest* |
| 828 | ac_ext=c |
| 829 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 830 | ac_cpp='$CPP $CPPFLAGS' |
| 831 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 832 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 833 | cross_compiling=$ac_cv_prog_cc_cross |
| 834 | |
| 835 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| 836 | if test $ac_cv_prog_cxx_works = no; then |
| 837 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| 838 | fi |
| 839 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 840 | echo "configure:841: 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] | 841 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| 842 | cross_compiling=$ac_cv_prog_cxx_cross |
| 843 | |
| 844 | fi |
| 845 | fi |
| 846 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 847 | # If the user switches compilers, we can't believe the cache |
| 848 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 849 | then |
| 850 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 851 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 852 | fi |
| 853 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 854 | # Extract the first word of "gcc", so it can be a program name with args. |
| 855 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 856 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 857 | echo "configure:858: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 858 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 859 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 860 | else |
| 861 | if test -n "$CC"; then |
| 862 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 863 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 864 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 865 | ac_dummy="$PATH" |
| 866 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 867 | test -z "$ac_dir" && ac_dir=. |
| 868 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 869 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 870 | break |
| 871 | fi |
| 872 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 873 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 874 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 875 | fi |
| 876 | CC="$ac_cv_prog_CC" |
| 877 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 878 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 879 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 880 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 881 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 882 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 883 | if test -z "$CC"; then |
| 884 | # Extract the first word of "cc", so it can be a program name with args. |
| 885 | set dummy cc; ac_word=$2 |
| 886 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 887 | echo "configure:888: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 888 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 889 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 890 | else |
| 891 | if test -n "$CC"; then |
| 892 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 893 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 894 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 895 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 896 | ac_dummy="$PATH" |
| 897 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 898 | test -z "$ac_dir" && ac_dir=. |
| 899 | if test -f $ac_dir/$ac_word; then |
| 900 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 901 | ac_prog_rejected=yes |
| 902 | continue |
| 903 | fi |
| 904 | ac_cv_prog_CC="cc" |
| 905 | break |
| 906 | fi |
| 907 | done |
| 908 | IFS="$ac_save_ifs" |
| 909 | if test $ac_prog_rejected = yes; then |
| 910 | # We found a bogon in the path, so make sure we never use it. |
| 911 | set dummy $ac_cv_prog_CC |
| 912 | shift |
| 913 | if test $# -gt 0; then |
| 914 | # We chose a different compiler from the bogus one. |
| 915 | # However, it has the same basename, so the bogon will be chosen |
| 916 | # first if we set CC to just the basename; use the full file name. |
| 917 | shift |
| 918 | set dummy "$ac_dir/$ac_word" "$@" |
| 919 | shift |
| 920 | ac_cv_prog_CC="$@" |
| 921 | fi |
| 922 | fi |
| 923 | fi |
| 924 | fi |
| 925 | CC="$ac_cv_prog_CC" |
| 926 | if test -n "$CC"; then |
| 927 | echo "$ac_t""$CC" 1>&6 |
| 928 | else |
| 929 | echo "$ac_t""no" 1>&6 |
| 930 | fi |
| 931 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 932 | if test -z "$CC"; then |
| 933 | case "`uname -s`" in |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 934 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 935 | # Extract the first word of "cl", so it can be a program name with args. |
| 936 | set dummy cl; ac_word=$2 |
| 937 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 938 | echo "configure:939: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 939 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 940 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 941 | else |
| 942 | if test -n "$CC"; then |
| 943 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 944 | else |
| 945 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 946 | ac_dummy="$PATH" |
| 947 | for ac_dir in $ac_dummy; do |
| 948 | test -z "$ac_dir" && ac_dir=. |
| 949 | if test -f $ac_dir/$ac_word; then |
| 950 | ac_cv_prog_CC="cl" |
| 951 | break |
| 952 | fi |
| 953 | done |
| 954 | IFS="$ac_save_ifs" |
| 955 | fi |
| 956 | fi |
| 957 | CC="$ac_cv_prog_CC" |
| 958 | if test -n "$CC"; then |
| 959 | echo "$ac_t""$CC" 1>&6 |
| 960 | else |
| 961 | echo "$ac_t""no" 1>&6 |
| 962 | fi |
| 963 | ;; |
| 964 | esac |
| 965 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 966 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 967 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 968 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 969 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 970 | echo "configure:971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 971 | |
| 972 | ac_ext=c |
| 973 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 974 | ac_cpp='$CPP $CPPFLAGS' |
| 975 | 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] | 976 | 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] | 977 | cross_compiling=$ac_cv_prog_cc_cross |
| 978 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 979 | cat > conftest.$ac_ext << EOF |
| 980 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 981 | #line 982 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 982 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 983 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 984 | main(){return(0);} |
| 985 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 986 | if { (eval echo configure:987: \"$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] | 987 | ac_cv_prog_cc_works=yes |
| 988 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 989 | if (./conftest; exit) 2>/dev/null; then |
| 990 | ac_cv_prog_cc_cross=no |
| 991 | else |
| 992 | ac_cv_prog_cc_cross=yes |
| 993 | fi |
| 994 | else |
| 995 | echo "configure: failed program was:" >&5 |
| 996 | cat conftest.$ac_ext >&5 |
| 997 | ac_cv_prog_cc_works=no |
| 998 | fi |
| 999 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1000 | ac_ext=c |
| 1001 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1002 | ac_cpp='$CPP $CPPFLAGS' |
| 1003 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 1004 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1005 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1006 | |
| 1007 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1008 | if test $ac_cv_prog_cc_works = no; then |
| 1009 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1010 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1011 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1012 | echo "configure:1013: 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] | 1013 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1014 | cross_compiling=$ac_cv_prog_cc_cross |
| 1015 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1016 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1017 | echo "configure:1018: checking whether we are using GNU C" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1018 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1019 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1020 | else |
| 1021 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1022 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1023 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1024 | #endif |
| 1025 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1026 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1027: \"$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] | 1027 | ac_cv_prog_gcc=yes |
| 1028 | else |
| 1029 | ac_cv_prog_gcc=no |
| 1030 | fi |
| 1031 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1032 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1033 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1034 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1035 | if test $ac_cv_prog_gcc = yes; then |
| 1036 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1037 | else |
| 1038 | GCC= |
| 1039 | fi |
| 1040 | |
| 1041 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1042 | ac_save_CFLAGS="$CFLAGS" |
| 1043 | CFLAGS= |
| 1044 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1045 | echo "configure:1046: checking whether ${CC-cc} accepts -g" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1046 | 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] | 1047 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1048 | else |
| 1049 | echo 'void f(){}' > conftest.c |
| 1050 | 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] | 1051 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1052 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1053 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1054 | fi |
| 1055 | rm -f conftest* |
| 1056 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1057 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1058 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1059 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1060 | if test "$ac_test_CFLAGS" = set; then |
| 1061 | CFLAGS="$ac_save_CFLAGS" |
| 1062 | elif test $ac_cv_prog_cc_g = yes; then |
| 1063 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1064 | CFLAGS="-g -O2" |
| 1065 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1066 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1067 | fi |
| 1068 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1069 | if test "$GCC" = yes; then |
| 1070 | CFLAGS="-O2" |
| 1071 | else |
| 1072 | CFLAGS= |
| 1073 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1074 | fi |
| 1075 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1076 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1077 | echo "configure:1078: checking for Cygwin environment" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1078 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1079 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1080 | else |
| 1081 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1082 | #line 1083 "configure" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1083 | #include "confdefs.h" |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1084 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1085 | int main() { |
| 1086 | |
| 1087 | #ifndef __CYGWIN__ |
| 1088 | #define __CYGWIN__ __CYGWIN32__ |
| 1089 | #endif |
| 1090 | return __CYGWIN__; |
| 1091 | ; return 0; } |
| 1092 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1093 | if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1094 | rm -rf conftest* |
| 1095 | ac_cv_cygwin=yes |
| 1096 | else |
| 1097 | echo "configure: failed program was:" >&5 |
| 1098 | cat conftest.$ac_ext >&5 |
| 1099 | rm -rf conftest* |
| 1100 | ac_cv_cygwin=no |
| 1101 | fi |
| 1102 | rm -f conftest* |
| 1103 | rm -f conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1104 | fi |
| 1105 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1106 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1107 | CYGWIN= |
| 1108 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1109 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1110 | echo "configure:1111: checking for mingw32 environment" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1111 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1112 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1113 | else |
| 1114 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1115 | #line 1116 "configure" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1116 | #include "confdefs.h" |
| 1117 | |
| 1118 | int main() { |
| 1119 | return __MINGW32__; |
| 1120 | ; return 0; } |
| 1121 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1122 | if { (eval echo configure:1123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1123 | rm -rf conftest* |
| 1124 | ac_cv_mingw32=yes |
| 1125 | else |
| 1126 | echo "configure: failed program was:" >&5 |
| 1127 | cat conftest.$ac_ext >&5 |
| 1128 | rm -rf conftest* |
| 1129 | ac_cv_mingw32=no |
| 1130 | fi |
| 1131 | rm -f conftest* |
| 1132 | rm -f conftest* |
| 1133 | fi |
| 1134 | |
| 1135 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1136 | MINGW32= |
| 1137 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1138 | |
| 1139 | |
| 1140 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1141 | echo "configure:1142: checking for executable suffix" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1142 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 1143 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1144 | else |
| 1145 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 1146 | ac_cv_exeext=.exe |
| 1147 | else |
| 1148 | rm -f conftest* |
| 1149 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 1150 | ac_cv_exeext= |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1151 | if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1152 | for file in conftest.*; do |
| 1153 | case $file in |
| 1154 | *.c | *.o | *.obj) ;; |
| 1155 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 1156 | esac |
| 1157 | done |
| 1158 | else |
| 1159 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 1160 | fi |
| 1161 | rm -f conftest* |
| 1162 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 1163 | fi |
| 1164 | fi |
| 1165 | |
| 1166 | EXEEXT="" |
| 1167 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 1168 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 1169 | ac_exeext=$EXEEXT |
| 1170 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1171 | echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1172 | echo "configure:1173: checking for --with-suffix" >&5 |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1173 | # Check whether --with-suffix or --without-suffix was given. |
| 1174 | if test "${with_suffix+set}" = set; then |
| 1175 | withval="$with_suffix" |
| 1176 | |
| 1177 | case $withval in |
| 1178 | no) EXEEXT=;; |
| 1179 | yes) EXEEXT=.exe;; |
| 1180 | *) EXEEXT=$withval;; |
| 1181 | esac |
| 1182 | fi |
| 1183 | |
| 1184 | echo "$ac_t""$EXEEXT" 1>&6 |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1185 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1186 | case $MACHDEP in |
| 1187 | bsdos*) |
| 1188 | case $CC in |
| 1189 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1190 | esac;; |
| 1191 | esac |
| 1192 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1193 | case $ac_sys_system in |
| 1194 | hp*|HP*) |
| 1195 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1196 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1197 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1198 | Monterey*) |
| 1199 | case $CC in |
| 1200 | cc) CC="$CC -Wl,-Bexport";; |
| 1201 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1202 | SunOS*) |
| 1203 | # Some functions have a prototype only with that define, e.g. confstr |
| 1204 | cat >> confdefs.h <<\EOF |
| 1205 | #define __EXTENSIONS__ 1 |
| 1206 | EOF |
| 1207 | |
| 1208 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1209 | esac |
| 1210 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1211 | |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1212 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1213 | echo $ac_n "checking LIBRARY""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1214 | echo "configure:1215: checking LIBRARY" >&5 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1215 | if test -z "$LIBRARY" |
| 1216 | then |
| 1217 | LIBRARY='libpython$(VERSION).a' |
| 1218 | fi |
| 1219 | echo "$ac_t""$LIBRARY" 1>&6 |
| 1220 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1221 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1222 | # name of the library into which to insert object files). On systems |
| 1223 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1224 | # the Makefiles). On Cygwin LDLIBRARY is the import library, DLLLIBRARY is the |
| 1225 | # shared (i.e., DLL) library. |
| 1226 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1227 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1228 | LDLIBRARY="$LIBRARY" |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 1229 | DLLLIBRARY='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1230 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1231 | # LINKCC is the command that links the python executable -- default is $(CC). |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1232 | # 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] | 1233 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1234 | |
| 1235 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1236 | echo "configure:1237: checking LINKCC" >&5 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1237 | if test -z "$LINKCC" |
| 1238 | then |
| 1239 | case $ac_sys_system in |
| 1240 | AIX*) |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1241 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1242 | dgux*) |
| 1243 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1244 | Monterey64*) |
| 1245 | LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1246 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1247 | esac |
| 1248 | fi |
| 1249 | echo "$ac_t""$LINKCC" 1>&6 |
| 1250 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1251 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1252 | echo "configure:1253: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1253 | |
| 1254 | # NeXT framework builds require that the 'ar' library be converted into |
| 1255 | # a bundle using libtool. |
| 1256 | if test "$with_next_framework" |
| 1257 | then |
| 1258 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1259 | fi |
| 1260 | |
| 1261 | # 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] | 1262 | case $MACHDEP in |
| 1263 | dguxR4) |
| 1264 | LDLIBRARY='libpython$(VERSION).so' |
| 1265 | OPT="$OPT -pic" |
| 1266 | ;; |
| 1267 | beos*) |
| 1268 | LDLIBRARY='libpython$(VERSION).so' |
| 1269 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1270 | cygwin*) |
| 1271 | LDLIBRARY='libpython$(VERSION).dll.a' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1272 | DLLLIBRARY='libpython$(VERSION).dll' |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1273 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1274 | unixware*) |
| 1275 | LDLIBRARY='libpython$(VERSION).so' |
| 1276 | ;; |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1277 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1278 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1279 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1280 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1281 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1282 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1283 | echo "configure:1284: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1284 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1285 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1286 | else |
| 1287 | if test -n "$RANLIB"; then |
| 1288 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1289 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1290 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1291 | ac_dummy="$PATH" |
| 1292 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1293 | test -z "$ac_dir" && ac_dir=. |
| 1294 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1295 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1296 | break |
| 1297 | fi |
| 1298 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1299 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1300 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1301 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1302 | fi |
| 1303 | RANLIB="$ac_cv_prog_RANLIB" |
| 1304 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1305 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1306 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1307 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1308 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1309 | |
| 1310 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1311 | for ac_prog in ar aal |
| 1312 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1313 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1314 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1315 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1316 | echo "configure:1317: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1317 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1318 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1319 | else |
| 1320 | if test -n "$AR"; then |
| 1321 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1322 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1323 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1324 | ac_dummy="$PATH" |
| 1325 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1326 | test -z "$ac_dir" && ac_dir=. |
| 1327 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1328 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1329 | break |
| 1330 | fi |
| 1331 | done |
| 1332 | IFS="$ac_save_ifs" |
| 1333 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1334 | fi |
| 1335 | AR="$ac_cv_prog_AR" |
| 1336 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1337 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1338 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1339 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1340 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1341 | |
| 1342 | test -n "$AR" && break |
| 1343 | done |
| 1344 | test -n "$AR" || AR="ar" |
| 1345 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 1346 | |
| 1347 | case $MACHDEP in |
| 1348 | bsdos*) |
| 1349 | # install -d does not work on BSDI |
| 1350 | if test -z "$INSTALL" |
| 1351 | then |
| 1352 | INSTALL="${srcdir}/install-sh -c" |
| 1353 | fi |
| 1354 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1355 | ac_aux_dir= |
| 1356 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1357 | if test -f $ac_dir/install-sh; then |
| 1358 | ac_aux_dir=$ac_dir |
| 1359 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1360 | break |
| 1361 | elif test -f $ac_dir/install.sh; then |
| 1362 | ac_aux_dir=$ac_dir |
| 1363 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1364 | break |
| 1365 | fi |
| 1366 | done |
| 1367 | if test -z "$ac_aux_dir"; then |
| 1368 | { 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] | 1369 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1370 | ac_config_guess=$ac_aux_dir/config.guess |
| 1371 | ac_config_sub=$ac_aux_dir/config.sub |
| 1372 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 1373 | |
| 1374 | # Find a good install program. We prefer a C program (faster), |
| 1375 | # so one script is as good as another. But avoid the broken or |
| 1376 | # incompatible versions: |
| 1377 | # SysV /etc/install, /usr/sbin/install |
| 1378 | # SunOS /usr/etc/install |
| 1379 | # IRIX /sbin/install |
| 1380 | # AIX /bin/install |
| 1381 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1382 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1383 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1384 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1385 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1386 | echo "configure:1387: checking for a BSD compatible install" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1387 | if test -z "$INSTALL"; then |
| 1388 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1389 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1390 | else |
| 1391 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 1392 | for ac_dir in $PATH; do |
| 1393 | # Account for people who put trailing slashes in PATH elements. |
| 1394 | case "$ac_dir/" in |
| 1395 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1396 | *) |
| 1397 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1398 | # Don't use installbsd from OSF since it installs stuff as root |
| 1399 | # by default. |
| 1400 | for ac_prog in ginstall scoinst install; do |
| 1401 | if test -f $ac_dir/$ac_prog; then |
| 1402 | if test $ac_prog = install && |
| 1403 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1404 | # AIX install. It has an incompatible calling convention. |
| 1405 | : |
| 1406 | else |
| 1407 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1408 | break 2 |
| 1409 | fi |
| 1410 | fi |
| 1411 | done |
| 1412 | ;; |
| 1413 | esac |
| 1414 | done |
| 1415 | IFS="$ac_save_IFS" |
| 1416 | |
| 1417 | fi |
| 1418 | if test "${ac_cv_path_install+set}" = set; then |
| 1419 | INSTALL="$ac_cv_path_install" |
| 1420 | else |
| 1421 | # As a last resort, use the slow shell script. We don't cache a |
| 1422 | # path for INSTALL within a source directory, because that will |
| 1423 | # break other packages using the cache if that directory is |
| 1424 | # removed, or if the path is relative. |
| 1425 | INSTALL="$ac_install_sh" |
| 1426 | fi |
| 1427 | fi |
| 1428 | echo "$ac_t""$INSTALL" 1>&6 |
| 1429 | |
| 1430 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1431 | # It thinks the first close brace ends the variable substitution. |
| 1432 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1433 | |
| 1434 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 1435 | |
| 1436 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1437 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1438 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1439 | # Not every filesystem supports hard links |
| 1440 | |
| 1441 | if test -z "$LN" ; then |
| 1442 | case $ac_sys_system in |
| 1443 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1444 | CYGWIN*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1445 | *) LN=ln;; |
| 1446 | esac |
| 1447 | fi |
| 1448 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1449 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1450 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1451 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1452 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1453 | case $GCC in |
| 1454 | yes) |
| 1455 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1456 | yes) |
| 1457 | OPT="-g -O2 -Wall -Wstrict-prototypes";; |
| 1458 | *) |
| 1459 | OPT="-O2 -Wall -Wstrict-prototypes";; |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1460 | esac |
| 1461 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1462 | *) |
| 1463 | case $ac_sys_system in |
| 1464 | UnixWare*) |
| 1465 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
| 1466 | *) |
| 1467 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1468 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1469 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1470 | fi |
| 1471 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1472 | # The current (beta) Monterey compiler dies with optimizations |
| 1473 | case $ac_sys_system in |
| 1474 | Monterey*) OPT="";; |
| 1475 | esac |
| 1476 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1477 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1478 | then |
| 1479 | OPT="$OPT $ac_arch_flags" |
| 1480 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1481 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1482 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1483 | echo "configure:1484: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1484 | # On Suns, sometimes $CPP names a directory. |
| 1485 | if test -n "$CPP" && test -d "$CPP"; then |
| 1486 | CPP= |
| 1487 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1488 | if test -z "$CPP"; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1489 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1490 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1491 | else |
| 1492 | # This must be in double quotes, not single quotes, because CPP may get |
| 1493 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1494 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1495 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1496 | # not just through cpp. |
| 1497 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1498 | #line 1499 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1499 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1500 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1501 | Syntax Error |
| 1502 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1503 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1504 | { (eval echo configure:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1505 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1506 | if test -z "$ac_err"; then |
| 1507 | : |
| 1508 | else |
| 1509 | echo "$ac_err" >&5 |
| 1510 | echo "configure: failed program was:" >&5 |
| 1511 | cat conftest.$ac_ext >&5 |
| 1512 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1513 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1514 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1515 | #line 1516 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1516 | #include "confdefs.h" |
| 1517 | #include <assert.h> |
| 1518 | Syntax Error |
| 1519 | EOF |
| 1520 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1521 | { (eval echo configure:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1522 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1523 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1524 | : |
| 1525 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1526 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1527 | echo "configure: failed program was:" >&5 |
| 1528 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1529 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1530 | CPP="${CC-cc} -nologo -E" |
| 1531 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1532 | #line 1533 "configure" |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1533 | #include "confdefs.h" |
| 1534 | #include <assert.h> |
| 1535 | Syntax Error |
| 1536 | EOF |
| 1537 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1538 | { (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1539 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1540 | if test -z "$ac_err"; then |
| 1541 | : |
| 1542 | else |
| 1543 | echo "$ac_err" >&5 |
| 1544 | echo "configure: failed program was:" >&5 |
| 1545 | cat conftest.$ac_ext >&5 |
| 1546 | rm -rf conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1547 | CPP=/lib/cpp |
| 1548 | fi |
| 1549 | rm -f conftest* |
| 1550 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1551 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1552 | fi |
| 1553 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1554 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1555 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1556 | CPP="$ac_cv_prog_CPP" |
| 1557 | else |
| 1558 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1559 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1560 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1561 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1562 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1563 | echo "configure:1564: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1564 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1565 | #line 1566 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1566 | #include "confdefs.h" |
| 1567 | #ifdef _AIX |
| 1568 | yes |
| 1569 | #endif |
| 1570 | |
| 1571 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1572 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1573 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1574 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1575 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1576 | #define _ALL_SOURCE 1 |
| 1577 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1578 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1579 | else |
| 1580 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1581 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1582 | fi |
| 1583 | rm -f conftest* |
| 1584 | |
| 1585 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1586 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1587 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1588 | echo "configure:1589: checking for minix/config.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1589 | 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] | 1590 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1591 | else |
| 1592 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1593 | #line 1594 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1594 | #include "confdefs.h" |
| 1595 | #include <minix/config.h> |
| 1596 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1597 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1598 | { (eval echo configure:1599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1599 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1600 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1601 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1602 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1603 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1604 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1605 | echo "configure: failed program was:" >&5 |
| 1606 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1607 | rm -rf conftest* |
| 1608 | eval "ac_cv_header_$ac_safe=no" |
| 1609 | fi |
| 1610 | rm -f conftest* |
| 1611 | fi |
| 1612 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1613 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1614 | MINIX=yes |
| 1615 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1616 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1617 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1618 | fi |
| 1619 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1620 | if test "$MINIX" = yes; then |
| 1621 | cat >> confdefs.h <<\EOF |
| 1622 | #define _POSIX_SOURCE 1 |
| 1623 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1624 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1625 | cat >> confdefs.h <<\EOF |
| 1626 | #define _POSIX_1_SOURCE 2 |
| 1627 | EOF |
| 1628 | |
| 1629 | cat >> confdefs.h <<\EOF |
| 1630 | #define _MINIX 1 |
| 1631 | EOF |
| 1632 | |
| 1633 | fi |
| 1634 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1635 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1636 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1637 | echo "configure:1638: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1638 | 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] | 1639 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1640 | else |
| 1641 | ac_save_cc="$CC" |
| 1642 | CC="$CC -OPT:Olimit=0" |
| 1643 | if test "$cross_compiling" = yes; then |
| 1644 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1645 | else |
| 1646 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1647 | #line 1648 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1648 | #include "confdefs.h" |
| 1649 | int main() { return 0; } |
| 1650 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1651 | if { (eval echo configure:1652: \"$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] | 1652 | then |
| 1653 | ac_cv_opt_olimit_ok=yes |
| 1654 | else |
| 1655 | echo "configure: failed program was:" >&5 |
| 1656 | cat conftest.$ac_ext >&5 |
| 1657 | rm -fr conftest* |
| 1658 | ac_cv_opt_olimit_ok=no |
| 1659 | fi |
| 1660 | rm -fr conftest* |
| 1661 | fi |
| 1662 | |
| 1663 | CC="$ac_save_cc" |
| 1664 | fi |
| 1665 | |
| 1666 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1667 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 1668 | case $ac_sys_system in |
| 1669 | Darwin*) OPT="$OPT" ;; |
| 1670 | *) OPT="$OPT -OPT:Olimit=0";; |
| 1671 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1672 | else |
| 1673 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1674 | echo "configure:1675: checking whether $CC accepts -Olimit 1500" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1675 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1676 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1677 | else |
| 1678 | ac_save_cc="$CC" |
| 1679 | CC="$CC -Olimit 1500" |
| 1680 | if test "$cross_compiling" = yes; then |
| 1681 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1682 | else |
| 1683 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1684 | #line 1685 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1685 | #include "confdefs.h" |
| 1686 | int main() { return 0; } |
| 1687 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1688 | if { (eval echo configure:1689: \"$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] | 1689 | then |
| 1690 | ac_cv_olimit_ok=yes |
| 1691 | else |
| 1692 | echo "configure: failed program was:" >&5 |
| 1693 | cat conftest.$ac_ext >&5 |
| 1694 | rm -fr conftest* |
| 1695 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1696 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1697 | rm -fr conftest* |
| 1698 | fi |
| 1699 | |
| 1700 | CC="$ac_save_cc" |
| 1701 | fi |
| 1702 | |
| 1703 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1704 | if test $ac_cv_olimit_ok = yes; then |
| 1705 | OPT="$OPT -Olimit 1500" |
| 1706 | fi |
| 1707 | fi |
| 1708 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1709 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1710 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1711 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1712 | echo "configure:1713: checking for ANSI C header files" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1713 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1714 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1715 | else |
| 1716 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1717 | #line 1718 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1718 | #include "confdefs.h" |
| 1719 | #include <stdlib.h> |
| 1720 | #include <stdarg.h> |
| 1721 | #include <string.h> |
| 1722 | #include <float.h> |
| 1723 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1724 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1725 | { (eval echo configure:1726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1726 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1727 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1728 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1729 | ac_cv_header_stdc=yes |
| 1730 | else |
| 1731 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1732 | echo "configure: failed program was:" >&5 |
| 1733 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1734 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1735 | ac_cv_header_stdc=no |
| 1736 | fi |
| 1737 | rm -f conftest* |
| 1738 | |
| 1739 | if test $ac_cv_header_stdc = yes; then |
| 1740 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1741 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1742 | #line 1743 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1743 | #include "confdefs.h" |
| 1744 | #include <string.h> |
| 1745 | EOF |
| 1746 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1747 | egrep "memchr" >/dev/null 2>&1; then |
| 1748 | : |
| 1749 | else |
| 1750 | rm -rf conftest* |
| 1751 | ac_cv_header_stdc=no |
| 1752 | fi |
| 1753 | rm -f conftest* |
| 1754 | |
| 1755 | fi |
| 1756 | |
| 1757 | if test $ac_cv_header_stdc = yes; then |
| 1758 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1759 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1760 | #line 1761 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1761 | #include "confdefs.h" |
| 1762 | #include <stdlib.h> |
| 1763 | EOF |
| 1764 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1765 | egrep "free" >/dev/null 2>&1; then |
| 1766 | : |
| 1767 | else |
| 1768 | rm -rf conftest* |
| 1769 | ac_cv_header_stdc=no |
| 1770 | fi |
| 1771 | rm -f conftest* |
| 1772 | |
| 1773 | fi |
| 1774 | |
| 1775 | if test $ac_cv_header_stdc = yes; then |
| 1776 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1777 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1778 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1779 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1780 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1781 | #line 1782 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1782 | #include "confdefs.h" |
| 1783 | #include <ctype.h> |
| 1784 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1785 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1786 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1787 | int main () { int i; for (i = 0; i < 256; i++) |
| 1788 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1789 | exit (0); } |
| 1790 | |
| 1791 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1792 | if { (eval echo configure:1793: \"$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] | 1793 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1794 | : |
| 1795 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1796 | echo "configure: failed program was:" >&5 |
| 1797 | cat conftest.$ac_ext >&5 |
| 1798 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1799 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1800 | fi |
| 1801 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1802 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1803 | |
| 1804 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1805 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1806 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1807 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1808 | if test $ac_cv_header_stdc = yes; then |
| 1809 | cat >> confdefs.h <<\EOF |
| 1810 | #define STDC_HEADERS 1 |
| 1811 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1812 | |
| 1813 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1814 | |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 1815 | 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] | 1816 | 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] | 1817 | 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] | 1818 | 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] | 1819 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
| 1820 | ndbm.h db1/ndbm.h gdbm/ndbm.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1821 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1822 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1823 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1824 | echo "configure:1825: checking for $ac_hdr" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1825 | 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] | 1826 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1827 | else |
| 1828 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1829 | #line 1830 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1830 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1831 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1832 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1833 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1834 | { (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1835 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1836 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1837 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1838 | eval "ac_cv_header_$ac_safe=yes" |
| 1839 | else |
| 1840 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1841 | echo "configure: failed program was:" >&5 |
| 1842 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1843 | rm -rf conftest* |
| 1844 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1845 | fi |
| 1846 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1847 | fi |
| 1848 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1849 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1850 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1851 | cat >> confdefs.h <<EOF |
| 1852 | #define $ac_tr_hdr 1 |
| 1853 | EOF |
| 1854 | |
| 1855 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1856 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1857 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1858 | done |
| 1859 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1860 | ac_header_dirent=no |
| 1861 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1862 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1863 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1864 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1865 | echo "configure:1866: checking for $ac_hdr that defines DIR" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1866 | 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] | 1867 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1868 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1869 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1870 | #line 1871 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1871 | #include "confdefs.h" |
| 1872 | #include <sys/types.h> |
| 1873 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1874 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1875 | DIR *dirp = 0; |
| 1876 | ; return 0; } |
| 1877 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1878 | if { (eval echo configure:1879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1879 | rm -rf conftest* |
| 1880 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1881 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1882 | echo "configure: failed program was:" >&5 |
| 1883 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1884 | rm -rf conftest* |
| 1885 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1886 | fi |
| 1887 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1888 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1889 | 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] | 1890 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1891 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1892 | cat >> confdefs.h <<EOF |
| 1893 | #define $ac_tr_hdr 1 |
| 1894 | EOF |
| 1895 | ac_header_dirent=$ac_hdr; break |
| 1896 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1897 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1898 | fi |
| 1899 | done |
| 1900 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1901 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1902 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1903 | echo "configure:1904: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1904 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1905 | 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] | 1906 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1907 | else |
| 1908 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1909 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1910 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1911 | #line 1912 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1912 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1913 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1914 | /* We use char because int might match the return type of a gcc2 |
| 1915 | builtin and then its argument prototype would still apply. */ |
| 1916 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1917 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1918 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1919 | opendir() |
| 1920 | ; return 0; } |
| 1921 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1922 | if { (eval echo configure:1923: \"$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] | 1923 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1924 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1925 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1926 | echo "configure: failed program was:" >&5 |
| 1927 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1928 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1929 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1930 | fi |
| 1931 | rm -f conftest* |
| 1932 | LIBS="$ac_save_LIBS" |
| 1933 | |
| 1934 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1935 | 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] | 1936 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1937 | LIBS="$LIBS -ldir" |
| 1938 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1939 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1940 | fi |
| 1941 | |
| 1942 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1943 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1944 | echo "configure:1945: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1945 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1946 | 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] | 1947 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1948 | else |
| 1949 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1950 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1951 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1952 | #line 1953 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1953 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1954 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1955 | /* We use char because int might match the return type of a gcc2 |
| 1956 | builtin and then its argument prototype would still apply. */ |
| 1957 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1958 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1959 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1960 | opendir() |
| 1961 | ; return 0; } |
| 1962 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1963 | if { (eval echo configure:1964: \"$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] | 1964 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1965 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1966 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1967 | echo "configure: failed program was:" >&5 |
| 1968 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1969 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1970 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1971 | fi |
| 1972 | rm -f conftest* |
| 1973 | LIBS="$ac_save_LIBS" |
| 1974 | |
| 1975 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1976 | 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] | 1977 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1978 | LIBS="$LIBS -lx" |
| 1979 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1980 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1981 | fi |
| 1982 | |
| 1983 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1984 | |
| 1985 | |
| 1986 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1987 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1988 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1989 | echo "configure:1990: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1990 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1991 | #line 1992 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1992 | #include "confdefs.h" |
| 1993 | #include <time.h> |
| 1994 | EOF |
| 1995 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1996 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1997 | rm -rf conftest* |
| 1998 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1999 | else |
| 2000 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2001 | cat >> confdefs.h <<\EOF |
| 2002 | #define clock_t long |
| 2003 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2004 | |
| 2005 | fi |
| 2006 | rm -f conftest* |
| 2007 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2008 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2009 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2010 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 2011 | cat >> confdefs.h <<\EOF |
| 2012 | #if defined(SCO_DS) |
| 2013 | #undef _OFF_T |
| 2014 | #endif |
| 2015 | EOF |
| 2016 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2017 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2018 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2019 | echo "configure:2020: checking for mode_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2020 | 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] | 2021 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2022 | else |
| 2023 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2024 | #line 2025 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2025 | #include "confdefs.h" |
| 2026 | #include <sys/types.h> |
| 2027 | #if STDC_HEADERS |
| 2028 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2029 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2030 | #endif |
| 2031 | EOF |
| 2032 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2033 | 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] | 2034 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2035 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2036 | else |
| 2037 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2038 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2039 | fi |
| 2040 | rm -f conftest* |
| 2041 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2042 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2043 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 2044 | if test $ac_cv_type_mode_t = no; then |
| 2045 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2046 | #define mode_t int |
| 2047 | EOF |
| 2048 | |
| 2049 | fi |
| 2050 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2051 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2052 | echo "configure:2053: checking for off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2053 | 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] | 2054 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2055 | else |
| 2056 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2057 | #line 2058 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2058 | #include "confdefs.h" |
| 2059 | #include <sys/types.h> |
| 2060 | #if STDC_HEADERS |
| 2061 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2062 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2063 | #endif |
| 2064 | EOF |
| 2065 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2066 | 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] | 2067 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2068 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2069 | else |
| 2070 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2071 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2072 | fi |
| 2073 | rm -f conftest* |
| 2074 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2075 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2076 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2077 | if test $ac_cv_type_off_t = no; then |
| 2078 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2079 | #define off_t long |
| 2080 | EOF |
| 2081 | |
| 2082 | fi |
| 2083 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2084 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2085 | echo "configure:2086: checking for pid_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2086 | 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] | 2087 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2088 | else |
| 2089 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2090 | #line 2091 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2091 | #include "confdefs.h" |
| 2092 | #include <sys/types.h> |
| 2093 | #if STDC_HEADERS |
| 2094 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2095 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2096 | #endif |
| 2097 | EOF |
| 2098 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2099 | 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] | 2100 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2101 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2102 | else |
| 2103 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2104 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2105 | fi |
| 2106 | rm -f conftest* |
| 2107 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2108 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2109 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 2110 | if test $ac_cv_type_pid_t = no; then |
| 2111 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2112 | #define pid_t int |
| 2113 | EOF |
| 2114 | |
| 2115 | fi |
| 2116 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2117 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2118 | echo "configure:2119: checking return type of signal handlers" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2119 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2120 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2121 | else |
| 2122 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2123 | #line 2124 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2124 | #include "confdefs.h" |
| 2125 | #include <sys/types.h> |
| 2126 | #include <signal.h> |
| 2127 | #ifdef signal |
| 2128 | #undef signal |
| 2129 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2130 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2131 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 2132 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2133 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2134 | #endif |
| 2135 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2136 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2137 | int i; |
| 2138 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2139 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2140 | if { (eval echo configure:2141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2141 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2142 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2143 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2144 | echo "configure: failed program was:" >&5 |
| 2145 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2146 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2147 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2148 | fi |
| 2149 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2150 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2151 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2152 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2153 | cat >> confdefs.h <<EOF |
| 2154 | #define RETSIGTYPE $ac_cv_type_signal |
| 2155 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2156 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2157 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2158 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2159 | echo "configure:2160: checking for size_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2160 | 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] | 2161 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2162 | else |
| 2163 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2164 | #line 2165 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2165 | #include "confdefs.h" |
| 2166 | #include <sys/types.h> |
| 2167 | #if STDC_HEADERS |
| 2168 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2169 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2170 | #endif |
| 2171 | EOF |
| 2172 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2173 | 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] | 2174 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2175 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2176 | else |
| 2177 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2178 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2179 | fi |
| 2180 | rm -f conftest* |
| 2181 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2182 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2183 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2184 | if test $ac_cv_type_size_t = no; then |
| 2185 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2186 | #define size_t unsigned |
| 2187 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2188 | |
| 2189 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2190 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2191 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2192 | echo "configure:2193: checking for uid_t in sys/types.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2193 | 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] | 2194 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2195 | else |
| 2196 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2197 | #line 2198 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2198 | #include "confdefs.h" |
| 2199 | #include <sys/types.h> |
| 2200 | EOF |
| 2201 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2202 | egrep "uid_t" >/dev/null 2>&1; then |
| 2203 | rm -rf conftest* |
| 2204 | ac_cv_type_uid_t=yes |
| 2205 | else |
| 2206 | rm -rf conftest* |
| 2207 | ac_cv_type_uid_t=no |
| 2208 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2209 | rm -f conftest* |
| 2210 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2211 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2212 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2213 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2214 | if test $ac_cv_type_uid_t = no; then |
| 2215 | cat >> confdefs.h <<\EOF |
| 2216 | #define uid_t int |
| 2217 | EOF |
| 2218 | |
| 2219 | cat >> confdefs.h <<\EOF |
| 2220 | #define gid_t int |
| 2221 | EOF |
| 2222 | |
| 2223 | fi |
| 2224 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2225 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2226 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2227 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2228 | echo "configure:2229: checking size of int" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2229 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+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 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +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(int)); |
| 2244 | exit(0); |
| 2245 | } |
| 2246 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +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_int=`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_int=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_int" 1>&6 |
| 2261 | cat >> confdefs.h <<EOF |
| 2262 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2263 | EOF |
| 2264 | |
| 2265 | |
| 2266 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2267 | echo "configure:2268: checking size of long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2268 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +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 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2274 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2275 | #line 2276 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +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(long)); |
| 2283 | exit(0); |
| 2284 | } |
| 2285 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +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 | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2287 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2288 | ac_cv_sizeof_long=`cat conftestval` |
| 2289 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2290 | echo "configure: failed program was:" >&5 |
| 2291 | cat conftest.$ac_ext >&5 |
| 2292 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2293 | ac_cv_sizeof_long=0 |
| 2294 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2295 | rm -fr conftest* |
| 2296 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2297 | |
| 2298 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2299 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2300 | cat >> confdefs.h <<EOF |
| 2301 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2302 | EOF |
| 2303 | |
| 2304 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2305 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2306 | echo "configure:2307: checking size of void *" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2307 | 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] | 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 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2314 | #line 2315 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +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(void *)); |
| 2322 | exit(0); |
| 2323 | } |
| 2324 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +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 | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2326 | then |
| 2327 | ac_cv_sizeof_void_p=`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_void_p=0 |
| 2333 | fi |
| 2334 | rm -fr conftest* |
| 2335 | fi |
| 2336 | |
| 2337 | fi |
| 2338 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2339 | cat >> confdefs.h <<EOF |
| 2340 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2341 | EOF |
| 2342 | |
| 2343 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2344 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2345 | echo "configure:2346: checking size of char" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2346 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+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 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +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(char)); |
| 2361 | exit(0); |
| 2362 | } |
| 2363 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +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_char=`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_char=0 |
| 2372 | fi |
| 2373 | rm -fr conftest* |
| 2374 | fi |
| 2375 | |
| 2376 | fi |
| 2377 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2378 | cat >> confdefs.h <<EOF |
| 2379 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2380 | EOF |
| 2381 | |
| 2382 | |
| 2383 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2384 | echo "configure:2385: checking size of short" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2385 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+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 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +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(short)); |
| 2400 | exit(0); |
| 2401 | } |
| 2402 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +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_short=`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_short=0 |
| 2411 | fi |
| 2412 | rm -fr conftest* |
| 2413 | fi |
| 2414 | |
| 2415 | fi |
| 2416 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2417 | cat >> confdefs.h <<EOF |
| 2418 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2419 | EOF |
| 2420 | |
| 2421 | |
| 2422 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2423 | echo "configure:2424: checking size of float" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2424 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+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 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +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(float)); |
| 2439 | exit(0); |
| 2440 | } |
| 2441 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +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_float=`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_float=0 |
| 2450 | fi |
| 2451 | rm -fr conftest* |
| 2452 | fi |
| 2453 | |
| 2454 | fi |
| 2455 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2456 | cat >> confdefs.h <<EOF |
| 2457 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2458 | EOF |
| 2459 | |
| 2460 | |
| 2461 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2462 | echo "configure:2463: checking size of double" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2463 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +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 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2470 | #line 2471 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +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(double)); |
| 2478 | exit(0); |
| 2479 | } |
| 2480 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +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 | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2482 | then |
| 2483 | ac_cv_sizeof_double=`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_double=0 |
| 2489 | fi |
| 2490 | rm -fr conftest* |
| 2491 | fi |
| 2492 | |
| 2493 | fi |
| 2494 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2495 | cat >> confdefs.h <<EOF |
| 2496 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2497 | EOF |
| 2498 | |
| 2499 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2500 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2501 | echo "configure:2502: checking size of fpos_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2502 | 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] | 2503 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2504 | else |
| 2505 | if test "$cross_compiling" = yes; then |
| 2506 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2507 | else |
| 2508 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2509 | #line 2510 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2510 | #include "confdefs.h" |
| 2511 | #include <stdio.h> |
| 2512 | main() |
| 2513 | { |
| 2514 | FILE *f=fopen("conftestval", "w"); |
| 2515 | if (!f) exit(1); |
| 2516 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2517 | exit(0); |
| 2518 | } |
| 2519 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2520 | if { (eval echo configure:2521: \"$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] | 2521 | then |
| 2522 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2523 | else |
| 2524 | echo "configure: failed program was:" >&5 |
| 2525 | cat conftest.$ac_ext >&5 |
| 2526 | rm -fr conftest* |
| 2527 | ac_cv_sizeof_fpos_t=0 |
| 2528 | fi |
| 2529 | rm -fr conftest* |
| 2530 | fi |
| 2531 | |
| 2532 | fi |
| 2533 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2534 | cat >> confdefs.h <<EOF |
| 2535 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2536 | EOF |
| 2537 | |
| 2538 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2539 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2540 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2541 | echo "configure:2542: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2542 | have_long_long=no |
| 2543 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2544 | #line 2545 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2545 | #include "confdefs.h" |
| 2546 | |
| 2547 | int main() { |
| 2548 | long long x; x = (long long)0; |
| 2549 | ; return 0; } |
| 2550 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2551 | if { (eval echo configure:2552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2552 | rm -rf conftest* |
| 2553 | cat >> confdefs.h <<\EOF |
| 2554 | #define HAVE_LONG_LONG 1 |
| 2555 | EOF |
| 2556 | have_long_long=yes |
| 2557 | else |
| 2558 | echo "configure: failed program was:" >&5 |
| 2559 | cat conftest.$ac_ext >&5 |
| 2560 | fi |
| 2561 | rm -f conftest* |
| 2562 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2563 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2564 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2565 | echo "configure:2566: checking size of long long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2566 | 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] | 2567 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2568 | else |
| 2569 | if test "$cross_compiling" = yes; then |
| 2570 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2571 | else |
| 2572 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2573 | #line 2574 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2574 | #include "confdefs.h" |
| 2575 | #include <stdio.h> |
| 2576 | main() |
| 2577 | { |
| 2578 | FILE *f=fopen("conftestval", "w"); |
| 2579 | if (!f) exit(1); |
| 2580 | fprintf(f, "%d\n", sizeof(long long)); |
| 2581 | exit(0); |
| 2582 | } |
| 2583 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2584 | if { (eval echo configure:2585: \"$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] | 2585 | then |
| 2586 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2587 | else |
| 2588 | echo "configure: failed program was:" >&5 |
| 2589 | cat conftest.$ac_ext >&5 |
| 2590 | rm -fr conftest* |
| 2591 | ac_cv_sizeof_long_long=0 |
| 2592 | fi |
| 2593 | rm -fr conftest* |
| 2594 | fi |
| 2595 | |
| 2596 | fi |
| 2597 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2598 | cat >> confdefs.h <<EOF |
| 2599 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2600 | EOF |
| 2601 | |
| 2602 | |
| 2603 | fi |
| 2604 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2605 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2606 | echo "configure:2607: checking for uintptr_t support" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2607 | have_uintptr_t=no |
| 2608 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2609 | #line 2610 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2610 | #include "confdefs.h" |
| 2611 | |
| 2612 | int main() { |
| 2613 | uintptr_t x; x = (uintptr_t)0; |
| 2614 | ; return 0; } |
| 2615 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2616 | if { (eval echo configure:2617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2617 | rm -rf conftest* |
| 2618 | cat >> confdefs.h <<\EOF |
| 2619 | #define HAVE_UINTPTR_T 1 |
| 2620 | EOF |
| 2621 | have_uintptr_t=yes |
| 2622 | else |
| 2623 | echo "configure: failed program was:" >&5 |
| 2624 | cat conftest.$ac_ext >&5 |
| 2625 | fi |
| 2626 | rm -f conftest* |
| 2627 | echo "$ac_t""$have_uintptr_t" 1>&6 |
| 2628 | if test "$have_uintptr_t" = yes ; then |
| 2629 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2630 | echo "configure:2631: checking size of uintptr_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2631 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2632 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2633 | else |
| 2634 | if test "$cross_compiling" = yes; then |
| 2635 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2636 | else |
| 2637 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2638 | #line 2639 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2639 | #include "confdefs.h" |
| 2640 | #include <stdio.h> |
| 2641 | main() |
| 2642 | { |
| 2643 | FILE *f=fopen("conftestval", "w"); |
| 2644 | if (!f) exit(1); |
| 2645 | fprintf(f, "%d\n", sizeof(uintptr_t)); |
| 2646 | exit(0); |
| 2647 | } |
| 2648 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2649 | if { (eval echo configure:2650: \"$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] | 2650 | then |
| 2651 | ac_cv_sizeof_uintptr_t=`cat conftestval` |
| 2652 | else |
| 2653 | echo "configure: failed program was:" >&5 |
| 2654 | cat conftest.$ac_ext >&5 |
| 2655 | rm -fr conftest* |
| 2656 | ac_cv_sizeof_uintptr_t=0 |
| 2657 | fi |
| 2658 | rm -fr conftest* |
| 2659 | fi |
| 2660 | |
| 2661 | fi |
| 2662 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 |
| 2663 | cat >> confdefs.h <<EOF |
| 2664 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 2665 | EOF |
| 2666 | |
| 2667 | |
| 2668 | fi |
| 2669 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2670 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2671 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2672 | echo "configure:2673: checking size of off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2673 | 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] | 2674 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2675 | else |
| 2676 | if test "$cross_compiling" = yes; then |
| 2677 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2678 | else |
| 2679 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2680 | #line 2681 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2681 | #include "confdefs.h" |
| 2682 | #include <stdio.h> |
| 2683 | #include <sys/types.h> |
| 2684 | main() |
| 2685 | { |
| 2686 | FILE *f=fopen("conftestval", "w"); |
| 2687 | if (!f) exit(1); |
| 2688 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2689 | exit(0); |
| 2690 | } |
| 2691 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2692 | if { (eval echo configure:2693: \"$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] | 2693 | then |
| 2694 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2695 | else |
| 2696 | echo "configure: failed program was:" >&5 |
| 2697 | cat conftest.$ac_ext >&5 |
| 2698 | rm -fr conftest* |
| 2699 | ac_cv_sizeof_off_t=0 |
| 2700 | fi |
| 2701 | rm -fr conftest* |
| 2702 | fi |
| 2703 | |
| 2704 | |
| 2705 | fi |
| 2706 | |
| 2707 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2708 | cat >> confdefs.h <<EOF |
| 2709 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2710 | EOF |
| 2711 | |
| 2712 | |
| 2713 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2714 | echo "configure:2715: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2715 | if test "$have_long_long" = yes -a \ |
| 2716 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2717 | "$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] | 2718 | cat >> confdefs.h <<\EOF |
| 2719 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2720 | EOF |
| 2721 | |
| 2722 | echo "$ac_t""yes" 1>&6 |
| 2723 | else |
| 2724 | echo "$ac_t""no" 1>&6 |
| 2725 | fi |
| 2726 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2727 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2728 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2729 | echo "configure:2730: checking size of time_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2730 | 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] | 2731 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2732 | else |
| 2733 | if test "$cross_compiling" = yes; then |
| 2734 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2735 | else |
| 2736 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2737 | #line 2738 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2738 | #include "confdefs.h" |
| 2739 | #include <stdio.h> |
| 2740 | #include <time.h> |
| 2741 | main() |
| 2742 | { |
| 2743 | FILE *f=fopen("conftestval", "w"); |
| 2744 | if (!f) exit(1); |
| 2745 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2746 | exit(0); |
| 2747 | } |
| 2748 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2749 | if { (eval echo configure:2750: \"$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] | 2750 | then |
| 2751 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2752 | else |
| 2753 | echo "configure: failed program was:" >&5 |
| 2754 | cat conftest.$ac_ext >&5 |
| 2755 | rm -fr conftest* |
| 2756 | ac_cv_sizeof_time_t=0 |
| 2757 | fi |
| 2758 | rm -fr conftest* |
| 2759 | fi |
| 2760 | |
| 2761 | |
| 2762 | fi |
| 2763 | |
| 2764 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2765 | cat >> confdefs.h <<EOF |
| 2766 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2767 | EOF |
| 2768 | |
| 2769 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2770 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2771 | # if have pthread_t then define SIZEOF_PTHREAD_T |
| 2772 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2773 | echo "configure:2774: checking for pthread_t" >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2774 | have_pthread_t=no |
| 2775 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2776 | #line 2777 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2777 | #include "confdefs.h" |
| 2778 | #include <pthread.h> |
| 2779 | int main() { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 2780 | pthread_t x; x = *(pthread_t*)0; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2781 | ; return 0; } |
| 2782 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2783 | if { (eval echo configure:2784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2784 | rm -rf conftest* |
| 2785 | have_pthread_t=yes |
| 2786 | else |
| 2787 | echo "configure: failed program was:" >&5 |
| 2788 | cat conftest.$ac_ext >&5 |
| 2789 | fi |
| 2790 | rm -f conftest* |
| 2791 | echo "$ac_t""$have_pthread_t" 1>&6 |
| 2792 | if test "$have_pthread_t" = yes ; then |
| 2793 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 2794 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2795 | echo "configure:2796: checking size of pthread_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2796 | if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2797 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2798 | else |
| 2799 | if test "$cross_compiling" = yes; then |
| 2800 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2801 | else |
| 2802 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2803 | #line 2804 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2804 | #include "confdefs.h" |
| 2805 | #include <stdio.h> |
| 2806 | #include <pthread.h> |
| 2807 | main() |
| 2808 | { |
| 2809 | FILE *f=fopen("conftestval", "w"); |
| 2810 | if (!f) exit(1); |
| 2811 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 2812 | exit(0); |
| 2813 | } |
| 2814 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2815 | if { (eval echo configure:2816: \"$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] | 2816 | then |
| 2817 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 2818 | else |
| 2819 | echo "configure: failed program was:" >&5 |
| 2820 | cat conftest.$ac_ext >&5 |
| 2821 | rm -fr conftest* |
| 2822 | ac_cv_sizeof_pthread_t=0 |
| 2823 | fi |
| 2824 | rm -fr conftest* |
| 2825 | fi |
| 2826 | |
| 2827 | |
| 2828 | fi |
| 2829 | |
| 2830 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 |
| 2831 | cat >> confdefs.h <<EOF |
| 2832 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| 2833 | EOF |
| 2834 | |
| 2835 | fi |
| 2836 | |
| 2837 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2838 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2839 | |
| 2840 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 2841 | Darwin/*) |
| 2842 | ns_undef_sym='_environ' |
| 2843 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2844 | next/4*) |
| 2845 | ns_undef_sym='__environ' |
| 2846 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2847 | next/5*) |
| 2848 | ns_undef_sym='_environ' |
| 2849 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2850 | esac |
| 2851 | |
| 2852 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2853 | echo "configure:2854: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2854 | if test "$with_next_framework" |
| 2855 | then |
| 2856 | OPT="$OPT -fno-common" |
| 2857 | # -U __environ is needed since bundles don't have access |
| 2858 | # to crt0 when built but will always be linked against it |
| 2859 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2860 | cat >> confdefs.h <<\EOF |
| 2861 | #define WITH_NEXT_FRAMEWORK 1 |
| 2862 | EOF |
| 2863 | |
| 2864 | echo "$ac_t""yes" 1>&6 |
| 2865 | else |
| 2866 | echo "$ac_t""no" 1>&6 |
| 2867 | fi |
| 2868 | |
| 2869 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2870 | echo "configure:2871: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2871 | if test "$with_next_framework" -o "$with_dyld" |
| 2872 | then |
| 2873 | if test "$with_dyld" |
| 2874 | then |
| 2875 | echo "$ac_t""yes" 1>&6 |
| 2876 | else |
| 2877 | echo "$ac_t""required for framework build" 1>&6 |
| 2878 | fi |
| 2879 | cat >> confdefs.h <<\EOF |
| 2880 | #define WITH_DYLD 1 |
| 2881 | EOF |
| 2882 | |
| 2883 | ns_dyld='set' |
| 2884 | else |
| 2885 | echo "$ac_t""no" 1>&6 |
| 2886 | fi |
| 2887 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2888 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2889 | |
| 2890 | |
| 2891 | |
| 2892 | |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2893 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2894 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2895 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2896 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2897 | echo "configure:2898: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2898 | if test -z "$SO" |
| 2899 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2900 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2901 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2902 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2903 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2904 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2905 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2906 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2907 | # LDSHARED is the ld *command* used to create shared library |
| 2908 | # -- "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] | 2909 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2910 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2911 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2912 | echo "configure:2913: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2913 | if test -z "$LDSHARED" |
| 2914 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2915 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2916 | AIX*) |
| 2917 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
| 2918 | LDSHARED="\$(BINLIBDEST)/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/python.exp" |
| 2919 | ;; |
| 2920 | BeOS*) |
| 2921 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
| 2922 | LDSHARED="\$(BINLIBDEST)/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
| 2923 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2924 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2925 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2926 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2927 | SunOS/5*) |
| 2928 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 2929 | then LDSHARED='$(CC) -shared' |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2930 | else LDSHARED="ld -G"; |
| 2931 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2932 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2933 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2934 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2935 | Darwin/*|next/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2936 | if test "$ns_dyld" |
Guido van Rossum | acb14c7 | 2001-01-10 21:41:16 +0000 | [diff] [blame] | 2937 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2938 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2939 | fi |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2940 | if test "$with_next_framework" ; then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2941 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2942 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2943 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2944 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2945 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2946 | OpenBSD*) LDSHARED="ld -Bshareable";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2947 | NetBSD*) |
| 2948 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2949 | then |
| 2950 | LDSHARED="cc -shared" |
| 2951 | else |
| 2952 | LDSHARED="ld -Bshareable" |
| 2953 | fi;; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2954 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 2955 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2956 | then |
| 2957 | LDSHARED="cc -shared ${LDFLAGS}" |
| 2958 | else |
| 2959 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 2960 | fi;; |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 2961 | UnixWare*) |
| 2962 | if test "$GCC" = "yes" |
| 2963 | then LDSHARED="$(CC) -shared" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2964 | else LDSHARED="ld -G -dy -Bdynamic" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 2965 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2966 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2967 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2968 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2969 | *) LDSHARED="ld";; |
| 2970 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2971 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2972 | echo "$ac_t""$LDSHARED" 1>&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2973 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2974 | # 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] | 2975 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2976 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2977 | echo "configure:2978: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2978 | if test -z "$CCSHARED" |
| 2979 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2980 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 2981 | SunOS*) if test "$GCC" = yes; |
| 2982 | then CCSHARED="-fPIC"; |
| 2983 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2984 | hp*|HP*) if test "$GCC" = yes; |
| 2985 | then CCSHARED="-fpic"; |
| 2986 | else CCSHARED="+z"; |
| 2987 | fi;; |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2988 | Linux*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2989 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2990 | OpenBSD*) CCSHARED="-fpic";; |
| 2991 | FreeBSD*|NetBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 2992 | UnixWare*) |
| 2993 | if test "$GCC" = "yes" |
| 2994 | then CCSHARED="-fPIC" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 2995 | else CCSHARED="-KPIC -G -dy -Bdynamic" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 2996 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2997 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2998 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2999 | IRIX*/6*) case $CC in |
| 3000 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 3001 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3002 | esac;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3003 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3004 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3005 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3006 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3007 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3008 | # the python executable -- this is only needed for a few systems |
| 3009 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3010 | echo "configure:3011: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3011 | if test -z "$LINKFORSHARED" |
| 3012 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3013 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3014 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 3015 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 3016 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3017 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 3018 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3019 | # -u libsys_s pulls in all symbols in libsys |
| 3020 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 3021 | # -u __dummy makes the linker aware of the objc runtime |
| 3022 | # in System.framework; otherwise, __objcInit (referenced in |
| 3023 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 3024 | # loading of any modules which reference it in System.framework |
| 3025 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | acb14c7 | 2001-01-10 21:41:16 +0000 | [diff] [blame] | 3026 | Darwin/*) LINKFORSHARED="-u __dummy -framework System -framework Foundation" ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3027 | UnixWare*) LINKFORSHARED="-dy -Bdynamic -Wl,-Bexport";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3028 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 3029 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3030 | FreeBSD*|NetBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3031 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 3032 | then |
| 3033 | LINKFORSHARED="-Wl,--export-dynamic" |
| 3034 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3035 | SunOS/5*) case $CC in |
| 3036 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 3037 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 3038 | then |
| 3039 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3040 | fi;; |
| 3041 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3042 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3043 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3044 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3045 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3046 | |
| 3047 | echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3048 | echo "configure:3049: checking CFLAGSFORSHARED" >&5 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3049 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 3050 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 3051 | case $ac_sys_system in |
| 3052 | CYGWIN*) |
| 3053 | # Cygwin needs CCSHARED when building extension DLLs |
| 3054 | # but not when building the interpreter DLL. |
| 3055 | CFLAGSFORSHARED='';; |
| 3056 | *) |
| 3057 | CFLAGSFORSHARED='$(CCSHARED)' |
| 3058 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3059 | fi |
| 3060 | echo "$ac_t""$CFLAGSFORSHARED" 1>&6 |
| 3061 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3062 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3063 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3064 | echo "configure:3065: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3065 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3066 | 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] | 3067 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3068 | else |
| 3069 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3070 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3071 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3072 | #line 3073 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3073 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3074 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3075 | /* We use char because int might match the return type of a gcc2 |
| 3076 | builtin and then its argument prototype would still apply. */ |
| 3077 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3078 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3079 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3080 | dlopen() |
| 3081 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3082 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3083 | if { (eval echo configure:3084: \"$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] | 3084 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3085 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3086 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3087 | echo "configure: failed program was:" >&5 |
| 3088 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3089 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3090 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3091 | fi |
| 3092 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3093 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3094 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3095 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3096 | 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] | 3097 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3098 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3099 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3100 | cat >> confdefs.h <<EOF |
| 3101 | #define $ac_tr_lib 1 |
| 3102 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3103 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3104 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3105 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3106 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3107 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3108 | fi |
| 3109 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3110 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3111 | echo "configure:3112: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3112 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3113 | 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] | 3114 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3115 | else |
| 3116 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3117 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3118 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3119 | #line 3120 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3120 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3121 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3122 | /* We use char because int might match the return type of a gcc2 |
| 3123 | builtin and then its argument prototype would still apply. */ |
| 3124 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3125 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3126 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3127 | shl_load() |
| 3128 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3129 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3130 | if { (eval echo configure:3131: \"$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] | 3131 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3132 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3133 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3134 | echo "configure: failed program was:" >&5 |
| 3135 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3136 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3137 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3138 | fi |
| 3139 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3140 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3141 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3142 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3143 | 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] | 3144 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3145 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3146 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3147 | cat >> confdefs.h <<EOF |
| 3148 | #define $ac_tr_lib 1 |
| 3149 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3150 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3151 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3152 | |
| 3153 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3154 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3155 | fi |
| 3156 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3157 | |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3158 | # Check for --with-pydebug |
| 3159 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3160 | echo "configure:3161: checking for --with-pydebug" >&5 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3161 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3162 | if test "${with_pydebug+set}" = set; then |
| 3163 | withval="$with_pydebug" |
| 3164 | |
| 3165 | if test "$withval" != no |
| 3166 | then cat >> confdefs.h <<\EOF |
| 3167 | #define Py_DEBUG 1 |
| 3168 | EOF |
| 3169 | echo "$ac_t""yes" 1>&6 |
| 3170 | else echo "$ac_t""no" 1>&6 |
| 3171 | fi |
| 3172 | else |
| 3173 | echo "$ac_t""no" 1>&6 |
| 3174 | fi |
| 3175 | |
| 3176 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3177 | # checks for system dependent C++ extensions support |
| 3178 | case "$ac_sys_system" in |
| 3179 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3180 | echo "configure:3181: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3181 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3182 | #line 3183 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3183 | #include "confdefs.h" |
| 3184 | #include "/usr/lpp/xlC/include/load.h" |
| 3185 | int main() { |
| 3186 | loadAndInit("", 0, "") |
| 3187 | ; return 0; } |
| 3188 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3189 | if { (eval echo configure:3190: \"$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] | 3190 | rm -rf conftest* |
| 3191 | cat >> confdefs.h <<\EOF |
| 3192 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 3193 | EOF |
| 3194 | |
| 3195 | echo "$ac_t""yes" 1>&6 |
| 3196 | else |
| 3197 | echo "configure: failed program was:" >&5 |
| 3198 | cat conftest.$ac_ext >&5 |
| 3199 | rm -rf conftest* |
| 3200 | echo "$ac_t""no" 1>&6 |
| 3201 | fi |
| 3202 | rm -f conftest*;; |
| 3203 | *) ;; |
| 3204 | esac |
| 3205 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3206 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 3207 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3208 | # BeOS' sockets are stashed in libnet. |
| 3209 | case "$ac_sys_system" in |
| 3210 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3211 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3212 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3213 | echo "configure:3214: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3214 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3215 | 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] | 3216 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3217 | else |
| 3218 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3219 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3220 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3221 | #line 3222 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3222 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3223 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3224 | /* We use char because int might match the return type of a gcc2 |
| 3225 | builtin and then its argument prototype would still apply. */ |
| 3226 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3227 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3228 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3229 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3230 | ; return 0; } |
| 3231 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3232 | if { (eval echo configure:3233: \"$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] | 3233 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3234 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3235 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3236 | echo "configure: failed program was:" >&5 |
| 3237 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3238 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3239 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3240 | fi |
| 3241 | rm -f conftest* |
| 3242 | LIBS="$ac_save_LIBS" |
| 3243 | |
| 3244 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3245 | 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] | 3246 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3247 | LIBS="-lnsl $LIBS" |
| 3248 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3249 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3250 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3251 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3252 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3253 | echo "configure:3254: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3254 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3255 | 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] | 3256 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3257 | else |
| 3258 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3259 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3260 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3261 | #line 3262 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3262 | #include "confdefs.h" |
| 3263 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3264 | /* We use char because int might match the return type of a gcc2 |
| 3265 | builtin and then its argument prototype would still apply. */ |
| 3266 | char socket(); |
| 3267 | |
| 3268 | int main() { |
| 3269 | socket() |
| 3270 | ; return 0; } |
| 3271 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3272 | if { (eval echo configure:3273: \"$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] | 3273 | rm -rf conftest* |
| 3274 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3275 | else |
| 3276 | echo "configure: failed program was:" >&5 |
| 3277 | cat conftest.$ac_ext >&5 |
| 3278 | rm -rf conftest* |
| 3279 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3280 | fi |
| 3281 | rm -f conftest* |
| 3282 | LIBS="$ac_save_LIBS" |
| 3283 | |
| 3284 | fi |
| 3285 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3286 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3287 | LIBS="-lsocket $LIBS" |
| 3288 | else |
| 3289 | echo "$ac_t""no" 1>&6 |
| 3290 | fi |
| 3291 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3292 | ;; |
| 3293 | esac |
| 3294 | case "$ac_sys_system" in |
| 3295 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3296 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3297 | echo "configure:3298: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3298 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3299 | 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] | 3300 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3301 | else |
| 3302 | ac_save_LIBS="$LIBS" |
| 3303 | LIBS="-lnet $LIBS $LIBS" |
| 3304 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3305 | #line 3306 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3306 | #include "confdefs.h" |
| 3307 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3308 | /* We use char because int might match the return type of a gcc2 |
| 3309 | builtin and then its argument prototype would still apply. */ |
| 3310 | char socket(); |
| 3311 | |
| 3312 | int main() { |
| 3313 | socket() |
| 3314 | ; return 0; } |
| 3315 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3316 | if { (eval echo configure:3317: \"$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] | 3317 | rm -rf conftest* |
| 3318 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3319 | else |
| 3320 | echo "configure: failed program was:" >&5 |
| 3321 | cat conftest.$ac_ext >&5 |
| 3322 | rm -rf conftest* |
| 3323 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3324 | fi |
| 3325 | rm -f conftest* |
| 3326 | LIBS="$ac_save_LIBS" |
| 3327 | |
| 3328 | fi |
| 3329 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3330 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3331 | LIBS="-lnet $LIBS" |
| 3332 | else |
| 3333 | echo "$ac_t""no" 1>&6 |
| 3334 | fi |
| 3335 | # BeOS |
| 3336 | ;; |
| 3337 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3338 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3339 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3340 | echo "configure:3341: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3341 | # Check whether --with-libs or --without-libs was given. |
| 3342 | if test "${with_libs+set}" = set; then |
| 3343 | withval="$with_libs" |
| 3344 | |
| 3345 | echo "$ac_t""$withval" 1>&6 |
| 3346 | LIBS="$withval $LIBS" |
| 3347 | |
| 3348 | else |
| 3349 | echo "$ac_t""no" 1>&6 |
| 3350 | fi |
| 3351 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3352 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3353 | # Determine if signalmodule should be used. |
| 3354 | |
| 3355 | |
| 3356 | echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3357 | echo "configure:3358: checking for --with-signal-module" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3358 | # Check whether --with-signal-module or --without-signal-module was given. |
| 3359 | if test "${with_signal_module+set}" = set; then |
| 3360 | withval="$with_signal_module" |
| 3361 | : |
| 3362 | fi |
| 3363 | |
| 3364 | |
| 3365 | if test -z "$with_signal_module" |
| 3366 | then with_signal_module="yes" |
| 3367 | fi |
| 3368 | echo "$ac_t""$with_signal_module" 1>&6 |
| 3369 | |
| 3370 | if test "${with_signal_module}" = "yes"; then |
| 3371 | USE_SIGNAL_MODULE="" |
| 3372 | SIGNAL_OBJS="" |
| 3373 | else |
| 3374 | USE_SIGNAL_MODULE="#" |
| 3375 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 3376 | fi |
| 3377 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3378 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3379 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3380 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3381 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3382 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3383 | echo "configure:3384: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3384 | |
| 3385 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 3386 | if test "${with_dec_threads+set}" = set; then |
| 3387 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3388 | |
| 3389 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3390 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3391 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3392 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3393 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3394 | else |
| 3395 | echo "$ac_t""no" 1>&6 |
| 3396 | fi |
| 3397 | |
| 3398 | |
| 3399 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3400 | echo "configure:3401: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3401 | # Check whether --with-threads or --without-threads was given. |
| 3402 | if test "${with_threads+set}" = set; then |
| 3403 | withval="$with_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3404 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3405 | fi |
| 3406 | |
| 3407 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3408 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3409 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3410 | if test "${with_thread+set}" = set; then |
| 3411 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3412 | |
| 3413 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3414 | fi |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3415 | |
| 3416 | |
| 3417 | if test -z "$with_threads" |
| 3418 | then with_threads="yes" |
| 3419 | fi |
| 3420 | echo "$ac_t""$with_threads" 1>&6 |
| 3421 | |
| 3422 | if test "$with_threads" = "no" |
| 3423 | then |
| 3424 | USE_THREAD_MODULE="#" |
| 3425 | else |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3426 | if test "$ac_sys_system" = "UnixWare" |
| 3427 | then |
| 3428 | CC="${CC} -Kthread" |
| 3429 | LIBOBJS="$LIBOBJS thread.o" |
| 3430 | cat >> confdefs.h <<\EOF |
| 3431 | #define WITH_THREAD 1 |
| 3432 | EOF |
| 3433 | |
| 3434 | cat >> confdefs.h <<\EOF |
| 3435 | #define _POSIX_THREADS 1 |
| 3436 | EOF |
| 3437 | |
| 3438 | USE_THREAD_MODULE="" |
| 3439 | else |
| 3440 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 3441 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 3442 | fi |
| 3443 | if test ! -z "$withval" -a -d "$withval" |
| 3444 | then LDFLAGS="$LDFLAGS -L$withval" |
| 3445 | fi |
| 3446 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3447 | #define _REENTRANT 1 |
| 3448 | EOF |
| 3449 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3450 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3451 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3452 | echo "configure:3453: checking for mach/cthreads.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3453 | 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] | 3454 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3455 | else |
| 3456 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3457 | #line 3458 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3458 | #include "confdefs.h" |
| 3459 | #include <mach/cthreads.h> |
| 3460 | EOF |
| 3461 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3462 | { (eval echo configure:3463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3463 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3464 | if test -z "$ac_err"; then |
| 3465 | rm -rf conftest* |
| 3466 | eval "ac_cv_header_$ac_safe=yes" |
| 3467 | else |
| 3468 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3469 | echo "configure: failed program was:" >&5 |
| 3470 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3471 | rm -rf conftest* |
| 3472 | eval "ac_cv_header_$ac_safe=no" |
| 3473 | fi |
| 3474 | rm -f conftest* |
| 3475 | fi |
| 3476 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3477 | echo "$ac_t""yes" 1>&6 |
| 3478 | cat >> confdefs.h <<\EOF |
| 3479 | #define WITH_THREAD 1 |
| 3480 | EOF |
| 3481 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3482 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3483 | #define C_THREADS 1 |
| 3484 | EOF |
| 3485 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3486 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3487 | else |
| 3488 | echo "$ac_t""no" 1>&6 |
| 3489 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3490 | echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 |
| 3491 | echo "configure:3492: checking for --with-pth" >&5 |
| 3492 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3493 | if test "${with_pth+set}" = set; then |
| 3494 | withval="$with_pth" |
| 3495 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3496 | echo "$ac_t""$withval" 1>&6 |
| 3497 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3498 | #define WITH_THREAD 1 |
| 3499 | EOF |
| 3500 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3501 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3502 | #define HAVE_PTH 1 |
| 3503 | EOF |
| 3504 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3505 | LIBS="-lpth $LIBS" |
| 3506 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3507 | else |
| 3508 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3509 | echo "$ac_t""no" 1>&6 |
| 3510 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
| 3511 | echo "configure:3512: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3512 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3513 | 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] | 3514 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3515 | else |
| 3516 | ac_save_LIBS="$LIBS" |
| 3517 | LIBS="-lpthread $LIBS" |
| 3518 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3519 | #line 3520 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3520 | #include "confdefs.h" |
| 3521 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3522 | /* We use char because int might match the return type of a gcc2 |
| 3523 | builtin and then its argument prototype would still apply. */ |
| 3524 | char pthread_create(); |
| 3525 | |
| 3526 | int main() { |
| 3527 | pthread_create() |
| 3528 | ; return 0; } |
| 3529 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3530 | if { (eval echo configure:3531: \"$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] | 3531 | rm -rf conftest* |
| 3532 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3533 | else |
| 3534 | echo "configure: failed program was:" >&5 |
| 3535 | cat conftest.$ac_ext >&5 |
| 3536 | rm -rf conftest* |
| 3537 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3538 | fi |
| 3539 | rm -f conftest* |
| 3540 | LIBS="$ac_save_LIBS" |
| 3541 | |
| 3542 | fi |
| 3543 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3544 | echo "$ac_t""yes" 1>&6 |
| 3545 | cat >> confdefs.h <<\EOF |
| 3546 | #define WITH_THREAD 1 |
| 3547 | EOF |
| 3548 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3549 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3550 | #define _POSIX_THREADS 1 |
| 3551 | EOF |
| 3552 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3553 | LIBS="-lpthread $LIBS" |
| 3554 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3555 | else |
| 3556 | echo "$ac_t""no" 1>&6 |
| 3557 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3558 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
| 3559 | echo "configure:3560: checking for pthread_detach" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3560 | 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] | 3561 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3562 | else |
| 3563 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3564 | #line 3565 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3565 | #include "confdefs.h" |
| 3566 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3567 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3568 | #include <assert.h> |
| 3569 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3570 | /* We use char because int might match the return type of a gcc2 |
| 3571 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3572 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3573 | |
| 3574 | int main() { |
| 3575 | |
| 3576 | /* The GNU C library defines this for functions which it implements |
| 3577 | to always fail with ENOSYS. Some functions are actually named |
| 3578 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3579 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3580 | choke me |
| 3581 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3582 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3583 | #endif |
| 3584 | |
| 3585 | ; return 0; } |
| 3586 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3587 | if { (eval echo configure:3588: \"$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] | 3588 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3589 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3590 | else |
| 3591 | echo "configure: failed program was:" >&5 |
| 3592 | cat conftest.$ac_ext >&5 |
| 3593 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3594 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3595 | fi |
| 3596 | rm -f conftest* |
| 3597 | fi |
| 3598 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3599 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3600 | echo "$ac_t""yes" 1>&6 |
| 3601 | cat >> confdefs.h <<\EOF |
| 3602 | #define WITH_THREAD 1 |
| 3603 | EOF |
| 3604 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3605 | case $ac_sys_system in |
| 3606 | Darwin*) ;; |
| 3607 | *) cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3608 | #define _POSIX_THREADS 1 |
| 3609 | EOF |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3610 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3611 | esac |
| 3612 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3613 | else |
| 3614 | echo "$ac_t""no" 1>&6 |
| 3615 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3616 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3617 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3618 | echo "configure:3619: checking for kernel/OS.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3619 | 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] | 3620 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3621 | else |
| 3622 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3623 | #line 3624 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3624 | #include "confdefs.h" |
| 3625 | #include <kernel/OS.h> |
| 3626 | EOF |
| 3627 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3628 | { (eval echo configure:3629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3629 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3630 | if test -z "$ac_err"; then |
| 3631 | rm -rf conftest* |
| 3632 | eval "ac_cv_header_$ac_safe=yes" |
| 3633 | else |
| 3634 | echo "$ac_err" >&5 |
| 3635 | echo "configure: failed program was:" >&5 |
| 3636 | cat conftest.$ac_ext >&5 |
| 3637 | rm -rf conftest* |
| 3638 | eval "ac_cv_header_$ac_safe=no" |
| 3639 | fi |
| 3640 | rm -f conftest* |
| 3641 | fi |
| 3642 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3643 | echo "$ac_t""yes" 1>&6 |
| 3644 | cat >> confdefs.h <<\EOF |
| 3645 | #define WITH_THREAD 1 |
| 3646 | EOF |
| 3647 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3648 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3649 | #define BEOS_THREADS 1 |
| 3650 | EOF |
| 3651 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3652 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3653 | else |
| 3654 | echo "$ac_t""no" 1>&6 |
| 3655 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3656 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
| 3657 | echo "configure:3658: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3658 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3659 | 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] | 3660 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3661 | else |
| 3662 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3663 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3664 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3665 | #line 3666 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3666 | #include "confdefs.h" |
| 3667 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3668 | /* We use char because int might match the return type of a gcc2 |
| 3669 | builtin and then its argument prototype would still apply. */ |
| 3670 | char pthread_create(); |
| 3671 | |
| 3672 | int main() { |
| 3673 | pthread_create() |
| 3674 | ; return 0; } |
| 3675 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3676 | if { (eval echo configure:3677: \"$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] | 3677 | rm -rf conftest* |
| 3678 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3679 | else |
| 3680 | echo "configure: failed program was:" >&5 |
| 3681 | cat conftest.$ac_ext >&5 |
| 3682 | rm -rf conftest* |
| 3683 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3684 | fi |
| 3685 | rm -f conftest* |
| 3686 | LIBS="$ac_save_LIBS" |
| 3687 | |
| 3688 | fi |
| 3689 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3690 | echo "$ac_t""yes" 1>&6 |
| 3691 | cat >> confdefs.h <<\EOF |
| 3692 | #define WITH_THREAD 1 |
| 3693 | EOF |
| 3694 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3695 | cat >> confdefs.h <<\EOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3696 | #define _POSIX_THREADS 1 |
| 3697 | EOF |
| 3698 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3699 | LIBS="$LIBS -lpthreads" |
| 3700 | LIBOBJS="$LIBOBJS thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3701 | else |
| 3702 | echo "$ac_t""no" 1>&6 |
| 3703 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3704 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
| 3705 | echo "configure:3706: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3706 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3707 | 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] | 3708 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3709 | else |
| 3710 | ac_save_LIBS="$LIBS" |
| 3711 | LIBS="-lc_r $LIBS" |
| 3712 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3713 | #line 3714 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3714 | #include "confdefs.h" |
| 3715 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3716 | /* We use char because int might match the return type of a gcc2 |
| 3717 | builtin and then its argument prototype would still apply. */ |
| 3718 | char pthread_create(); |
| 3719 | |
| 3720 | int main() { |
| 3721 | pthread_create() |
| 3722 | ; return 0; } |
| 3723 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3724 | if { (eval echo configure:3725: \"$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] | 3725 | rm -rf conftest* |
| 3726 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3727 | else |
| 3728 | echo "configure: failed program was:" >&5 |
| 3729 | cat conftest.$ac_ext >&5 |
| 3730 | rm -rf conftest* |
| 3731 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3732 | fi |
| 3733 | rm -f conftest* |
| 3734 | LIBS="$ac_save_LIBS" |
| 3735 | |
| 3736 | fi |
| 3737 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3738 | echo "$ac_t""yes" 1>&6 |
| 3739 | cat >> confdefs.h <<\EOF |
| 3740 | #define WITH_THREAD 1 |
| 3741 | EOF |
| 3742 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3743 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3744 | #define _POSIX_THREADS 1 |
| 3745 | EOF |
| 3746 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3747 | LIBS="$LIBS -lc_r" |
| 3748 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3749 | else |
| 3750 | echo "$ac_t""no" 1>&6 |
| 3751 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3752 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
| 3753 | echo "configure:3754: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3754 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3755 | 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] | 3756 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3757 | else |
| 3758 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3759 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3760 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3761 | #line 3762 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3762 | #include "confdefs.h" |
| 3763 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3764 | /* We use char because int might match the return type of a gcc2 |
| 3765 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3766 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3767 | |
| 3768 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3769 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3770 | ; return 0; } |
| 3771 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3772 | if { (eval echo configure:3773: \"$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] | 3773 | rm -rf conftest* |
| 3774 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3775 | else |
| 3776 | echo "configure: failed program was:" >&5 |
| 3777 | cat conftest.$ac_ext >&5 |
| 3778 | rm -rf conftest* |
| 3779 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3780 | fi |
| 3781 | rm -f conftest* |
| 3782 | LIBS="$ac_save_LIBS" |
| 3783 | |
| 3784 | fi |
| 3785 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3786 | echo "$ac_t""yes" 1>&6 |
| 3787 | cat >> confdefs.h <<\EOF |
| 3788 | #define WITH_THREAD 1 |
| 3789 | EOF |
| 3790 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3791 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3792 | #define _POSIX_THREADS 1 |
| 3793 | EOF |
| 3794 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3795 | LIBS="$LIBS -lthread" |
| 3796 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3797 | else |
| 3798 | echo "$ac_t""no" 1>&6 |
| 3799 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3800 | echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 |
| 3801 | echo "configure:3802: checking for __pthread_create_system in -lpthread" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3802 | ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` |
| 3803 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3804 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3805 | else |
| 3806 | ac_save_LIBS="$LIBS" |
| 3807 | LIBS="-lpthread $LIBS" |
| 3808 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3809 | #line 3810 "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3810 | #include "confdefs.h" |
| 3811 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3812 | /* We use char because int might match the return type of a gcc2 |
| 3813 | builtin and then its argument prototype would still apply. */ |
| 3814 | char __pthread_create_system(); |
| 3815 | |
| 3816 | int main() { |
| 3817 | __pthread_create_system() |
| 3818 | ; return 0; } |
| 3819 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3820 | if { (eval echo configure:3821: \"$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] | 3821 | rm -rf conftest* |
| 3822 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3823 | else |
| 3824 | echo "configure: failed program was:" >&5 |
| 3825 | cat conftest.$ac_ext >&5 |
| 3826 | rm -rf conftest* |
| 3827 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3828 | fi |
| 3829 | rm -f conftest* |
| 3830 | LIBS="$ac_save_LIBS" |
| 3831 | |
| 3832 | fi |
| 3833 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3834 | echo "$ac_t""yes" 1>&6 |
| 3835 | cat >> confdefs.h <<\EOF |
| 3836 | #define WITH_THREAD 1 |
| 3837 | EOF |
| 3838 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3839 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3840 | #define _POSIX_THREADS 1 |
| 3841 | EOF |
| 3842 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3843 | LIBS="$LIBS -lpthread" |
| 3844 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3845 | else |
| 3846 | echo "$ac_t""no" 1>&6 |
| 3847 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3848 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
| 3849 | echo "configure:3850: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3850 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3851 | 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] | 3852 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3853 | else |
| 3854 | ac_save_LIBS="$LIBS" |
| 3855 | LIBS="-lcma $LIBS" |
| 3856 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3857 | #line 3858 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3858 | #include "confdefs.h" |
| 3859 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3860 | /* We use char because int might match the return type of a gcc2 |
| 3861 | builtin and then its argument prototype would still apply. */ |
| 3862 | char pthread_create(); |
| 3863 | |
| 3864 | int main() { |
| 3865 | pthread_create() |
| 3866 | ; return 0; } |
| 3867 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3868 | if { (eval echo configure:3869: \"$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] | 3869 | rm -rf conftest* |
| 3870 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3871 | else |
| 3872 | echo "configure: failed program was:" >&5 |
| 3873 | cat conftest.$ac_ext >&5 |
| 3874 | rm -rf conftest* |
| 3875 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3876 | fi |
| 3877 | rm -f conftest* |
| 3878 | LIBS="$ac_save_LIBS" |
| 3879 | |
| 3880 | fi |
| 3881 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3882 | echo "$ac_t""yes" 1>&6 |
| 3883 | cat >> confdefs.h <<\EOF |
| 3884 | #define WITH_THREAD 1 |
| 3885 | EOF |
| 3886 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3887 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3888 | #define _POSIX_THREADS 1 |
| 3889 | EOF |
| 3890 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3891 | LIBS="$LIBS -lcma" |
| 3892 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3893 | else |
| 3894 | echo "$ac_t""no" 1>&6 |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3895 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3896 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3897 | fi |
| 3898 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3899 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3900 | fi |
| 3901 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3902 | fi |
| 3903 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3904 | fi |
| 3905 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3906 | fi |
| 3907 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3908 | fi |
| 3909 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3910 | fi |
| 3911 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3912 | fi |
| 3913 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3914 | fi |
| 3915 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3916 | fi |
| 3917 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3918 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3919 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
| 3920 | echo "configure:3921: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3921 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3922 | 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] | 3923 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3924 | else |
| 3925 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3926 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3927 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3928 | #line 3929 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3929 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3930 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3931 | /* We use char because int might match the return type of a gcc2 |
| 3932 | builtin and then its argument prototype would still apply. */ |
| 3933 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3934 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3935 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3936 | usconfig() |
| 3937 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3938 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3939 | if { (eval echo configure:3940: \"$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] | 3940 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3941 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3942 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3943 | echo "configure: failed program was:" >&5 |
| 3944 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3945 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3946 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3947 | fi |
| 3948 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3949 | LIBS="$ac_save_LIBS" |
| 3950 | |
| 3951 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3952 | 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] | 3953 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3954 | cat >> confdefs.h <<\EOF |
| 3955 | #define WITH_THREAD 1 |
| 3956 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3957 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3958 | LIBS="$LIBS -lmpc" |
| 3959 | LIBOBJS="$LIBOBJS thread.o" |
| 3960 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3961 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3962 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3963 | fi |
| 3964 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3965 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
| 3966 | echo "configure:3967: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3967 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3968 | 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] | 3969 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3970 | else |
| 3971 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3972 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3973 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3974 | #line 3975 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3975 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3976 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3977 | /* We use char because int might match the return type of a gcc2 |
| 3978 | builtin and then its argument prototype would still apply. */ |
| 3979 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3980 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3981 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3982 | thr_create() |
| 3983 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3984 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3985 | if { (eval echo configure:3986: \"$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] | 3986 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3987 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3988 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3989 | echo "configure: failed program was:" >&5 |
| 3990 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3991 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3992 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3993 | fi |
| 3994 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3995 | LIBS="$ac_save_LIBS" |
| 3996 | |
| 3997 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3998 | 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] | 3999 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4000 | cat >> confdefs.h <<\EOF |
| 4001 | #define WITH_THREAD 1 |
| 4002 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4003 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4004 | LIBS="$LIBS -lthread" |
| 4005 | LIBOBJS="$LIBOBJS thread.o" |
| 4006 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4007 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4008 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4009 | fi |
| 4010 | |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4011 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4012 | if test "$USE_THREAD_MODULE" != "#" |
| 4013 | then |
| 4014 | # If the above checks didn't disable threads, (at least) OSF1 |
| 4015 | # needs this '-threads' argument during linking. |
| 4016 | case $ac_sys_system in |
| 4017 | OSF1) LDLAST=-threads;; |
| 4018 | esac |
| 4019 | fi |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4020 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4021 | fi |
| 4022 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4023 | # Check for GC support |
| 4024 | |
| 4025 | USE_GC_MODULE="" |
| 4026 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4027 | echo "configure:4028: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4028 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 4029 | if test "${with_cycle_gc+set}" = set; then |
| 4030 | withval="$with_cycle_gc" |
| 4031 | : |
| 4032 | fi |
| 4033 | |
| 4034 | |
| 4035 | if test -z "$with_cycle_gc" |
| 4036 | then with_cycle_gc="yes" |
| 4037 | fi |
| 4038 | if test "$with_cycle_gc" = "no" |
| 4039 | then |
| 4040 | USE_GC_MODULE="#" |
| 4041 | else |
| 4042 | cat >> confdefs.h <<\EOF |
| 4043 | #define WITH_CYCLE_GC 1 |
| 4044 | EOF |
| 4045 | |
| 4046 | fi |
| 4047 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 4048 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4049 | # Check for Python-specific malloc support |
| 4050 | echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4051 | echo "configure:4052: checking for --with-pymalloc" >&5 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4052 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 4053 | if test "${with_pymalloc+set}" = set; then |
| 4054 | withval="$with_pymalloc" |
| 4055 | |
| 4056 | if test "$withval" != no |
| 4057 | then cat >> confdefs.h <<\EOF |
| 4058 | #define WITH_PYMALLOC 1 |
| 4059 | EOF |
| 4060 | echo "$ac_t""yes" 1>&6 |
| 4061 | else echo "$ac_t""no" 1>&6 |
| 4062 | fi |
| 4063 | else |
| 4064 | echo "$ac_t""no" 1>&6 |
| 4065 | fi |
| 4066 | |
| 4067 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4068 | # Check for --with-wctype-functions |
| 4069 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4070 | echo "configure:4071: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4071 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 4072 | if test "${with_wctype_functions+set}" = set; then |
| 4073 | withval="$with_wctype_functions" |
| 4074 | |
| 4075 | if test "$withval" != no |
| 4076 | then cat >> confdefs.h <<\EOF |
| 4077 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 4078 | EOF |
| 4079 | echo "$ac_t""yes" 1>&6 |
| 4080 | else echo "$ac_t""no" 1>&6 |
| 4081 | fi |
| 4082 | else |
| 4083 | echo "$ac_t""no" 1>&6 |
| 4084 | fi |
| 4085 | |
| 4086 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4087 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4088 | |
| 4089 | DLINCLDIR=/ |
| 4090 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4091 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4092 | echo "configure:4093: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4093 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4094 | if test "${with_sgi_dl+set}" = set; then |
| 4095 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4096 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4097 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4098 | cat >> confdefs.h <<\EOF |
| 4099 | #define WITH_SGI_DL 1 |
| 4100 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4101 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4102 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4103 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 4104 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4105 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4106 | 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] | 4107 | fi |
| 4108 | DLINCLDIR=${dldir} |
| 4109 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4110 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4111 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4112 | fi |
| 4113 | |
| 4114 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4115 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4116 | echo "configure:4117: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4117 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4118 | if test "${with_dl_dld+set}" = set; then |
| 4119 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4120 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4121 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4122 | cat >> confdefs.h <<\EOF |
| 4123 | #define WITH_DL_DLD 1 |
| 4124 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4125 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4126 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4127 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 4128 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 4129 | 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] | 4130 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4131 | 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] | 4132 | fi |
| 4133 | DLINCLDIR=${dldir} |
| 4134 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4135 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4136 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4137 | fi |
| 4138 | |
| 4139 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4140 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 4141 | # 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] | 4142 | for ac_func in dlopen |
| 4143 | do |
| 4144 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4145 | echo "configure:4146: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4146 | 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] | 4147 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4148 | else |
| 4149 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4150 | #line 4151 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4151 | #include "confdefs.h" |
| 4152 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4153 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4154 | #include <assert.h> |
| 4155 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4156 | /* We use char because int might match the return type of a gcc2 |
| 4157 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4158 | char $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4159 | |
| 4160 | int main() { |
| 4161 | |
| 4162 | /* The GNU C library defines this for functions which it implements |
| 4163 | to always fail with ENOSYS. Some functions are actually named |
| 4164 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4165 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4166 | choke me |
| 4167 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4168 | $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4169 | #endif |
| 4170 | |
| 4171 | ; return 0; } |
| 4172 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4173 | if { (eval echo configure:4174: \"$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] | 4174 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4175 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4176 | else |
| 4177 | echo "configure: failed program was:" >&5 |
| 4178 | cat conftest.$ac_ext >&5 |
| 4179 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4180 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4181 | fi |
| 4182 | rm -f conftest* |
| 4183 | fi |
| 4184 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4185 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4186 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4187 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4188 | cat >> confdefs.h <<EOF |
| 4189 | #define $ac_tr_func 1 |
| 4190 | EOF |
| 4191 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4192 | else |
| 4193 | echo "$ac_t""no" 1>&6 |
| 4194 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4195 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4196 | |
| 4197 | |
| 4198 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 4199 | # loading of modules. |
| 4200 | |
| 4201 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4202 | echo "configure:4203: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4203 | if test -z "$DYNLOADFILE" |
| 4204 | then |
| 4205 | case $ac_sys_system/$ac_sys_release in |
| 4206 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 4207 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 4208 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4209 | Darwin/*|next/*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4210 | *) |
| 4211 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 4212 | # out any dynamic loading |
| 4213 | if test "$ac_cv_func_dlopen" = yes |
| 4214 | then DYNLOADFILE="dynload_shlib.o" |
| 4215 | else DYNLOADFILE="dynload_stub.o" |
| 4216 | fi |
| 4217 | ;; |
| 4218 | esac |
| 4219 | fi |
| 4220 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 4221 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 4222 | then |
| 4223 | cat >> confdefs.h <<\EOF |
| 4224 | #define HAVE_DYNAMIC_LOADING 1 |
| 4225 | EOF |
| 4226 | |
| 4227 | fi |
| 4228 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4229 | # checks for library functions |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4230 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4231 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Andrew M. Kuchling | a9586c7 | 2001-01-08 17:58:56 +0000 | [diff] [blame] | 4232 | getgroups getlogin getpeername getpid getpwent getwd \ |
Andrew M. Kuchling | 22c6934 | 2000-06-18 15:07:40 +0000 | [diff] [blame] | 4233 | kill link lstat mkfifo mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 4234 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4235 | putenv readlink \ |
Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 4236 | select setegid seteuid setgid \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4237 | setlocale setregid setreuid setsid setpgid setuid setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4238 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 4239 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | 70c21a1 | 2000-07-14 14:28:33 +0000 | [diff] [blame] | 4240 | truncate uname waitpid _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4241 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4242 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4243 | echo "configure:4244: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4244 | 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] | 4245 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4246 | else |
| 4247 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4248 | #line 4249 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4249 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4250 | /* System header to define __stub macros and hopefully few prototypes, |
| 4251 | which can conflict with char $ac_func(); below. */ |
| 4252 | #include <assert.h> |
| 4253 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4254 | /* We use char because int might match the return type of a gcc2 |
| 4255 | builtin and then its argument prototype would still apply. */ |
| 4256 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4257 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4258 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4259 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4260 | /* The GNU C library defines this for functions which it implements |
| 4261 | to always fail with ENOSYS. Some functions are actually named |
| 4262 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4263 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4264 | choke me |
| 4265 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4266 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4267 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4268 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4269 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4270 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4271 | if { (eval echo configure:4272: \"$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] | 4272 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4273 | eval "ac_cv_func_$ac_func=yes" |
| 4274 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4275 | echo "configure: failed program was:" >&5 |
| 4276 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4277 | rm -rf conftest* |
| 4278 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4279 | fi |
| 4280 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4281 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4282 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4283 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4284 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4285 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4286 | cat >> confdefs.h <<EOF |
| 4287 | #define $ac_tr_func 1 |
| 4288 | EOF |
| 4289 | |
| 4290 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4291 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4292 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4293 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4294 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4295 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4296 | # check for openpty and forkpty |
| 4297 | |
| 4298 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4299 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4300 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4301 | echo "configure:4302: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4302 | 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] | 4303 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4304 | else |
| 4305 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4306 | #line 4307 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4307 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4308 | /* System header to define __stub macros and hopefully few prototypes, |
| 4309 | which can conflict with char $ac_func(); below. */ |
| 4310 | #include <assert.h> |
| 4311 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4312 | /* We use char because int might match the return type of a gcc2 |
| 4313 | builtin and then its argument prototype would still apply. */ |
| 4314 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4315 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4316 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4317 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4318 | /* The GNU C library defines this for functions which it implements |
| 4319 | to always fail with ENOSYS. Some functions are actually named |
| 4320 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4321 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4322 | choke me |
| 4323 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4324 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4325 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4326 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4327 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4328 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4329 | if { (eval echo configure:4330: \"$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] | 4330 | rm -rf conftest* |
| 4331 | eval "ac_cv_func_$ac_func=yes" |
| 4332 | else |
| 4333 | echo "configure: failed program was:" >&5 |
| 4334 | cat conftest.$ac_ext >&5 |
| 4335 | rm -rf conftest* |
| 4336 | eval "ac_cv_func_$ac_func=no" |
| 4337 | fi |
| 4338 | rm -f conftest* |
| 4339 | fi |
| 4340 | |
| 4341 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4342 | echo "$ac_t""yes" 1>&6 |
| 4343 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4344 | cat >> confdefs.h <<EOF |
| 4345 | #define $ac_tr_func 1 |
| 4346 | EOF |
| 4347 | |
| 4348 | else |
| 4349 | echo "$ac_t""no" 1>&6 |
| 4350 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4351 | echo "configure:4352: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4352 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4353 | 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] | 4354 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4355 | else |
| 4356 | ac_save_LIBS="$LIBS" |
| 4357 | LIBS="-lutil $LIBS" |
| 4358 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4359 | #line 4360 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4360 | #include "confdefs.h" |
| 4361 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4362 | /* We use char because int might match the return type of a gcc2 |
| 4363 | builtin and then its argument prototype would still apply. */ |
| 4364 | char openpty(); |
| 4365 | |
| 4366 | int main() { |
| 4367 | openpty() |
| 4368 | ; return 0; } |
| 4369 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4370 | if { (eval echo configure:4371: \"$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] | 4371 | rm -rf conftest* |
| 4372 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4373 | else |
| 4374 | echo "configure: failed program was:" >&5 |
| 4375 | cat conftest.$ac_ext >&5 |
| 4376 | rm -rf conftest* |
| 4377 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4378 | fi |
| 4379 | rm -f conftest* |
| 4380 | LIBS="$ac_save_LIBS" |
| 4381 | |
| 4382 | fi |
| 4383 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4384 | echo "$ac_t""yes" 1>&6 |
| 4385 | cat >> confdefs.h <<\EOF |
| 4386 | #define HAVE_OPENPTY 1 |
| 4387 | EOF |
| 4388 | LIBS="$LIBS -lutil" |
| 4389 | else |
| 4390 | echo "$ac_t""no" 1>&6 |
| 4391 | fi |
| 4392 | |
| 4393 | fi |
| 4394 | done |
| 4395 | |
| 4396 | for ac_func in forkpty |
| 4397 | do |
| 4398 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4399 | echo "configure:4400: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4400 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4401 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4402 | else |
| 4403 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4404 | #line 4405 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4405 | #include "confdefs.h" |
| 4406 | /* System header to define __stub macros and hopefully few prototypes, |
| 4407 | which can conflict with char $ac_func(); below. */ |
| 4408 | #include <assert.h> |
| 4409 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4410 | /* We use char because int might match the return type of a gcc2 |
| 4411 | builtin and then its argument prototype would still apply. */ |
| 4412 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4413 | |
| 4414 | int main() { |
| 4415 | |
| 4416 | /* The GNU C library defines this for functions which it implements |
| 4417 | to always fail with ENOSYS. Some functions are actually named |
| 4418 | something starting with __ and the normal name is an alias. */ |
| 4419 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4420 | choke me |
| 4421 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4422 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4423 | #endif |
| 4424 | |
| 4425 | ; return 0; } |
| 4426 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4427 | if { (eval echo configure:4428: \"$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] | 4428 | rm -rf conftest* |
| 4429 | eval "ac_cv_func_$ac_func=yes" |
| 4430 | else |
| 4431 | echo "configure: failed program was:" >&5 |
| 4432 | cat conftest.$ac_ext >&5 |
| 4433 | rm -rf conftest* |
| 4434 | eval "ac_cv_func_$ac_func=no" |
| 4435 | fi |
| 4436 | rm -f conftest* |
| 4437 | fi |
| 4438 | |
| 4439 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4440 | echo "$ac_t""yes" 1>&6 |
| 4441 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4442 | cat >> confdefs.h <<EOF |
| 4443 | #define $ac_tr_func 1 |
| 4444 | EOF |
| 4445 | |
| 4446 | else |
| 4447 | echo "$ac_t""no" 1>&6 |
| 4448 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4449 | echo "configure:4450: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4450 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4451 | 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] | 4452 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4453 | else |
| 4454 | ac_save_LIBS="$LIBS" |
| 4455 | LIBS="-lutil $LIBS" |
| 4456 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4457 | #line 4458 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4458 | #include "confdefs.h" |
| 4459 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4460 | /* We use char because int might match the return type of a gcc2 |
| 4461 | builtin and then its argument prototype would still apply. */ |
| 4462 | char forkpty(); |
| 4463 | |
| 4464 | int main() { |
| 4465 | forkpty() |
| 4466 | ; return 0; } |
| 4467 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4468 | if { (eval echo configure:4469: \"$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] | 4469 | rm -rf conftest* |
| 4470 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4471 | else |
| 4472 | echo "configure: failed program was:" >&5 |
| 4473 | cat conftest.$ac_ext >&5 |
| 4474 | rm -rf conftest* |
| 4475 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4476 | fi |
| 4477 | rm -f conftest* |
| 4478 | LIBS="$ac_save_LIBS" |
| 4479 | |
| 4480 | fi |
| 4481 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4482 | echo "$ac_t""yes" 1>&6 |
| 4483 | cat >> confdefs.h <<\EOF |
| 4484 | #define HAVE_FORKPTY 1 |
| 4485 | EOF |
| 4486 | LIBS="$LIBS -lutil" |
| 4487 | else |
| 4488 | echo "$ac_t""no" 1>&6 |
| 4489 | fi |
| 4490 | |
| 4491 | fi |
| 4492 | done |
| 4493 | |
| 4494 | |
| 4495 | # check for long file support functions |
| 4496 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 4497 | do |
| 4498 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4499 | echo "configure:4500: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4500 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4501 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4502 | else |
| 4503 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4504 | #line 4505 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4505 | #include "confdefs.h" |
| 4506 | /* System header to define __stub macros and hopefully few prototypes, |
| 4507 | which can conflict with char $ac_func(); below. */ |
| 4508 | #include <assert.h> |
| 4509 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4510 | /* We use char because int might match the return type of a gcc2 |
| 4511 | builtin and then its argument prototype would still apply. */ |
| 4512 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4513 | |
| 4514 | int main() { |
| 4515 | |
| 4516 | /* The GNU C library defines this for functions which it implements |
| 4517 | to always fail with ENOSYS. Some functions are actually named |
| 4518 | something starting with __ and the normal name is an alias. */ |
| 4519 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4520 | choke me |
| 4521 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4522 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4523 | #endif |
| 4524 | |
| 4525 | ; return 0; } |
| 4526 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4527 | if { (eval echo configure:4528: \"$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] | 4528 | rm -rf conftest* |
| 4529 | eval "ac_cv_func_$ac_func=yes" |
| 4530 | else |
| 4531 | echo "configure: failed program was:" >&5 |
| 4532 | cat conftest.$ac_ext >&5 |
| 4533 | rm -rf conftest* |
| 4534 | eval "ac_cv_func_$ac_func=no" |
| 4535 | fi |
| 4536 | rm -f conftest* |
| 4537 | fi |
| 4538 | |
| 4539 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4540 | echo "$ac_t""yes" 1>&6 |
| 4541 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4542 | cat >> confdefs.h <<EOF |
| 4543 | #define $ac_tr_func 1 |
| 4544 | EOF |
| 4545 | |
| 4546 | else |
| 4547 | echo "$ac_t""no" 1>&6 |
| 4548 | fi |
| 4549 | done |
| 4550 | |
| 4551 | |
| 4552 | for ac_func in dup2 getcwd strdup strerror memmove |
| 4553 | do |
| 4554 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4555 | echo "configure:4556: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4556 | 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] | 4557 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4558 | else |
| 4559 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4560 | #line 4561 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4561 | #include "confdefs.h" |
| 4562 | /* System header to define __stub macros and hopefully few prototypes, |
| 4563 | which can conflict with char $ac_func(); below. */ |
| 4564 | #include <assert.h> |
| 4565 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4566 | /* We use char because int might match the return type of a gcc2 |
| 4567 | builtin and then its argument prototype would still apply. */ |
| 4568 | char $ac_func(); |
| 4569 | |
| 4570 | int main() { |
| 4571 | |
| 4572 | /* The GNU C library defines this for functions which it implements |
| 4573 | to always fail with ENOSYS. Some functions are actually named |
| 4574 | something starting with __ and the normal name is an alias. */ |
| 4575 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4576 | choke me |
| 4577 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4578 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4579 | #endif |
| 4580 | |
| 4581 | ; return 0; } |
| 4582 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4583 | if { (eval echo configure:4584: \"$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] | 4584 | rm -rf conftest* |
| 4585 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4586 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4587 | echo "configure: failed program was:" >&5 |
| 4588 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4589 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4590 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4591 | fi |
| 4592 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4593 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4594 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4595 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4596 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4597 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4598 | cat >> confdefs.h <<EOF |
| 4599 | #define $ac_tr_func 1 |
| 4600 | EOF |
| 4601 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4602 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4603 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4604 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4605 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4606 | done |
| 4607 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4608 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4609 | for ac_func in getpgrp |
| 4610 | do |
| 4611 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4612 | echo "configure:4613: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4613 | 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] | 4614 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4615 | else |
| 4616 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4617 | #line 4618 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4618 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4619 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4620 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4621 | #include <assert.h> |
| 4622 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4623 | /* We use char because int might match the return type of a gcc2 |
| 4624 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4625 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4626 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4627 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4628 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4629 | /* The GNU C library defines this for functions which it implements |
| 4630 | to always fail with ENOSYS. Some functions are actually named |
| 4631 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4632 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4633 | choke me |
| 4634 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4635 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4636 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4637 | |
| 4638 | ; return 0; } |
| 4639 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4640 | if { (eval echo configure:4641: \"$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] | 4641 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4642 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4643 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4644 | echo "configure: failed program was:" >&5 |
| 4645 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4646 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4647 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4648 | fi |
| 4649 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4650 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4651 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4652 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4653 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4654 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4655 | cat >> confdefs.h <<EOF |
| 4656 | #define $ac_tr_func 1 |
| 4657 | EOF |
| 4658 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4659 | #line 4660 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4660 | #include "confdefs.h" |
| 4661 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4662 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4663 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4664 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4665 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4666 | if { (eval echo configure:4667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4667 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4668 | cat >> confdefs.h <<\EOF |
| 4669 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4670 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4671 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4672 | else |
| 4673 | echo "configure: failed program was:" >&5 |
| 4674 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4675 | fi |
| 4676 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4677 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4678 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4679 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4680 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4681 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4682 | for ac_func in setpgrp |
| 4683 | do |
| 4684 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4685 | echo "configure:4686: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4686 | 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] | 4687 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4688 | else |
| 4689 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4690 | #line 4691 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4691 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4692 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4693 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4694 | #include <assert.h> |
| 4695 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4696 | /* We use char because int might match the return type of a gcc2 |
| 4697 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4698 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4699 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4700 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4701 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4702 | /* The GNU C library defines this for functions which it implements |
| 4703 | to always fail with ENOSYS. Some functions are actually named |
| 4704 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4705 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4706 | choke me |
| 4707 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4708 | $ac_func(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4709 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4710 | |
| 4711 | ; return 0; } |
| 4712 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4713 | if { (eval echo configure:4714: \"$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] | 4714 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4715 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4716 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4717 | echo "configure: failed program was:" >&5 |
| 4718 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4719 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4720 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4721 | fi |
| 4722 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4723 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4724 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4725 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4726 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4727 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4728 | cat >> confdefs.h <<EOF |
| 4729 | #define $ac_tr_func 1 |
| 4730 | EOF |
| 4731 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4732 | #line 4733 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4733 | #include "confdefs.h" |
| 4734 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4735 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4736 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4737 | ; return 0; } |
| 4738 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4739 | if { (eval echo configure:4740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4740 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4741 | cat >> confdefs.h <<\EOF |
| 4742 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4743 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4744 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4745 | else |
| 4746 | echo "configure: failed program was:" >&5 |
| 4747 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4748 | fi |
| 4749 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4750 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4751 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4752 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4753 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4754 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4755 | for ac_func in gettimeofday |
| 4756 | do |
| 4757 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4758 | echo "configure:4759: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4759 | 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] | 4760 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4761 | else |
| 4762 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4763 | #line 4764 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4764 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4765 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4766 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4767 | #include <assert.h> |
| 4768 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4769 | /* We use char because int might match the return type of a gcc2 |
| 4770 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4771 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4772 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4773 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4774 | |
| 4775 | /* The GNU C library defines this for functions which it implements |
| 4776 | to always fail with ENOSYS. Some functions are actually named |
| 4777 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4778 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4779 | choke me |
| 4780 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4781 | $ac_func(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4782 | #endif |
| 4783 | |
| 4784 | ; return 0; } |
| 4785 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4786 | if { (eval echo configure:4787: \"$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] | 4787 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4788 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4789 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4790 | echo "configure: failed program was:" >&5 |
| 4791 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4792 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4793 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4794 | fi |
| 4795 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4796 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4797 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4798 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4799 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4800 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4801 | cat >> confdefs.h <<EOF |
| 4802 | #define $ac_tr_func 1 |
| 4803 | EOF |
| 4804 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4805 | #line 4806 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4806 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4807 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4808 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4809 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 4810 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4811 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4812 | if { (eval echo configure:4813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4813 | : |
| 4814 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4815 | echo "configure: failed program was:" >&5 |
| 4816 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4817 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4818 | cat >> confdefs.h <<\EOF |
| 4819 | #define GETTIMEOFDAY_NO_TZ 1 |
| 4820 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4821 | |
| 4822 | fi |
| 4823 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4824 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4825 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4826 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4827 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4828 | |
| 4829 | |
| 4830 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4831 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4832 | echo "configure:4833: 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] | 4833 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4834 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4835 | else |
| 4836 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4837 | #line 4838 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4838 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4839 | #include <sys/types.h> |
| 4840 | #include <sys/time.h> |
| 4841 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4842 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4843 | struct tm *tp; |
| 4844 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4845 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4846 | if { (eval echo configure:4847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4847 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4848 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4849 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4850 | echo "configure: failed program was:" >&5 |
| 4851 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4852 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4853 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4854 | fi |
| 4855 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4856 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4857 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4858 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4859 | if test $ac_cv_header_time = yes; then |
| 4860 | cat >> confdefs.h <<\EOF |
| 4861 | #define TIME_WITH_SYS_TIME 1 |
| 4862 | EOF |
| 4863 | |
| 4864 | fi |
| 4865 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4866 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4867 | echo "configure:4868: 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] | 4868 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4869 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4870 | else |
| 4871 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4872 | #line 4873 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4873 | #include "confdefs.h" |
| 4874 | #include <sys/types.h> |
| 4875 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4876 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4877 | struct tm *tp; tp->tm_sec; |
| 4878 | ; return 0; } |
| 4879 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4880 | if { (eval echo configure:4881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4881 | rm -rf conftest* |
| 4882 | ac_cv_struct_tm=time.h |
| 4883 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4884 | echo "configure: failed program was:" >&5 |
| 4885 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4886 | rm -rf conftest* |
| 4887 | ac_cv_struct_tm=sys/time.h |
| 4888 | fi |
| 4889 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4890 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4891 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4892 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4893 | if test $ac_cv_struct_tm = sys/time.h; then |
| 4894 | cat >> confdefs.h <<\EOF |
| 4895 | #define TM_IN_SYS_TIME 1 |
| 4896 | EOF |
| 4897 | |
| 4898 | fi |
| 4899 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4900 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4901 | echo "configure:4902: checking for tm_zone in struct tm" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4902 | 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] | 4903 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4904 | else |
| 4905 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4906 | #line 4907 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4907 | #include "confdefs.h" |
| 4908 | #include <sys/types.h> |
| 4909 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4910 | int main() { |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4911 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4912 | ; return 0; } |
| 4913 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4914 | if { (eval echo configure:4915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4915 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4916 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4917 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4918 | echo "configure: failed program was:" >&5 |
| 4919 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4920 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4921 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4922 | fi |
| 4923 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4924 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4925 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4926 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 4927 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4928 | cat >> confdefs.h <<\EOF |
| 4929 | #define HAVE_TM_ZONE 1 |
| 4930 | EOF |
| 4931 | |
| 4932 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4933 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4934 | echo "configure:4935: checking for tzname" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4935 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4936 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4937 | else |
| 4938 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4939 | #line 4940 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4940 | #include "confdefs.h" |
| 4941 | #include <time.h> |
| 4942 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4943 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4944 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4945 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4946 | atoi(*tzname); |
| 4947 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4948 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4949 | if { (eval echo configure:4950: \"$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] | 4950 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4951 | ac_cv_var_tzname=yes |
| 4952 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4953 | echo "configure: failed program was:" >&5 |
| 4954 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4955 | rm -rf conftest* |
| 4956 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4957 | fi |
| 4958 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4959 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4960 | |
| 4961 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4962 | if test $ac_cv_var_tzname = yes; then |
| 4963 | cat >> confdefs.h <<\EOF |
| 4964 | #define HAVE_TZNAME 1 |
| 4965 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4966 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4967 | fi |
| 4968 | fi |
| 4969 | |
| 4970 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4971 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4972 | echo "configure:4973: checking for time.h that defines altzone" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4973 | 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] | 4974 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4975 | else |
| 4976 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4977 | #line 4978 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4978 | #include "confdefs.h" |
| 4979 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4980 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4981 | return altzone; |
| 4982 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4983 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4984 | if { (eval echo configure:4985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4985 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4986 | ac_cv_header_time_altzone=yes |
| 4987 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4988 | echo "configure: failed program was:" >&5 |
| 4989 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4990 | rm -rf conftest* |
| 4991 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4992 | fi |
| 4993 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4994 | fi |
| 4995 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4996 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4997 | if test $ac_cv_header_time_altzone = yes; then |
| 4998 | cat >> confdefs.h <<\EOF |
| 4999 | #define HAVE_ALTZONE 1 |
| 5000 | EOF |
| 5001 | |
| 5002 | fi |
| 5003 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5004 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5005 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5006 | echo "configure:5007: 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] | 5007 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5008 | #line 5009 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5009 | #include "confdefs.h" |
| 5010 | |
| 5011 | #include <sys/types.h> |
| 5012 | #include <sys/select.h> |
| 5013 | #include <sys/time.h> |
| 5014 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5015 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5016 | ; |
| 5017 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5018 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5019 | if { (eval echo configure:5020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5020 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5021 | cat >> confdefs.h <<\EOF |
| 5022 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 5023 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5024 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5025 | else |
| 5026 | echo "configure: failed program was:" >&5 |
| 5027 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5028 | fi |
| 5029 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5030 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5031 | |
| 5032 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5033 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5034 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5035 | echo "configure:5036: checking whether char is unsigned" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5036 | 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] | 5037 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5038 | else |
| 5039 | if test "$GCC" = yes; then |
| 5040 | # GCC predefines this symbol on systems where it applies. |
| 5041 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5042 | #line 5043 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5043 | #include "confdefs.h" |
| 5044 | #ifdef __CHAR_UNSIGNED__ |
| 5045 | yes |
| 5046 | #endif |
| 5047 | |
| 5048 | EOF |
| 5049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5050 | egrep "yes" >/dev/null 2>&1; then |
| 5051 | rm -rf conftest* |
| 5052 | ac_cv_c_char_unsigned=yes |
| 5053 | else |
| 5054 | rm -rf conftest* |
| 5055 | ac_cv_c_char_unsigned=no |
| 5056 | fi |
| 5057 | rm -f conftest* |
| 5058 | |
| 5059 | else |
| 5060 | if test "$cross_compiling" = yes; then |
| 5061 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5062 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5063 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5064 | #line 5065 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5065 | #include "confdefs.h" |
| 5066 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5067 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5068 | #define volatile |
| 5069 | #endif |
| 5070 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5071 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5072 | } |
| 5073 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5074 | if { (eval echo configure:5075: \"$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] | 5075 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5076 | ac_cv_c_char_unsigned=yes |
| 5077 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5078 | echo "configure: failed program was:" >&5 |
| 5079 | cat conftest.$ac_ext >&5 |
| 5080 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5081 | ac_cv_c_char_unsigned=no |
| 5082 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5083 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5084 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5085 | |
| 5086 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5087 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5088 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5089 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5090 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 5091 | cat >> confdefs.h <<\EOF |
| 5092 | #define __CHAR_UNSIGNED__ 1 |
| 5093 | EOF |
| 5094 | |
| 5095 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5096 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5097 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5098 | echo "configure:5099: checking for working const" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5099 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5100 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5101 | else |
| 5102 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5103 | #line 5104 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5104 | #include "confdefs.h" |
| 5105 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5106 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5107 | |
| 5108 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5109 | typedef int charset[2]; const charset x; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5110 | /* SunOS 4.1.1 cc rejects this. */ |
| 5111 | char const *const *ccp; |
| 5112 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5113 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5114 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5115 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5116 | /* AIX XL C 1.02.0.0 rejects this. |
| 5117 | It does not let you subtract one const X* pointer from another in an arm |
| 5118 | of an if-expression whose if-part is not a constant expression */ |
| 5119 | const char *g = "string"; |
| 5120 | ccp = &g + (g ? g-g : 0); |
| 5121 | /* HPUX 7.0 cc rejects these. */ |
| 5122 | ++ccp; |
| 5123 | p = (char**) ccp; |
| 5124 | ccp = (char const *const *) p; |
| 5125 | { /* SCO 3.2v4 cc rejects this. */ |
| 5126 | char *t; |
| 5127 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5128 | |
| 5129 | *t++ = 0; |
| 5130 | } |
| 5131 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5132 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5133 | const int *foo = &x[0]; |
| 5134 | ++foo; |
| 5135 | } |
| 5136 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5137 | typedef const int *iptr; |
| 5138 | iptr p = 0; |
| 5139 | ++p; |
| 5140 | } |
| 5141 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5142 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5143 | struct s { int j; const int *ap[3]; }; |
| 5144 | struct s *b; b->j = 5; |
| 5145 | } |
| 5146 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5147 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5148 | } |
| 5149 | |
| 5150 | ; return 0; } |
| 5151 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5152 | if { (eval echo configure:5153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5153 | rm -rf conftest* |
| 5154 | ac_cv_c_const=yes |
| 5155 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5156 | echo "configure: failed program was:" >&5 |
| 5157 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5158 | rm -rf conftest* |
| 5159 | ac_cv_c_const=no |
| 5160 | fi |
| 5161 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5162 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5163 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5164 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5165 | if test $ac_cv_c_const = no; then |
| 5166 | cat >> confdefs.h <<\EOF |
| 5167 | #define const |
| 5168 | EOF |
| 5169 | |
| 5170 | fi |
| 5171 | |
| 5172 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5173 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5174 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5175 | echo "configure:5176: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5176 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5177 | #line 5178 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5178 | #include "confdefs.h" |
| 5179 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5180 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5181 | volatile int x; x = 0; |
| 5182 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5183 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5184 | if { (eval echo configure:5185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5185 | rm -rf conftest* |
| 5186 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5187 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5188 | echo "configure: failed program was:" >&5 |
| 5189 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5190 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5191 | cat >> confdefs.h <<\EOF |
| 5192 | #define volatile |
| 5193 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5194 | |
| 5195 | fi |
| 5196 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5197 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5198 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5199 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5200 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5201 | echo "configure:5202: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5202 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5203 | #line 5204 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5204 | #include "confdefs.h" |
| 5205 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5206 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5207 | signed char c; |
| 5208 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5209 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5210 | if { (eval echo configure:5211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5211 | rm -rf conftest* |
| 5212 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5213 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5214 | echo "configure: failed program was:" >&5 |
| 5215 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5216 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5217 | cat >> confdefs.h <<\EOF |
| 5218 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5219 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5220 | |
| 5221 | fi |
| 5222 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5223 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5224 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5225 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5226 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5227 | echo "configure:5228: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5228 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5229 | #line 5230 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5230 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5231 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5232 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5233 | return foo(10); |
| 5234 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5235 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5236 | if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5237 | rm -rf conftest* |
| 5238 | cat >> confdefs.h <<\EOF |
| 5239 | #define HAVE_PROTOTYPES 1 |
| 5240 | EOF |
| 5241 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5242 | else |
| 5243 | echo "configure: failed program was:" >&5 |
| 5244 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5245 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5246 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5247 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5248 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5249 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5250 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5251 | echo "configure:5252: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5252 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5253 | #line 5254 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5254 | #include "confdefs.h" |
| 5255 | |
| 5256 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5257 | int foo(int x, ...) { |
| 5258 | va_list va; |
| 5259 | va_start(va, x); |
| 5260 | va_arg(va, int); |
| 5261 | va_arg(va, char *); |
| 5262 | va_arg(va, double); |
| 5263 | return 0; |
| 5264 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5265 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5266 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5267 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5268 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5269 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5270 | if { (eval echo configure:5271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5271 | rm -rf conftest* |
| 5272 | cat >> confdefs.h <<\EOF |
| 5273 | #define HAVE_STDARG_PROTOTYPES 1 |
| 5274 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5275 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5276 | else |
| 5277 | echo "configure: failed program was:" >&5 |
| 5278 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5279 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5280 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5281 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5282 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5283 | if test "$have_prototypes" = yes; then |
| 5284 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5285 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5286 | echo "configure:5287: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5287 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5288 | #line 5289 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5289 | #include "confdefs.h" |
| 5290 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5291 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5292 | char **t;execve("@",t,t); |
| 5293 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5294 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5295 | if { (eval echo configure:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5296 | : |
| 5297 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5298 | echo "configure: failed program was:" >&5 |
| 5299 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5300 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5301 | cat >> confdefs.h <<\EOF |
| 5302 | #define BAD_EXEC_PROTOTYPES 1 |
| 5303 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5304 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5305 | fi |
| 5306 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5307 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5308 | fi |
| 5309 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5310 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5311 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5312 | echo "configure:5313: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5313 | if test "$cross_compiling" = yes; then |
| 5314 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5315 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5316 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5317 | #line 5318 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5318 | #include "confdefs.h" |
| 5319 | |
| 5320 | struct s { int a; int b; }; |
| 5321 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5322 | int foobar() { |
| 5323 | static int random; |
| 5324 | random = (int) &foo; |
| 5325 | return random; |
| 5326 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5327 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5328 | main() { |
| 5329 | exit(!((int)&foo == foobar())); |
| 5330 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5331 | |
| 5332 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5333 | if { (eval echo configure:5334: \"$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] | 5334 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5335 | : |
| 5336 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5337 | echo "configure: failed program was:" >&5 |
| 5338 | cat conftest.$ac_ext >&5 |
| 5339 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5340 | cat >> confdefs.h <<\EOF |
| 5341 | #define BAD_STATIC_FORWARD 1 |
| 5342 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5343 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5344 | fi |
| 5345 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5346 | fi |
| 5347 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5348 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5349 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5350 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5351 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5352 | echo "configure:5353: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5353 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5354 | #line 5355 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5355 | #include "confdefs.h" |
| 5356 | |
| 5357 | #ifdef HAVE_STDARG_PROTOTYPES |
| 5358 | #include <stdarg.h> |
| 5359 | #else |
| 5360 | #include <varargs.h> |
| 5361 | #endif |
| 5362 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5363 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5364 | va_list list1, list2; list1 = list2; |
| 5365 | ; return 0; } |
| 5366 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5367 | if { (eval echo configure:5368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5368 | : |
| 5369 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5370 | echo "configure: failed program was:" >&5 |
| 5371 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5372 | rm -rf conftest* |
| 5373 | cat >> confdefs.h <<\EOF |
| 5374 | #define VA_LIST_IS_ARRAY 1 |
| 5375 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5376 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5377 | fi |
| 5378 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5379 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5380 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5381 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 5382 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5383 | echo "configure:5384: checking for gethostbyname_r" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5384 | 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] | 5385 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5386 | else |
| 5387 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5388 | #line 5389 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5389 | #include "confdefs.h" |
| 5390 | /* System header to define __stub macros and hopefully few prototypes, |
| 5391 | which can conflict with char gethostbyname_r(); below. */ |
| 5392 | #include <assert.h> |
| 5393 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5394 | /* We use char because int might match the return type of a gcc2 |
| 5395 | builtin and then its argument prototype would still apply. */ |
| 5396 | char gethostbyname_r(); |
| 5397 | |
| 5398 | int main() { |
| 5399 | |
| 5400 | /* The GNU C library defines this for functions which it implements |
| 5401 | to always fail with ENOSYS. Some functions are actually named |
| 5402 | something starting with __ and the normal name is an alias. */ |
| 5403 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 5404 | choke me |
| 5405 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5406 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5407 | #endif |
| 5408 | |
| 5409 | ; return 0; } |
| 5410 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5411 | if { (eval echo configure:5412: \"$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] | 5412 | rm -rf conftest* |
| 5413 | eval "ac_cv_func_gethostbyname_r=yes" |
| 5414 | else |
| 5415 | echo "configure: failed program was:" >&5 |
| 5416 | cat conftest.$ac_ext >&5 |
| 5417 | rm -rf conftest* |
| 5418 | eval "ac_cv_func_gethostbyname_r=no" |
| 5419 | fi |
| 5420 | rm -f conftest* |
| 5421 | fi |
| 5422 | |
| 5423 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 5424 | echo "$ac_t""yes" 1>&6 |
| 5425 | |
| 5426 | cat >> confdefs.h <<\EOF |
| 5427 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5428 | EOF |
| 5429 | |
| 5430 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5431 | echo "configure:5432: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5432 | OLD_CFLAGS=$CFLAGS |
| 5433 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 5434 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5435 | #line 5436 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5436 | #include "confdefs.h" |
| 5437 | |
| 5438 | # include <netdb.h> |
| 5439 | |
| 5440 | int main() { |
| 5441 | |
| 5442 | char *name; |
| 5443 | struct hostent *he, *res; |
| 5444 | char buffer[2048]; |
| 5445 | int buflen = 2048; |
| 5446 | int h_errnop; |
| 5447 | |
| 5448 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 5449 | |
| 5450 | ; return 0; } |
| 5451 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5452 | if { (eval echo configure:5453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5453 | rm -rf conftest* |
| 5454 | |
| 5455 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5456 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5457 | EOF |
| 5458 | |
| 5459 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5460 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 5461 | EOF |
| 5462 | |
| 5463 | echo "$ac_t""yes" 1>&6 |
| 5464 | |
| 5465 | else |
| 5466 | echo "configure: failed program was:" >&5 |
| 5467 | cat conftest.$ac_ext >&5 |
| 5468 | rm -rf conftest* |
| 5469 | |
| 5470 | echo "$ac_t""no" 1>&6 |
| 5471 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5472 | echo "configure:5473: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5473 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5474 | #line 5475 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5475 | #include "confdefs.h" |
| 5476 | |
| 5477 | # include <netdb.h> |
| 5478 | |
| 5479 | int main() { |
| 5480 | |
| 5481 | char *name; |
| 5482 | struct hostent *he; |
| 5483 | char buffer[2048]; |
| 5484 | int buflen = 2048; |
| 5485 | int h_errnop; |
| 5486 | |
| 5487 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 5488 | |
| 5489 | ; return 0; } |
| 5490 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5491 | if { (eval echo configure:5492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5492 | rm -rf conftest* |
| 5493 | |
| 5494 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5495 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5496 | EOF |
| 5497 | |
| 5498 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5499 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 5500 | EOF |
| 5501 | |
| 5502 | echo "$ac_t""yes" 1>&6 |
| 5503 | |
| 5504 | else |
| 5505 | echo "configure: failed program was:" >&5 |
| 5506 | cat conftest.$ac_ext >&5 |
| 5507 | rm -rf conftest* |
| 5508 | |
| 5509 | echo "$ac_t""no" 1>&6 |
| 5510 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5511 | echo "configure:5512: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5512 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5513 | #line 5514 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5514 | #include "confdefs.h" |
| 5515 | |
| 5516 | # include <netdb.h> |
| 5517 | |
| 5518 | int main() { |
| 5519 | |
| 5520 | char *name; |
| 5521 | struct hostent *he; |
| 5522 | struct hostent_data data; |
| 5523 | |
| 5524 | (void) gethostbyname_r(name, he, &data); |
| 5525 | |
| 5526 | ; return 0; } |
| 5527 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5528 | if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5529 | rm -rf conftest* |
| 5530 | |
| 5531 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5532 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5533 | EOF |
| 5534 | |
| 5535 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5536 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 5537 | EOF |
| 5538 | |
| 5539 | echo "$ac_t""yes" 1>&6 |
| 5540 | |
| 5541 | else |
| 5542 | echo "configure: failed program was:" >&5 |
| 5543 | cat conftest.$ac_ext >&5 |
| 5544 | rm -rf conftest* |
| 5545 | |
| 5546 | echo "$ac_t""no" 1>&6 |
| 5547 | |
| 5548 | fi |
| 5549 | rm -f conftest* |
| 5550 | |
| 5551 | fi |
| 5552 | rm -f conftest* |
| 5553 | |
| 5554 | fi |
| 5555 | rm -f conftest* |
| 5556 | CFLAGS=$OLD_CFLAGS |
| 5557 | |
| 5558 | else |
| 5559 | echo "$ac_t""no" 1>&6 |
| 5560 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5561 | for ac_func in gethostbyname |
| 5562 | do |
| 5563 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5564 | echo "configure:5565: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5565 | 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] | 5566 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5567 | else |
| 5568 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5569 | #line 5570 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5570 | #include "confdefs.h" |
| 5571 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5572 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5573 | #include <assert.h> |
| 5574 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5575 | /* We use char because int might match the return type of a gcc2 |
| 5576 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5577 | char $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5578 | |
| 5579 | int main() { |
| 5580 | |
| 5581 | /* The GNU C library defines this for functions which it implements |
| 5582 | to always fail with ENOSYS. Some functions are actually named |
| 5583 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5584 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5585 | choke me |
| 5586 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5587 | $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5588 | #endif |
| 5589 | |
| 5590 | ; return 0; } |
| 5591 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5592 | if { (eval echo configure:5593: \"$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] | 5593 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5594 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5595 | else |
| 5596 | echo "configure: failed program was:" >&5 |
| 5597 | cat conftest.$ac_ext >&5 |
| 5598 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5599 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5600 | fi |
| 5601 | rm -f conftest* |
| 5602 | fi |
| 5603 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5604 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5605 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5606 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5607 | cat >> confdefs.h <<EOF |
| 5608 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5609 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5610 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5611 | else |
| 5612 | echo "$ac_t""no" 1>&6 |
| 5613 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5614 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5615 | |
| 5616 | |
| 5617 | fi |
| 5618 | |
| 5619 | |
| 5620 | |
| 5621 | |
| 5622 | |
| 5623 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5624 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5625 | # checks for system services |
| 5626 | # (none yet) |
| 5627 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5628 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5629 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5630 | echo "configure:5631: checking for __fpu_control" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5631 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5632 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5633 | else |
| 5634 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5635 | #line 5636 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5636 | #include "confdefs.h" |
| 5637 | /* System header to define __stub macros and hopefully few prototypes, |
| 5638 | which can conflict with char __fpu_control(); below. */ |
| 5639 | #include <assert.h> |
| 5640 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5641 | /* We use char because int might match the return type of a gcc2 |
| 5642 | builtin and then its argument prototype would still apply. */ |
| 5643 | char __fpu_control(); |
| 5644 | |
| 5645 | int main() { |
| 5646 | |
| 5647 | /* The GNU C library defines this for functions which it implements |
| 5648 | to always fail with ENOSYS. Some functions are actually named |
| 5649 | something starting with __ and the normal name is an alias. */ |
| 5650 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 5651 | choke me |
| 5652 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5653 | __fpu_control(); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5654 | #endif |
| 5655 | |
| 5656 | ; return 0; } |
| 5657 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5658 | if { (eval echo configure:5659: \"$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] | 5659 | rm -rf conftest* |
| 5660 | eval "ac_cv_func___fpu_control=yes" |
| 5661 | else |
| 5662 | echo "configure: failed program was:" >&5 |
| 5663 | cat conftest.$ac_ext >&5 |
| 5664 | rm -rf conftest* |
| 5665 | eval "ac_cv_func___fpu_control=no" |
| 5666 | fi |
| 5667 | rm -f conftest* |
| 5668 | fi |
| 5669 | |
| 5670 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 5671 | echo "$ac_t""yes" 1>&6 |
| 5672 | : |
| 5673 | else |
| 5674 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5675 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5676 | echo "configure:5677: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5677 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5678 | 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] | 5679 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5680 | else |
| 5681 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5682 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5683 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5684 | #line 5685 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5685 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5686 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5687 | /* We use char because int might match the return type of a gcc2 |
| 5688 | builtin and then its argument prototype would still apply. */ |
| 5689 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5690 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5691 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5692 | __fpu_control() |
| 5693 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5694 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5695 | if { (eval echo configure:5696: \"$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] | 5696 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5697 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5698 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5699 | echo "configure: failed program was:" >&5 |
| 5700 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5701 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5702 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5703 | fi |
| 5704 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5705 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5706 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5707 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5708 | 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] | 5709 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5710 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5711 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5712 | cat >> confdefs.h <<EOF |
| 5713 | #define $ac_tr_lib 1 |
| 5714 | EOF |
| 5715 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5716 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5717 | |
| 5718 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5719 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5720 | fi |
| 5721 | |
| 5722 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5723 | fi |
| 5724 | |
| 5725 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5726 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5727 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5728 | echo "configure:5729: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5729 | # Check whether --with-fpectl or --without-fpectl was given. |
| 5730 | if test "${with_fpectl+set}" = set; then |
| 5731 | withval="$with_fpectl" |
| 5732 | |
| 5733 | if test "$withval" != no |
| 5734 | then cat >> confdefs.h <<\EOF |
| 5735 | #define WANT_SIGFPE_HANDLER 1 |
| 5736 | EOF |
| 5737 | echo "$ac_t""yes" 1>&6 |
| 5738 | else echo "$ac_t""no" 1>&6 |
| 5739 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5740 | else |
| 5741 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5742 | fi |
| 5743 | |
| 5744 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5745 | # check for --with-libm=... |
| 5746 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5747 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5748 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5749 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5750 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5751 | *) LIBM=-lm |
| 5752 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5753 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5754 | echo "configure:5755: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5755 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5756 | if test "${with_libm+set}" = set; then |
| 5757 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5758 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5759 | if test "$withval" = no |
| 5760 | then LIBM= |
| 5761 | echo "$ac_t""force LIBM empty" 1>&6 |
| 5762 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5763 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5764 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5765 | 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] | 5766 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5767 | else |
| 5768 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5769 | fi |
| 5770 | |
| 5771 | |
| 5772 | # check for --with-libc=... |
| 5773 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5774 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5775 | echo "configure:5776: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5776 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5777 | if test "${with_libc+set}" = set; then |
| 5778 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5779 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5780 | if test "$withval" = no |
| 5781 | then LIBC= |
| 5782 | echo "$ac_t""force LIBC empty" 1>&6 |
| 5783 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5784 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5785 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5786 | 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] | 5787 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5788 | else |
| 5789 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5790 | fi |
| 5791 | |
| 5792 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5793 | # check for hypot() in math library |
| 5794 | LIBS_SAVE=$LIBS |
| 5795 | LIBS="$LIBS $LIBM" |
| 5796 | for ac_func in hypot |
| 5797 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5798 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5799 | echo "configure:5800: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5800 | 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] | 5801 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5802 | else |
| 5803 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5804 | #line 5805 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5805 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5806 | /* System header to define __stub macros and hopefully few prototypes, |
| 5807 | which can conflict with char $ac_func(); below. */ |
| 5808 | #include <assert.h> |
| 5809 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5810 | /* We use char because int might match the return type of a gcc2 |
| 5811 | builtin and then its argument prototype would still apply. */ |
| 5812 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5813 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5814 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5815 | |
| 5816 | /* The GNU C library defines this for functions which it implements |
| 5817 | to always fail with ENOSYS. Some functions are actually named |
| 5818 | something starting with __ and the normal name is an alias. */ |
| 5819 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5820 | choke me |
| 5821 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5822 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5823 | #endif |
| 5824 | |
| 5825 | ; return 0; } |
| 5826 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5827 | if { (eval echo configure:5828: \"$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] | 5828 | rm -rf conftest* |
| 5829 | eval "ac_cv_func_$ac_func=yes" |
| 5830 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5831 | echo "configure: failed program was:" >&5 |
| 5832 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5833 | rm -rf conftest* |
| 5834 | eval "ac_cv_func_$ac_func=no" |
| 5835 | fi |
| 5836 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5837 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5838 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5839 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5840 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5841 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5842 | cat >> confdefs.h <<EOF |
| 5843 | #define $ac_tr_func 1 |
| 5844 | EOF |
| 5845 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5846 | else |
| 5847 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5848 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5849 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5850 | done |
| 5851 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5852 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5853 | LIBS=$LIBS_SAVE |
| 5854 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5855 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5856 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5857 | echo "configure:5858: checking what malloc(0) returns" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5858 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5859 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5860 | else |
| 5861 | if test "$cross_compiling" = yes; then |
| 5862 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5863 | else |
| 5864 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5865 | #line 5866 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5866 | #include "confdefs.h" |
| 5867 | #include <stdio.h> |
| 5868 | #ifdef HAVE_STDLIB |
| 5869 | #include <stdlib.h> |
| 5870 | #else |
| 5871 | char *malloc(), *realloc(); |
| 5872 | int *free(); |
| 5873 | #endif |
| 5874 | main() { |
| 5875 | char *p; |
| 5876 | p = malloc(0); |
| 5877 | if (p == NULL) exit(1); |
| 5878 | p = realloc(p, 0); |
| 5879 | if (p == NULL) exit(1); |
| 5880 | free(p); |
| 5881 | exit(0); |
| 5882 | } |
| 5883 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5884 | if { (eval echo configure:5885: \"$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] | 5885 | then |
| 5886 | ac_cv_malloc_zero=nonnull |
| 5887 | else |
| 5888 | echo "configure: failed program was:" >&5 |
| 5889 | cat conftest.$ac_ext >&5 |
| 5890 | rm -fr conftest* |
| 5891 | ac_cv_malloc_zero=null |
| 5892 | fi |
| 5893 | rm -fr conftest* |
| 5894 | fi |
| 5895 | |
| 5896 | fi |
| 5897 | |
| 5898 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 5899 | if test "$ac_cv_malloc_zero" = null |
| 5900 | then |
| 5901 | cat >> confdefs.h <<\EOF |
| 5902 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 5903 | EOF |
| 5904 | |
| 5905 | fi |
| 5906 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5907 | # check for wchar.h |
| 5908 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 5909 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5910 | echo "configure:5911: checking for wchar.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5911 | 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] | 5912 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5913 | else |
| 5914 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5915 | #line 5916 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5916 | #include "confdefs.h" |
| 5917 | #include <wchar.h> |
| 5918 | EOF |
| 5919 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5920 | { (eval echo configure:5921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5921 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5922 | if test -z "$ac_err"; then |
| 5923 | rm -rf conftest* |
| 5924 | eval "ac_cv_header_$ac_safe=yes" |
| 5925 | else |
| 5926 | echo "$ac_err" >&5 |
| 5927 | echo "configure: failed program was:" >&5 |
| 5928 | cat conftest.$ac_ext >&5 |
| 5929 | rm -rf conftest* |
| 5930 | eval "ac_cv_header_$ac_safe=no" |
| 5931 | fi |
| 5932 | rm -f conftest* |
| 5933 | fi |
| 5934 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5935 | echo "$ac_t""yes" 1>&6 |
| 5936 | cat >> confdefs.h <<\EOF |
| 5937 | #define HAVE_WCHAR_H 1 |
| 5938 | EOF |
| 5939 | wchar_h="yes" |
| 5940 | else |
| 5941 | echo "$ac_t""no" 1>&6 |
| 5942 | wchar_h="no" |
| 5943 | |
| 5944 | fi |
| 5945 | |
| 5946 | |
| 5947 | # check for usable wchar_t |
| 5948 | usable_wchar_t="unkown" |
| 5949 | echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5950 | echo "configure:5951: checking for usable wchar_t" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5951 | if test "$cross_compiling" = yes; then |
| 5952 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5953 | else |
| 5954 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5955 | #line 5956 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5956 | #include "confdefs.h" |
| 5957 | |
| 5958 | #include "wchar.h" |
| 5959 | #include "wctype.h" |
| 5960 | main() { |
| 5961 | wchar_t s; |
| 5962 | if (sizeof(s) == 2) |
| 5963 | exit(0); |
| 5964 | else |
| 5965 | exit(1); |
| 5966 | } |
| 5967 | |
| 5968 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5969 | if { (eval echo configure:5970: \"$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] | 5970 | then |
| 5971 | cat >> confdefs.h <<\EOF |
| 5972 | #define HAVE_USABLE_WCHAR_T 1 |
| 5973 | EOF |
| 5974 | usable_wchar_t="yes" |
| 5975 | else |
| 5976 | echo "configure: failed program was:" >&5 |
| 5977 | cat conftest.$ac_ext >&5 |
| 5978 | rm -fr conftest* |
| 5979 | usable_wchar_t="no" |
| 5980 | fi |
| 5981 | rm -fr conftest* |
| 5982 | fi |
| 5983 | |
| 5984 | echo "$ac_t""$usable_wchar_t" 1>&6 |
| 5985 | |
| 5986 | # check for endianness |
| 5987 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5988 | echo "configure:5989: checking whether byte ordering is bigendian" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5989 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5990 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5991 | else |
| 5992 | ac_cv_c_bigendian=unknown |
| 5993 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5994 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 5995 | #line 5996 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5996 | #include "confdefs.h" |
| 5997 | #include <sys/types.h> |
| 5998 | #include <sys/param.h> |
| 5999 | int main() { |
| 6000 | |
| 6001 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 6002 | bogus endian macros |
| 6003 | #endif |
| 6004 | ; return 0; } |
| 6005 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6006 | if { (eval echo configure:6007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6007 | rm -rf conftest* |
| 6008 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 6009 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6010 | #line 6011 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6011 | #include "confdefs.h" |
| 6012 | #include <sys/types.h> |
| 6013 | #include <sys/param.h> |
| 6014 | int main() { |
| 6015 | |
| 6016 | #if BYTE_ORDER != BIG_ENDIAN |
| 6017 | not big endian |
| 6018 | #endif |
| 6019 | ; return 0; } |
| 6020 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6021 | if { (eval echo configure:6022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6022 | rm -rf conftest* |
| 6023 | ac_cv_c_bigendian=yes |
| 6024 | else |
| 6025 | echo "configure: failed program was:" >&5 |
| 6026 | cat conftest.$ac_ext >&5 |
| 6027 | rm -rf conftest* |
| 6028 | ac_cv_c_bigendian=no |
| 6029 | fi |
| 6030 | rm -f conftest* |
| 6031 | else |
| 6032 | echo "configure: failed program was:" >&5 |
| 6033 | cat conftest.$ac_ext >&5 |
| 6034 | fi |
| 6035 | rm -f conftest* |
| 6036 | if test $ac_cv_c_bigendian = unknown; then |
| 6037 | if test "$cross_compiling" = yes; then |
| 6038 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6039 | else |
| 6040 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6041 | #line 6042 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6042 | #include "confdefs.h" |
| 6043 | main () { |
| 6044 | /* Are we little or big endian? From Harbison&Steele. */ |
| 6045 | union |
| 6046 | { |
| 6047 | long l; |
| 6048 | char c[sizeof (long)]; |
| 6049 | } u; |
| 6050 | u.l = 1; |
| 6051 | exit (u.c[sizeof (long) - 1] == 1); |
| 6052 | } |
| 6053 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +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 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6055 | then |
| 6056 | ac_cv_c_bigendian=no |
| 6057 | else |
| 6058 | echo "configure: failed program was:" >&5 |
| 6059 | cat conftest.$ac_ext >&5 |
| 6060 | rm -fr conftest* |
| 6061 | ac_cv_c_bigendian=yes |
| 6062 | fi |
| 6063 | rm -fr conftest* |
| 6064 | fi |
| 6065 | |
| 6066 | fi |
| 6067 | fi |
| 6068 | |
| 6069 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 6070 | if test $ac_cv_c_bigendian = yes; then |
| 6071 | cat >> confdefs.h <<\EOF |
| 6072 | #define WORDS_BIGENDIAN 1 |
| 6073 | EOF |
| 6074 | |
| 6075 | fi |
| 6076 | |
| 6077 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6078 | # Check whether right shifting a negative integer extends the sign bit |
| 6079 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 6080 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6081 | echo "configure:6082: checking whether right shift extends the sign bit" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6082 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6083 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6084 | else |
| 6085 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6086 | if test "$cross_compiling" = yes; then |
| 6087 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6088 | else |
| 6089 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6090 | #line 6091 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6091 | #include "confdefs.h" |
| 6092 | |
| 6093 | int main() |
| 6094 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6095 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6096 | } |
| 6097 | |
| 6098 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6099 | if { (eval echo configure:6100: \"$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] | 6100 | then |
| 6101 | ac_cv_rshift_extends_sign=yes |
| 6102 | else |
| 6103 | echo "configure: failed program was:" >&5 |
| 6104 | cat conftest.$ac_ext >&5 |
| 6105 | rm -fr conftest* |
| 6106 | ac_cv_rshift_extends_sign=no |
| 6107 | fi |
| 6108 | rm -fr conftest* |
| 6109 | fi |
| 6110 | |
| 6111 | fi |
| 6112 | |
| 6113 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 6114 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6115 | then |
| 6116 | cat >> confdefs.h <<\EOF |
| 6117 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 6118 | EOF |
| 6119 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6120 | fi |
| 6121 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6122 | # check for getc_unlocked and related locking functions |
| 6123 | echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6124 | echo "configure:6125: checking for getc_unlocked() and friends" >&5 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6125 | if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then |
| 6126 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6127 | else |
| 6128 | |
| 6129 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6130 | #line 6131 "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6131 | #include "confdefs.h" |
| 6132 | #include <stdio.h> |
| 6133 | int main() { |
| 6134 | |
| 6135 | FILE *f = fopen("/dev/null", "r"); |
| 6136 | flockfile(f); |
| 6137 | getc_unlocked(f); |
| 6138 | funlockfile(f); |
| 6139 | |
| 6140 | ; return 0; } |
| 6141 | EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6142 | if { (eval echo configure:6143: \"$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] | 6143 | rm -rf conftest* |
| 6144 | ac_cv_have_getc_unlocked=yes |
| 6145 | else |
| 6146 | echo "configure: failed program was:" >&5 |
| 6147 | cat conftest.$ac_ext >&5 |
| 6148 | rm -rf conftest* |
| 6149 | ac_cv_have_getc_unlocked=no |
| 6150 | fi |
| 6151 | rm -f conftest* |
| 6152 | fi |
| 6153 | |
| 6154 | echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6 |
| 6155 | if test "$ac_cv_have_getc_unlocked" = yes |
| 6156 | then |
| 6157 | cat >> confdefs.h <<\EOF |
| 6158 | #define HAVE_GETC_UNLOCKED 1 |
| 6159 | EOF |
| 6160 | |
| 6161 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6162 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6163 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 6164 | # Add sys/socket.h to confdefs.h |
| 6165 | cat >> confdefs.h <<\EOF |
| 6166 | #ifdef HAVE_SYS_SOCKET_H |
| 6167 | #include <sys/socket.h> |
| 6168 | #endif |
| 6169 | EOF |
| 6170 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6171 | echo "configure:6172: checking for socklen_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6172 | 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] | 6173 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6174 | else |
| 6175 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6176 | #line 6177 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6177 | #include "confdefs.h" |
| 6178 | #include <sys/types.h> |
| 6179 | #if STDC_HEADERS |
| 6180 | #include <stdlib.h> |
| 6181 | #include <stddef.h> |
| 6182 | #endif |
| 6183 | EOF |
| 6184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6185 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6186 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6187 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6188 | else |
| 6189 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6190 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6191 | fi |
| 6192 | rm -f conftest* |
| 6193 | |
| 6194 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6195 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 6196 | if test $ac_cv_type_socklen_t = no; then |
| 6197 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6198 | #define socklen_t int |
| 6199 | EOF |
| 6200 | |
| 6201 | fi |
| 6202 | |
| 6203 | |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 6204 | # Add Python/ prefix to LIBOBJS |
| 6205 | libobjs=$LIBOBJS |
| 6206 | LIBOBJS= |
| 6207 | for obj in $libobjs; do |
| 6208 | LIBOBJS="$LIBOBJS Python/$obj" |
| 6209 | done |
| 6210 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6211 | #AC_MSG_CHECKING(for Modules/Setup) |
| 6212 | #if test ! -f Modules/Setup ; then |
| 6213 | # if test ! -d Modules ; then |
| 6214 | # mkdir Modules |
| 6215 | # fi |
| 6216 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 6217 | # AC_MSG_RESULT(creating) |
| 6218 | #else |
| 6219 | # AC_MSG_RESULT(already exists) |
| 6220 | #fi |
| 6221 | |
| 6222 | |
Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 6223 | SRCDIRS="Parser Grammar Objects Python Modules" |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 6224 | echo $ac_n "checking for build directories""... $ac_c" 1>&6 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 6225 | echo "configure:6226: checking for build directories" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6226 | for dir in $SRCDIRS; do |
| 6227 | if test ! -d $dir; then |
| 6228 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 6229 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6230 | done |
| 6231 | echo "$ac_t""done" 1>&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 6232 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6233 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6234 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6235 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6236 | # This file is a shell script that caches the results of configure |
| 6237 | # tests run on this system so they can be shared between configure |
| 6238 | # scripts and configure runs. It is not useful on other systems. |
| 6239 | # If it contains results you don't want to keep, you may remove or edit it. |
| 6240 | # |
| 6241 | # By default, configure uses ./config.cache as the cache file, |
| 6242 | # creating it if it does not exist already. You can give configure |
| 6243 | # the --cache-file=FILE option to use a different cache file; that is |
| 6244 | # what configure does when it calls configure scripts in |
| 6245 | # subdirectories, so they share the cache. |
| 6246 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6247 | # config.status only pays attention to the cache file if you give it the |
| 6248 | # --recheck option to rerun configure. |
| 6249 | # |
| 6250 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6251 | # The following way of writing the cache mishandles newlines in values, |
| 6252 | # but we know of no workaround that is simple, portable, and efficient. |
| 6253 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6254 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6255 | # 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] | 6256 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6257 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6258 | *ac_space=\ *) |
| 6259 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 6260 | # turns \\\\ into \\, and sed turns \\ into \). |
| 6261 | sed -n \ |
| 6262 | -e "s/'/'\\\\''/g" \ |
| 6263 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 6264 | ;; |
| 6265 | *) |
| 6266 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6267 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 6268 | ;; |
| 6269 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6270 | if cmp -s $cache_file confcache; then |
| 6271 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6272 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6273 | if test -w $cache_file; then |
| 6274 | echo "updating cache $cache_file" |
| 6275 | cat confcache > $cache_file |
| 6276 | else |
| 6277 | echo "not updating unwritable cache $cache_file" |
| 6278 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6279 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6280 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6281 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6282 | 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] | 6283 | |
| 6284 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6285 | # Let make expand exec_prefix. |
| 6286 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6287 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6288 | # Any assignment to VPATH causes Sun make to only execute |
| 6289 | # the first set of double-colon rules, so remove it if not needed. |
| 6290 | # If there is a colon in the path, we need to keep it. |
| 6291 | if test "x$srcdir" = x.; then |
| 6292 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 6293 | fi |
| 6294 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6295 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6296 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6297 | DEFS=-DHAVE_CONFIG_H |
| 6298 | |
| 6299 | # Without the "./", some shells look in PATH for config.status. |
| 6300 | : ${CONFIG_STATUS=./config.status} |
| 6301 | |
| 6302 | echo creating $CONFIG_STATUS |
| 6303 | rm -f $CONFIG_STATUS |
| 6304 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6305 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6306 | # Generated automatically by configure. |
| 6307 | # Run this file to recreate the current configuration. |
| 6308 | # This directory was configured as follows, |
| 6309 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6310 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6311 | # $0 $ac_configure_args |
| 6312 | # |
| 6313 | # Compiler output produced by configure, useful for debugging |
| 6314 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6315 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6316 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6317 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6318 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6319 | case "\$ac_option" in |
| 6320 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6321 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6322 | 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] | 6323 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6324 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6325 | exit 0 ;; |
| 6326 | -help | --help | --hel | --he | --h) |
| 6327 | echo "\$ac_cs_usage"; exit 0 ;; |
| 6328 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6329 | esac |
| 6330 | done |
| 6331 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6332 | ac_given_srcdir=$srcdir |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6333 | ac_given_INSTALL="$INSTALL" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6334 | |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 6335 | 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] | 6336 | EOF |
| 6337 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6338 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6339 | # Protect against being on the right side of a sed subst in config.status. |
| 6340 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6341 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6342 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6343 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6344 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6345 | s%@CFLAGS@%$CFLAGS%g |
| 6346 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 6347 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6348 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6349 | s%@DEFS@%$DEFS%g |
| 6350 | s%@LDFLAGS@%$LDFLAGS%g |
| 6351 | s%@LIBS@%$LIBS%g |
| 6352 | s%@exec_prefix@%$exec_prefix%g |
| 6353 | s%@prefix@%$prefix%g |
| 6354 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6355 | s%@bindir@%$bindir%g |
| 6356 | s%@sbindir@%$sbindir%g |
| 6357 | s%@libexecdir@%$libexecdir%g |
| 6358 | s%@datadir@%$datadir%g |
| 6359 | s%@sysconfdir@%$sysconfdir%g |
| 6360 | s%@sharedstatedir@%$sharedstatedir%g |
| 6361 | s%@localstatedir@%$localstatedir%g |
| 6362 | s%@libdir@%$libdir%g |
| 6363 | s%@includedir@%$includedir%g |
| 6364 | s%@oldincludedir@%$oldincludedir%g |
| 6365 | s%@infodir@%$infodir%g |
| 6366 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 6367 | s%@VERSION@%$VERSION%g |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 6368 | s%@CONFIG_ARGS@%$CONFIG_ARGS%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6369 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 6370 | s%@SGI_ABI@%$SGI_ABI%g |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 6371 | s%@CXX@%$CXX%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 6372 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6373 | s%@CC@%$CC%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6374 | s%@EXEEXT@%$EXEEXT%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6375 | s%@LIBRARY@%$LIBRARY%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6376 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 6377 | s%@DLLLIBRARY@%$DLLLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 6378 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6379 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6380 | s%@AR@%$AR%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6381 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6382 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6383 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6384 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 6385 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6386 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6387 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6388 | s%@SO@%$SO%g |
| 6389 | s%@LDSHARED@%$LDSHARED%g |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 6390 | s%@BLDSHARED@%$BLDSHARED%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6391 | s%@CCSHARED@%$CCSHARED%g |
| 6392 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6393 | s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6394 | s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g |
| 6395 | s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6396 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 6397 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6398 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6399 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 6400 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6401 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6402 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 6403 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 6404 | 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] | 6405 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6406 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6407 | s%@LIBM@%$LIBM%g |
| 6408 | s%@LIBC@%$LIBC%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6409 | s%@SRCDIRS@%$SRCDIRS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6410 | |
| 6411 | CEOF |
| 6412 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6413 | |
| 6414 | cat >> $CONFIG_STATUS <<\EOF |
| 6415 | |
| 6416 | # Split the substitutions into bite-sized pieces for seds with |
| 6417 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6418 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6419 | ac_file=1 # Number of current file. |
| 6420 | ac_beg=1 # First line for current file. |
| 6421 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6422 | ac_more_lines=: |
| 6423 | ac_sed_cmds="" |
| 6424 | while $ac_more_lines; do |
| 6425 | if test $ac_beg -gt 1; then |
| 6426 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6427 | else |
| 6428 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6429 | fi |
| 6430 | if test ! -s conftest.s$ac_file; then |
| 6431 | ac_more_lines=false |
| 6432 | rm -f conftest.s$ac_file |
| 6433 | else |
| 6434 | if test -z "$ac_sed_cmds"; then |
| 6435 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6436 | else |
| 6437 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6438 | fi |
| 6439 | ac_file=`expr $ac_file + 1` |
| 6440 | ac_beg=$ac_end |
| 6441 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6442 | fi |
| 6443 | done |
| 6444 | if test -z "$ac_sed_cmds"; then |
| 6445 | ac_sed_cmds=cat |
| 6446 | fi |
| 6447 | EOF |
| 6448 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6449 | cat >> $CONFIG_STATUS <<EOF |
| 6450 | |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 6451 | CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6452 | EOF |
| 6453 | cat >> $CONFIG_STATUS <<\EOF |
| 6454 | 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] | 6455 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6456 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6457 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6458 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6459 | *) ac_file_in="${ac_file}.in" ;; |
| 6460 | esac |
| 6461 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6462 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6463 | |
| 6464 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6465 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6466 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6467 | # The file is in a subdirectory. |
| 6468 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6469 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6470 | # A "../" for each directory in $ac_dir_suffix. |
| 6471 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6472 | else |
| 6473 | ac_dir_suffix= ac_dots= |
| 6474 | fi |
| 6475 | |
| 6476 | case "$ac_given_srcdir" in |
| 6477 | .) srcdir=. |
| 6478 | if test -z "$ac_dots"; then top_srcdir=. |
| 6479 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6480 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6481 | *) # Relative path. |
| 6482 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6483 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6484 | esac |
| 6485 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6486 | case "$ac_given_INSTALL" in |
| 6487 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 6488 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 6489 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6490 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6491 | echo creating "$ac_file" |
| 6492 | rm -f "$ac_file" |
| 6493 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6494 | case "$ac_file" in |
| 6495 | *Makefile*) ac_comsub="1i\\ |
| 6496 | # $configure_input" ;; |
| 6497 | *) ac_comsub= ;; |
| 6498 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6499 | |
| 6500 | 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] | 6501 | sed -e "$ac_comsub |
| 6502 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6503 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6504 | s%@top_srcdir@%$top_srcdir%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6505 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6506 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6507 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6508 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6509 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6510 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 6511 | # 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] | 6512 | # |
| 6513 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6514 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 6515 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6516 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6517 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6518 | # 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] | 6519 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6520 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6521 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6522 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6523 | # 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] | 6524 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6525 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6526 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6527 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6528 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6529 | if test "${CONFIG_HEADERS+set}" != set; then |
| 6530 | EOF |
| 6531 | cat >> $CONFIG_STATUS <<EOF |
| 6532 | CONFIG_HEADERS="config.h" |
| 6533 | EOF |
| 6534 | cat >> $CONFIG_STATUS <<\EOF |
| 6535 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6536 | 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] | 6537 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6538 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6539 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6540 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6541 | *) ac_file_in="${ac_file}.in" ;; |
| 6542 | esac |
| 6543 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6544 | echo creating $ac_file |
| 6545 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6546 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6547 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6548 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6549 | |
| 6550 | EOF |
| 6551 | |
| 6552 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 6553 | # 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] | 6554 | # 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] | 6555 | # Protect against being in an unquoted here document in config.status. |
| 6556 | rm -f conftest.vals |
| 6557 | cat > conftest.hdr <<\EOF |
| 6558 | s/[\\&%]/\\&/g |
| 6559 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6560 | 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] | 6561 | s%ac_d%ac_u%gp |
| 6562 | s%ac_u%ac_e%gp |
| 6563 | EOF |
| 6564 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 6565 | rm -f conftest.hdr |
| 6566 | |
| 6567 | # This sed command replaces #undef with comments. This is necessary, for |
| 6568 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6569 | # on some systems where configure will not decide to define it. |
| 6570 | cat >> conftest.vals <<\EOF |
| 6571 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6572 | EOF |
| 6573 | |
| 6574 | # Break up conftest.vals because some shells have a limit on |
| 6575 | # 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] | 6576 | |
| 6577 | rm -f conftest.tail |
| 6578 | while : |
| 6579 | do |
| 6580 | ac_lines=`grep -c . conftest.vals` |
| 6581 | # grep -c gives empty output for an empty file on some AIX systems. |
| 6582 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6583 | # Write a limited-size here document to conftest.frag. |
| 6584 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6585 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6586 | echo 'CEOF |
| 6587 | sed -f conftest.frag conftest.in > conftest.out |
| 6588 | rm -f conftest.in |
| 6589 | mv conftest.out conftest.in |
| 6590 | ' >> $CONFIG_STATUS |
| 6591 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6592 | rm -f conftest.vals |
| 6593 | mv conftest.tail conftest.vals |
| 6594 | done |
| 6595 | rm -f conftest.vals |
| 6596 | |
| 6597 | cat >> $CONFIG_STATUS <<\EOF |
| 6598 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6599 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6600 | cat conftest.in >> conftest.h |
| 6601 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6602 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6603 | echo "$ac_file is unchanged" |
| 6604 | rm -f conftest.h |
| 6605 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6606 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6607 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6608 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6609 | # The file is in a subdirectory. |
| 6610 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6611 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6612 | rm -f $ac_file |
| 6613 | mv conftest.h $ac_file |
| 6614 | fi |
| 6615 | fi; done |
| 6616 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6617 | EOF |
| 6618 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6619 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6620 | EOF |
| 6621 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6622 | |
| 6623 | exit 0 |
| 6624 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6625 | chmod +x $CONFIG_STATUS |
| 6626 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6627 | 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] | 6628 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6629 | |
| 6630 | echo "creating Setup" |
| 6631 | if test ! -f Modules/Setup |
| 6632 | then |
| 6633 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 6634 | fi |
| 6635 | |
| 6636 | echo "creating Setup.local" |
| 6637 | if test ! -f Modules/Setup.local |
| 6638 | then |
| 6639 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 6640 | fi |
| 6641 | |
| 6642 | echo "creating Makefile" |
| 6643 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 6644 | -s Modules Modules/Setup.config \ |
| 6645 | Modules/Setup Modules/Setup.local |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 6646 | mv config.c Modules |