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 | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame^] | 3 | # From configure.in Revision: 1.182 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5 | # Guess values for system-dependent variables and create Makefiles. |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.13 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # Defaults: |
| 13 | ac_help= |
| 14 | ac_default_prefix=/usr/local |
| 15 | # Any additions from configure.in: |
| 16 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 17 | --with-next-archs='arch1 arch2 ..' build MAB binary" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 18 | ac_help="$ac_help |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 19 | --with-next-framework Build (OpenStep|Rhapsody|MacOSX|Darwin) framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 20 | ac_help="$ac_help |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 21 | --with-dyld Use (OpenStep|Rhapsody|MacOSX|Darwin) dynamic linker" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 22 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 23 | --without-gcc never use gcc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 25 | --with-cxx=<compiler> enable C++ support" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 26 | ac_help="$ac_help |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 27 | --with-suffix=.exe set executable suffix" |
| 28 | ac_help="$ac_help |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 29 | --with-pydebug build with Py_DEBUG defined" |
| 30 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 31 | --with-libs='lib1 ...' link against additional libs" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 32 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 33 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 34 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 35 | --with(out)-threads[=DIRECTORY] disable/enable thread support" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 36 | ac_help="$ac_help |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 37 | --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 38 | ac_help="$ac_help |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 39 | --with-pth use GNU pth threading libraries" |
| 40 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 41 | --with(out)-cycle-gc disable/enable garbage collection" |
| 42 | ac_help="$ac_help |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 43 | --with(out)-libdb disable/enable bsddb module" |
| 44 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 45 | --with-wctype-functions use wctype.h functions" |
| 46 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 47 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 48 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 49 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 50 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 51 | --with-fpectl enable SIGFPE catching" |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 52 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 53 | --with-libm=STRING math library" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 54 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 55 | --with-libc=STRING C library" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 56 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 57 | # Initialize some variables set by options. |
| 58 | # The variables have the same names as the options, with |
| 59 | # dashes changed to underlines. |
| 60 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 61 | cache_file=./config.cache |
| 62 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 63 | host=NONE |
| 64 | no_create= |
| 65 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 66 | no_recursion= |
| 67 | prefix=NONE |
| 68 | program_prefix=NONE |
| 69 | program_suffix=NONE |
| 70 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 71 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 72 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 73 | srcdir= |
| 74 | target=NONE |
| 75 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 76 | x_includes=NONE |
| 77 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 78 | bindir='${exec_prefix}/bin' |
| 79 | sbindir='${exec_prefix}/sbin' |
| 80 | libexecdir='${exec_prefix}/libexec' |
| 81 | datadir='${prefix}/share' |
| 82 | sysconfdir='${prefix}/etc' |
| 83 | sharedstatedir='${prefix}/com' |
| 84 | localstatedir='${prefix}/var' |
| 85 | libdir='${exec_prefix}/lib' |
| 86 | includedir='${prefix}/include' |
| 87 | oldincludedir='/usr/include' |
| 88 | infodir='${prefix}/info' |
| 89 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 90 | |
| 91 | # Initialize some other variables. |
| 92 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 93 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 94 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 95 | # Maximum number of lines to put in a shell here document. |
| 96 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 97 | |
| 98 | ac_prev= |
| 99 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 100 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 101 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 102 | # If the previous option needs an argument, assign it. |
| 103 | if test -n "$ac_prev"; then |
| 104 | eval "$ac_prev=\$ac_option" |
| 105 | ac_prev= |
| 106 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 107 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 108 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 109 | case "$ac_option" in |
| 110 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 111 | *) ac_optarg= ;; |
| 112 | esac |
| 113 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 114 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 115 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 116 | case "$ac_option" in |
| 117 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 118 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 119 | ac_prev=bindir ;; |
| 120 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 121 | bindir="$ac_optarg" ;; |
| 122 | |
| 123 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 124 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 125 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 126 | build="$ac_optarg" ;; |
| 127 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 128 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 129 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 130 | ac_prev=cache_file ;; |
| 131 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 132 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 133 | cache_file="$ac_optarg" ;; |
| 134 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 135 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 136 | ac_prev=datadir ;; |
| 137 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 138 | | --da=*) |
| 139 | datadir="$ac_optarg" ;; |
| 140 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 141 | -disable-* | --disable-*) |
| 142 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 143 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 144 | 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] | 145 | { 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] | 146 | fi |
| 147 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 148 | eval "enable_${ac_feature}=no" ;; |
| 149 | |
| 150 | -enable-* | --enable-*) |
| 151 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 152 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 153 | 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] | 154 | { 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] | 155 | fi |
| 156 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 157 | case "$ac_option" in |
| 158 | *=*) ;; |
| 159 | *) ac_optarg=yes ;; |
| 160 | esac |
| 161 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 162 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 163 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 164 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 165 | | --exec | --exe | --ex) |
| 166 | ac_prev=exec_prefix ;; |
| 167 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 168 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 169 | | --exec=* | --exe=* | --ex=*) |
| 170 | exec_prefix="$ac_optarg" ;; |
| 171 | |
| 172 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 173 | # Obsolete; use --with-gas. |
| 174 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 175 | |
| 176 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 177 | # Omit some internal or obsolete options to make the list less imposing. |
| 178 | # 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] | 179 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 180 | Usage: configure [options] [host] |
| 181 | Options: [defaults in brackets after descriptions] |
| 182 | Configuration: |
| 183 | --cache-file=FILE cache test results in FILE |
| 184 | --help print this message |
| 185 | --no-create do not create output files |
| 186 | --quiet, --silent do not print \`checking...' messages |
| 187 | --version print the version of autoconf that created configure |
| 188 | Directory and file names: |
| 189 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 190 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 191 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 192 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 193 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 194 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 195 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 196 | --datadir=DIR read-only architecture-independent data in DIR |
| 197 | [PREFIX/share] |
| 198 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 199 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 200 | [PREFIX/com] |
| 201 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 202 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 203 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 204 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 205 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 206 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 207 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 208 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 209 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 210 | --program-transform-name=PROGRAM |
| 211 | run sed PROGRAM on installed program names |
| 212 | EOF |
| 213 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 214 | Host type: |
| 215 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 216 | --host=HOST configure for HOST [guessed] |
| 217 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 218 | Features and packages: |
| 219 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 220 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 221 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 222 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 223 | --x-includes=DIR X include files are in DIR |
| 224 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 225 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 226 | if test -n "$ac_help"; then |
| 227 | echo "--enable and --with options recognized:$ac_help" |
| 228 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 229 | exit 0 ;; |
| 230 | |
| 231 | -host | --host | --hos | --ho) |
| 232 | ac_prev=host ;; |
| 233 | -host=* | --host=* | --hos=* | --ho=*) |
| 234 | host="$ac_optarg" ;; |
| 235 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 236 | -includedir | --includedir | --includedi | --included | --include \ |
| 237 | | --includ | --inclu | --incl | --inc) |
| 238 | ac_prev=includedir ;; |
| 239 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 240 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 241 | includedir="$ac_optarg" ;; |
| 242 | |
| 243 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 244 | ac_prev=infodir ;; |
| 245 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 246 | infodir="$ac_optarg" ;; |
| 247 | |
| 248 | -libdir | --libdir | --libdi | --libd) |
| 249 | ac_prev=libdir ;; |
| 250 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 251 | libdir="$ac_optarg" ;; |
| 252 | |
| 253 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 254 | | --libexe | --libex | --libe) |
| 255 | ac_prev=libexecdir ;; |
| 256 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 257 | | --libexe=* | --libex=* | --libe=*) |
| 258 | libexecdir="$ac_optarg" ;; |
| 259 | |
| 260 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 261 | | --localstate | --localstat | --localsta | --localst \ |
| 262 | | --locals | --local | --loca | --loc | --lo) |
| 263 | ac_prev=localstatedir ;; |
| 264 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 265 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 266 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 267 | localstatedir="$ac_optarg" ;; |
| 268 | |
| 269 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 270 | ac_prev=mandir ;; |
| 271 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 272 | mandir="$ac_optarg" ;; |
| 273 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 274 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 275 | # Obsolete; use --without-fp. |
| 276 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 277 | |
| 278 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 279 | | --no-cr | --no-c) |
| 280 | no_create=yes ;; |
| 281 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 282 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 283 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 284 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 285 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 286 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 287 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 288 | | --oldin | --oldi | --old | --ol | --o) |
| 289 | ac_prev=oldincludedir ;; |
| 290 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 291 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 292 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 293 | oldincludedir="$ac_optarg" ;; |
| 294 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 295 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 296 | ac_prev=prefix ;; |
| 297 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 298 | prefix="$ac_optarg" ;; |
| 299 | |
| 300 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 301 | | --program-pre | --program-pr | --program-p) |
| 302 | ac_prev=program_prefix ;; |
| 303 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 304 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 305 | program_prefix="$ac_optarg" ;; |
| 306 | |
| 307 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 308 | | --program-suf | --program-su | --program-s) |
| 309 | ac_prev=program_suffix ;; |
| 310 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 311 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 312 | program_suffix="$ac_optarg" ;; |
| 313 | |
| 314 | -program-transform-name | --program-transform-name \ |
| 315 | | --program-transform-nam | --program-transform-na \ |
| 316 | | --program-transform-n | --program-transform- \ |
| 317 | | --program-transform | --program-transfor \ |
| 318 | | --program-transfo | --program-transf \ |
| 319 | | --program-trans | --program-tran \ |
| 320 | | --progr-tra | --program-tr | --program-t) |
| 321 | ac_prev=program_transform_name ;; |
| 322 | -program-transform-name=* | --program-transform-name=* \ |
| 323 | | --program-transform-nam=* | --program-transform-na=* \ |
| 324 | | --program-transform-n=* | --program-transform-=* \ |
| 325 | | --program-transform=* | --program-transfor=* \ |
| 326 | | --program-transfo=* | --program-transf=* \ |
| 327 | | --program-trans=* | --program-tran=* \ |
| 328 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 329 | program_transform_name="$ac_optarg" ;; |
| 330 | |
| 331 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 332 | | -silent | --silent | --silen | --sile | --sil) |
| 333 | silent=yes ;; |
| 334 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 335 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 336 | ac_prev=sbindir ;; |
| 337 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 338 | | --sbi=* | --sb=*) |
| 339 | sbindir="$ac_optarg" ;; |
| 340 | |
| 341 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 342 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 343 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 344 | | --sha | --sh) |
| 345 | ac_prev=sharedstatedir ;; |
| 346 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 347 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 348 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 349 | | --sha=* | --sh=*) |
| 350 | sharedstatedir="$ac_optarg" ;; |
| 351 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 352 | -site | --site | --sit) |
| 353 | ac_prev=site ;; |
| 354 | -site=* | --site=* | --sit=*) |
| 355 | site="$ac_optarg" ;; |
| 356 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 357 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 358 | ac_prev=srcdir ;; |
| 359 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 360 | srcdir="$ac_optarg" ;; |
| 361 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 362 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 363 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 364 | ac_prev=sysconfdir ;; |
| 365 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 366 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 367 | sysconfdir="$ac_optarg" ;; |
| 368 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 369 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 370 | ac_prev=target ;; |
| 371 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 372 | target="$ac_optarg" ;; |
| 373 | |
| 374 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 375 | verbose=yes ;; |
| 376 | |
| 377 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 378 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 379 | exit 0 ;; |
| 380 | |
| 381 | -with-* | --with-*) |
| 382 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 383 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 384 | 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] | 385 | { 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] | 386 | fi |
| 387 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 388 | case "$ac_option" in |
| 389 | *=*) ;; |
| 390 | *) ac_optarg=yes ;; |
| 391 | esac |
| 392 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 393 | |
| 394 | -without-* | --without-*) |
| 395 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 396 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 397 | 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] | 398 | { 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] | 399 | fi |
| 400 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 401 | eval "with_${ac_package}=no" ;; |
| 402 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 403 | --x) |
| 404 | # Obsolete; use --with-x. |
| 405 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 406 | |
| 407 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 408 | | --x-incl | --x-inc | --x-in | --x-i) |
| 409 | ac_prev=x_includes ;; |
| 410 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 411 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 412 | x_includes="$ac_optarg" ;; |
| 413 | |
| 414 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 415 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 416 | ac_prev=x_libraries ;; |
| 417 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 418 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 419 | x_libraries="$ac_optarg" ;; |
| 420 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 421 | -*) { 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] | 422 | ;; |
| 423 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 424 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 425 | 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] | 426 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 427 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 428 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 429 | { 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] | 430 | fi |
| 431 | nonopt="$ac_option" |
| 432 | ;; |
| 433 | |
| 434 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 435 | done |
| 436 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 437 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 438 | { 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] | 439 | fi |
| 440 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 441 | 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] | 442 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 443 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 444 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 445 | # 1 file creation |
| 446 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 447 | # 3 some systems may open it to /dev/tty |
| 448 | # 4 used on the Kubota Titan |
| 449 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 450 | # 5 compiler messages saved in config.log |
| 451 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 452 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 453 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 454 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 455 | fi |
| 456 | exec 5>./config.log |
| 457 | |
| 458 | echo "\ |
| 459 | This file contains any messages produced by compilers while |
| 460 | running configure, to aid debugging if configure makes a mistake. |
| 461 | " 1>&5 |
| 462 | |
| 463 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 464 | # Also quote any args containing shell metacharacters. |
| 465 | ac_configure_args= |
| 466 | for ac_arg |
| 467 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 468 | case "$ac_arg" in |
| 469 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 470 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 471 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 472 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 473 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 474 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 475 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 476 | esac |
| 477 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 478 | |
| 479 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 480 | # Only set these to C if already set. These must not be set unconditionally |
| 481 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 482 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 483 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 484 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 485 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 486 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 487 | 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] | 488 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 489 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 490 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 491 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 492 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 493 | |
| 494 | # A filename unique to this package, relative to the directory that |
| 495 | # 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] | 496 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 497 | |
| 498 | # Find the source files, if location was not specified. |
| 499 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 500 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 501 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 502 | ac_prog=$0 |
| 503 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 504 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 505 | srcdir=$ac_confdir |
| 506 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 507 | srcdir=.. |
| 508 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 509 | else |
| 510 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 511 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 512 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 513 | if test "$ac_srcdir_defaulted" = yes; then |
| 514 | { 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] | 515 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 516 | { 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] | 517 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 518 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 519 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 520 | |
| 521 | # Prefer explicitly selected file to automatically selected ones. |
| 522 | if test -z "$CONFIG_SITE"; then |
| 523 | if test "x$prefix" != xNONE; then |
| 524 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 525 | else |
| 526 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 527 | fi |
| 528 | fi |
| 529 | for ac_site_file in $CONFIG_SITE; do |
| 530 | if test -r "$ac_site_file"; then |
| 531 | echo "loading site script $ac_site_file" |
| 532 | . "$ac_site_file" |
| 533 | fi |
| 534 | done |
| 535 | |
| 536 | if test -r "$cache_file"; then |
| 537 | echo "loading cache $cache_file" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 538 | . $cache_file |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 539 | else |
| 540 | echo "creating cache $cache_file" |
| 541 | > $cache_file |
| 542 | fi |
| 543 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 544 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 545 | # 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] | 546 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 547 | 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] | 548 | 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] | 549 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 550 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 551 | ac_exeext= |
| 552 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 553 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 554 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 555 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 556 | ac_n= ac_c=' |
| 557 | ' ac_t=' ' |
| 558 | else |
| 559 | ac_n=-n ac_c= ac_t= |
| 560 | fi |
| 561 | else |
| 562 | ac_n= ac_c='\c' ac_t= |
| 563 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 564 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 565 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 566 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 567 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 568 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 569 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 570 | VERSION=2.0 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 571 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 572 | # NEXTSTEP|MacOSX|Darwin stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 573 | 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] | 574 | |
| 575 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 576 | echo "configure:577: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 577 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 578 | if test "${with_next_archs+set}" = set; then |
| 579 | withval="$with_next_archs" |
| 580 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 581 | if test -n "$withval"; then |
| 582 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 583 | # GCC does not currently support multi archs on the NeXT |
| 584 | with_gcc=no |
| 585 | fi |
| 586 | echo "$ac_t""$with_next_archs" 1>&6 |
| 587 | |
| 588 | else |
| 589 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 590 | fi |
| 591 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 592 | |
| 593 | if test -z "$MACHDEP" |
| 594 | then |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 595 | ac_sys_system=`uname -s` |
| 596 | if test "$ac_sys_system" = "Darwin" ; then |
| 597 | ac_sys_release=`uname -r` |
| 598 | else |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 599 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 600 | sed -e 's/://' -e 's/\./_/'` && \ |
| 601 | ac_sys_system=next && ac_sys_release=$4 |
| 602 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 603 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 604 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 605 | fi |
| 606 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 607 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 608 | # Check whether --with-next-framework or --without-next-framework was given. |
| 609 | if test "${with_next_framework+set}" = set; then |
| 610 | withval="$with_next_framework" |
| 611 | : |
| 612 | fi |
| 613 | |
| 614 | # Check whether --with-dyld or --without-dyld was given. |
| 615 | if test "${with_dyld+set}" = set; then |
| 616 | withval="$with_dyld" |
| 617 | : |
| 618 | fi |
| 619 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 620 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 621 | # Set name for machine-dependent library files |
| 622 | |
| 623 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 624 | echo "configure:625: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 625 | if test -z "$MACHDEP" |
| 626 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 627 | ac_sys_system=`uname -s` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 628 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 629 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 630 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 631 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 632 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 633 | ac_md_system=`echo $ac_sys_system | |
| 634 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 635 | ac_md_release=`echo $ac_sys_release | |
| 636 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 637 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 638 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 639 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 640 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 641 | esac |
| 642 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 643 | |
| 644 | # |
| 645 | # SGI compilers allow the specification of the both the ABI and the |
| 646 | # ISA on the command line. Depending on the values of these switches, |
| 647 | # different and often incompatable code will be generated. |
| 648 | # |
| 649 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 650 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 651 | # variable is also adjusted. |
| 652 | # |
| 653 | |
| 654 | if test ! -z "$SGI_ABI" |
| 655 | then |
| 656 | CC="cc $SGI_ABI" |
| 657 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 658 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 659 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 660 | echo "$ac_t""$MACHDEP" 1>&6 |
| 661 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 662 | # |
| 663 | # CCC is the command that compiles C++ programs |
| 664 | # |
| 665 | # Not all make programs have this predefined. |
| 666 | # |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 667 | #AC_SUBST(SET_CCC) |
| 668 | #AC_MSG_CHECKING(CCC) |
| 669 | #if test -z "$CCC" |
| 670 | #then |
| 671 | # case $ac_sys_system in |
| 672 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 673 | # Linux*) SET_CCC="CCC= g++";; |
| 674 | # *) SET_CCC="" |
| 675 | # esac |
| 676 | #else |
| 677 | # SET_CCC="CCC= ${CCC}" |
| 678 | #fi |
| 679 | #AC_MSG_RESULT($SET_CCC) |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 680 | |
| 681 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 682 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 683 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 684 | echo "configure:685: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 685 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 686 | if test "${with_gcc+set}" = set; then |
| 687 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 688 | |
| 689 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 690 | no) CC=cc |
| 691 | without_gcc=yes;; |
| 692 | yes) CC=gcc |
| 693 | without_gcc=no;; |
| 694 | *) CC=$withval |
| 695 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 696 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 697 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 698 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 699 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 700 | OSF1) CC=cc |
| 701 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 702 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 703 | case $BE_HOST_CPU in |
| 704 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 705 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 706 | without_gcc=yes |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 707 | OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma" |
| 708 | CCSHARED="UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 709 | LDFLAGS="$LDFLAGS -nodup" |
| 710 | |
| 711 | AR="$PWD/BeOS/ar-fake" |
| 712 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 713 | ;; |
| 714 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 715 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 716 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 717 | OPT=-O |
| 718 | # Really should use srcdir instead of PWD |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 719 | AR="$PWD/BeOS/ar-fake" |
| 720 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 721 | ;; |
| 722 | *) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 723 | { 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] | 724 | ;; |
| 725 | esac |
| 726 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 727 | Monterey*) |
| 728 | RANLIB=: |
| 729 | without_gcc=;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 730 | *) without_gcc=no;; |
| 731 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 732 | fi |
| 733 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 734 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 735 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 736 | |
| 737 | |
| 738 | MAINOBJ=python.o |
| 739 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 740 | echo "configure:741: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 741 | # Check whether --with-cxx or --without-cxx was given. |
| 742 | if test "${with_cxx+set}" = set; then |
| 743 | withval="$with_cxx" |
| 744 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 745 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 746 | case $withval in |
| 747 | no) CXX= |
| 748 | with_cxx=no;; |
| 749 | *) CXX=$withval |
| 750 | MAINOBJ=ccpython.o |
| 751 | with_cxx=$withval;; |
| 752 | esac |
| 753 | else |
| 754 | |
| 755 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 756 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 757 | |
| 758 | fi |
| 759 | |
| 760 | echo "$ac_t""$with_cxx" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 761 | |
| 762 | |
| 763 | if test "$check_cxx" = "yes" |
| 764 | then |
| 765 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 766 | do |
| 767 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 768 | set dummy $ac_prog; ac_word=$2 |
| 769 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 770 | echo "configure:771: checking for $ac_word" >&5 |
| 771 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| 772 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 773 | else |
| 774 | if test -n "$CXX"; then |
| 775 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 776 | else |
| 777 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 778 | ac_dummy="$PATH" |
| 779 | for ac_dir in $ac_dummy; do |
| 780 | test -z "$ac_dir" && ac_dir=. |
| 781 | if test -f $ac_dir/$ac_word; then |
| 782 | ac_cv_prog_CXX="$ac_prog" |
| 783 | break |
| 784 | fi |
| 785 | done |
| 786 | IFS="$ac_save_ifs" |
| 787 | fi |
| 788 | fi |
| 789 | CXX="$ac_cv_prog_CXX" |
| 790 | if test -n "$CXX"; then |
| 791 | echo "$ac_t""$CXX" 1>&6 |
| 792 | else |
| 793 | echo "$ac_t""no" 1>&6 |
| 794 | fi |
| 795 | |
| 796 | test -n "$CXX" && break |
| 797 | done |
| 798 | test -n "$CXX" || CXX="notfound" |
| 799 | |
| 800 | if test "$CXX" = "notfound" |
| 801 | then |
| 802 | CXX= |
| 803 | else |
| 804 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 805 | echo "configure:806: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
| 806 | |
| 807 | ac_ext=C |
| 808 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 809 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 810 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 811 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 812 | cross_compiling=$ac_cv_prog_cxx_cross |
| 813 | |
| 814 | cat > conftest.$ac_ext << EOF |
| 815 | |
| 816 | #line 817 "configure" |
| 817 | #include "confdefs.h" |
| 818 | |
| 819 | int main(){return(0);} |
| 820 | EOF |
| 821 | if { (eval echo configure:822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 822 | ac_cv_prog_cxx_works=yes |
| 823 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 824 | if (./conftest; exit) 2>/dev/null; then |
| 825 | ac_cv_prog_cxx_cross=no |
| 826 | else |
| 827 | ac_cv_prog_cxx_cross=yes |
| 828 | fi |
| 829 | else |
| 830 | echo "configure: failed program was:" >&5 |
| 831 | cat conftest.$ac_ext >&5 |
| 832 | ac_cv_prog_cxx_works=no |
| 833 | fi |
| 834 | rm -fr conftest* |
| 835 | ac_ext=c |
| 836 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 837 | ac_cpp='$CPP $CPPFLAGS' |
| 838 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 839 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 840 | cross_compiling=$ac_cv_prog_cc_cross |
| 841 | |
| 842 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| 843 | if test $ac_cv_prog_cxx_works = no; then |
| 844 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| 845 | fi |
| 846 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 847 | echo "configure:848: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 848 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| 849 | cross_compiling=$ac_cv_prog_cxx_cross |
| 850 | |
| 851 | fi |
| 852 | fi |
| 853 | |
Guido van Rossum | e126233 | 2000-09-22 19:41:56 +0000 | [diff] [blame] | 854 | SET_CXX="CXX=$CXX" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 855 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 856 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 857 | #AC_MSG_CHECKING(CCC) |
| 858 | #if test -z "$CCC" |
| 859 | #then |
| 860 | # case $ac_sys_system in |
| 861 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 862 | # Linux*) SET_CCC="CCC= g++";; |
| 863 | # *) SET_CCC="" |
| 864 | # esac |
| 865 | #else |
| 866 | # SET_CCC="CCC= ${CCC}" |
| 867 | #fi |
| 868 | #AC_MSG_RESULT($SET_CCC) |
| 869 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 870 | # If the user switches compilers, we can't believe the cache |
| 871 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 872 | then |
| 873 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 874 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 875 | fi |
| 876 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 877 | # Extract the first word of "gcc", so it can be a program name with args. |
| 878 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 879 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 880 | echo "configure:881: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 881 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 882 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 883 | else |
| 884 | if test -n "$CC"; then |
| 885 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 886 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 887 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 888 | ac_dummy="$PATH" |
| 889 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 890 | test -z "$ac_dir" && ac_dir=. |
| 891 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 892 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 893 | break |
| 894 | fi |
| 895 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 896 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 897 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 898 | fi |
| 899 | CC="$ac_cv_prog_CC" |
| 900 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 901 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 902 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 903 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 904 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 905 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 906 | if test -z "$CC"; then |
| 907 | # Extract the first word of "cc", so it can be a program name with args. |
| 908 | set dummy cc; ac_word=$2 |
| 909 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 910 | echo "configure:911: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 911 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 912 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 913 | else |
| 914 | if test -n "$CC"; then |
| 915 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 916 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 917 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 918 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 919 | ac_dummy="$PATH" |
| 920 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 921 | test -z "$ac_dir" && ac_dir=. |
| 922 | if test -f $ac_dir/$ac_word; then |
| 923 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 924 | ac_prog_rejected=yes |
| 925 | continue |
| 926 | fi |
| 927 | ac_cv_prog_CC="cc" |
| 928 | break |
| 929 | fi |
| 930 | done |
| 931 | IFS="$ac_save_ifs" |
| 932 | if test $ac_prog_rejected = yes; then |
| 933 | # We found a bogon in the path, so make sure we never use it. |
| 934 | set dummy $ac_cv_prog_CC |
| 935 | shift |
| 936 | if test $# -gt 0; then |
| 937 | # We chose a different compiler from the bogus one. |
| 938 | # However, it has the same basename, so the bogon will be chosen |
| 939 | # first if we set CC to just the basename; use the full file name. |
| 940 | shift |
| 941 | set dummy "$ac_dir/$ac_word" "$@" |
| 942 | shift |
| 943 | ac_cv_prog_CC="$@" |
| 944 | fi |
| 945 | fi |
| 946 | fi |
| 947 | fi |
| 948 | CC="$ac_cv_prog_CC" |
| 949 | if test -n "$CC"; then |
| 950 | echo "$ac_t""$CC" 1>&6 |
| 951 | else |
| 952 | echo "$ac_t""no" 1>&6 |
| 953 | fi |
| 954 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 955 | if test -z "$CC"; then |
| 956 | case "`uname -s`" in |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 957 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 958 | # Extract the first word of "cl", so it can be a program name with args. |
| 959 | set dummy cl; ac_word=$2 |
| 960 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 961 | echo "configure:962: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 962 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 963 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 964 | else |
| 965 | if test -n "$CC"; then |
| 966 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 967 | else |
| 968 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 969 | ac_dummy="$PATH" |
| 970 | for ac_dir in $ac_dummy; do |
| 971 | test -z "$ac_dir" && ac_dir=. |
| 972 | if test -f $ac_dir/$ac_word; then |
| 973 | ac_cv_prog_CC="cl" |
| 974 | break |
| 975 | fi |
| 976 | done |
| 977 | IFS="$ac_save_ifs" |
| 978 | fi |
| 979 | fi |
| 980 | CC="$ac_cv_prog_CC" |
| 981 | if test -n "$CC"; then |
| 982 | echo "$ac_t""$CC" 1>&6 |
| 983 | else |
| 984 | echo "$ac_t""no" 1>&6 |
| 985 | fi |
| 986 | ;; |
| 987 | esac |
| 988 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 989 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 990 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 991 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 992 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 993 | echo "configure:994: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 994 | |
| 995 | ac_ext=c |
| 996 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 997 | ac_cpp='$CPP $CPPFLAGS' |
| 998 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 999 | 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] | 1000 | cross_compiling=$ac_cv_prog_cc_cross |
| 1001 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1002 | cat > conftest.$ac_ext << EOF |
| 1003 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1004 | #line 1005 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1005 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1006 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1007 | main(){return(0);} |
| 1008 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1009 | if { (eval echo configure:1010: \"$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] | 1010 | ac_cv_prog_cc_works=yes |
| 1011 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 1012 | if (./conftest; exit) 2>/dev/null; then |
| 1013 | ac_cv_prog_cc_cross=no |
| 1014 | else |
| 1015 | ac_cv_prog_cc_cross=yes |
| 1016 | fi |
| 1017 | else |
| 1018 | echo "configure: failed program was:" >&5 |
| 1019 | cat conftest.$ac_ext >&5 |
| 1020 | ac_cv_prog_cc_works=no |
| 1021 | fi |
| 1022 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1023 | ac_ext=c |
| 1024 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1025 | ac_cpp='$CPP $CPPFLAGS' |
| 1026 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 1027 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1028 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1029 | |
| 1030 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1031 | if test $ac_cv_prog_cc_works = no; then |
| 1032 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1033 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1034 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1035 | echo "configure:1036: 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] | 1036 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1037 | cross_compiling=$ac_cv_prog_cc_cross |
| 1038 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1039 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1040 | echo "configure:1041: checking whether we are using GNU C" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1041 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1042 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1043 | else |
| 1044 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1045 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1046 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1047 | #endif |
| 1048 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1049 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1050: \"$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] | 1050 | ac_cv_prog_gcc=yes |
| 1051 | else |
| 1052 | ac_cv_prog_gcc=no |
| 1053 | fi |
| 1054 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1055 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1056 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1057 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1058 | if test $ac_cv_prog_gcc = yes; then |
| 1059 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1060 | else |
| 1061 | GCC= |
| 1062 | fi |
| 1063 | |
| 1064 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1065 | ac_save_CFLAGS="$CFLAGS" |
| 1066 | CFLAGS= |
| 1067 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1068 | echo "configure:1069: checking whether ${CC-cc} accepts -g" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1069 | 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] | 1070 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1071 | else |
| 1072 | echo 'void f(){}' > conftest.c |
| 1073 | 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] | 1074 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1075 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1076 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1077 | fi |
| 1078 | rm -f conftest* |
| 1079 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1080 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1081 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1082 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1083 | if test "$ac_test_CFLAGS" = set; then |
| 1084 | CFLAGS="$ac_save_CFLAGS" |
| 1085 | elif test $ac_cv_prog_cc_g = yes; then |
| 1086 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1087 | CFLAGS="-g -O2" |
| 1088 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1089 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1090 | fi |
| 1091 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1092 | if test "$GCC" = yes; then |
| 1093 | CFLAGS="-O2" |
| 1094 | else |
| 1095 | CFLAGS= |
| 1096 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1097 | fi |
| 1098 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1099 | |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1100 | echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1101 | echo "configure:1102: checking for --with-suffix" >&5 |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1102 | # Check whether --with-suffix or --without-suffix was given. |
| 1103 | if test "${with_suffix+set}" = set; then |
| 1104 | withval="$with_suffix" |
| 1105 | |
| 1106 | case $withval in |
| 1107 | no) EXE=;; |
| 1108 | yes) EXE=.exe;; |
| 1109 | *) EXE=$withval;; |
| 1110 | esac |
| 1111 | fi |
| 1112 | |
| 1113 | echo "$ac_t""$EXE" 1>&6 |
| 1114 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1115 | case $MACHDEP in |
| 1116 | bsdos*) |
| 1117 | case $CC in |
| 1118 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1119 | esac;; |
| 1120 | esac |
| 1121 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1122 | case $ac_sys_system in |
| 1123 | hp*|HP*) |
| 1124 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1125 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1126 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1127 | Monterey*) |
| 1128 | case $CC in |
| 1129 | cc) CC="$CC -Wl,-Bexport";; |
| 1130 | esac;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1131 | esac |
| 1132 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1133 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1134 | # name of the library into which to insert object files). On systems |
| 1135 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
| 1136 | # the Makefiles). |
| 1137 | |
| 1138 | |
| 1139 | LDLIBRARY='' |
| 1140 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1141 | # LINKCC is the command that links the python executable -- default is $(CC). |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1142 | # 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] | 1143 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1144 | |
| 1145 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1146 | echo "configure:1147: checking LINKCC" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1147 | if test -z "$LINKCC" -a ! -z "$CXX" |
| 1148 | then |
| 1149 | LINKCC="$CXX" |
| 1150 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1151 | if test -z "$LINKCC" |
| 1152 | then |
| 1153 | case $ac_sys_system in |
| 1154 | AIX*) |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 1155 | LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1156 | dgux*) |
| 1157 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1158 | Monterey64*) |
| 1159 | LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1160 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1161 | esac |
| 1162 | fi |
| 1163 | echo "$ac_t""$LINKCC" 1>&6 |
| 1164 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1165 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1166 | echo "configure:1167: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1167 | |
| 1168 | # NeXT framework builds require that the 'ar' library be converted into |
| 1169 | # a bundle using libtool. |
| 1170 | if test "$with_next_framework" |
| 1171 | then |
| 1172 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1173 | fi |
| 1174 | |
| 1175 | # 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] | 1176 | case $MACHDEP in |
| 1177 | dguxR4) |
| 1178 | LDLIBRARY='libpython$(VERSION).so' |
| 1179 | OPT="$OPT -pic" |
| 1180 | ;; |
| 1181 | beos*) |
| 1182 | LDLIBRARY='libpython$(VERSION).so' |
| 1183 | ;; |
| 1184 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1185 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1186 | |
| 1187 | # If LDLIBRARY is different from LIBRARY, emit a rule to build it. |
| 1188 | if test -z "$LDLIBRARY" |
| 1189 | then |
| 1190 | LDLIBRARY='libpython$(VERSION).a' |
| 1191 | MAKE_LDLIBRARY="true" |
| 1192 | else |
| 1193 | MAKE_LDLIBRARY='$(MAKE) $(LDLIBRARY)' |
| 1194 | fi |
| 1195 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1196 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1197 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1198 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1199 | echo "configure:1200: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1200 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1201 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1202 | else |
| 1203 | if test -n "$RANLIB"; then |
| 1204 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1205 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1206 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1207 | ac_dummy="$PATH" |
| 1208 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1209 | test -z "$ac_dir" && ac_dir=. |
| 1210 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1211 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1212 | break |
| 1213 | fi |
| 1214 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1215 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1216 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1217 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1218 | fi |
| 1219 | RANLIB="$ac_cv_prog_RANLIB" |
| 1220 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1221 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1222 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1223 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1224 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1225 | |
| 1226 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1227 | for ac_prog in ar aal |
| 1228 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1229 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1230 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1231 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1232 | echo "configure:1233: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1233 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1234 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1235 | else |
| 1236 | if test -n "$AR"; then |
| 1237 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1238 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1239 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1240 | ac_dummy="$PATH" |
| 1241 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1242 | test -z "$ac_dir" && ac_dir=. |
| 1243 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1244 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1245 | break |
| 1246 | fi |
| 1247 | done |
| 1248 | IFS="$ac_save_ifs" |
| 1249 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1250 | fi |
| 1251 | AR="$ac_cv_prog_AR" |
| 1252 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1253 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1254 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1255 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1256 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1257 | |
| 1258 | test -n "$AR" && break |
| 1259 | done |
| 1260 | test -n "$AR" || AR="ar" |
| 1261 | |
| 1262 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1263 | |
| 1264 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1265 | # Install just never works :-( |
| 1266 | if test -z "$INSTALL" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1267 | then |
| 1268 | INSTALL=cp |
| 1269 | INSTALL_PROGRAM=cp |
| 1270 | INSTALL_DATA=cp |
| 1271 | else |
| 1272 | INSTALL_PROGRAM="$INSTALL" |
| 1273 | INSTALL_DATA="$INSTALL -m 644" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1274 | fi |
| 1275 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1276 | # Not every filesystem supports hard links |
| 1277 | |
| 1278 | if test -z "$LN" ; then |
| 1279 | case $ac_sys_system in |
| 1280 | BeOS*) LN="ln -s";; |
| 1281 | *) LN=ln;; |
| 1282 | esac |
| 1283 | fi |
| 1284 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1285 | # Optimizer/debugger flags passed between Makefiles |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1286 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1287 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1288 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1289 | case $GCC in |
| 1290 | yes) |
| 1291 | case $ac_cv_prog_cc_g in |
Greg Ward | a1c4da2 | 2000-11-07 15:44:21 +0000 | [diff] [blame] | 1292 | yes) OPT="-g -O2 -Wall -Wstrict-prototypes -fPIC";; |
| 1293 | *) OPT="-O2 -Wall -Wstrict-prototypes -fPIC";; |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1294 | esac |
| 1295 | ;; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1296 | *) OPT="-O";; |
| 1297 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1298 | fi |
| 1299 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1300 | # The current (beta) Monterey compiler dies with optimizations |
| 1301 | case $ac_sys_system in |
| 1302 | Monterey*) OPT="";; |
| 1303 | esac |
| 1304 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1305 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1306 | then |
| 1307 | OPT="$OPT $ac_arch_flags" |
| 1308 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1309 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1310 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1311 | echo "configure:1312: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1312 | # On Suns, sometimes $CPP names a directory. |
| 1313 | if test -n "$CPP" && test -d "$CPP"; then |
| 1314 | CPP= |
| 1315 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1316 | if test -z "$CPP"; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1317 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+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 | # This must be in double quotes, not single quotes, because CPP may get |
| 1321 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1322 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1323 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1324 | # not just through cpp. |
| 1325 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1326 | #line 1327 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1327 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1328 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1329 | Syntax Error |
| 1330 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1331 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1332 | { (eval echo configure:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1333 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1334 | if test -z "$ac_err"; then |
| 1335 | : |
| 1336 | else |
| 1337 | echo "$ac_err" >&5 |
| 1338 | echo "configure: failed program was:" >&5 |
| 1339 | cat conftest.$ac_ext >&5 |
| 1340 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1341 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1342 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1343 | #line 1344 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1344 | #include "confdefs.h" |
| 1345 | #include <assert.h> |
| 1346 | Syntax Error |
| 1347 | EOF |
| 1348 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1349 | { (eval echo configure:1350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1350 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1351 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1352 | : |
| 1353 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1354 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1355 | echo "configure: failed program was:" >&5 |
| 1356 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1357 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1358 | CPP="${CC-cc} -nologo -E" |
| 1359 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1360 | #line 1361 "configure" |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1361 | #include "confdefs.h" |
| 1362 | #include <assert.h> |
| 1363 | Syntax Error |
| 1364 | EOF |
| 1365 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1366 | { (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1367 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1368 | if test -z "$ac_err"; then |
| 1369 | : |
| 1370 | else |
| 1371 | echo "$ac_err" >&5 |
| 1372 | echo "configure: failed program was:" >&5 |
| 1373 | cat conftest.$ac_ext >&5 |
| 1374 | rm -rf conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1375 | CPP=/lib/cpp |
| 1376 | fi |
| 1377 | rm -f conftest* |
| 1378 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1379 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1380 | fi |
| 1381 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1382 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1383 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1384 | CPP="$ac_cv_prog_CPP" |
| 1385 | else |
| 1386 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1387 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1388 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1389 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1390 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1391 | echo "configure:1392: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1392 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1393 | #line 1394 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1394 | #include "confdefs.h" |
| 1395 | #ifdef _AIX |
| 1396 | yes |
| 1397 | #endif |
| 1398 | |
| 1399 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1400 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1401 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1402 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1403 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1404 | #define _ALL_SOURCE 1 |
| 1405 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1406 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1407 | else |
| 1408 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1409 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1410 | fi |
| 1411 | rm -f conftest* |
| 1412 | |
| 1413 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1414 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1415 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1416 | echo "configure:1417: checking for minix/config.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1417 | 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] | 1418 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1419 | else |
| 1420 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1421 | #line 1422 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1422 | #include "confdefs.h" |
| 1423 | #include <minix/config.h> |
| 1424 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1425 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1426 | { (eval echo configure:1427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1427 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1428 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1429 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1430 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1431 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1432 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1433 | echo "configure: failed program was:" >&5 |
| 1434 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1435 | rm -rf conftest* |
| 1436 | eval "ac_cv_header_$ac_safe=no" |
| 1437 | fi |
| 1438 | rm -f conftest* |
| 1439 | fi |
| 1440 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1441 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1442 | MINIX=yes |
| 1443 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1444 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1445 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1446 | fi |
| 1447 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1448 | if test "$MINIX" = yes; then |
| 1449 | cat >> confdefs.h <<\EOF |
| 1450 | #define _POSIX_SOURCE 1 |
| 1451 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1452 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1453 | cat >> confdefs.h <<\EOF |
| 1454 | #define _POSIX_1_SOURCE 2 |
| 1455 | EOF |
| 1456 | |
| 1457 | cat >> confdefs.h <<\EOF |
| 1458 | #define _MINIX 1 |
| 1459 | EOF |
| 1460 | |
| 1461 | fi |
| 1462 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1463 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1464 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1465 | echo "configure:1466: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1466 | 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] | 1467 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1468 | else |
| 1469 | ac_save_cc="$CC" |
| 1470 | CC="$CC -OPT:Olimit=0" |
| 1471 | if test "$cross_compiling" = yes; then |
| 1472 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1473 | else |
| 1474 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1475 | #line 1476 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1476 | #include "confdefs.h" |
| 1477 | int main() { return 0; } |
| 1478 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1479 | if { (eval echo configure:1480: \"$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] | 1480 | then |
| 1481 | ac_cv_opt_olimit_ok=yes |
| 1482 | else |
| 1483 | echo "configure: failed program was:" >&5 |
| 1484 | cat conftest.$ac_ext >&5 |
| 1485 | rm -fr conftest* |
| 1486 | ac_cv_opt_olimit_ok=no |
| 1487 | fi |
| 1488 | rm -fr conftest* |
| 1489 | fi |
| 1490 | |
| 1491 | CC="$ac_save_cc" |
| 1492 | fi |
| 1493 | |
| 1494 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1495 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 1496 | case $ac_sys_system in |
| 1497 | Darwin*) OPT="$OPT" ;; |
| 1498 | *) OPT="$OPT -OPT:Olimit=0";; |
| 1499 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1500 | else |
| 1501 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1502 | echo "configure:1503: checking whether $CC accepts -Olimit 1500" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1503 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1504 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1505 | else |
| 1506 | ac_save_cc="$CC" |
| 1507 | CC="$CC -Olimit 1500" |
| 1508 | if test "$cross_compiling" = yes; then |
| 1509 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1510 | else |
| 1511 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1512 | #line 1513 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1513 | #include "confdefs.h" |
| 1514 | int main() { return 0; } |
| 1515 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1516 | if { (eval echo configure:1517: \"$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] | 1517 | then |
| 1518 | ac_cv_olimit_ok=yes |
| 1519 | else |
| 1520 | echo "configure: failed program was:" >&5 |
| 1521 | cat conftest.$ac_ext >&5 |
| 1522 | rm -fr conftest* |
| 1523 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1524 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1525 | rm -fr conftest* |
| 1526 | fi |
| 1527 | |
| 1528 | CC="$ac_save_cc" |
| 1529 | fi |
| 1530 | |
| 1531 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1532 | if test $ac_cv_olimit_ok = yes; then |
| 1533 | OPT="$OPT -Olimit 1500" |
| 1534 | fi |
| 1535 | fi |
| 1536 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1537 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1538 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1539 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1540 | echo "configure:1541: checking for ANSI C header files" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1541 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1542 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1543 | else |
| 1544 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1545 | #line 1546 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1546 | #include "confdefs.h" |
| 1547 | #include <stdlib.h> |
| 1548 | #include <stdarg.h> |
| 1549 | #include <string.h> |
| 1550 | #include <float.h> |
| 1551 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1552 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1553 | { (eval echo configure:1554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1554 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1555 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1556 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1557 | ac_cv_header_stdc=yes |
| 1558 | else |
| 1559 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1560 | echo "configure: failed program was:" >&5 |
| 1561 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1562 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1563 | ac_cv_header_stdc=no |
| 1564 | fi |
| 1565 | rm -f conftest* |
| 1566 | |
| 1567 | if test $ac_cv_header_stdc = yes; then |
| 1568 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1569 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1570 | #line 1571 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1571 | #include "confdefs.h" |
| 1572 | #include <string.h> |
| 1573 | EOF |
| 1574 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1575 | egrep "memchr" >/dev/null 2>&1; then |
| 1576 | : |
| 1577 | else |
| 1578 | rm -rf conftest* |
| 1579 | ac_cv_header_stdc=no |
| 1580 | fi |
| 1581 | rm -f conftest* |
| 1582 | |
| 1583 | fi |
| 1584 | |
| 1585 | if test $ac_cv_header_stdc = yes; then |
| 1586 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1587 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1588 | #line 1589 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1589 | #include "confdefs.h" |
| 1590 | #include <stdlib.h> |
| 1591 | EOF |
| 1592 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1593 | egrep "free" >/dev/null 2>&1; then |
| 1594 | : |
| 1595 | else |
| 1596 | rm -rf conftest* |
| 1597 | ac_cv_header_stdc=no |
| 1598 | fi |
| 1599 | rm -f conftest* |
| 1600 | |
| 1601 | fi |
| 1602 | |
| 1603 | if test $ac_cv_header_stdc = yes; then |
| 1604 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1605 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1606 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1607 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1608 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1609 | #line 1610 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1610 | #include "confdefs.h" |
| 1611 | #include <ctype.h> |
| 1612 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1613 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1614 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1615 | int main () { int i; for (i = 0; i < 256; i++) |
| 1616 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1617 | exit (0); } |
| 1618 | |
| 1619 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1620 | if { (eval echo configure:1621: \"$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] | 1621 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1622 | : |
| 1623 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1624 | echo "configure: failed program was:" >&5 |
| 1625 | cat conftest.$ac_ext >&5 |
| 1626 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1627 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1628 | fi |
| 1629 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1630 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1631 | |
| 1632 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1633 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1634 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1635 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1636 | if test $ac_cv_header_stdc = yes; then |
| 1637 | cat >> confdefs.h <<\EOF |
| 1638 | #define STDC_HEADERS 1 |
| 1639 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1640 | |
| 1641 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1642 | |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 1643 | for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \ |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 1644 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \ |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 1645 | 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] | 1646 | 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] | 1647 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
| 1648 | ndbm.h db1/ndbm.h gdbm/ndbm.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1649 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1650 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1651 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1652 | echo "configure:1653: checking for $ac_hdr" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1653 | 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] | 1654 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1655 | else |
| 1656 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1657 | #line 1658 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1658 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1659 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1660 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1661 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1662 | { (eval echo configure:1663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1663 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1664 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1665 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1666 | eval "ac_cv_header_$ac_safe=yes" |
| 1667 | else |
| 1668 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1669 | echo "configure: failed program was:" >&5 |
| 1670 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1671 | rm -rf conftest* |
| 1672 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1673 | fi |
| 1674 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1675 | fi |
| 1676 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1677 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1678 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1679 | cat >> confdefs.h <<EOF |
| 1680 | #define $ac_tr_hdr 1 |
| 1681 | EOF |
| 1682 | |
| 1683 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1684 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1685 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1686 | done |
| 1687 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1688 | ac_header_dirent=no |
| 1689 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1690 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1691 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1692 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1693 | echo "configure:1694: checking for $ac_hdr that defines DIR" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1694 | 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] | 1695 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1696 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1697 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1698 | #line 1699 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1699 | #include "confdefs.h" |
| 1700 | #include <sys/types.h> |
| 1701 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1702 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1703 | DIR *dirp = 0; |
| 1704 | ; return 0; } |
| 1705 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1706 | if { (eval echo configure:1707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1707 | rm -rf conftest* |
| 1708 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1709 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1710 | echo "configure: failed program was:" >&5 |
| 1711 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1712 | rm -rf conftest* |
| 1713 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1714 | fi |
| 1715 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1716 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1717 | 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] | 1718 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1719 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1720 | cat >> confdefs.h <<EOF |
| 1721 | #define $ac_tr_hdr 1 |
| 1722 | EOF |
| 1723 | ac_header_dirent=$ac_hdr; break |
| 1724 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1725 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1726 | fi |
| 1727 | done |
| 1728 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1729 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1730 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1731 | echo "configure:1732: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1732 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1733 | 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] | 1734 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1735 | else |
| 1736 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1737 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1738 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1739 | #line 1740 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1740 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1741 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1742 | /* We use char because int might match the return type of a gcc2 |
| 1743 | builtin and then its argument prototype would still apply. */ |
| 1744 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1745 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1746 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1747 | opendir() |
| 1748 | ; return 0; } |
| 1749 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1750 | if { (eval echo configure:1751: \"$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] | 1751 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1752 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1753 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1754 | echo "configure: failed program was:" >&5 |
| 1755 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1756 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1757 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1758 | fi |
| 1759 | rm -f conftest* |
| 1760 | LIBS="$ac_save_LIBS" |
| 1761 | |
| 1762 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1763 | 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] | 1764 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1765 | LIBS="$LIBS -ldir" |
| 1766 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1767 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1768 | fi |
| 1769 | |
| 1770 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1771 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1772 | echo "configure:1773: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1773 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1774 | 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] | 1775 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1776 | else |
| 1777 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1778 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1779 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1780 | #line 1781 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1781 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1782 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1783 | /* We use char because int might match the return type of a gcc2 |
| 1784 | builtin and then its argument prototype would still apply. */ |
| 1785 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1786 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1787 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1788 | opendir() |
| 1789 | ; return 0; } |
| 1790 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1791 | if { (eval echo configure:1792: \"$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] | 1792 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1793 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1794 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1795 | echo "configure: failed program was:" >&5 |
| 1796 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1797 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1798 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1799 | fi |
| 1800 | rm -f conftest* |
| 1801 | LIBS="$ac_save_LIBS" |
| 1802 | |
| 1803 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1804 | 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] | 1805 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1806 | LIBS="$LIBS -lx" |
| 1807 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1808 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1809 | fi |
| 1810 | |
| 1811 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1812 | |
| 1813 | |
| 1814 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1815 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1816 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1817 | echo "configure:1818: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1818 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1819 | #line 1820 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1820 | #include "confdefs.h" |
| 1821 | #include <time.h> |
| 1822 | EOF |
| 1823 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1824 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1825 | rm -rf conftest* |
| 1826 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1827 | else |
| 1828 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1829 | cat >> confdefs.h <<\EOF |
| 1830 | #define clock_t long |
| 1831 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1832 | |
| 1833 | fi |
| 1834 | rm -f conftest* |
| 1835 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1836 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1837 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1838 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1839 | cat >> confdefs.h <<\EOF |
| 1840 | #if defined(SCO_DS) |
| 1841 | #undef _OFF_T |
| 1842 | #endif |
| 1843 | EOF |
| 1844 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1845 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1846 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1847 | echo "configure:1848: checking for mode_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1848 | 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] | 1849 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1850 | else |
| 1851 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1852 | #line 1853 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1853 | #include "confdefs.h" |
| 1854 | #include <sys/types.h> |
| 1855 | #if STDC_HEADERS |
| 1856 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1857 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1858 | #endif |
| 1859 | EOF |
| 1860 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1861 | 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] | 1862 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1863 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1864 | else |
| 1865 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1866 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1867 | fi |
| 1868 | rm -f conftest* |
| 1869 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1870 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1871 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 1872 | if test $ac_cv_type_mode_t = no; then |
| 1873 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1874 | #define mode_t int |
| 1875 | EOF |
| 1876 | |
| 1877 | fi |
| 1878 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1879 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1880 | echo "configure:1881: checking for off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1881 | 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] | 1882 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1883 | else |
| 1884 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1885 | #line 1886 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1886 | #include "confdefs.h" |
| 1887 | #include <sys/types.h> |
| 1888 | #if STDC_HEADERS |
| 1889 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1890 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1891 | #endif |
| 1892 | EOF |
| 1893 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1894 | 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] | 1895 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1896 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1897 | else |
| 1898 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1899 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1900 | fi |
| 1901 | rm -f conftest* |
| 1902 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1903 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1904 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 1905 | if test $ac_cv_type_off_t = no; then |
| 1906 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1907 | #define off_t long |
| 1908 | EOF |
| 1909 | |
| 1910 | fi |
| 1911 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1912 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1913 | echo "configure:1914: checking for pid_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1914 | 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] | 1915 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1916 | else |
| 1917 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1918 | #line 1919 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1919 | #include "confdefs.h" |
| 1920 | #include <sys/types.h> |
| 1921 | #if STDC_HEADERS |
| 1922 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1923 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1924 | #endif |
| 1925 | EOF |
| 1926 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1927 | 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] | 1928 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1929 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1930 | else |
| 1931 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1932 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1933 | fi |
| 1934 | rm -f conftest* |
| 1935 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1936 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1937 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 1938 | if test $ac_cv_type_pid_t = no; then |
| 1939 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1940 | #define pid_t int |
| 1941 | EOF |
| 1942 | |
| 1943 | fi |
| 1944 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1945 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1946 | echo "configure:1947: checking return type of signal handlers" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1947 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1948 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1949 | else |
| 1950 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1951 | #line 1952 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1952 | #include "confdefs.h" |
| 1953 | #include <sys/types.h> |
| 1954 | #include <signal.h> |
| 1955 | #ifdef signal |
| 1956 | #undef signal |
| 1957 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1958 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1959 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1960 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1961 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1962 | #endif |
| 1963 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1964 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1965 | int i; |
| 1966 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1967 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1968 | if { (eval echo configure:1969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1969 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1970 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1971 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1972 | echo "configure: failed program was:" >&5 |
| 1973 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1974 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1975 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1976 | fi |
| 1977 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1978 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1979 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1980 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1981 | cat >> confdefs.h <<EOF |
| 1982 | #define RETSIGTYPE $ac_cv_type_signal |
| 1983 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1984 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1985 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1986 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1987 | echo "configure:1988: checking for size_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1988 | 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] | 1989 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1990 | else |
| 1991 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1992 | #line 1993 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1993 | #include "confdefs.h" |
| 1994 | #include <sys/types.h> |
| 1995 | #if STDC_HEADERS |
| 1996 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1997 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1998 | #endif |
| 1999 | EOF |
| 2000 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2001 | 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] | 2002 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2003 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2004 | else |
| 2005 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2006 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2007 | fi |
| 2008 | rm -f conftest* |
| 2009 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2010 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2011 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2012 | if test $ac_cv_type_size_t = no; then |
| 2013 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2014 | #define size_t unsigned |
| 2015 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2016 | |
| 2017 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2018 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2019 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2020 | echo "configure:2021: checking for uid_t in sys/types.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2021 | 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] | 2022 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2023 | else |
| 2024 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2025 | #line 2026 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2026 | #include "confdefs.h" |
| 2027 | #include <sys/types.h> |
| 2028 | EOF |
| 2029 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2030 | egrep "uid_t" >/dev/null 2>&1; then |
| 2031 | rm -rf conftest* |
| 2032 | ac_cv_type_uid_t=yes |
| 2033 | else |
| 2034 | rm -rf conftest* |
| 2035 | ac_cv_type_uid_t=no |
| 2036 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2037 | rm -f conftest* |
| 2038 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2039 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2040 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2041 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2042 | if test $ac_cv_type_uid_t = no; then |
| 2043 | cat >> confdefs.h <<\EOF |
| 2044 | #define uid_t int |
| 2045 | EOF |
| 2046 | |
| 2047 | cat >> confdefs.h <<\EOF |
| 2048 | #define gid_t int |
| 2049 | EOF |
| 2050 | |
| 2051 | fi |
| 2052 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2053 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2054 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2055 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2056 | echo "configure:2057: checking size of int" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2057 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2058 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2059 | else |
| 2060 | if test "$cross_compiling" = yes; then |
| 2061 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2062 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2063 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2064 | #line 2065 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2065 | #include "confdefs.h" |
| 2066 | #include <stdio.h> |
| 2067 | main() |
| 2068 | { |
| 2069 | FILE *f=fopen("conftestval", "w"); |
| 2070 | if (!f) exit(1); |
| 2071 | fprintf(f, "%d\n", sizeof(int)); |
| 2072 | exit(0); |
| 2073 | } |
| 2074 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2075 | if { (eval echo configure:2076: \"$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] | 2076 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2077 | ac_cv_sizeof_int=`cat conftestval` |
| 2078 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2079 | echo "configure: failed program was:" >&5 |
| 2080 | cat conftest.$ac_ext >&5 |
| 2081 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2082 | ac_cv_sizeof_int=0 |
| 2083 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2084 | rm -fr conftest* |
| 2085 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2086 | |
| 2087 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2088 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 2089 | cat >> confdefs.h <<EOF |
| 2090 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2091 | EOF |
| 2092 | |
| 2093 | |
| 2094 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2095 | echo "configure:2096: checking size of long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2096 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2097 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2098 | else |
| 2099 | if test "$cross_compiling" = yes; then |
| 2100 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2101 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2102 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2103 | #line 2104 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2104 | #include "confdefs.h" |
| 2105 | #include <stdio.h> |
| 2106 | main() |
| 2107 | { |
| 2108 | FILE *f=fopen("conftestval", "w"); |
| 2109 | if (!f) exit(1); |
| 2110 | fprintf(f, "%d\n", sizeof(long)); |
| 2111 | exit(0); |
| 2112 | } |
| 2113 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2114 | if { (eval echo configure:2115: \"$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] | 2115 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2116 | ac_cv_sizeof_long=`cat conftestval` |
| 2117 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2118 | echo "configure: failed program was:" >&5 |
| 2119 | cat conftest.$ac_ext >&5 |
| 2120 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2121 | ac_cv_sizeof_long=0 |
| 2122 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2123 | rm -fr conftest* |
| 2124 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2125 | |
| 2126 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2127 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2128 | cat >> confdefs.h <<EOF |
| 2129 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2130 | EOF |
| 2131 | |
| 2132 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2133 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2134 | echo "configure:2135: checking size of void *" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2135 | 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] | 2136 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2137 | else |
| 2138 | if test "$cross_compiling" = yes; then |
| 2139 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2140 | else |
| 2141 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2142 | #line 2143 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2143 | #include "confdefs.h" |
| 2144 | #include <stdio.h> |
| 2145 | main() |
| 2146 | { |
| 2147 | FILE *f=fopen("conftestval", "w"); |
| 2148 | if (!f) exit(1); |
| 2149 | fprintf(f, "%d\n", sizeof(void *)); |
| 2150 | exit(0); |
| 2151 | } |
| 2152 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2153 | if { (eval echo configure:2154: \"$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] | 2154 | then |
| 2155 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2156 | else |
| 2157 | echo "configure: failed program was:" >&5 |
| 2158 | cat conftest.$ac_ext >&5 |
| 2159 | rm -fr conftest* |
| 2160 | ac_cv_sizeof_void_p=0 |
| 2161 | fi |
| 2162 | rm -fr conftest* |
| 2163 | fi |
| 2164 | |
| 2165 | fi |
| 2166 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2167 | cat >> confdefs.h <<EOF |
| 2168 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2169 | EOF |
| 2170 | |
| 2171 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2172 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2173 | echo "configure:2174: checking size of char" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2174 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2175 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2176 | else |
| 2177 | if test "$cross_compiling" = yes; then |
| 2178 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2179 | else |
| 2180 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2181 | #line 2182 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2182 | #include "confdefs.h" |
| 2183 | #include <stdio.h> |
| 2184 | main() |
| 2185 | { |
| 2186 | FILE *f=fopen("conftestval", "w"); |
| 2187 | if (!f) exit(1); |
| 2188 | fprintf(f, "%d\n", sizeof(char)); |
| 2189 | exit(0); |
| 2190 | } |
| 2191 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2192 | if { (eval echo configure:2193: \"$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] | 2193 | then |
| 2194 | ac_cv_sizeof_char=`cat conftestval` |
| 2195 | else |
| 2196 | echo "configure: failed program was:" >&5 |
| 2197 | cat conftest.$ac_ext >&5 |
| 2198 | rm -fr conftest* |
| 2199 | ac_cv_sizeof_char=0 |
| 2200 | fi |
| 2201 | rm -fr conftest* |
| 2202 | fi |
| 2203 | |
| 2204 | fi |
| 2205 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2206 | cat >> confdefs.h <<EOF |
| 2207 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2208 | EOF |
| 2209 | |
| 2210 | |
| 2211 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2212 | echo "configure:2213: checking size of short" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2213 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2214 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2215 | else |
| 2216 | if test "$cross_compiling" = yes; then |
| 2217 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2218 | else |
| 2219 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2220 | #line 2221 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2221 | #include "confdefs.h" |
| 2222 | #include <stdio.h> |
| 2223 | main() |
| 2224 | { |
| 2225 | FILE *f=fopen("conftestval", "w"); |
| 2226 | if (!f) exit(1); |
| 2227 | fprintf(f, "%d\n", sizeof(short)); |
| 2228 | exit(0); |
| 2229 | } |
| 2230 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2231 | if { (eval echo configure:2232: \"$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] | 2232 | then |
| 2233 | ac_cv_sizeof_short=`cat conftestval` |
| 2234 | else |
| 2235 | echo "configure: failed program was:" >&5 |
| 2236 | cat conftest.$ac_ext >&5 |
| 2237 | rm -fr conftest* |
| 2238 | ac_cv_sizeof_short=0 |
| 2239 | fi |
| 2240 | rm -fr conftest* |
| 2241 | fi |
| 2242 | |
| 2243 | fi |
| 2244 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2245 | cat >> confdefs.h <<EOF |
| 2246 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2247 | EOF |
| 2248 | |
| 2249 | |
| 2250 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2251 | echo "configure:2252: checking size of float" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2252 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2253 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2254 | else |
| 2255 | if test "$cross_compiling" = yes; then |
| 2256 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2257 | else |
| 2258 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2259 | #line 2260 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2260 | #include "confdefs.h" |
| 2261 | #include <stdio.h> |
| 2262 | main() |
| 2263 | { |
| 2264 | FILE *f=fopen("conftestval", "w"); |
| 2265 | if (!f) exit(1); |
| 2266 | fprintf(f, "%d\n", sizeof(float)); |
| 2267 | exit(0); |
| 2268 | } |
| 2269 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2270 | if { (eval echo configure:2271: \"$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] | 2271 | then |
| 2272 | ac_cv_sizeof_float=`cat conftestval` |
| 2273 | else |
| 2274 | echo "configure: failed program was:" >&5 |
| 2275 | cat conftest.$ac_ext >&5 |
| 2276 | rm -fr conftest* |
| 2277 | ac_cv_sizeof_float=0 |
| 2278 | fi |
| 2279 | rm -fr conftest* |
| 2280 | fi |
| 2281 | |
| 2282 | fi |
| 2283 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2284 | cat >> confdefs.h <<EOF |
| 2285 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2286 | EOF |
| 2287 | |
| 2288 | |
| 2289 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2290 | echo "configure:2291: checking size of double" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2291 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2292 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2293 | else |
| 2294 | if test "$cross_compiling" = yes; then |
| 2295 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2296 | else |
| 2297 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2298 | #line 2299 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2299 | #include "confdefs.h" |
| 2300 | #include <stdio.h> |
| 2301 | main() |
| 2302 | { |
| 2303 | FILE *f=fopen("conftestval", "w"); |
| 2304 | if (!f) exit(1); |
| 2305 | fprintf(f, "%d\n", sizeof(double)); |
| 2306 | exit(0); |
| 2307 | } |
| 2308 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2309 | if { (eval echo configure:2310: \"$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] | 2310 | then |
| 2311 | ac_cv_sizeof_double=`cat conftestval` |
| 2312 | else |
| 2313 | echo "configure: failed program was:" >&5 |
| 2314 | cat conftest.$ac_ext >&5 |
| 2315 | rm -fr conftest* |
| 2316 | ac_cv_sizeof_double=0 |
| 2317 | fi |
| 2318 | rm -fr conftest* |
| 2319 | fi |
| 2320 | |
| 2321 | fi |
| 2322 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2323 | cat >> confdefs.h <<EOF |
| 2324 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2325 | EOF |
| 2326 | |
| 2327 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2328 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2329 | echo "configure:2330: checking size of fpos_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2330 | 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] | 2331 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2332 | else |
| 2333 | if test "$cross_compiling" = yes; then |
| 2334 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2335 | else |
| 2336 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2337 | #line 2338 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2338 | #include "confdefs.h" |
| 2339 | #include <stdio.h> |
| 2340 | main() |
| 2341 | { |
| 2342 | FILE *f=fopen("conftestval", "w"); |
| 2343 | if (!f) exit(1); |
| 2344 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2345 | exit(0); |
| 2346 | } |
| 2347 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2348 | if { (eval echo configure:2349: \"$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] | 2349 | then |
| 2350 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2351 | else |
| 2352 | echo "configure: failed program was:" >&5 |
| 2353 | cat conftest.$ac_ext >&5 |
| 2354 | rm -fr conftest* |
| 2355 | ac_cv_sizeof_fpos_t=0 |
| 2356 | fi |
| 2357 | rm -fr conftest* |
| 2358 | fi |
| 2359 | |
| 2360 | fi |
| 2361 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2362 | cat >> confdefs.h <<EOF |
| 2363 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2364 | EOF |
| 2365 | |
| 2366 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2367 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2368 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2369 | echo "configure:2370: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2370 | have_long_long=no |
| 2371 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2372 | #line 2373 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2373 | #include "confdefs.h" |
| 2374 | |
| 2375 | int main() { |
| 2376 | long long x; x = (long long)0; |
| 2377 | ; return 0; } |
| 2378 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2379 | if { (eval echo configure:2380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2380 | rm -rf conftest* |
| 2381 | cat >> confdefs.h <<\EOF |
| 2382 | #define HAVE_LONG_LONG 1 |
| 2383 | EOF |
| 2384 | have_long_long=yes |
| 2385 | else |
| 2386 | echo "configure: failed program was:" >&5 |
| 2387 | cat conftest.$ac_ext >&5 |
| 2388 | fi |
| 2389 | rm -f conftest* |
| 2390 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2391 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2392 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2393 | echo "configure:2394: checking size of long long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2394 | 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] | 2395 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2396 | else |
| 2397 | if test "$cross_compiling" = yes; then |
| 2398 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2399 | else |
| 2400 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2401 | #line 2402 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2402 | #include "confdefs.h" |
| 2403 | #include <stdio.h> |
| 2404 | main() |
| 2405 | { |
| 2406 | FILE *f=fopen("conftestval", "w"); |
| 2407 | if (!f) exit(1); |
| 2408 | fprintf(f, "%d\n", sizeof(long long)); |
| 2409 | exit(0); |
| 2410 | } |
| 2411 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2412 | if { (eval echo configure:2413: \"$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] | 2413 | then |
| 2414 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2415 | else |
| 2416 | echo "configure: failed program was:" >&5 |
| 2417 | cat conftest.$ac_ext >&5 |
| 2418 | rm -fr conftest* |
| 2419 | ac_cv_sizeof_long_long=0 |
| 2420 | fi |
| 2421 | rm -fr conftest* |
| 2422 | fi |
| 2423 | |
| 2424 | fi |
| 2425 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2426 | cat >> confdefs.h <<EOF |
| 2427 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2428 | EOF |
| 2429 | |
| 2430 | |
| 2431 | fi |
| 2432 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2433 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2434 | echo "configure:2435: checking for uintptr_t support" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2435 | have_uintptr_t=no |
| 2436 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2437 | #line 2438 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2438 | #include "confdefs.h" |
| 2439 | |
| 2440 | int main() { |
| 2441 | uintptr_t x; x = (uintptr_t)0; |
| 2442 | ; return 0; } |
| 2443 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2444 | if { (eval echo configure:2445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2445 | rm -rf conftest* |
| 2446 | cat >> confdefs.h <<\EOF |
| 2447 | #define HAVE_UINTPTR_T 1 |
| 2448 | EOF |
| 2449 | have_uintptr_t=yes |
| 2450 | else |
| 2451 | echo "configure: failed program was:" >&5 |
| 2452 | cat conftest.$ac_ext >&5 |
| 2453 | fi |
| 2454 | rm -f conftest* |
| 2455 | echo "$ac_t""$have_uintptr_t" 1>&6 |
| 2456 | if test "$have_uintptr_t" = yes ; then |
| 2457 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2458 | echo "configure:2459: checking size of uintptr_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2459 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2460 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2461 | else |
| 2462 | if test "$cross_compiling" = yes; then |
| 2463 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2464 | else |
| 2465 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2466 | #line 2467 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2467 | #include "confdefs.h" |
| 2468 | #include <stdio.h> |
| 2469 | main() |
| 2470 | { |
| 2471 | FILE *f=fopen("conftestval", "w"); |
| 2472 | if (!f) exit(1); |
| 2473 | fprintf(f, "%d\n", sizeof(uintptr_t)); |
| 2474 | exit(0); |
| 2475 | } |
| 2476 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2477 | if { (eval echo configure:2478: \"$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] | 2478 | then |
| 2479 | ac_cv_sizeof_uintptr_t=`cat conftestval` |
| 2480 | else |
| 2481 | echo "configure: failed program was:" >&5 |
| 2482 | cat conftest.$ac_ext >&5 |
| 2483 | rm -fr conftest* |
| 2484 | ac_cv_sizeof_uintptr_t=0 |
| 2485 | fi |
| 2486 | rm -fr conftest* |
| 2487 | fi |
| 2488 | |
| 2489 | fi |
| 2490 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 |
| 2491 | cat >> confdefs.h <<EOF |
| 2492 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 2493 | EOF |
| 2494 | |
| 2495 | |
| 2496 | fi |
| 2497 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2498 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2499 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2500 | echo "configure:2501: checking size of off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2501 | 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] | 2502 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2503 | else |
| 2504 | if test "$cross_compiling" = yes; then |
| 2505 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2506 | else |
| 2507 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2508 | #line 2509 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2509 | #include "confdefs.h" |
| 2510 | #include <stdio.h> |
| 2511 | #include <sys/types.h> |
| 2512 | main() |
| 2513 | { |
| 2514 | FILE *f=fopen("conftestval", "w"); |
| 2515 | if (!f) exit(1); |
| 2516 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2517 | exit(0); |
| 2518 | } |
| 2519 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +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 | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2521 | then |
| 2522 | ac_cv_sizeof_off_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_off_t=0 |
| 2528 | fi |
| 2529 | rm -fr conftest* |
| 2530 | fi |
| 2531 | |
| 2532 | |
| 2533 | fi |
| 2534 | |
| 2535 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2536 | cat >> confdefs.h <<EOF |
| 2537 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2538 | EOF |
| 2539 | |
| 2540 | |
| 2541 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2542 | echo "configure:2543: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2543 | if test "$have_long_long" = yes -a \ |
| 2544 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2545 | "$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] | 2546 | cat >> confdefs.h <<\EOF |
| 2547 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2548 | EOF |
| 2549 | |
| 2550 | echo "$ac_t""yes" 1>&6 |
| 2551 | else |
| 2552 | echo "$ac_t""no" 1>&6 |
| 2553 | fi |
| 2554 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2555 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2556 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2557 | echo "configure:2558: checking size of time_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2558 | 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] | 2559 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2560 | else |
| 2561 | if test "$cross_compiling" = yes; then |
| 2562 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2563 | else |
| 2564 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2565 | #line 2566 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2566 | #include "confdefs.h" |
| 2567 | #include <stdio.h> |
| 2568 | #include <time.h> |
| 2569 | main() |
| 2570 | { |
| 2571 | FILE *f=fopen("conftestval", "w"); |
| 2572 | if (!f) exit(1); |
| 2573 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2574 | exit(0); |
| 2575 | } |
| 2576 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2577 | if { (eval echo configure:2578: \"$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] | 2578 | then |
| 2579 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2580 | else |
| 2581 | echo "configure: failed program was:" >&5 |
| 2582 | cat conftest.$ac_ext >&5 |
| 2583 | rm -fr conftest* |
| 2584 | ac_cv_sizeof_time_t=0 |
| 2585 | fi |
| 2586 | rm -fr conftest* |
| 2587 | fi |
| 2588 | |
| 2589 | |
| 2590 | fi |
| 2591 | |
| 2592 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2593 | cat >> confdefs.h <<EOF |
| 2594 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2595 | EOF |
| 2596 | |
| 2597 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2598 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2599 | # if have pthread_t then define SIZEOF_PTHREAD_T |
| 2600 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2601 | echo "configure:2602: checking for pthread_t" >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2602 | have_pthread_t=no |
| 2603 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2604 | #line 2605 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2605 | #include "confdefs.h" |
| 2606 | #include <pthread.h> |
| 2607 | int main() { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 2608 | pthread_t x; x = *(pthread_t*)0; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2609 | ; return 0; } |
| 2610 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2611 | if { (eval echo configure:2612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2612 | rm -rf conftest* |
| 2613 | have_pthread_t=yes |
| 2614 | else |
| 2615 | echo "configure: failed program was:" >&5 |
| 2616 | cat conftest.$ac_ext >&5 |
| 2617 | fi |
| 2618 | rm -f conftest* |
| 2619 | echo "$ac_t""$have_pthread_t" 1>&6 |
| 2620 | if test "$have_pthread_t" = yes ; then |
| 2621 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 2622 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2623 | echo "configure:2624: checking size of pthread_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2624 | if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2625 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2626 | else |
| 2627 | if test "$cross_compiling" = yes; then |
| 2628 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2629 | else |
| 2630 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2631 | #line 2632 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2632 | #include "confdefs.h" |
| 2633 | #include <stdio.h> |
| 2634 | #include <pthread.h> |
| 2635 | main() |
| 2636 | { |
| 2637 | FILE *f=fopen("conftestval", "w"); |
| 2638 | if (!f) exit(1); |
| 2639 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 2640 | exit(0); |
| 2641 | } |
| 2642 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2643 | if { (eval echo configure:2644: \"$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] | 2644 | then |
| 2645 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 2646 | else |
| 2647 | echo "configure: failed program was:" >&5 |
| 2648 | cat conftest.$ac_ext >&5 |
| 2649 | rm -fr conftest* |
| 2650 | ac_cv_sizeof_pthread_t=0 |
| 2651 | fi |
| 2652 | rm -fr conftest* |
| 2653 | fi |
| 2654 | |
| 2655 | |
| 2656 | fi |
| 2657 | |
| 2658 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 |
| 2659 | cat >> confdefs.h <<EOF |
| 2660 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| 2661 | EOF |
| 2662 | |
| 2663 | fi |
| 2664 | |
| 2665 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2666 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2667 | |
| 2668 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 2669 | Darwin/*) |
| 2670 | ns_undef_sym='_environ' |
| 2671 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2672 | next/4*) |
| 2673 | ns_undef_sym='__environ' |
| 2674 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2675 | next/5*) |
| 2676 | ns_undef_sym='_environ' |
| 2677 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2678 | esac |
| 2679 | |
| 2680 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2681 | echo "configure:2682: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2682 | if test "$with_next_framework" |
| 2683 | then |
| 2684 | OPT="$OPT -fno-common" |
| 2685 | # -U __environ is needed since bundles don't have access |
| 2686 | # to crt0 when built but will always be linked against it |
| 2687 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2688 | cat >> confdefs.h <<\EOF |
| 2689 | #define WITH_NEXT_FRAMEWORK 1 |
| 2690 | EOF |
| 2691 | |
| 2692 | echo "$ac_t""yes" 1>&6 |
| 2693 | else |
| 2694 | echo "$ac_t""no" 1>&6 |
| 2695 | fi |
| 2696 | |
| 2697 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2698 | echo "configure:2699: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2699 | if test "$with_next_framework" -o "$with_dyld" |
| 2700 | then |
| 2701 | if test "$with_dyld" |
| 2702 | then |
| 2703 | echo "$ac_t""yes" 1>&6 |
| 2704 | else |
| 2705 | echo "$ac_t""required for framework build" 1>&6 |
| 2706 | fi |
| 2707 | cat >> confdefs.h <<\EOF |
| 2708 | #define WITH_DYLD 1 |
| 2709 | EOF |
| 2710 | |
| 2711 | ns_dyld='set' |
| 2712 | else |
| 2713 | echo "$ac_t""no" 1>&6 |
| 2714 | fi |
| 2715 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2716 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2717 | |
| 2718 | |
| 2719 | |
| 2720 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2721 | # SO is the extension of shared libraries `(including the dot!) |
| 2722 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2723 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2724 | echo "configure:2725: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2725 | if test -z "$SO" |
| 2726 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2727 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2728 | hp*|HP*) SO=.sl;; |
| 2729 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2730 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2731 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2732 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2733 | # LDSHARED is the ld *command* used to create shared library |
| 2734 | # -- "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] | 2735 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2736 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2737 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2738 | echo "configure:2739: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2739 | if test -z "$LDSHARED" |
| 2740 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2741 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 2742 | AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2743 | BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2744 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2745 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2746 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2747 | SunOS/5*) |
| 2748 | if test "$GCC" = "yes" |
Greg Ward | a1c4da2 | 2000-11-07 15:44:21 +0000 | [diff] [blame] | 2749 | then LDSHARED='$(CC) -shared' |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2750 | else LDSHARED="ld -G"; |
| 2751 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2752 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2753 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2754 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2755 | Darwin/*|next/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2756 | if test "$ns_dyld" |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 2757 | then |
| 2758 | if test "$ac_sys_system" = Darwin |
| 2759 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress' |
| 2760 | else LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind' |
| 2761 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2762 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2763 | fi |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2764 | if test "$with_next_framework" ; then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2765 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2766 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2767 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2768 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2769 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2770 | OpenBSD*) LDSHARED="ld -Bshareable";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2771 | NetBSD*) |
| 2772 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2773 | then |
| 2774 | LDSHARED="cc -shared" |
| 2775 | else |
| 2776 | LDSHARED="ld -Bshareable" |
| 2777 | fi;; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2778 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 2779 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2780 | then |
| 2781 | LDSHARED="cc -shared ${LDFLAGS}" |
| 2782 | else |
| 2783 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 2784 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2785 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2786 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2787 | *) LDSHARED="ld";; |
| 2788 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2789 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2790 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2791 | # 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] | 2792 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2793 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2794 | echo "configure:2795: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2795 | if test -z "$CCSHARED" |
| 2796 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2797 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2798 | hp*|HP*) if test "$GCC" = yes; |
| 2799 | then CCSHARED="-fpic"; |
| 2800 | else CCSHARED="+z"; |
| 2801 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2802 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2803 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2804 | OpenBSD*) CCSHARED="-fpic";; |
| 2805 | FreeBSD*|NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2806 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2807 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2808 | IRIX*/6*) case $CC in |
| 2809 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2810 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2811 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2812 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2813 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2814 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2815 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2816 | # the python executable -- this is only needed for a few systems |
| 2817 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2818 | echo "configure:2819: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2819 | if test -z "$LINKFORSHARED" |
| 2820 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2821 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 69f6580 | 1998-03-03 21:47:00 +0000 | [diff] [blame] | 2822 | AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2823 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2824 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2825 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2826 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2827 | # -u libsys_s pulls in all symbols in libsys |
| 2828 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2829 | # -u __dummy makes the linker aware of the objc runtime |
| 2830 | # in System.framework; otherwise, __objcInit (referenced in |
| 2831 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2832 | # loading of any modules which reference it in System.framework |
| 2833 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 2834 | Darwin/*) LINKFORSHARED="-framework System" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2835 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 2836 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2837 | FreeBSD*|NetBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2838 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2839 | then |
| 2840 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2841 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2842 | SunOS/5*) case $CC in |
| 2843 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 2844 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2845 | then |
| 2846 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2847 | fi;; |
| 2848 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2849 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2850 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2851 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2852 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2853 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2854 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2855 | echo "configure:2856: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2856 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2857 | 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] | 2858 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2859 | else |
| 2860 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2861 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2862 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2863 | #line 2864 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2864 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2865 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2866 | /* We use char because int might match the return type of a gcc2 |
| 2867 | builtin and then its argument prototype would still apply. */ |
| 2868 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2869 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2870 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2871 | dlopen() |
| 2872 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2873 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2874 | if { (eval echo configure:2875: \"$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] | 2875 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2876 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2877 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2878 | echo "configure: failed program was:" >&5 |
| 2879 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2880 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2881 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2882 | fi |
| 2883 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2884 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2885 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2886 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2887 | 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] | 2888 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2889 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2890 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2891 | cat >> confdefs.h <<EOF |
| 2892 | #define $ac_tr_lib 1 |
| 2893 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2894 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2895 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2896 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2897 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2898 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2899 | fi |
| 2900 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2901 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2902 | echo "configure:2903: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2903 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2904 | 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] | 2905 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2906 | else |
| 2907 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2908 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2909 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2910 | #line 2911 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2911 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2912 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2913 | /* We use char because int might match the return type of a gcc2 |
| 2914 | builtin and then its argument prototype would still apply. */ |
| 2915 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2916 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2917 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2918 | shl_load() |
| 2919 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2920 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2921 | if { (eval echo configure:2922: \"$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] | 2922 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2923 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2924 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2925 | echo "configure: failed program was:" >&5 |
| 2926 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2927 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2928 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2929 | fi |
| 2930 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2931 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2932 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2933 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2934 | 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] | 2935 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2936 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2937 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2938 | cat >> confdefs.h <<EOF |
| 2939 | #define $ac_tr_lib 1 |
| 2940 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2941 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2942 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2943 | |
| 2944 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2945 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2946 | fi |
| 2947 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2948 | |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2949 | # Check for --with-pydebug |
| 2950 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2951 | echo "configure:2952: checking for --with-pydebug" >&5 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2952 | # Check whether --with-pydebug or --without-pydebug was given. |
| 2953 | if test "${with_pydebug+set}" = set; then |
| 2954 | withval="$with_pydebug" |
| 2955 | |
| 2956 | if test "$withval" != no |
| 2957 | then cat >> confdefs.h <<\EOF |
| 2958 | #define Py_DEBUG 1 |
| 2959 | EOF |
| 2960 | echo "$ac_t""yes" 1>&6 |
| 2961 | else echo "$ac_t""no" 1>&6 |
| 2962 | fi |
| 2963 | else |
| 2964 | echo "$ac_t""no" 1>&6 |
| 2965 | fi |
| 2966 | |
| 2967 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2968 | # checks for system dependent C++ extensions support |
| 2969 | case "$ac_sys_system" in |
| 2970 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2971 | echo "configure:2972: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2972 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2973 | #line 2974 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2974 | #include "confdefs.h" |
| 2975 | #include "/usr/lpp/xlC/include/load.h" |
| 2976 | int main() { |
| 2977 | loadAndInit("", 0, "") |
| 2978 | ; return 0; } |
| 2979 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 2980 | if { (eval echo configure:2981: \"$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] | 2981 | rm -rf conftest* |
| 2982 | cat >> confdefs.h <<\EOF |
| 2983 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 2984 | EOF |
| 2985 | |
| 2986 | echo "$ac_t""yes" 1>&6 |
| 2987 | else |
| 2988 | echo "configure: failed program was:" >&5 |
| 2989 | cat conftest.$ac_ext >&5 |
| 2990 | rm -rf conftest* |
| 2991 | echo "$ac_t""no" 1>&6 |
| 2992 | fi |
| 2993 | rm -f conftest*;; |
| 2994 | *) ;; |
| 2995 | esac |
| 2996 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2997 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 2998 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2999 | # BeOS' sockets are stashed in libnet. |
| 3000 | case "$ac_sys_system" in |
| 3001 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3002 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3003 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3004 | echo "configure:3005: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3005 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3006 | 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] | 3007 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3008 | else |
| 3009 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3010 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3011 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3012 | #line 3013 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3013 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3014 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3015 | /* We use char because int might match the return type of a gcc2 |
| 3016 | builtin and then its argument prototype would still apply. */ |
| 3017 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3018 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3019 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3020 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3021 | ; return 0; } |
| 3022 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3023 | if { (eval echo configure:3024: \"$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] | 3024 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3025 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3026 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3027 | echo "configure: failed program was:" >&5 |
| 3028 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3029 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3030 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3031 | fi |
| 3032 | rm -f conftest* |
| 3033 | LIBS="$ac_save_LIBS" |
| 3034 | |
| 3035 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3036 | 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] | 3037 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3038 | LIBS="-lnsl $LIBS" |
| 3039 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3040 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3041 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3042 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3043 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3044 | echo "configure:3045: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3045 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3046 | 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] | 3047 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3048 | else |
| 3049 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3050 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3051 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3052 | #line 3053 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3053 | #include "confdefs.h" |
| 3054 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3055 | /* We use char because int might match the return type of a gcc2 |
| 3056 | builtin and then its argument prototype would still apply. */ |
| 3057 | char socket(); |
| 3058 | |
| 3059 | int main() { |
| 3060 | socket() |
| 3061 | ; return 0; } |
| 3062 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3063 | if { (eval echo configure:3064: \"$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] | 3064 | rm -rf conftest* |
| 3065 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3066 | else |
| 3067 | echo "configure: failed program was:" >&5 |
| 3068 | cat conftest.$ac_ext >&5 |
| 3069 | rm -rf conftest* |
| 3070 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3071 | fi |
| 3072 | rm -f conftest* |
| 3073 | LIBS="$ac_save_LIBS" |
| 3074 | |
| 3075 | fi |
| 3076 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3077 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3078 | LIBS="-lsocket $LIBS" |
| 3079 | else |
| 3080 | echo "$ac_t""no" 1>&6 |
| 3081 | fi |
| 3082 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3083 | ;; |
| 3084 | esac |
| 3085 | case "$ac_sys_system" in |
| 3086 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3087 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3088 | echo "configure:3089: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3089 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3090 | 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] | 3091 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3092 | else |
| 3093 | ac_save_LIBS="$LIBS" |
| 3094 | LIBS="-lnet $LIBS $LIBS" |
| 3095 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3096 | #line 3097 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3097 | #include "confdefs.h" |
| 3098 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3099 | /* We use char because int might match the return type of a gcc2 |
| 3100 | builtin and then its argument prototype would still apply. */ |
| 3101 | char socket(); |
| 3102 | |
| 3103 | int main() { |
| 3104 | socket() |
| 3105 | ; return 0; } |
| 3106 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3107 | if { (eval echo configure:3108: \"$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] | 3108 | rm -rf conftest* |
| 3109 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3110 | else |
| 3111 | echo "configure: failed program was:" >&5 |
| 3112 | cat conftest.$ac_ext >&5 |
| 3113 | rm -rf conftest* |
| 3114 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3115 | fi |
| 3116 | rm -f conftest* |
| 3117 | LIBS="$ac_save_LIBS" |
| 3118 | |
| 3119 | fi |
| 3120 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3121 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3122 | LIBS="-lnet $LIBS" |
| 3123 | else |
| 3124 | echo "$ac_t""no" 1>&6 |
| 3125 | fi |
| 3126 | # BeOS |
| 3127 | ;; |
| 3128 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3129 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3130 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3131 | echo "configure:3132: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3132 | # Check whether --with-libs or --without-libs was given. |
| 3133 | if test "${with_libs+set}" = set; then |
| 3134 | withval="$with_libs" |
| 3135 | |
| 3136 | echo "$ac_t""$withval" 1>&6 |
| 3137 | LIBS="$withval $LIBS" |
| 3138 | |
| 3139 | else |
| 3140 | echo "$ac_t""no" 1>&6 |
| 3141 | fi |
| 3142 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3143 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3144 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3145 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3146 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3147 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3148 | echo "configure:3149: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3149 | |
| 3150 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 3151 | if test "${with_dec_threads+set}" = set; then |
| 3152 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3153 | |
| 3154 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3155 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3156 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3157 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3158 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3159 | else |
| 3160 | echo "$ac_t""no" 1>&6 |
| 3161 | fi |
| 3162 | |
| 3163 | |
| 3164 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3165 | echo "configure:3166: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3166 | # Check whether --with-threads or --without-threads was given. |
| 3167 | if test "${with_threads+set}" = set; then |
| 3168 | withval="$with_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3169 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3170 | fi |
| 3171 | |
| 3172 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3173 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3174 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3175 | if test "${with_thread+set}" = set; then |
| 3176 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3177 | |
| 3178 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3179 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3180 | |
| 3181 | |
| 3182 | if test -z "$with_threads" |
| 3183 | then with_threads="yes" |
| 3184 | fi |
| 3185 | echo "$ac_t""$with_threads" 1>&6 |
| 3186 | |
| 3187 | if test "$with_threads" = "no" |
| 3188 | then |
| 3189 | USE_THREAD_MODULE="#" |
| 3190 | else |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 3191 | if test ! -z "$with_threads" -a -d "$with_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3192 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 3193 | fi |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 3194 | if test ! -z "$withval" -a -d "$withval" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3195 | then LDFLAGS="$LDFLAGS -L$withval" |
| 3196 | fi |
| 3197 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3198 | #define _REENTRANT 1 |
| 3199 | EOF |
| 3200 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3201 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3202 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3203 | echo "configure:3204: checking for mach/cthreads.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3204 | 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] | 3205 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3206 | else |
| 3207 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3208 | #line 3209 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3209 | #include "confdefs.h" |
| 3210 | #include <mach/cthreads.h> |
| 3211 | EOF |
| 3212 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3213 | { (eval echo configure:3214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3214 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3215 | if test -z "$ac_err"; then |
| 3216 | rm -rf conftest* |
| 3217 | eval "ac_cv_header_$ac_safe=yes" |
| 3218 | else |
| 3219 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3220 | echo "configure: failed program was:" >&5 |
| 3221 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3222 | rm -rf conftest* |
| 3223 | eval "ac_cv_header_$ac_safe=no" |
| 3224 | fi |
| 3225 | rm -f conftest* |
| 3226 | fi |
| 3227 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3228 | echo "$ac_t""yes" 1>&6 |
| 3229 | cat >> confdefs.h <<\EOF |
| 3230 | #define WITH_THREAD 1 |
| 3231 | EOF |
| 3232 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3233 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3234 | #define C_THREADS 1 |
| 3235 | EOF |
| 3236 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3237 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3238 | else |
| 3239 | echo "$ac_t""no" 1>&6 |
| 3240 | |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3241 | echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3242 | echo "configure:3243: checking for --with-pth" >&5 |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3243 | # Check whether --with-pth or --without-pth was given. |
| 3244 | if test "${with_pth+set}" = set; then |
| 3245 | withval="$with_pth" |
| 3246 | |
| 3247 | echo "$ac_t""$withval" 1>&6 |
| 3248 | cat >> confdefs.h <<\EOF |
| 3249 | #define WITH_THREAD 1 |
| 3250 | EOF |
| 3251 | |
| 3252 | cat >> confdefs.h <<\EOF |
| 3253 | #define HAVE_PTH 1 |
| 3254 | EOF |
| 3255 | |
| 3256 | LIBS="-lpth $LIBS" |
| 3257 | LIBOBJS="$LIBOBJS thread.o" |
| 3258 | else |
| 3259 | |
| 3260 | echo "$ac_t""no" 1>&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3261 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3262 | echo "configure:3263: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3263 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3264 | 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] | 3265 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3266 | else |
| 3267 | ac_save_LIBS="$LIBS" |
| 3268 | LIBS="-lpthread $LIBS" |
| 3269 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3270 | #line 3271 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3271 | #include "confdefs.h" |
| 3272 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3273 | /* We use char because int might match the return type of a gcc2 |
| 3274 | builtin and then its argument prototype would still apply. */ |
| 3275 | char pthread_create(); |
| 3276 | |
| 3277 | int main() { |
| 3278 | pthread_create() |
| 3279 | ; return 0; } |
| 3280 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3281 | if { (eval echo configure:3282: \"$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] | 3282 | rm -rf conftest* |
| 3283 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3284 | else |
| 3285 | echo "configure: failed program was:" >&5 |
| 3286 | cat conftest.$ac_ext >&5 |
| 3287 | rm -rf conftest* |
| 3288 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3289 | fi |
| 3290 | rm -f conftest* |
| 3291 | LIBS="$ac_save_LIBS" |
| 3292 | |
| 3293 | fi |
| 3294 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3295 | echo "$ac_t""yes" 1>&6 |
| 3296 | cat >> confdefs.h <<\EOF |
| 3297 | #define WITH_THREAD 1 |
| 3298 | EOF |
| 3299 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3300 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3301 | #define _POSIX_THREADS 1 |
| 3302 | EOF |
| 3303 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3304 | LIBS="-lpthread $LIBS" |
| 3305 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3306 | else |
| 3307 | echo "$ac_t""no" 1>&6 |
| 3308 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3309 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3310 | echo "configure:3311: checking for pthread_detach" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3311 | 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] | 3312 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3313 | else |
| 3314 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3315 | #line 3316 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3316 | #include "confdefs.h" |
| 3317 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3318 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3319 | #include <assert.h> |
| 3320 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3321 | /* We use char because int might match the return type of a gcc2 |
| 3322 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3323 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3324 | |
| 3325 | int main() { |
| 3326 | |
| 3327 | /* The GNU C library defines this for functions which it implements |
| 3328 | to always fail with ENOSYS. Some functions are actually named |
| 3329 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3330 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3331 | choke me |
| 3332 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3333 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3334 | #endif |
| 3335 | |
| 3336 | ; return 0; } |
| 3337 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3338 | if { (eval echo configure:3339: \"$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] | 3339 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3340 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3341 | else |
| 3342 | echo "configure: failed program was:" >&5 |
| 3343 | cat conftest.$ac_ext >&5 |
| 3344 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3345 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3346 | fi |
| 3347 | rm -f conftest* |
| 3348 | fi |
| 3349 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3350 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3351 | echo "$ac_t""yes" 1>&6 |
| 3352 | cat >> confdefs.h <<\EOF |
| 3353 | #define WITH_THREAD 1 |
| 3354 | EOF |
| 3355 | |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3356 | case $ac_sys_system in |
| 3357 | Darwin*) ;; |
| 3358 | *) cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3359 | #define _POSIX_THREADS 1 |
| 3360 | EOF |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3361 | ;; |
| 3362 | esac |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3363 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3364 | else |
| 3365 | echo "$ac_t""no" 1>&6 |
| 3366 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3367 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3368 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3369 | echo "configure:3370: checking for kernel/OS.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3370 | 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] | 3371 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3372 | else |
| 3373 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3374 | #line 3375 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3375 | #include "confdefs.h" |
| 3376 | #include <kernel/OS.h> |
| 3377 | EOF |
| 3378 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3379 | { (eval echo configure:3380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3380 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3381 | if test -z "$ac_err"; then |
| 3382 | rm -rf conftest* |
| 3383 | eval "ac_cv_header_$ac_safe=yes" |
| 3384 | else |
| 3385 | echo "$ac_err" >&5 |
| 3386 | echo "configure: failed program was:" >&5 |
| 3387 | cat conftest.$ac_ext >&5 |
| 3388 | rm -rf conftest* |
| 3389 | eval "ac_cv_header_$ac_safe=no" |
| 3390 | fi |
| 3391 | rm -f conftest* |
| 3392 | fi |
| 3393 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3394 | echo "$ac_t""yes" 1>&6 |
| 3395 | cat >> confdefs.h <<\EOF |
| 3396 | #define WITH_THREAD 1 |
| 3397 | EOF |
| 3398 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3399 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3400 | #define BEOS_THREADS 1 |
| 3401 | EOF |
| 3402 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3403 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3404 | else |
| 3405 | echo "$ac_t""no" 1>&6 |
| 3406 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3407 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3408 | echo "configure:3409: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3409 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3410 | 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] | 3411 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3412 | else |
| 3413 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3414 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3415 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3416 | #line 3417 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3417 | #include "confdefs.h" |
| 3418 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3419 | /* We use char because int might match the return type of a gcc2 |
| 3420 | builtin and then its argument prototype would still apply. */ |
| 3421 | char pthread_create(); |
| 3422 | |
| 3423 | int main() { |
| 3424 | pthread_create() |
| 3425 | ; return 0; } |
| 3426 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3427 | if { (eval echo configure:3428: \"$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] | 3428 | rm -rf conftest* |
| 3429 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3430 | else |
| 3431 | echo "configure: failed program was:" >&5 |
| 3432 | cat conftest.$ac_ext >&5 |
| 3433 | rm -rf conftest* |
| 3434 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3435 | fi |
| 3436 | rm -f conftest* |
| 3437 | LIBS="$ac_save_LIBS" |
| 3438 | |
| 3439 | fi |
| 3440 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3441 | echo "$ac_t""yes" 1>&6 |
| 3442 | cat >> confdefs.h <<\EOF |
| 3443 | #define WITH_THREAD 1 |
| 3444 | EOF |
| 3445 | |
| 3446 | cat >> confdefs.h <<\EOF |
| 3447 | #define _POSIX_THREADS 1 |
| 3448 | EOF |
| 3449 | |
| 3450 | LIBS="$LIBS -lpthreads" |
| 3451 | LIBOBJS="$LIBOBJS thread.o" |
| 3452 | else |
| 3453 | echo "$ac_t""no" 1>&6 |
| 3454 | |
| 3455 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3456 | echo "configure:3457: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3457 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3458 | 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] | 3459 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3460 | else |
| 3461 | ac_save_LIBS="$LIBS" |
| 3462 | LIBS="-lc_r $LIBS" |
| 3463 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3464 | #line 3465 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3465 | #include "confdefs.h" |
| 3466 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3467 | /* We use char because int might match the return type of a gcc2 |
| 3468 | builtin and then its argument prototype would still apply. */ |
| 3469 | char pthread_create(); |
| 3470 | |
| 3471 | int main() { |
| 3472 | pthread_create() |
| 3473 | ; return 0; } |
| 3474 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3475 | if { (eval echo configure:3476: \"$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] | 3476 | rm -rf conftest* |
| 3477 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3478 | else |
| 3479 | echo "configure: failed program was:" >&5 |
| 3480 | cat conftest.$ac_ext >&5 |
| 3481 | rm -rf conftest* |
| 3482 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3483 | fi |
| 3484 | rm -f conftest* |
| 3485 | LIBS="$ac_save_LIBS" |
| 3486 | |
| 3487 | fi |
| 3488 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3489 | echo "$ac_t""yes" 1>&6 |
| 3490 | cat >> confdefs.h <<\EOF |
| 3491 | #define WITH_THREAD 1 |
| 3492 | EOF |
| 3493 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3494 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3495 | #define _POSIX_THREADS 1 |
| 3496 | EOF |
| 3497 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3498 | LIBS="$LIBS -lc_r" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3499 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3500 | else |
| 3501 | echo "$ac_t""no" 1>&6 |
| 3502 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3503 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3504 | echo "configure:3505: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3505 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3506 | 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] | 3507 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3508 | else |
| 3509 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3510 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3511 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3512 | #line 3513 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3513 | #include "confdefs.h" |
| 3514 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3515 | /* We use char because int might match the return type of a gcc2 |
| 3516 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3517 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3518 | |
| 3519 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3520 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3521 | ; return 0; } |
| 3522 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3523 | if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3524 | rm -rf conftest* |
| 3525 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3526 | else |
| 3527 | echo "configure: failed program was:" >&5 |
| 3528 | cat conftest.$ac_ext >&5 |
| 3529 | rm -rf conftest* |
| 3530 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3531 | fi |
| 3532 | rm -f conftest* |
| 3533 | LIBS="$ac_save_LIBS" |
| 3534 | |
| 3535 | fi |
| 3536 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3537 | echo "$ac_t""yes" 1>&6 |
| 3538 | cat >> confdefs.h <<\EOF |
| 3539 | #define WITH_THREAD 1 |
| 3540 | EOF |
| 3541 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3542 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3543 | #define _POSIX_THREADS 1 |
| 3544 | EOF |
| 3545 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3546 | LIBS="$LIBS -lthread" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3547 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3548 | else |
| 3549 | echo "$ac_t""no" 1>&6 |
| 3550 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3551 | echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3552 | echo "configure:3553: checking for __pthread_create_system in -lpthread" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3553 | ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` |
| 3554 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3555 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3556 | else |
| 3557 | ac_save_LIBS="$LIBS" |
| 3558 | LIBS="-lpthread $LIBS" |
| 3559 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3560 | #line 3561 "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3561 | #include "confdefs.h" |
| 3562 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3563 | /* We use char because int might match the return type of a gcc2 |
| 3564 | builtin and then its argument prototype would still apply. */ |
| 3565 | char __pthread_create_system(); |
| 3566 | |
| 3567 | int main() { |
| 3568 | __pthread_create_system() |
| 3569 | ; return 0; } |
| 3570 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3571 | if { (eval echo configure:3572: \"$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] | 3572 | rm -rf conftest* |
| 3573 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3574 | else |
| 3575 | echo "configure: failed program was:" >&5 |
| 3576 | cat conftest.$ac_ext >&5 |
| 3577 | rm -rf conftest* |
| 3578 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3579 | fi |
| 3580 | rm -f conftest* |
| 3581 | LIBS="$ac_save_LIBS" |
| 3582 | |
| 3583 | fi |
| 3584 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3585 | echo "$ac_t""yes" 1>&6 |
| 3586 | cat >> confdefs.h <<\EOF |
| 3587 | #define WITH_THREAD 1 |
| 3588 | EOF |
| 3589 | |
| 3590 | cat >> confdefs.h <<\EOF |
| 3591 | #define _POSIX_THREADS 1 |
| 3592 | EOF |
| 3593 | |
| 3594 | LIBS="$LIBS -lpthread" |
| 3595 | LIBOBJS="$LIBOBJS thread.o" |
| 3596 | else |
| 3597 | echo "$ac_t""no" 1>&6 |
| 3598 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3599 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3600 | echo "configure:3601: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3601 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3602 | 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] | 3603 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3604 | else |
| 3605 | ac_save_LIBS="$LIBS" |
| 3606 | LIBS="-lcma $LIBS" |
| 3607 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3608 | #line 3609 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3609 | #include "confdefs.h" |
| 3610 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3611 | /* We use char because int might match the return type of a gcc2 |
| 3612 | builtin and then its argument prototype would still apply. */ |
| 3613 | char pthread_create(); |
| 3614 | |
| 3615 | int main() { |
| 3616 | pthread_create() |
| 3617 | ; return 0; } |
| 3618 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3619 | if { (eval echo configure:3620: \"$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] | 3620 | rm -rf conftest* |
| 3621 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3622 | else |
| 3623 | echo "configure: failed program was:" >&5 |
| 3624 | cat conftest.$ac_ext >&5 |
| 3625 | rm -rf conftest* |
| 3626 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3627 | fi |
| 3628 | rm -f conftest* |
| 3629 | LIBS="$ac_save_LIBS" |
| 3630 | |
| 3631 | fi |
| 3632 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3633 | echo "$ac_t""yes" 1>&6 |
| 3634 | cat >> confdefs.h <<\EOF |
| 3635 | #define WITH_THREAD 1 |
| 3636 | EOF |
| 3637 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3638 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3639 | #define _POSIX_THREADS 1 |
| 3640 | EOF |
| 3641 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3642 | LIBS="$LIBS -lcma" |
| 3643 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3644 | else |
| 3645 | echo "$ac_t""no" 1>&6 |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3646 | |
| 3647 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3648 | fi |
| 3649 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3650 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3651 | fi |
| 3652 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3653 | fi |
| 3654 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3655 | fi |
| 3656 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3657 | fi |
| 3658 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3659 | fi |
| 3660 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3661 | fi |
| 3662 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3663 | fi |
| 3664 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3665 | fi |
| 3666 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3667 | fi |
| 3668 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3669 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3670 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3671 | echo "configure:3672: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3672 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3673 | 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] | 3674 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3675 | else |
| 3676 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3677 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3678 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3679 | #line 3680 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3680 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3681 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3682 | /* We use char because int might match the return type of a gcc2 |
| 3683 | builtin and then its argument prototype would still apply. */ |
| 3684 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3685 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3686 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3687 | usconfig() |
| 3688 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3689 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3690 | if { (eval echo configure:3691: \"$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] | 3691 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3692 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3693 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3694 | echo "configure: failed program was:" >&5 |
| 3695 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3696 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3697 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3698 | fi |
| 3699 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3700 | LIBS="$ac_save_LIBS" |
| 3701 | |
| 3702 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3703 | 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] | 3704 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3705 | cat >> confdefs.h <<\EOF |
| 3706 | #define WITH_THREAD 1 |
| 3707 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3708 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3709 | LIBS="$LIBS -lmpc" |
| 3710 | LIBOBJS="$LIBOBJS thread.o" |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3711 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3712 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3713 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3714 | fi |
| 3715 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3716 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3717 | echo "configure:3718: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3718 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3719 | 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] | 3720 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3721 | else |
| 3722 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3723 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3724 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3725 | #line 3726 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3726 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3727 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3728 | /* We use char because int might match the return type of a gcc2 |
| 3729 | builtin and then its argument prototype would still apply. */ |
| 3730 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3731 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3732 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3733 | thr_create() |
| 3734 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3735 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3736 | if { (eval echo configure:3737: \"$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] | 3737 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3738 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3739 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3740 | echo "configure: failed program was:" >&5 |
| 3741 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3742 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3743 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3744 | fi |
| 3745 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3746 | LIBS="$ac_save_LIBS" |
| 3747 | |
| 3748 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3749 | 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] | 3750 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3751 | cat >> confdefs.h <<\EOF |
| 3752 | #define WITH_THREAD 1 |
| 3753 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3754 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3755 | LIBS="$LIBS -lthread" |
| 3756 | LIBOBJS="$LIBOBJS thread.o" |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3757 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3758 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3759 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3760 | fi |
| 3761 | |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 3762 | |
| 3763 | if test "$USE_THREAD_MODULE" != "#" |
| 3764 | then |
| 3765 | # If the above checks didn't disable threads, (at least) OSF1 |
| 3766 | # needs this '-threads' argument during linking. |
| 3767 | case $ac_sys_system in |
| 3768 | OSF1) LDLAST=-threads;; |
| 3769 | esac |
| 3770 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3771 | fi |
| 3772 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3773 | # Check for GC support |
| 3774 | |
| 3775 | USE_GC_MODULE="" |
| 3776 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3777 | echo "configure:3778: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3778 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 3779 | if test "${with_cycle_gc+set}" = set; then |
| 3780 | withval="$with_cycle_gc" |
| 3781 | : |
| 3782 | fi |
| 3783 | |
| 3784 | |
| 3785 | if test -z "$with_cycle_gc" |
| 3786 | then with_cycle_gc="yes" |
| 3787 | fi |
| 3788 | if test "$with_cycle_gc" = "no" |
| 3789 | then |
| 3790 | USE_GC_MODULE="#" |
| 3791 | else |
| 3792 | cat >> confdefs.h <<\EOF |
| 3793 | #define WITH_CYCLE_GC 1 |
| 3794 | EOF |
| 3795 | |
| 3796 | fi |
| 3797 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 3798 | |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 3799 | # Check for LIBDB support |
| 3800 | # either --with-libdb or, in its absence, the presence of db.h |
| 3801 | |
| 3802 | USE_BSDDB_MODULE="" |
| 3803 | echo $ac_n "checking for --with-libdb""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3804 | echo "configure:3805: checking for --with-libdb" >&5 |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 3805 | # Check whether --with-libdb or --without-libdb was given. |
| 3806 | if test "${with_libdb+set}" = set; then |
| 3807 | withval="$with_libdb" |
| 3808 | : |
| 3809 | fi |
| 3810 | |
| 3811 | |
Skip Montanaro | b89f41e | 2000-09-04 04:06:05 +0000 | [diff] [blame] | 3812 | # enabled by default, but db.h must be found |
| 3813 | if test "$ac_cv_header_db_h" = "yes" |
| 3814 | then |
| 3815 | if test "$with_libdb" != "no" |
| 3816 | then with_libdb="yes" |
| 3817 | fi |
| 3818 | else |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3819 | # make sure user knows why bsddb support wasn't enabled even |
Skip Montanaro | b89f41e | 2000-09-04 04:06:05 +0000 | [diff] [blame] | 3820 | # though s/he requested it |
| 3821 | if test "$with_libdb" = "yes" |
| 3822 | then echo $ac_n "(requested, but db.h was not found) $ac_c" |
| 3823 | fi |
| 3824 | with_libdb="no" |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 3825 | fi |
Skip Montanaro | b89f41e | 2000-09-04 04:06:05 +0000 | [diff] [blame] | 3826 | |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 3827 | if test "$with_libdb" = "no" |
| 3828 | then |
| 3829 | USE_BSDDB_MODULE="#" |
| 3830 | else |
| 3831 | cat >> confdefs.h <<\EOF |
| 3832 | #define WITH_LIBDB 1 |
| 3833 | EOF |
| 3834 | |
| 3835 | fi |
| 3836 | echo "$ac_t""$with_libdb" 1>&6 |
| 3837 | |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3838 | if test "$with_libdb" = "yes" |
| 3839 | then |
| 3840 | # check for libdb; BSD systems have the DB routines in libc --tg |
| 3841 | |
Martin v. Löwis | 05a65d6 | 2000-09-24 19:40:25 +0000 | [diff] [blame] | 3842 | # If dbopen is not in libc, then checking whether it is in libdb |
| 3843 | # is difficult: db_185.h may #define it as __db185_open |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 3844 | # Instead, we just trust it is in libdb; linking will fail if it |
| 3845 | # is not. |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3846 | echo $ac_n "checking for dbopen""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3847 | echo "configure:3848: checking for dbopen" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3848 | if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3849 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3850 | else |
| 3851 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3852 | #line 3853 "configure" |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3853 | #include "confdefs.h" |
| 3854 | /* System header to define __stub macros and hopefully few prototypes, |
| 3855 | which can conflict with char dbopen(); below. */ |
| 3856 | #include <assert.h> |
| 3857 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3858 | /* We use char because int might match the return type of a gcc2 |
| 3859 | builtin and then its argument prototype would still apply. */ |
| 3860 | char dbopen(); |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3861 | |
| 3862 | int main() { |
| 3863 | |
| 3864 | /* The GNU C library defines this for functions which it implements |
| 3865 | to always fail with ENOSYS. Some functions are actually named |
| 3866 | something starting with __ and the normal name is an alias. */ |
| 3867 | #if defined (__stub_dbopen) || defined (__stub___dbopen) |
| 3868 | choke me |
| 3869 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3870 | dbopen(); |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3871 | #endif |
| 3872 | |
| 3873 | ; return 0; } |
| 3874 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3875 | if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3876 | rm -rf conftest* |
| 3877 | eval "ac_cv_func_dbopen=yes" |
| 3878 | else |
| 3879 | echo "configure: failed program was:" >&5 |
| 3880 | cat conftest.$ac_ext >&5 |
| 3881 | rm -rf conftest* |
| 3882 | eval "ac_cv_func_dbopen=no" |
| 3883 | fi |
| 3884 | rm -f conftest* |
| 3885 | fi |
| 3886 | |
| 3887 | if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then |
| 3888 | echo "$ac_t""yes" 1>&6 |
| 3889 | HAVE_LIBDB= |
| 3890 | else |
| 3891 | echo "$ac_t""no" 1>&6 |
Martin v. Löwis | 05a65d6 | 2000-09-24 19:40:25 +0000 | [diff] [blame] | 3892 | HAVE_LIBDB=-ldb |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3893 | fi |
| 3894 | |
| 3895 | fi |
| 3896 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3897 | # Check for --with-wctype-functions |
| 3898 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3899 | echo "configure:3900: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3900 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 3901 | if test "${with_wctype_functions+set}" = set; then |
| 3902 | withval="$with_wctype_functions" |
| 3903 | |
| 3904 | if test "$withval" != no |
| 3905 | then cat >> confdefs.h <<\EOF |
| 3906 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 3907 | EOF |
| 3908 | echo "$ac_t""yes" 1>&6 |
| 3909 | else echo "$ac_t""no" 1>&6 |
| 3910 | fi |
| 3911 | else |
| 3912 | echo "$ac_t""no" 1>&6 |
| 3913 | fi |
| 3914 | |
| 3915 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3916 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3917 | |
| 3918 | DLINCLDIR=/ |
| 3919 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3920 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3921 | echo "configure:3922: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3922 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3923 | if test "${with_sgi_dl+set}" = set; then |
| 3924 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3925 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3926 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3927 | cat >> confdefs.h <<\EOF |
| 3928 | #define WITH_SGI_DL 1 |
| 3929 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3930 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3931 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3932 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 3933 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3934 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3935 | 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] | 3936 | fi |
| 3937 | DLINCLDIR=${dldir} |
| 3938 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3939 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3940 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3941 | fi |
| 3942 | |
| 3943 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3944 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3945 | echo "configure:3946: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3946 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3947 | if test "${with_dl_dld+set}" = set; then |
| 3948 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3949 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3950 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3951 | cat >> confdefs.h <<\EOF |
| 3952 | #define WITH_DL_DLD 1 |
| 3953 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3954 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3955 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3956 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 3957 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 3958 | 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] | 3959 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3960 | 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] | 3961 | fi |
| 3962 | DLINCLDIR=${dldir} |
| 3963 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3964 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3965 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3966 | fi |
| 3967 | |
| 3968 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3969 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 3970 | # 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] | 3971 | for ac_func in dlopen |
| 3972 | do |
| 3973 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3974 | echo "configure:3975: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3975 | 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] | 3976 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3977 | else |
| 3978 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 3979 | #line 3980 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3980 | #include "confdefs.h" |
| 3981 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3982 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3983 | #include <assert.h> |
| 3984 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3985 | /* We use char because int might match the return type of a gcc2 |
| 3986 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3987 | char $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3988 | |
| 3989 | int main() { |
| 3990 | |
| 3991 | /* The GNU C library defines this for functions which it implements |
| 3992 | to always fail with ENOSYS. Some functions are actually named |
| 3993 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3994 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3995 | choke me |
| 3996 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3997 | $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3998 | #endif |
| 3999 | |
| 4000 | ; return 0; } |
| 4001 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4002 | if { (eval echo configure:4003: \"$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] | 4003 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4004 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4005 | else |
| 4006 | echo "configure: failed program was:" >&5 |
| 4007 | cat conftest.$ac_ext >&5 |
| 4008 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4009 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4010 | fi |
| 4011 | rm -f conftest* |
| 4012 | fi |
| 4013 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4014 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4015 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4016 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4017 | cat >> confdefs.h <<EOF |
| 4018 | #define $ac_tr_func 1 |
| 4019 | EOF |
| 4020 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4021 | else |
| 4022 | echo "$ac_t""no" 1>&6 |
| 4023 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4024 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4025 | |
| 4026 | |
| 4027 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 4028 | # loading of modules. |
| 4029 | |
| 4030 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4031 | echo "configure:4032: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4032 | if test -z "$DYNLOADFILE" |
| 4033 | then |
| 4034 | case $ac_sys_system/$ac_sys_release in |
| 4035 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 4036 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 4037 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4038 | Darwin/*|next/*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4039 | *) |
| 4040 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 4041 | # out any dynamic loading |
| 4042 | if test "$ac_cv_func_dlopen" = yes |
| 4043 | then DYNLOADFILE="dynload_shlib.o" |
| 4044 | else DYNLOADFILE="dynload_stub.o" |
| 4045 | fi |
| 4046 | ;; |
| 4047 | esac |
| 4048 | fi |
| 4049 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 4050 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 4051 | then |
| 4052 | cat >> confdefs.h <<\EOF |
| 4053 | #define HAVE_DYNAMIC_LOADING 1 |
| 4054 | EOF |
| 4055 | |
| 4056 | fi |
| 4057 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4058 | # checks for library functions |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4059 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4060 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Andrew M. Kuchling | 78a1442 | 2000-11-29 02:44:05 +0000 | [diff] [blame] | 4061 | getgroups getline getlogin getpeername getpid getpwent getwd \ |
Andrew M. Kuchling | 22c6934 | 2000-06-18 15:07:40 +0000 | [diff] [blame] | 4062 | kill link lstat mkfifo mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 4063 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4064 | putenv readlink \ |
Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 4065 | select setegid seteuid setgid \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4066 | setlocale setregid setreuid setsid setpgid setuid setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4067 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 4068 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | 70c21a1 | 2000-07-14 14:28:33 +0000 | [diff] [blame] | 4069 | truncate uname waitpid _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4070 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4071 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4072 | echo "configure:4073: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4073 | 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] | 4074 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4075 | else |
| 4076 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4077 | #line 4078 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4078 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4079 | /* System header to define __stub macros and hopefully few prototypes, |
| 4080 | which can conflict with char $ac_func(); below. */ |
| 4081 | #include <assert.h> |
| 4082 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4083 | /* We use char because int might match the return type of a gcc2 |
| 4084 | builtin and then its argument prototype would still apply. */ |
| 4085 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4086 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4087 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4088 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4089 | /* The GNU C library defines this for functions which it implements |
| 4090 | to always fail with ENOSYS. Some functions are actually named |
| 4091 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4092 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4093 | choke me |
| 4094 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4095 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4096 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4097 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4098 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4099 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4100 | if { (eval echo configure:4101: \"$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] | 4101 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4102 | eval "ac_cv_func_$ac_func=yes" |
| 4103 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4104 | echo "configure: failed program was:" >&5 |
| 4105 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4106 | rm -rf conftest* |
| 4107 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4108 | fi |
| 4109 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4110 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4111 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4112 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4113 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4114 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4115 | cat >> confdefs.h <<EOF |
| 4116 | #define $ac_tr_func 1 |
| 4117 | EOF |
| 4118 | |
| 4119 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4120 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4121 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4122 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4123 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4124 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4125 | # check for openpty and forkpty |
| 4126 | |
| 4127 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4128 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4129 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4130 | echo "configure:4131: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4131 | 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] | 4132 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4133 | else |
| 4134 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4135 | #line 4136 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4136 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4137 | /* System header to define __stub macros and hopefully few prototypes, |
| 4138 | which can conflict with char $ac_func(); below. */ |
| 4139 | #include <assert.h> |
| 4140 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4141 | /* We use char because int might match the return type of a gcc2 |
| 4142 | builtin and then its argument prototype would still apply. */ |
| 4143 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4144 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4145 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4146 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4147 | /* The GNU C library defines this for functions which it implements |
| 4148 | to always fail with ENOSYS. Some functions are actually named |
| 4149 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4150 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4151 | choke me |
| 4152 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4153 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4154 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4155 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4156 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4157 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4158 | if { (eval echo configure:4159: \"$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] | 4159 | rm -rf conftest* |
| 4160 | eval "ac_cv_func_$ac_func=yes" |
| 4161 | else |
| 4162 | echo "configure: failed program was:" >&5 |
| 4163 | cat conftest.$ac_ext >&5 |
| 4164 | rm -rf conftest* |
| 4165 | eval "ac_cv_func_$ac_func=no" |
| 4166 | fi |
| 4167 | rm -f conftest* |
| 4168 | fi |
| 4169 | |
| 4170 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4171 | echo "$ac_t""yes" 1>&6 |
| 4172 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4173 | cat >> confdefs.h <<EOF |
| 4174 | #define $ac_tr_func 1 |
| 4175 | EOF |
| 4176 | |
| 4177 | else |
| 4178 | echo "$ac_t""no" 1>&6 |
| 4179 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4180 | echo "configure:4181: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4181 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4182 | 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] | 4183 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4184 | else |
| 4185 | ac_save_LIBS="$LIBS" |
| 4186 | LIBS="-lutil $LIBS" |
| 4187 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4188 | #line 4189 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4189 | #include "confdefs.h" |
| 4190 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4191 | /* We use char because int might match the return type of a gcc2 |
| 4192 | builtin and then its argument prototype would still apply. */ |
| 4193 | char openpty(); |
| 4194 | |
| 4195 | int main() { |
| 4196 | openpty() |
| 4197 | ; return 0; } |
| 4198 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4199 | if { (eval echo configure:4200: \"$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] | 4200 | rm -rf conftest* |
| 4201 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4202 | else |
| 4203 | echo "configure: failed program was:" >&5 |
| 4204 | cat conftest.$ac_ext >&5 |
| 4205 | rm -rf conftest* |
| 4206 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4207 | fi |
| 4208 | rm -f conftest* |
| 4209 | LIBS="$ac_save_LIBS" |
| 4210 | |
| 4211 | fi |
| 4212 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4213 | echo "$ac_t""yes" 1>&6 |
| 4214 | cat >> confdefs.h <<\EOF |
| 4215 | #define HAVE_OPENPTY 1 |
| 4216 | EOF |
| 4217 | LIBS="$LIBS -lutil" |
| 4218 | else |
| 4219 | echo "$ac_t""no" 1>&6 |
| 4220 | fi |
| 4221 | |
| 4222 | fi |
| 4223 | done |
| 4224 | |
| 4225 | for ac_func in forkpty |
| 4226 | do |
| 4227 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4228 | echo "configure:4229: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4229 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4230 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4231 | else |
| 4232 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4233 | #line 4234 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4234 | #include "confdefs.h" |
| 4235 | /* System header to define __stub macros and hopefully few prototypes, |
| 4236 | which can conflict with char $ac_func(); below. */ |
| 4237 | #include <assert.h> |
| 4238 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4239 | /* We use char because int might match the return type of a gcc2 |
| 4240 | builtin and then its argument prototype would still apply. */ |
| 4241 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4242 | |
| 4243 | int main() { |
| 4244 | |
| 4245 | /* The GNU C library defines this for functions which it implements |
| 4246 | to always fail with ENOSYS. Some functions are actually named |
| 4247 | something starting with __ and the normal name is an alias. */ |
| 4248 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4249 | choke me |
| 4250 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4251 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4252 | #endif |
| 4253 | |
| 4254 | ; return 0; } |
| 4255 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4256 | if { (eval echo configure:4257: \"$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] | 4257 | rm -rf conftest* |
| 4258 | eval "ac_cv_func_$ac_func=yes" |
| 4259 | else |
| 4260 | echo "configure: failed program was:" >&5 |
| 4261 | cat conftest.$ac_ext >&5 |
| 4262 | rm -rf conftest* |
| 4263 | eval "ac_cv_func_$ac_func=no" |
| 4264 | fi |
| 4265 | rm -f conftest* |
| 4266 | fi |
| 4267 | |
| 4268 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4269 | echo "$ac_t""yes" 1>&6 |
| 4270 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4271 | cat >> confdefs.h <<EOF |
| 4272 | #define $ac_tr_func 1 |
| 4273 | EOF |
| 4274 | |
| 4275 | else |
| 4276 | echo "$ac_t""no" 1>&6 |
| 4277 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4278 | echo "configure:4279: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4279 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4280 | 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] | 4281 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4282 | else |
| 4283 | ac_save_LIBS="$LIBS" |
| 4284 | LIBS="-lutil $LIBS" |
| 4285 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4286 | #line 4287 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4287 | #include "confdefs.h" |
| 4288 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4289 | /* We use char because int might match the return type of a gcc2 |
| 4290 | builtin and then its argument prototype would still apply. */ |
| 4291 | char forkpty(); |
| 4292 | |
| 4293 | int main() { |
| 4294 | forkpty() |
| 4295 | ; return 0; } |
| 4296 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4297 | if { (eval echo configure:4298: \"$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] | 4298 | rm -rf conftest* |
| 4299 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4300 | else |
| 4301 | echo "configure: failed program was:" >&5 |
| 4302 | cat conftest.$ac_ext >&5 |
| 4303 | rm -rf conftest* |
| 4304 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4305 | fi |
| 4306 | rm -f conftest* |
| 4307 | LIBS="$ac_save_LIBS" |
| 4308 | |
| 4309 | fi |
| 4310 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4311 | echo "$ac_t""yes" 1>&6 |
| 4312 | cat >> confdefs.h <<\EOF |
| 4313 | #define HAVE_FORKPTY 1 |
| 4314 | EOF |
| 4315 | LIBS="$LIBS -lutil" |
| 4316 | else |
| 4317 | echo "$ac_t""no" 1>&6 |
| 4318 | fi |
| 4319 | |
| 4320 | fi |
| 4321 | done |
| 4322 | |
| 4323 | |
| 4324 | # check for long file support functions |
| 4325 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 4326 | do |
| 4327 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4328 | echo "configure:4329: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4329 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4330 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4331 | else |
| 4332 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4333 | #line 4334 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4334 | #include "confdefs.h" |
| 4335 | /* System header to define __stub macros and hopefully few prototypes, |
| 4336 | which can conflict with char $ac_func(); below. */ |
| 4337 | #include <assert.h> |
| 4338 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4339 | /* We use char because int might match the return type of a gcc2 |
| 4340 | builtin and then its argument prototype would still apply. */ |
| 4341 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4342 | |
| 4343 | int main() { |
| 4344 | |
| 4345 | /* The GNU C library defines this for functions which it implements |
| 4346 | to always fail with ENOSYS. Some functions are actually named |
| 4347 | something starting with __ and the normal name is an alias. */ |
| 4348 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4349 | choke me |
| 4350 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4351 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4352 | #endif |
| 4353 | |
| 4354 | ; return 0; } |
| 4355 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4356 | if { (eval echo configure:4357: \"$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] | 4357 | rm -rf conftest* |
| 4358 | eval "ac_cv_func_$ac_func=yes" |
| 4359 | else |
| 4360 | echo "configure: failed program was:" >&5 |
| 4361 | cat conftest.$ac_ext >&5 |
| 4362 | rm -rf conftest* |
| 4363 | eval "ac_cv_func_$ac_func=no" |
| 4364 | fi |
| 4365 | rm -f conftest* |
| 4366 | fi |
| 4367 | |
| 4368 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4369 | echo "$ac_t""yes" 1>&6 |
| 4370 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4371 | cat >> confdefs.h <<EOF |
| 4372 | #define $ac_tr_func 1 |
| 4373 | EOF |
| 4374 | |
| 4375 | else |
| 4376 | echo "$ac_t""no" 1>&6 |
| 4377 | fi |
| 4378 | done |
| 4379 | |
| 4380 | |
| 4381 | for ac_func in dup2 getcwd strdup strerror memmove |
| 4382 | do |
| 4383 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4384 | echo "configure:4385: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4385 | 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] | 4386 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4387 | else |
| 4388 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4389 | #line 4390 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4390 | #include "confdefs.h" |
| 4391 | /* System header to define __stub macros and hopefully few prototypes, |
| 4392 | which can conflict with char $ac_func(); below. */ |
| 4393 | #include <assert.h> |
| 4394 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4395 | /* We use char because int might match the return type of a gcc2 |
| 4396 | builtin and then its argument prototype would still apply. */ |
| 4397 | char $ac_func(); |
| 4398 | |
| 4399 | int main() { |
| 4400 | |
| 4401 | /* The GNU C library defines this for functions which it implements |
| 4402 | to always fail with ENOSYS. Some functions are actually named |
| 4403 | something starting with __ and the normal name is an alias. */ |
| 4404 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4405 | choke me |
| 4406 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4407 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4408 | #endif |
| 4409 | |
| 4410 | ; return 0; } |
| 4411 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4412 | if { (eval echo configure:4413: \"$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] | 4413 | rm -rf conftest* |
| 4414 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4415 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4416 | echo "configure: failed program was:" >&5 |
| 4417 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4418 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4419 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4420 | fi |
| 4421 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4422 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4423 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4424 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4425 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4426 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4427 | cat >> confdefs.h <<EOF |
| 4428 | #define $ac_tr_func 1 |
| 4429 | EOF |
| 4430 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4431 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4432 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4433 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4434 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4435 | done |
| 4436 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4437 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4438 | for ac_func in getpgrp |
| 4439 | do |
| 4440 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4441 | echo "configure:4442: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4442 | 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] | 4443 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4444 | else |
| 4445 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4446 | #line 4447 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4447 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4448 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4449 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4450 | #include <assert.h> |
| 4451 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4452 | /* We use char because int might match the return type of a gcc2 |
| 4453 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4454 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4455 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4456 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4457 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4458 | /* The GNU C library defines this for functions which it implements |
| 4459 | to always fail with ENOSYS. Some functions are actually named |
| 4460 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4461 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4462 | choke me |
| 4463 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4464 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4465 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4466 | |
| 4467 | ; return 0; } |
| 4468 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4469 | if { (eval echo configure:4470: \"$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] | 4470 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4471 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4472 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4473 | echo "configure: failed program was:" >&5 |
| 4474 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4475 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4476 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4477 | fi |
| 4478 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4479 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4480 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4481 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4482 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4483 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4484 | cat >> confdefs.h <<EOF |
| 4485 | #define $ac_tr_func 1 |
| 4486 | EOF |
| 4487 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4488 | #line 4489 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4489 | #include "confdefs.h" |
| 4490 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4491 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4492 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4493 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4494 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4495 | if { (eval echo configure:4496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4496 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4497 | cat >> confdefs.h <<\EOF |
| 4498 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4499 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4500 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4501 | else |
| 4502 | echo "configure: failed program was:" >&5 |
| 4503 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4504 | fi |
| 4505 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4506 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4507 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4508 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4509 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4510 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4511 | for ac_func in setpgrp |
| 4512 | do |
| 4513 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4514 | echo "configure:4515: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4515 | 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] | 4516 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4517 | else |
| 4518 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4519 | #line 4520 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4520 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4521 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4522 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4523 | #include <assert.h> |
| 4524 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4525 | /* We use char because int might match the return type of a gcc2 |
| 4526 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4527 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4528 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4529 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4530 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4531 | /* The GNU C library defines this for functions which it implements |
| 4532 | to always fail with ENOSYS. Some functions are actually named |
| 4533 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4534 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4535 | choke me |
| 4536 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4537 | $ac_func(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4538 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4539 | |
| 4540 | ; return 0; } |
| 4541 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4542 | if { (eval echo configure:4543: \"$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] | 4543 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4544 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4545 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4546 | echo "configure: failed program was:" >&5 |
| 4547 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4548 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4549 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4550 | fi |
| 4551 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4552 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4553 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4554 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4555 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4556 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4557 | cat >> confdefs.h <<EOF |
| 4558 | #define $ac_tr_func 1 |
| 4559 | EOF |
| 4560 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4561 | #line 4562 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4562 | #include "confdefs.h" |
| 4563 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4564 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4565 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4566 | ; return 0; } |
| 4567 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4568 | if { (eval echo configure:4569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4569 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4570 | cat >> confdefs.h <<\EOF |
| 4571 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4572 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4573 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4574 | else |
| 4575 | echo "configure: failed program was:" >&5 |
| 4576 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4577 | fi |
| 4578 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4579 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4580 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4581 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4582 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4583 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4584 | for ac_func in gettimeofday |
| 4585 | do |
| 4586 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4587 | echo "configure:4588: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4588 | 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] | 4589 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4590 | else |
| 4591 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4592 | #line 4593 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4593 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4594 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4595 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4596 | #include <assert.h> |
| 4597 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4598 | /* We use char because int might match the return type of a gcc2 |
| 4599 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4600 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4601 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4602 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4603 | |
| 4604 | /* The GNU C library defines this for functions which it implements |
| 4605 | to always fail with ENOSYS. Some functions are actually named |
| 4606 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4607 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4608 | choke me |
| 4609 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4610 | $ac_func(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4611 | #endif |
| 4612 | |
| 4613 | ; return 0; } |
| 4614 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4615 | if { (eval echo configure:4616: \"$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] | 4616 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4617 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4618 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4619 | echo "configure: failed program was:" >&5 |
| 4620 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4621 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4622 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4623 | fi |
| 4624 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4625 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4626 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4627 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4628 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4629 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4630 | cat >> confdefs.h <<EOF |
| 4631 | #define $ac_tr_func 1 |
| 4632 | EOF |
| 4633 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4634 | #line 4635 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4635 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4636 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4637 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4638 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 4639 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4640 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4641 | if { (eval echo configure:4642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4642 | : |
| 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 | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4646 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4647 | cat >> confdefs.h <<\EOF |
| 4648 | #define GETTIMEOFDAY_NO_TZ 1 |
| 4649 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4650 | |
| 4651 | fi |
| 4652 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4653 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4654 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4655 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4656 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4657 | |
| 4658 | |
| 4659 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4660 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4661 | echo "configure:4662: 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] | 4662 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4663 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4664 | else |
| 4665 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4666 | #line 4667 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4667 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4668 | #include <sys/types.h> |
| 4669 | #include <sys/time.h> |
| 4670 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4671 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4672 | struct tm *tp; |
| 4673 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4674 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4675 | if { (eval echo configure:4676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4676 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4677 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4678 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4679 | echo "configure: failed program was:" >&5 |
| 4680 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4681 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4682 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4683 | fi |
| 4684 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4685 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4686 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4687 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4688 | if test $ac_cv_header_time = yes; then |
| 4689 | cat >> confdefs.h <<\EOF |
| 4690 | #define TIME_WITH_SYS_TIME 1 |
| 4691 | EOF |
| 4692 | |
| 4693 | fi |
| 4694 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4695 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4696 | echo "configure:4697: 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] | 4697 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4698 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4699 | else |
| 4700 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4701 | #line 4702 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4702 | #include "confdefs.h" |
| 4703 | #include <sys/types.h> |
| 4704 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4705 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4706 | struct tm *tp; tp->tm_sec; |
| 4707 | ; return 0; } |
| 4708 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4709 | if { (eval echo configure:4710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4710 | rm -rf conftest* |
| 4711 | ac_cv_struct_tm=time.h |
| 4712 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4713 | echo "configure: failed program was:" >&5 |
| 4714 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4715 | rm -rf conftest* |
| 4716 | ac_cv_struct_tm=sys/time.h |
| 4717 | fi |
| 4718 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4719 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4720 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4721 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4722 | if test $ac_cv_struct_tm = sys/time.h; then |
| 4723 | cat >> confdefs.h <<\EOF |
| 4724 | #define TM_IN_SYS_TIME 1 |
| 4725 | EOF |
| 4726 | |
| 4727 | fi |
| 4728 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4729 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4730 | echo "configure:4731: checking for tm_zone in struct tm" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4731 | 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] | 4732 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4733 | else |
| 4734 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4735 | #line 4736 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4736 | #include "confdefs.h" |
| 4737 | #include <sys/types.h> |
| 4738 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4739 | int main() { |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4740 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4741 | ; return 0; } |
| 4742 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4743 | if { (eval echo configure:4744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4744 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4745 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4746 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4747 | echo "configure: failed program was:" >&5 |
| 4748 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4749 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4750 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4751 | fi |
| 4752 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4753 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4754 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4755 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 4756 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4757 | cat >> confdefs.h <<\EOF |
| 4758 | #define HAVE_TM_ZONE 1 |
| 4759 | EOF |
| 4760 | |
| 4761 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4762 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4763 | echo "configure:4764: checking for tzname" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4764 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4765 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4766 | else |
| 4767 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4768 | #line 4769 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4769 | #include "confdefs.h" |
| 4770 | #include <time.h> |
| 4771 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4772 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4773 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4774 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4775 | atoi(*tzname); |
| 4776 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4777 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4778 | if { (eval echo configure:4779: \"$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] | 4779 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4780 | ac_cv_var_tzname=yes |
| 4781 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4782 | echo "configure: failed program was:" >&5 |
| 4783 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4784 | rm -rf conftest* |
| 4785 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4786 | fi |
| 4787 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4788 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4789 | |
| 4790 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4791 | if test $ac_cv_var_tzname = yes; then |
| 4792 | cat >> confdefs.h <<\EOF |
| 4793 | #define HAVE_TZNAME 1 |
| 4794 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4795 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4796 | fi |
| 4797 | fi |
| 4798 | |
| 4799 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4800 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4801 | echo "configure:4802: checking for time.h that defines altzone" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4802 | 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] | 4803 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4804 | else |
| 4805 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4806 | #line 4807 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4807 | #include "confdefs.h" |
| 4808 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4809 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4810 | return altzone; |
| 4811 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4812 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4813 | if { (eval echo configure:4814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4814 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4815 | ac_cv_header_time_altzone=yes |
| 4816 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4817 | echo "configure: failed program was:" >&5 |
| 4818 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4819 | rm -rf conftest* |
| 4820 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4821 | fi |
| 4822 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4823 | fi |
| 4824 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4825 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4826 | if test $ac_cv_header_time_altzone = yes; then |
| 4827 | cat >> confdefs.h <<\EOF |
| 4828 | #define HAVE_ALTZONE 1 |
| 4829 | EOF |
| 4830 | |
| 4831 | fi |
| 4832 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4833 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4834 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4835 | echo "configure:4836: 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] | 4836 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4837 | #line 4838 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4838 | #include "confdefs.h" |
| 4839 | |
| 4840 | #include <sys/types.h> |
| 4841 | #include <sys/select.h> |
| 4842 | #include <sys/time.h> |
| 4843 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4844 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4845 | ; |
| 4846 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4847 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4848 | if { (eval echo configure:4849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4849 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4850 | cat >> confdefs.h <<\EOF |
| 4851 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 4852 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4853 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4854 | else |
| 4855 | echo "configure: failed program was:" >&5 |
| 4856 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4857 | fi |
| 4858 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4859 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4860 | |
| 4861 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4862 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4863 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4864 | echo "configure:4865: checking whether char is unsigned" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4865 | 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] | 4866 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4867 | else |
| 4868 | if test "$GCC" = yes; then |
| 4869 | # GCC predefines this symbol on systems where it applies. |
| 4870 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4871 | #line 4872 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4872 | #include "confdefs.h" |
| 4873 | #ifdef __CHAR_UNSIGNED__ |
| 4874 | yes |
| 4875 | #endif |
| 4876 | |
| 4877 | EOF |
| 4878 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4879 | egrep "yes" >/dev/null 2>&1; then |
| 4880 | rm -rf conftest* |
| 4881 | ac_cv_c_char_unsigned=yes |
| 4882 | else |
| 4883 | rm -rf conftest* |
| 4884 | ac_cv_c_char_unsigned=no |
| 4885 | fi |
| 4886 | rm -f conftest* |
| 4887 | |
| 4888 | else |
| 4889 | if test "$cross_compiling" = yes; then |
| 4890 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4891 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4892 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4893 | #line 4894 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4894 | #include "confdefs.h" |
| 4895 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4896 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4897 | #define volatile |
| 4898 | #endif |
| 4899 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4900 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4901 | } |
| 4902 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4903 | if { (eval echo configure:4904: \"$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] | 4904 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4905 | ac_cv_c_char_unsigned=yes |
| 4906 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4907 | echo "configure: failed program was:" >&5 |
| 4908 | cat conftest.$ac_ext >&5 |
| 4909 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4910 | ac_cv_c_char_unsigned=no |
| 4911 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4912 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4913 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4914 | |
| 4915 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4916 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4917 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4918 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4919 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 4920 | cat >> confdefs.h <<\EOF |
| 4921 | #define __CHAR_UNSIGNED__ 1 |
| 4922 | EOF |
| 4923 | |
| 4924 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4925 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4926 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4927 | echo "configure:4928: checking for working const" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4928 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4929 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4930 | else |
| 4931 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4932 | #line 4933 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4933 | #include "confdefs.h" |
| 4934 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4935 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4936 | |
| 4937 | /* Ultrix mips cc rejects this. */ |
Greg Ward | a1c4da2 | 2000-11-07 15:44:21 +0000 | [diff] [blame] | 4938 | typedef int charset[2]; const charset x; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4939 | /* SunOS 4.1.1 cc rejects this. */ |
| 4940 | char const *const *ccp; |
| 4941 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4942 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4943 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4944 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4945 | /* AIX XL C 1.02.0.0 rejects this. |
| 4946 | It does not let you subtract one const X* pointer from another in an arm |
| 4947 | of an if-expression whose if-part is not a constant expression */ |
| 4948 | const char *g = "string"; |
| 4949 | ccp = &g + (g ? g-g : 0); |
| 4950 | /* HPUX 7.0 cc rejects these. */ |
| 4951 | ++ccp; |
| 4952 | p = (char**) ccp; |
| 4953 | ccp = (char const *const *) p; |
| 4954 | { /* SCO 3.2v4 cc rejects this. */ |
| 4955 | char *t; |
| 4956 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4957 | |
| 4958 | *t++ = 0; |
| 4959 | } |
| 4960 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4961 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4962 | const int *foo = &x[0]; |
| 4963 | ++foo; |
| 4964 | } |
| 4965 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4966 | typedef const int *iptr; |
| 4967 | iptr p = 0; |
| 4968 | ++p; |
| 4969 | } |
| 4970 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4971 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4972 | struct s { int j; const int *ap[3]; }; |
| 4973 | struct s *b; b->j = 5; |
| 4974 | } |
| 4975 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4976 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4977 | } |
| 4978 | |
| 4979 | ; return 0; } |
| 4980 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 4981 | if { (eval echo configure:4982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4982 | rm -rf conftest* |
| 4983 | ac_cv_c_const=yes |
| 4984 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4985 | echo "configure: failed program was:" >&5 |
| 4986 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4987 | rm -rf conftest* |
| 4988 | ac_cv_c_const=no |
| 4989 | fi |
| 4990 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4991 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4992 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4993 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4994 | if test $ac_cv_c_const = no; then |
| 4995 | cat >> confdefs.h <<\EOF |
| 4996 | #define const |
| 4997 | EOF |
| 4998 | |
| 4999 | fi |
| 5000 | |
| 5001 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5002 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5003 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5004 | echo "configure:5005: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5005 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5006 | #line 5007 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5007 | #include "confdefs.h" |
| 5008 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5009 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5010 | volatile int x; x = 0; |
| 5011 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5012 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5013 | if { (eval echo configure:5014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5014 | rm -rf conftest* |
| 5015 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5016 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5017 | echo "configure: failed program was:" >&5 |
| 5018 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5019 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5020 | cat >> confdefs.h <<\EOF |
| 5021 | #define volatile |
| 5022 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5023 | |
| 5024 | fi |
| 5025 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5026 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5027 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5028 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5029 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5030 | echo "configure:5031: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5031 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5032 | #line 5033 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5033 | #include "confdefs.h" |
| 5034 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5035 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5036 | signed char c; |
| 5037 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5038 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5039 | if { (eval echo configure:5040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5040 | rm -rf conftest* |
| 5041 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5042 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5043 | echo "configure: failed program was:" >&5 |
| 5044 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5045 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5046 | cat >> confdefs.h <<\EOF |
| 5047 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5048 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5049 | |
| 5050 | fi |
| 5051 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5052 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5053 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5054 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5055 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5056 | echo "configure:5057: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5057 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5058 | #line 5059 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5059 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5060 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5061 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5062 | return foo(10); |
| 5063 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5064 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5065 | if { (eval echo configure:5066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5066 | rm -rf conftest* |
| 5067 | cat >> confdefs.h <<\EOF |
| 5068 | #define HAVE_PROTOTYPES 1 |
| 5069 | EOF |
| 5070 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5071 | else |
| 5072 | echo "configure: failed program was:" >&5 |
| 5073 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5074 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5075 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5076 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5077 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5078 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5079 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5080 | echo "configure:5081: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5081 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5082 | #line 5083 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5083 | #include "confdefs.h" |
| 5084 | |
| 5085 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5086 | int foo(int x, ...) { |
| 5087 | va_list va; |
| 5088 | va_start(va, x); |
| 5089 | va_arg(va, int); |
| 5090 | va_arg(va, char *); |
| 5091 | va_arg(va, double); |
| 5092 | return 0; |
| 5093 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5094 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5095 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5096 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5097 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5098 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5099 | if { (eval echo configure:5100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5100 | rm -rf conftest* |
| 5101 | cat >> confdefs.h <<\EOF |
| 5102 | #define HAVE_STDARG_PROTOTYPES 1 |
| 5103 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5104 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5105 | else |
| 5106 | echo "configure: failed program was:" >&5 |
| 5107 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5108 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5109 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5110 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5111 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5112 | if test "$have_prototypes" = yes; then |
| 5113 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5114 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5115 | echo "configure:5116: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5116 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5117 | #line 5118 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5118 | #include "confdefs.h" |
| 5119 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5120 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5121 | char **t;execve("@",t,t); |
| 5122 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5123 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5124 | if { (eval echo configure:5125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5125 | : |
| 5126 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5127 | echo "configure: failed program was:" >&5 |
| 5128 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5129 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5130 | cat >> confdefs.h <<\EOF |
| 5131 | #define BAD_EXEC_PROTOTYPES 1 |
| 5132 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5133 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5134 | fi |
| 5135 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5136 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5137 | fi |
| 5138 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5139 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5140 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5141 | echo "configure:5142: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5142 | if test "$cross_compiling" = yes; then |
| 5143 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5144 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5145 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5146 | #line 5147 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5147 | #include "confdefs.h" |
| 5148 | |
| 5149 | struct s { int a; int b; }; |
| 5150 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5151 | int foobar() { |
| 5152 | static int random; |
| 5153 | random = (int) &foo; |
| 5154 | return random; |
| 5155 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5156 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5157 | main() { |
| 5158 | exit(!((int)&foo == foobar())); |
| 5159 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5160 | |
| 5161 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5162 | if { (eval echo configure:5163: \"$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] | 5163 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5164 | : |
| 5165 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5166 | echo "configure: failed program was:" >&5 |
| 5167 | cat conftest.$ac_ext >&5 |
| 5168 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5169 | cat >> confdefs.h <<\EOF |
| 5170 | #define BAD_STATIC_FORWARD 1 |
| 5171 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5172 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5173 | fi |
| 5174 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5175 | fi |
| 5176 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5177 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5178 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5179 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5180 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5181 | echo "configure:5182: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5182 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5183 | #line 5184 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5184 | #include "confdefs.h" |
| 5185 | |
| 5186 | #ifdef HAVE_STDARG_PROTOTYPES |
| 5187 | #include <stdarg.h> |
| 5188 | #else |
| 5189 | #include <varargs.h> |
| 5190 | #endif |
| 5191 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5192 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5193 | va_list list1, list2; list1 = list2; |
| 5194 | ; return 0; } |
| 5195 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5196 | if { (eval echo configure:5197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5197 | : |
| 5198 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5199 | echo "configure: failed program was:" >&5 |
| 5200 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5201 | rm -rf conftest* |
| 5202 | cat >> confdefs.h <<\EOF |
| 5203 | #define VA_LIST_IS_ARRAY 1 |
| 5204 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5205 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5206 | fi |
| 5207 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5208 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5209 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5210 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 5211 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5212 | echo "configure:5213: checking for gethostbyname_r" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5213 | 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] | 5214 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5215 | else |
| 5216 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5217 | #line 5218 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5218 | #include "confdefs.h" |
| 5219 | /* System header to define __stub macros and hopefully few prototypes, |
| 5220 | which can conflict with char gethostbyname_r(); below. */ |
| 5221 | #include <assert.h> |
| 5222 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5223 | /* We use char because int might match the return type of a gcc2 |
| 5224 | builtin and then its argument prototype would still apply. */ |
| 5225 | char gethostbyname_r(); |
| 5226 | |
| 5227 | int main() { |
| 5228 | |
| 5229 | /* The GNU C library defines this for functions which it implements |
| 5230 | to always fail with ENOSYS. Some functions are actually named |
| 5231 | something starting with __ and the normal name is an alias. */ |
| 5232 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 5233 | choke me |
| 5234 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5235 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5236 | #endif |
| 5237 | |
| 5238 | ; return 0; } |
| 5239 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5240 | if { (eval echo configure:5241: \"$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] | 5241 | rm -rf conftest* |
| 5242 | eval "ac_cv_func_gethostbyname_r=yes" |
| 5243 | else |
| 5244 | echo "configure: failed program was:" >&5 |
| 5245 | cat conftest.$ac_ext >&5 |
| 5246 | rm -rf conftest* |
| 5247 | eval "ac_cv_func_gethostbyname_r=no" |
| 5248 | fi |
| 5249 | rm -f conftest* |
| 5250 | fi |
| 5251 | |
| 5252 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 5253 | echo "$ac_t""yes" 1>&6 |
| 5254 | |
| 5255 | cat >> confdefs.h <<\EOF |
| 5256 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5257 | EOF |
| 5258 | |
| 5259 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5260 | echo "configure:5261: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5261 | OLD_CFLAGS=$CFLAGS |
| 5262 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 5263 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5264 | #line 5265 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5265 | #include "confdefs.h" |
| 5266 | |
| 5267 | # include <netdb.h> |
| 5268 | |
| 5269 | int main() { |
| 5270 | |
| 5271 | char *name; |
| 5272 | struct hostent *he, *res; |
| 5273 | char buffer[2048]; |
| 5274 | int buflen = 2048; |
| 5275 | int h_errnop; |
| 5276 | |
| 5277 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 5278 | |
| 5279 | ; return 0; } |
| 5280 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5281 | if { (eval echo configure:5282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5282 | rm -rf conftest* |
| 5283 | |
| 5284 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5285 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5286 | EOF |
| 5287 | |
| 5288 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5289 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 5290 | EOF |
| 5291 | |
| 5292 | echo "$ac_t""yes" 1>&6 |
| 5293 | |
| 5294 | else |
| 5295 | echo "configure: failed program was:" >&5 |
| 5296 | cat conftest.$ac_ext >&5 |
| 5297 | rm -rf conftest* |
| 5298 | |
| 5299 | echo "$ac_t""no" 1>&6 |
| 5300 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5301 | echo "configure:5302: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5302 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5303 | #line 5304 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5304 | #include "confdefs.h" |
| 5305 | |
| 5306 | # include <netdb.h> |
| 5307 | |
| 5308 | int main() { |
| 5309 | |
| 5310 | char *name; |
| 5311 | struct hostent *he; |
| 5312 | char buffer[2048]; |
| 5313 | int buflen = 2048; |
| 5314 | int h_errnop; |
| 5315 | |
| 5316 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 5317 | |
| 5318 | ; return 0; } |
| 5319 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5320 | if { (eval echo configure:5321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5321 | rm -rf conftest* |
| 5322 | |
| 5323 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5324 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5325 | EOF |
| 5326 | |
| 5327 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5328 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 5329 | EOF |
| 5330 | |
| 5331 | echo "$ac_t""yes" 1>&6 |
| 5332 | |
| 5333 | else |
| 5334 | echo "configure: failed program was:" >&5 |
| 5335 | cat conftest.$ac_ext >&5 |
| 5336 | rm -rf conftest* |
| 5337 | |
| 5338 | echo "$ac_t""no" 1>&6 |
| 5339 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5340 | echo "configure:5341: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5341 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5342 | #line 5343 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5343 | #include "confdefs.h" |
| 5344 | |
| 5345 | # include <netdb.h> |
| 5346 | |
| 5347 | int main() { |
| 5348 | |
| 5349 | char *name; |
| 5350 | struct hostent *he; |
| 5351 | struct hostent_data data; |
| 5352 | |
| 5353 | (void) gethostbyname_r(name, he, &data); |
| 5354 | |
| 5355 | ; return 0; } |
| 5356 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5357 | if { (eval echo configure:5358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5358 | rm -rf conftest* |
| 5359 | |
| 5360 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5361 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5362 | EOF |
| 5363 | |
| 5364 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5365 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 5366 | EOF |
| 5367 | |
| 5368 | echo "$ac_t""yes" 1>&6 |
| 5369 | |
| 5370 | else |
| 5371 | echo "configure: failed program was:" >&5 |
| 5372 | cat conftest.$ac_ext >&5 |
| 5373 | rm -rf conftest* |
| 5374 | |
| 5375 | echo "$ac_t""no" 1>&6 |
| 5376 | |
| 5377 | fi |
| 5378 | rm -f conftest* |
| 5379 | |
| 5380 | fi |
| 5381 | rm -f conftest* |
| 5382 | |
| 5383 | fi |
| 5384 | rm -f conftest* |
| 5385 | CFLAGS=$OLD_CFLAGS |
| 5386 | |
| 5387 | else |
| 5388 | echo "$ac_t""no" 1>&6 |
| 5389 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5390 | for ac_func in gethostbyname |
| 5391 | do |
| 5392 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5393 | echo "configure:5394: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5394 | 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] | 5395 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5396 | else |
| 5397 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5398 | #line 5399 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5399 | #include "confdefs.h" |
| 5400 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5401 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5402 | #include <assert.h> |
| 5403 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5404 | /* We use char because int might match the return type of a gcc2 |
| 5405 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5406 | char $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5407 | |
| 5408 | int main() { |
| 5409 | |
| 5410 | /* The GNU C library defines this for functions which it implements |
| 5411 | to always fail with ENOSYS. Some functions are actually named |
| 5412 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5413 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5414 | choke me |
| 5415 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5416 | $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5417 | #endif |
| 5418 | |
| 5419 | ; return 0; } |
| 5420 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5421 | if { (eval echo configure:5422: \"$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] | 5422 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5423 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5424 | else |
| 5425 | echo "configure: failed program was:" >&5 |
| 5426 | cat conftest.$ac_ext >&5 |
| 5427 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5428 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5429 | fi |
| 5430 | rm -f conftest* |
| 5431 | fi |
| 5432 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5433 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5434 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5435 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5436 | cat >> confdefs.h <<EOF |
| 5437 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5438 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5439 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5440 | else |
| 5441 | echo "$ac_t""no" 1>&6 |
| 5442 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5443 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5444 | |
| 5445 | |
| 5446 | fi |
| 5447 | |
| 5448 | |
| 5449 | |
| 5450 | |
| 5451 | |
| 5452 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5453 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5454 | # checks for system services |
| 5455 | # (none yet) |
| 5456 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5457 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5458 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5459 | echo "configure:5460: checking for __fpu_control" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5460 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5461 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5462 | else |
| 5463 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5464 | #line 5465 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5465 | #include "confdefs.h" |
| 5466 | /* System header to define __stub macros and hopefully few prototypes, |
| 5467 | which can conflict with char __fpu_control(); below. */ |
| 5468 | #include <assert.h> |
| 5469 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5470 | /* We use char because int might match the return type of a gcc2 |
| 5471 | builtin and then its argument prototype would still apply. */ |
| 5472 | char __fpu_control(); |
| 5473 | |
| 5474 | int main() { |
| 5475 | |
| 5476 | /* The GNU C library defines this for functions which it implements |
| 5477 | to always fail with ENOSYS. Some functions are actually named |
| 5478 | something starting with __ and the normal name is an alias. */ |
| 5479 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 5480 | choke me |
| 5481 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5482 | __fpu_control(); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5483 | #endif |
| 5484 | |
| 5485 | ; return 0; } |
| 5486 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5487 | if { (eval echo configure:5488: \"$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] | 5488 | rm -rf conftest* |
| 5489 | eval "ac_cv_func___fpu_control=yes" |
| 5490 | else |
| 5491 | echo "configure: failed program was:" >&5 |
| 5492 | cat conftest.$ac_ext >&5 |
| 5493 | rm -rf conftest* |
| 5494 | eval "ac_cv_func___fpu_control=no" |
| 5495 | fi |
| 5496 | rm -f conftest* |
| 5497 | fi |
| 5498 | |
| 5499 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 5500 | echo "$ac_t""yes" 1>&6 |
| 5501 | : |
| 5502 | else |
| 5503 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5504 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5505 | echo "configure:5506: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5506 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5507 | 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] | 5508 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5509 | else |
| 5510 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5511 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5512 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5513 | #line 5514 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5514 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5515 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5516 | /* We use char because int might match the return type of a gcc2 |
| 5517 | builtin and then its argument prototype would still apply. */ |
| 5518 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5519 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5520 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5521 | __fpu_control() |
| 5522 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5523 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5524 | if { (eval echo configure:5525: \"$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] | 5525 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5526 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5527 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5528 | echo "configure: failed program was:" >&5 |
| 5529 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5530 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5531 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5532 | fi |
| 5533 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5534 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5535 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5536 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5537 | 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] | 5538 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5539 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5540 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5541 | cat >> confdefs.h <<EOF |
| 5542 | #define $ac_tr_lib 1 |
| 5543 | EOF |
| 5544 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5545 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5546 | |
| 5547 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5548 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5549 | fi |
| 5550 | |
| 5551 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5552 | fi |
| 5553 | |
| 5554 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5555 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5556 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5557 | echo "configure:5558: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5558 | # Check whether --with-fpectl or --without-fpectl was given. |
| 5559 | if test "${with_fpectl+set}" = set; then |
| 5560 | withval="$with_fpectl" |
| 5561 | |
| 5562 | if test "$withval" != no |
| 5563 | then cat >> confdefs.h <<\EOF |
| 5564 | #define WANT_SIGFPE_HANDLER 1 |
| 5565 | EOF |
| 5566 | echo "$ac_t""yes" 1>&6 |
| 5567 | else echo "$ac_t""no" 1>&6 |
| 5568 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5569 | else |
| 5570 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5571 | fi |
| 5572 | |
| 5573 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5574 | # check for --with-libm=... |
| 5575 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5576 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5577 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5578 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5579 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5580 | *) LIBM=-lm |
| 5581 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5582 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5583 | echo "configure:5584: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5584 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5585 | if test "${with_libm+set}" = set; then |
| 5586 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5587 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5588 | if test "$withval" = no |
| 5589 | then LIBM= |
| 5590 | echo "$ac_t""force LIBM empty" 1>&6 |
| 5591 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5592 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5593 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5594 | 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] | 5595 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5596 | else |
| 5597 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5598 | fi |
| 5599 | |
| 5600 | |
| 5601 | # check for --with-libc=... |
| 5602 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5603 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5604 | echo "configure:5605: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5605 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5606 | if test "${with_libc+set}" = set; then |
| 5607 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5608 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5609 | if test "$withval" = no |
| 5610 | then LIBC= |
| 5611 | echo "$ac_t""force LIBC empty" 1>&6 |
| 5612 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5613 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5614 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5615 | 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] | 5616 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5617 | else |
| 5618 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5619 | fi |
| 5620 | |
| 5621 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5622 | # check for hypot() in math library |
| 5623 | LIBS_SAVE=$LIBS |
| 5624 | LIBS="$LIBS $LIBM" |
| 5625 | for ac_func in hypot |
| 5626 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5627 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5628 | echo "configure:5629: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5629 | 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] | 5630 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5631 | else |
| 5632 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5633 | #line 5634 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5634 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5635 | /* System header to define __stub macros and hopefully few prototypes, |
| 5636 | which can conflict with char $ac_func(); below. */ |
| 5637 | #include <assert.h> |
| 5638 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5639 | /* We use char because int might match the return type of a gcc2 |
| 5640 | builtin and then its argument prototype would still apply. */ |
| 5641 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5642 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5643 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5644 | |
| 5645 | /* The GNU C library defines this for functions which it implements |
| 5646 | to always fail with ENOSYS. Some functions are actually named |
| 5647 | something starting with __ and the normal name is an alias. */ |
| 5648 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5649 | choke me |
| 5650 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5651 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5652 | #endif |
| 5653 | |
| 5654 | ; return 0; } |
| 5655 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5656 | if { (eval echo configure:5657: \"$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] | 5657 | rm -rf conftest* |
| 5658 | eval "ac_cv_func_$ac_func=yes" |
| 5659 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5660 | echo "configure: failed program was:" >&5 |
| 5661 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5662 | rm -rf conftest* |
| 5663 | eval "ac_cv_func_$ac_func=no" |
| 5664 | fi |
| 5665 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5666 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5667 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5668 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5669 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5670 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5671 | cat >> confdefs.h <<EOF |
| 5672 | #define $ac_tr_func 1 |
| 5673 | EOF |
| 5674 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5675 | else |
| 5676 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5677 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5678 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5679 | done |
| 5680 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5681 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5682 | LIBS=$LIBS_SAVE |
| 5683 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5684 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5685 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5686 | echo "configure:5687: checking what malloc(0) returns" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5687 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5688 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5689 | else |
| 5690 | if test "$cross_compiling" = yes; then |
| 5691 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5692 | else |
| 5693 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5694 | #line 5695 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5695 | #include "confdefs.h" |
| 5696 | #include <stdio.h> |
| 5697 | #ifdef HAVE_STDLIB |
| 5698 | #include <stdlib.h> |
| 5699 | #else |
| 5700 | char *malloc(), *realloc(); |
| 5701 | int *free(); |
| 5702 | #endif |
| 5703 | main() { |
| 5704 | char *p; |
| 5705 | p = malloc(0); |
| 5706 | if (p == NULL) exit(1); |
| 5707 | p = realloc(p, 0); |
| 5708 | if (p == NULL) exit(1); |
| 5709 | free(p); |
| 5710 | exit(0); |
| 5711 | } |
| 5712 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5713 | if { (eval echo configure:5714: \"$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] | 5714 | then |
| 5715 | ac_cv_malloc_zero=nonnull |
| 5716 | else |
| 5717 | echo "configure: failed program was:" >&5 |
| 5718 | cat conftest.$ac_ext >&5 |
| 5719 | rm -fr conftest* |
| 5720 | ac_cv_malloc_zero=null |
| 5721 | fi |
| 5722 | rm -fr conftest* |
| 5723 | fi |
| 5724 | |
| 5725 | fi |
| 5726 | |
| 5727 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 5728 | if test "$ac_cv_malloc_zero" = null |
| 5729 | then |
| 5730 | cat >> confdefs.h <<\EOF |
| 5731 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 5732 | EOF |
| 5733 | |
| 5734 | fi |
| 5735 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5736 | # check for wchar.h |
| 5737 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 5738 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5739 | echo "configure:5740: checking for wchar.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5740 | 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] | 5741 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5742 | else |
| 5743 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5744 | #line 5745 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5745 | #include "confdefs.h" |
| 5746 | #include <wchar.h> |
| 5747 | EOF |
| 5748 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5749 | { (eval echo configure:5750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5750 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5751 | if test -z "$ac_err"; then |
| 5752 | rm -rf conftest* |
| 5753 | eval "ac_cv_header_$ac_safe=yes" |
| 5754 | else |
| 5755 | echo "$ac_err" >&5 |
| 5756 | echo "configure: failed program was:" >&5 |
| 5757 | cat conftest.$ac_ext >&5 |
| 5758 | rm -rf conftest* |
| 5759 | eval "ac_cv_header_$ac_safe=no" |
| 5760 | fi |
| 5761 | rm -f conftest* |
| 5762 | fi |
| 5763 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5764 | echo "$ac_t""yes" 1>&6 |
| 5765 | cat >> confdefs.h <<\EOF |
| 5766 | #define HAVE_WCHAR_H 1 |
| 5767 | EOF |
| 5768 | wchar_h="yes" |
| 5769 | else |
| 5770 | echo "$ac_t""no" 1>&6 |
| 5771 | wchar_h="no" |
| 5772 | |
| 5773 | fi |
| 5774 | |
| 5775 | |
| 5776 | # check for usable wchar_t |
| 5777 | usable_wchar_t="unkown" |
| 5778 | echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5779 | echo "configure:5780: checking for usable wchar_t" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5780 | if test "$cross_compiling" = yes; then |
| 5781 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5782 | else |
| 5783 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5784 | #line 5785 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5785 | #include "confdefs.h" |
| 5786 | |
| 5787 | #include "wchar.h" |
| 5788 | #include "wctype.h" |
| 5789 | main() { |
| 5790 | wchar_t s; |
| 5791 | if (sizeof(s) == 2) |
| 5792 | exit(0); |
| 5793 | else |
| 5794 | exit(1); |
| 5795 | } |
| 5796 | |
| 5797 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5798 | if { (eval echo configure:5799: \"$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] | 5799 | then |
| 5800 | cat >> confdefs.h <<\EOF |
| 5801 | #define HAVE_USABLE_WCHAR_T 1 |
| 5802 | EOF |
| 5803 | usable_wchar_t="yes" |
| 5804 | else |
| 5805 | echo "configure: failed program was:" >&5 |
| 5806 | cat conftest.$ac_ext >&5 |
| 5807 | rm -fr conftest* |
| 5808 | usable_wchar_t="no" |
| 5809 | fi |
| 5810 | rm -fr conftest* |
| 5811 | fi |
| 5812 | |
| 5813 | echo "$ac_t""$usable_wchar_t" 1>&6 |
| 5814 | |
| 5815 | # check for endianness |
| 5816 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5817 | echo "configure:5818: checking whether byte ordering is bigendian" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5818 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5819 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5820 | else |
| 5821 | ac_cv_c_bigendian=unknown |
| 5822 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5823 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5824 | #line 5825 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5825 | #include "confdefs.h" |
| 5826 | #include <sys/types.h> |
| 5827 | #include <sys/param.h> |
| 5828 | int main() { |
| 5829 | |
| 5830 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5831 | bogus endian macros |
| 5832 | #endif |
| 5833 | ; return 0; } |
| 5834 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5835 | if { (eval echo configure:5836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5836 | rm -rf conftest* |
| 5837 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5838 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5839 | #line 5840 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5840 | #include "confdefs.h" |
| 5841 | #include <sys/types.h> |
| 5842 | #include <sys/param.h> |
| 5843 | int main() { |
| 5844 | |
| 5845 | #if BYTE_ORDER != BIG_ENDIAN |
| 5846 | not big endian |
| 5847 | #endif |
| 5848 | ; return 0; } |
| 5849 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5850 | if { (eval echo configure:5851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5851 | rm -rf conftest* |
| 5852 | ac_cv_c_bigendian=yes |
| 5853 | else |
| 5854 | echo "configure: failed program was:" >&5 |
| 5855 | cat conftest.$ac_ext >&5 |
| 5856 | rm -rf conftest* |
| 5857 | ac_cv_c_bigendian=no |
| 5858 | fi |
| 5859 | rm -f conftest* |
| 5860 | else |
| 5861 | echo "configure: failed program was:" >&5 |
| 5862 | cat conftest.$ac_ext >&5 |
| 5863 | fi |
| 5864 | rm -f conftest* |
| 5865 | if test $ac_cv_c_bigendian = unknown; then |
| 5866 | if test "$cross_compiling" = yes; then |
| 5867 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5868 | else |
| 5869 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5870 | #line 5871 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5871 | #include "confdefs.h" |
| 5872 | main () { |
| 5873 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5874 | union |
| 5875 | { |
| 5876 | long l; |
| 5877 | char c[sizeof (long)]; |
| 5878 | } u; |
| 5879 | u.l = 1; |
| 5880 | exit (u.c[sizeof (long) - 1] == 1); |
| 5881 | } |
| 5882 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5883 | if { (eval echo configure:5884: \"$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] | 5884 | then |
| 5885 | ac_cv_c_bigendian=no |
| 5886 | else |
| 5887 | echo "configure: failed program was:" >&5 |
| 5888 | cat conftest.$ac_ext >&5 |
| 5889 | rm -fr conftest* |
| 5890 | ac_cv_c_bigendian=yes |
| 5891 | fi |
| 5892 | rm -fr conftest* |
| 5893 | fi |
| 5894 | |
| 5895 | fi |
| 5896 | fi |
| 5897 | |
| 5898 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5899 | if test $ac_cv_c_bigendian = yes; then |
| 5900 | cat >> confdefs.h <<\EOF |
| 5901 | #define WORDS_BIGENDIAN 1 |
| 5902 | EOF |
| 5903 | |
| 5904 | fi |
| 5905 | |
| 5906 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5907 | # Check whether right shifting a negative integer extends the sign bit |
| 5908 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 5909 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5910 | echo "configure:5911: checking whether right shift extends the sign bit" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5911 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5912 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5913 | else |
| 5914 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5915 | if test "$cross_compiling" = yes; then |
| 5916 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5917 | else |
| 5918 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5919 | #line 5920 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5920 | #include "confdefs.h" |
| 5921 | |
| 5922 | int main() |
| 5923 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5924 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5925 | } |
| 5926 | |
| 5927 | EOF |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 5928 | if { (eval echo configure:5929: \"$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] | 5929 | then |
| 5930 | ac_cv_rshift_extends_sign=yes |
| 5931 | else |
| 5932 | echo "configure: failed program was:" >&5 |
| 5933 | cat conftest.$ac_ext >&5 |
| 5934 | rm -fr conftest* |
| 5935 | ac_cv_rshift_extends_sign=no |
| 5936 | fi |
| 5937 | rm -fr conftest* |
| 5938 | fi |
| 5939 | |
| 5940 | fi |
| 5941 | |
| 5942 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 5943 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5944 | then |
| 5945 | cat >> confdefs.h <<\EOF |
| 5946 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 5947 | EOF |
| 5948 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5949 | fi |
| 5950 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame^] | 5951 | # check for getc_unlocked and related locking functions |
| 5952 | echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6 |
| 5953 | echo "configure:5954: checking for getc_unlocked() and friends" >&5 |
| 5954 | if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then |
| 5955 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5956 | else |
| 5957 | |
| 5958 | cat > conftest.$ac_ext <<EOF |
| 5959 | #line 5960 "configure" |
| 5960 | #include "confdefs.h" |
| 5961 | #include <stdio.h> |
| 5962 | int main() { |
| 5963 | |
| 5964 | FILE *f = fopen("/dev/null", "r"); |
| 5965 | flockfile(f); |
| 5966 | getc_unlocked(f); |
| 5967 | funlockfile(f); |
| 5968 | |
| 5969 | ; return 0; } |
| 5970 | EOF |
| 5971 | if { (eval echo configure:5972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5972 | rm -rf conftest* |
| 5973 | ac_cv_have_getc_unlocked=yes |
| 5974 | else |
| 5975 | echo "configure: failed program was:" >&5 |
| 5976 | cat conftest.$ac_ext >&5 |
| 5977 | rm -rf conftest* |
| 5978 | ac_cv_have_getc_unlocked=no |
| 5979 | fi |
| 5980 | rm -f conftest* |
| 5981 | fi |
| 5982 | |
| 5983 | echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6 |
| 5984 | if test "$ac_cv_have_getc_unlocked" = yes |
| 5985 | then |
| 5986 | cat >> confdefs.h <<\EOF |
| 5987 | #define HAVE_GETC_UNLOCKED 1 |
| 5988 | EOF |
| 5989 | |
| 5990 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5991 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5992 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 5993 | # Add sys/socket.h to confdefs.h |
| 5994 | cat >> confdefs.h <<\EOF |
| 5995 | #ifdef HAVE_SYS_SOCKET_H |
| 5996 | #include <sys/socket.h> |
| 5997 | #endif |
| 5998 | EOF |
| 5999 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame^] | 6000 | echo "configure:6001: checking for socklen_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6001 | 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] | 6002 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6003 | else |
| 6004 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame^] | 6005 | #line 6006 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6006 | #include "confdefs.h" |
| 6007 | #include <sys/types.h> |
| 6008 | #if STDC_HEADERS |
| 6009 | #include <stdlib.h> |
| 6010 | #include <stddef.h> |
| 6011 | #endif |
| 6012 | EOF |
| 6013 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6014 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6015 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6016 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6017 | else |
| 6018 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6019 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6020 | fi |
| 6021 | rm -f conftest* |
| 6022 | |
| 6023 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6024 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 6025 | if test $ac_cv_type_socklen_t = no; then |
| 6026 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6027 | #define socklen_t int |
| 6028 | EOF |
| 6029 | |
| 6030 | fi |
| 6031 | |
| 6032 | |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 6033 | echo $ac_n "checking for Modules/Setup""... $ac_c" 1>&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame^] | 6034 | echo "configure:6035: checking for Modules/Setup" >&5 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 6035 | if test ! -f Modules/Setup ; then |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 6036 | if test ! -d Modules ; then |
| 6037 | mkdir Modules |
| 6038 | fi |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 6039 | cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 6040 | echo "$ac_t""creating" 1>&6 |
| 6041 | else |
| 6042 | echo "$ac_t""already exists" 1>&6 |
| 6043 | fi |
| 6044 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6045 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6046 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6047 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6048 | # This file is a shell script that caches the results of configure |
| 6049 | # tests run on this system so they can be shared between configure |
| 6050 | # scripts and configure runs. It is not useful on other systems. |
| 6051 | # If it contains results you don't want to keep, you may remove or edit it. |
| 6052 | # |
| 6053 | # By default, configure uses ./config.cache as the cache file, |
| 6054 | # creating it if it does not exist already. You can give configure |
| 6055 | # the --cache-file=FILE option to use a different cache file; that is |
| 6056 | # what configure does when it calls configure scripts in |
| 6057 | # subdirectories, so they share the cache. |
| 6058 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6059 | # config.status only pays attention to the cache file if you give it the |
| 6060 | # --recheck option to rerun configure. |
| 6061 | # |
| 6062 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6063 | # The following way of writing the cache mishandles newlines in values, |
| 6064 | # but we know of no workaround that is simple, portable, and efficient. |
| 6065 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6066 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6067 | # 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] | 6068 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6069 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6070 | *ac_space=\ *) |
| 6071 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 6072 | # turns \\\\ into \\, and sed turns \\ into \). |
| 6073 | sed -n \ |
| 6074 | -e "s/'/'\\\\''/g" \ |
| 6075 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 6076 | ;; |
| 6077 | *) |
| 6078 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6079 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 6080 | ;; |
| 6081 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6082 | if cmp -s $cache_file confcache; then |
| 6083 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6084 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6085 | if test -w $cache_file; then |
| 6086 | echo "updating cache $cache_file" |
| 6087 | cat confcache > $cache_file |
| 6088 | else |
| 6089 | echo "not updating unwritable cache $cache_file" |
| 6090 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6091 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6092 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6093 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6094 | 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] | 6095 | |
| 6096 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6097 | # Let make expand exec_prefix. |
| 6098 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6099 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6100 | # Any assignment to VPATH causes Sun make to only execute |
| 6101 | # the first set of double-colon rules, so remove it if not needed. |
| 6102 | # If there is a colon in the path, we need to keep it. |
| 6103 | if test "x$srcdir" = x.; then |
| 6104 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 6105 | fi |
| 6106 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6107 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6108 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6109 | DEFS=-DHAVE_CONFIG_H |
| 6110 | |
| 6111 | # Without the "./", some shells look in PATH for config.status. |
| 6112 | : ${CONFIG_STATUS=./config.status} |
| 6113 | |
| 6114 | echo creating $CONFIG_STATUS |
| 6115 | rm -f $CONFIG_STATUS |
| 6116 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6117 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6118 | # Generated automatically by configure. |
| 6119 | # Run this file to recreate the current configuration. |
| 6120 | # This directory was configured as follows, |
| 6121 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6122 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6123 | # $0 $ac_configure_args |
| 6124 | # |
| 6125 | # Compiler output produced by configure, useful for debugging |
| 6126 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6127 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6128 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6129 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6130 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6131 | case "\$ac_option" in |
| 6132 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6133 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6134 | 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] | 6135 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6136 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6137 | exit 0 ;; |
| 6138 | -help | --help | --hel | --he | --h) |
| 6139 | echo "\$ac_cs_usage"; exit 0 ;; |
| 6140 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6141 | esac |
| 6142 | done |
| 6143 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6144 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6145 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6146 | trap 'rm -fr `echo "Makefile \ |
| 6147 | Objects/Makefile \ |
| 6148 | Parser/Makefile \ |
Sjoerd Mullender | a179503 | 2000-08-17 11:41:06 +0000 | [diff] [blame] | 6149 | Grammar/Makefile \ |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6150 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6151 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6152 | 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] | 6153 | EOF |
| 6154 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6155 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6156 | # Protect against being on the right side of a sed subst in config.status. |
| 6157 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6158 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6159 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6160 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6161 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6162 | s%@CFLAGS@%$CFLAGS%g |
| 6163 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 6164 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6165 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6166 | s%@DEFS@%$DEFS%g |
| 6167 | s%@LDFLAGS@%$LDFLAGS%g |
| 6168 | s%@LIBS@%$LIBS%g |
| 6169 | s%@exec_prefix@%$exec_prefix%g |
| 6170 | s%@prefix@%$prefix%g |
| 6171 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6172 | s%@bindir@%$bindir%g |
| 6173 | s%@sbindir@%$sbindir%g |
| 6174 | s%@libexecdir@%$libexecdir%g |
| 6175 | s%@datadir@%$datadir%g |
| 6176 | s%@sysconfdir@%$sysconfdir%g |
| 6177 | s%@sharedstatedir@%$sharedstatedir%g |
| 6178 | s%@localstatedir@%$localstatedir%g |
| 6179 | s%@libdir@%$libdir%g |
| 6180 | s%@includedir@%$includedir%g |
| 6181 | s%@oldincludedir@%$oldincludedir%g |
| 6182 | s%@infodir@%$infodir%g |
| 6183 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 6184 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6185 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 6186 | s%@SGI_ABI@%$SGI_ABI%g |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 6187 | s%@SET_CXX@%$SET_CXX%g |
| 6188 | s%@MAINOBJ@%$MAINOBJ%g |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 6189 | s%@CXX@%$CXX%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6190 | s%@CC@%$CC%g |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 6191 | s%@EXE@%$EXE%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6192 | s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g |
| 6193 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 6194 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6195 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6196 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 6197 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6198 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 6199 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6200 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 6201 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6202 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6203 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6204 | s%@SO@%$SO%g |
| 6205 | s%@LDSHARED@%$LDSHARED%g |
| 6206 | s%@CCSHARED@%$CCSHARED%g |
| 6207 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6208 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 6209 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6210 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 6211 | s%@USE_BSDDB_MODULE@%$USE_BSDDB_MODULE%g |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 6212 | s%@HAVE_LIBDB@%$HAVE_LIBDB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6213 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 6214 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6215 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6216 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 6217 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 6218 | 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] | 6219 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6220 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6221 | s%@LIBM@%$LIBM%g |
| 6222 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6223 | |
| 6224 | CEOF |
| 6225 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6226 | |
| 6227 | cat >> $CONFIG_STATUS <<\EOF |
| 6228 | |
| 6229 | # Split the substitutions into bite-sized pieces for seds with |
| 6230 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6231 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6232 | ac_file=1 # Number of current file. |
| 6233 | ac_beg=1 # First line for current file. |
| 6234 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6235 | ac_more_lines=: |
| 6236 | ac_sed_cmds="" |
| 6237 | while $ac_more_lines; do |
| 6238 | if test $ac_beg -gt 1; then |
| 6239 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6240 | else |
| 6241 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6242 | fi |
| 6243 | if test ! -s conftest.s$ac_file; then |
| 6244 | ac_more_lines=false |
| 6245 | rm -f conftest.s$ac_file |
| 6246 | else |
| 6247 | if test -z "$ac_sed_cmds"; then |
| 6248 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6249 | else |
| 6250 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6251 | fi |
| 6252 | ac_file=`expr $ac_file + 1` |
| 6253 | ac_beg=$ac_end |
| 6254 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6255 | fi |
| 6256 | done |
| 6257 | if test -z "$ac_sed_cmds"; then |
| 6258 | ac_sed_cmds=cat |
| 6259 | fi |
| 6260 | EOF |
| 6261 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6262 | cat >> $CONFIG_STATUS <<EOF |
| 6263 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6264 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 6265 | Objects/Makefile \ |
| 6266 | Parser/Makefile \ |
Sjoerd Mullender | a179503 | 2000-08-17 11:41:06 +0000 | [diff] [blame] | 6267 | Grammar/Makefile \ |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6268 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6269 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6270 | Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6271 | EOF |
| 6272 | cat >> $CONFIG_STATUS <<\EOF |
| 6273 | 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] | 6274 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6275 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6276 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6277 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6278 | *) ac_file_in="${ac_file}.in" ;; |
| 6279 | esac |
| 6280 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6281 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6282 | |
| 6283 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6284 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6285 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6286 | # The file is in a subdirectory. |
| 6287 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6288 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6289 | # A "../" for each directory in $ac_dir_suffix. |
| 6290 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6291 | else |
| 6292 | ac_dir_suffix= ac_dots= |
| 6293 | fi |
| 6294 | |
| 6295 | case "$ac_given_srcdir" in |
| 6296 | .) srcdir=. |
| 6297 | if test -z "$ac_dots"; then top_srcdir=. |
| 6298 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6299 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6300 | *) # Relative path. |
| 6301 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6302 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6303 | esac |
| 6304 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6305 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6306 | echo creating "$ac_file" |
| 6307 | rm -f "$ac_file" |
| 6308 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6309 | case "$ac_file" in |
| 6310 | *Makefile*) ac_comsub="1i\\ |
| 6311 | # $configure_input" ;; |
| 6312 | *) ac_comsub= ;; |
| 6313 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6314 | |
| 6315 | 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] | 6316 | sed -e "$ac_comsub |
| 6317 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6318 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6319 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6320 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6321 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6322 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6323 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6324 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 6325 | # 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] | 6326 | # |
| 6327 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6328 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 6329 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6330 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6331 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6332 | # 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] | 6333 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6334 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6335 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6336 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6337 | # 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] | 6338 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6339 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6340 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6341 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6342 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6343 | if test "${CONFIG_HEADERS+set}" != set; then |
| 6344 | EOF |
| 6345 | cat >> $CONFIG_STATUS <<EOF |
| 6346 | CONFIG_HEADERS="config.h" |
| 6347 | EOF |
| 6348 | cat >> $CONFIG_STATUS <<\EOF |
| 6349 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6350 | 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] | 6351 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6352 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6353 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6354 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6355 | *) ac_file_in="${ac_file}.in" ;; |
| 6356 | esac |
| 6357 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6358 | echo creating $ac_file |
| 6359 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6360 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6361 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6362 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6363 | |
| 6364 | EOF |
| 6365 | |
| 6366 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 6367 | # 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] | 6368 | # 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] | 6369 | # Protect against being in an unquoted here document in config.status. |
| 6370 | rm -f conftest.vals |
| 6371 | cat > conftest.hdr <<\EOF |
| 6372 | s/[\\&%]/\\&/g |
| 6373 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6374 | 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] | 6375 | s%ac_d%ac_u%gp |
| 6376 | s%ac_u%ac_e%gp |
| 6377 | EOF |
| 6378 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 6379 | rm -f conftest.hdr |
| 6380 | |
| 6381 | # This sed command replaces #undef with comments. This is necessary, for |
| 6382 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6383 | # on some systems where configure will not decide to define it. |
| 6384 | cat >> conftest.vals <<\EOF |
| 6385 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6386 | EOF |
| 6387 | |
| 6388 | # Break up conftest.vals because some shells have a limit on |
| 6389 | # 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] | 6390 | |
| 6391 | rm -f conftest.tail |
| 6392 | while : |
| 6393 | do |
| 6394 | ac_lines=`grep -c . conftest.vals` |
| 6395 | # grep -c gives empty output for an empty file on some AIX systems. |
| 6396 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6397 | # Write a limited-size here document to conftest.frag. |
| 6398 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6399 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6400 | echo 'CEOF |
| 6401 | sed -f conftest.frag conftest.in > conftest.out |
| 6402 | rm -f conftest.in |
| 6403 | mv conftest.out conftest.in |
| 6404 | ' >> $CONFIG_STATUS |
| 6405 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6406 | rm -f conftest.vals |
| 6407 | mv conftest.tail conftest.vals |
| 6408 | done |
| 6409 | rm -f conftest.vals |
| 6410 | |
| 6411 | cat >> $CONFIG_STATUS <<\EOF |
| 6412 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6413 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6414 | cat conftest.in >> conftest.h |
| 6415 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6416 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6417 | echo "$ac_file is unchanged" |
| 6418 | rm -f conftest.h |
| 6419 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6420 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6421 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6422 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6423 | # The file is in a subdirectory. |
| 6424 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6425 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6426 | rm -f $ac_file |
| 6427 | mv conftest.h $ac_file |
| 6428 | fi |
| 6429 | fi; done |
| 6430 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6431 | EOF |
| 6432 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6433 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6434 | EOF |
| 6435 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6436 | |
| 6437 | exit 0 |
| 6438 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6439 | chmod +x $CONFIG_STATUS |
| 6440 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6441 | 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] | 6442 | |