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 | |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame^] | 3 | # From configure.in Revision: 1.147 |
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. |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +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 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 19 | --with-next-framework Build (OpenStep|Rhapsody|MacOSX) framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 20 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 21 | --with-dyld Use (OpenStep|Rhapsody|MacOSX) 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 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 27 | --with-libs='lib1 ...' link against additional libs" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 28 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 29 | --with(out)-readline obsolete, edit Modules/Setup instead" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 30 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 31 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 32 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 33 | --with(out)-threads[=DIRECTORY] disable/enable thread support" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 34 | ac_help="$ac_help |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 35 | --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 36 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 37 | --with(out)-cycle-gc disable/enable garbage collection" |
| 38 | ac_help="$ac_help |
| 39 | --with-wctype-functions use wctype.h functions" |
| 40 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 41 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 42 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 43 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 44 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 45 | --with-fpectl enable SIGFPE catching" |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 46 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 47 | --with-libm=STRING math library" |
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-libc=STRING C library" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 50 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 51 | # Initialize some variables set by options. |
| 52 | # The variables have the same names as the options, with |
| 53 | # dashes changed to underlines. |
| 54 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 55 | cache_file=./config.cache |
| 56 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 57 | host=NONE |
| 58 | no_create= |
| 59 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 60 | no_recursion= |
| 61 | prefix=NONE |
| 62 | program_prefix=NONE |
| 63 | program_suffix=NONE |
| 64 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 65 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 66 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 67 | srcdir= |
| 68 | target=NONE |
| 69 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 70 | x_includes=NONE |
| 71 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 72 | bindir='${exec_prefix}/bin' |
| 73 | sbindir='${exec_prefix}/sbin' |
| 74 | libexecdir='${exec_prefix}/libexec' |
| 75 | datadir='${prefix}/share' |
| 76 | sysconfdir='${prefix}/etc' |
| 77 | sharedstatedir='${prefix}/com' |
| 78 | localstatedir='${prefix}/var' |
| 79 | libdir='${exec_prefix}/lib' |
| 80 | includedir='${prefix}/include' |
| 81 | oldincludedir='/usr/include' |
| 82 | infodir='${prefix}/info' |
| 83 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 84 | |
| 85 | # Initialize some other variables. |
| 86 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 87 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 88 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 89 | # Maximum number of lines to put in a shell here document. |
| 90 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 91 | |
| 92 | ac_prev= |
| 93 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 94 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 95 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 96 | # If the previous option needs an argument, assign it. |
| 97 | if test -n "$ac_prev"; then |
| 98 | eval "$ac_prev=\$ac_option" |
| 99 | ac_prev= |
| 100 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 101 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 102 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 103 | case "$ac_option" in |
| 104 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 105 | *) ac_optarg= ;; |
| 106 | esac |
| 107 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 108 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 109 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 110 | case "$ac_option" in |
| 111 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 112 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 113 | ac_prev=bindir ;; |
| 114 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 115 | bindir="$ac_optarg" ;; |
| 116 | |
| 117 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 118 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 119 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 120 | build="$ac_optarg" ;; |
| 121 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 122 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 123 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 124 | ac_prev=cache_file ;; |
| 125 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 126 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 127 | cache_file="$ac_optarg" ;; |
| 128 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 129 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 130 | ac_prev=datadir ;; |
| 131 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 132 | | --da=*) |
| 133 | datadir="$ac_optarg" ;; |
| 134 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 135 | -disable-* | --disable-*) |
| 136 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 137 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 138 | 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] | 139 | { 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] | 140 | fi |
| 141 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 142 | eval "enable_${ac_feature}=no" ;; |
| 143 | |
| 144 | -enable-* | --enable-*) |
| 145 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 146 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 147 | 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] | 148 | { 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] | 149 | fi |
| 150 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 151 | case "$ac_option" in |
| 152 | *=*) ;; |
| 153 | *) ac_optarg=yes ;; |
| 154 | esac |
| 155 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 156 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 157 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 158 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 159 | | --exec | --exe | --ex) |
| 160 | ac_prev=exec_prefix ;; |
| 161 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 162 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 163 | | --exec=* | --exe=* | --ex=*) |
| 164 | exec_prefix="$ac_optarg" ;; |
| 165 | |
| 166 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 167 | # Obsolete; use --with-gas. |
| 168 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 169 | |
| 170 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 171 | # Omit some internal or obsolete options to make the list less imposing. |
| 172 | # 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] | 173 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 174 | Usage: configure [options] [host] |
| 175 | Options: [defaults in brackets after descriptions] |
| 176 | Configuration: |
| 177 | --cache-file=FILE cache test results in FILE |
| 178 | --help print this message |
| 179 | --no-create do not create output files |
| 180 | --quiet, --silent do not print \`checking...' messages |
| 181 | --version print the version of autoconf that created configure |
| 182 | Directory and file names: |
| 183 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 184 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 185 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 186 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 187 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 188 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 189 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 190 | --datadir=DIR read-only architecture-independent data in DIR |
| 191 | [PREFIX/share] |
| 192 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 193 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 194 | [PREFIX/com] |
| 195 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 196 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 197 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 198 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 199 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 200 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 201 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 202 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 203 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 204 | --program-transform-name=PROGRAM |
| 205 | run sed PROGRAM on installed program names |
| 206 | EOF |
| 207 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 208 | Host type: |
| 209 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 210 | --host=HOST configure for HOST [guessed] |
| 211 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 212 | Features and packages: |
| 213 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 214 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 215 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 216 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 217 | --x-includes=DIR X include files are in DIR |
| 218 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 219 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 220 | if test -n "$ac_help"; then |
| 221 | echo "--enable and --with options recognized:$ac_help" |
| 222 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 223 | exit 0 ;; |
| 224 | |
| 225 | -host | --host | --hos | --ho) |
| 226 | ac_prev=host ;; |
| 227 | -host=* | --host=* | --hos=* | --ho=*) |
| 228 | host="$ac_optarg" ;; |
| 229 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 230 | -includedir | --includedir | --includedi | --included | --include \ |
| 231 | | --includ | --inclu | --incl | --inc) |
| 232 | ac_prev=includedir ;; |
| 233 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 234 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 235 | includedir="$ac_optarg" ;; |
| 236 | |
| 237 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 238 | ac_prev=infodir ;; |
| 239 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 240 | infodir="$ac_optarg" ;; |
| 241 | |
| 242 | -libdir | --libdir | --libdi | --libd) |
| 243 | ac_prev=libdir ;; |
| 244 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 245 | libdir="$ac_optarg" ;; |
| 246 | |
| 247 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 248 | | --libexe | --libex | --libe) |
| 249 | ac_prev=libexecdir ;; |
| 250 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 251 | | --libexe=* | --libex=* | --libe=*) |
| 252 | libexecdir="$ac_optarg" ;; |
| 253 | |
| 254 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 255 | | --localstate | --localstat | --localsta | --localst \ |
| 256 | | --locals | --local | --loca | --loc | --lo) |
| 257 | ac_prev=localstatedir ;; |
| 258 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 259 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 260 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 261 | localstatedir="$ac_optarg" ;; |
| 262 | |
| 263 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 264 | ac_prev=mandir ;; |
| 265 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 266 | mandir="$ac_optarg" ;; |
| 267 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 268 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 269 | # Obsolete; use --without-fp. |
| 270 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 271 | |
| 272 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 273 | | --no-cr | --no-c) |
| 274 | no_create=yes ;; |
| 275 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 276 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 277 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 278 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 279 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 280 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 281 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 282 | | --oldin | --oldi | --old | --ol | --o) |
| 283 | ac_prev=oldincludedir ;; |
| 284 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 285 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 286 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 287 | oldincludedir="$ac_optarg" ;; |
| 288 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 289 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 290 | ac_prev=prefix ;; |
| 291 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 292 | prefix="$ac_optarg" ;; |
| 293 | |
| 294 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 295 | | --program-pre | --program-pr | --program-p) |
| 296 | ac_prev=program_prefix ;; |
| 297 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 298 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 299 | program_prefix="$ac_optarg" ;; |
| 300 | |
| 301 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 302 | | --program-suf | --program-su | --program-s) |
| 303 | ac_prev=program_suffix ;; |
| 304 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 305 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 306 | program_suffix="$ac_optarg" ;; |
| 307 | |
| 308 | -program-transform-name | --program-transform-name \ |
| 309 | | --program-transform-nam | --program-transform-na \ |
| 310 | | --program-transform-n | --program-transform- \ |
| 311 | | --program-transform | --program-transfor \ |
| 312 | | --program-transfo | --program-transf \ |
| 313 | | --program-trans | --program-tran \ |
| 314 | | --progr-tra | --program-tr | --program-t) |
| 315 | ac_prev=program_transform_name ;; |
| 316 | -program-transform-name=* | --program-transform-name=* \ |
| 317 | | --program-transform-nam=* | --program-transform-na=* \ |
| 318 | | --program-transform-n=* | --program-transform-=* \ |
| 319 | | --program-transform=* | --program-transfor=* \ |
| 320 | | --program-transfo=* | --program-transf=* \ |
| 321 | | --program-trans=* | --program-tran=* \ |
| 322 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 323 | program_transform_name="$ac_optarg" ;; |
| 324 | |
| 325 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 326 | | -silent | --silent | --silen | --sile | --sil) |
| 327 | silent=yes ;; |
| 328 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 329 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 330 | ac_prev=sbindir ;; |
| 331 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 332 | | --sbi=* | --sb=*) |
| 333 | sbindir="$ac_optarg" ;; |
| 334 | |
| 335 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 336 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 337 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 338 | | --sha | --sh) |
| 339 | ac_prev=sharedstatedir ;; |
| 340 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 341 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 342 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 343 | | --sha=* | --sh=*) |
| 344 | sharedstatedir="$ac_optarg" ;; |
| 345 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 346 | -site | --site | --sit) |
| 347 | ac_prev=site ;; |
| 348 | -site=* | --site=* | --sit=*) |
| 349 | site="$ac_optarg" ;; |
| 350 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 351 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 352 | ac_prev=srcdir ;; |
| 353 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 354 | srcdir="$ac_optarg" ;; |
| 355 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 356 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 357 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 358 | ac_prev=sysconfdir ;; |
| 359 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 360 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 361 | sysconfdir="$ac_optarg" ;; |
| 362 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 363 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 364 | ac_prev=target ;; |
| 365 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 366 | target="$ac_optarg" ;; |
| 367 | |
| 368 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 369 | verbose=yes ;; |
| 370 | |
| 371 | -version | --version | --versio | --versi | --vers) |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 372 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 373 | exit 0 ;; |
| 374 | |
| 375 | -with-* | --with-*) |
| 376 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 377 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 378 | 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] | 379 | { 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] | 380 | fi |
| 381 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 382 | case "$ac_option" in |
| 383 | *=*) ;; |
| 384 | *) ac_optarg=yes ;; |
| 385 | esac |
| 386 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 387 | |
| 388 | -without-* | --without-*) |
| 389 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 390 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 391 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 392 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 393 | fi |
| 394 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 395 | eval "with_${ac_package}=no" ;; |
| 396 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 397 | --x) |
| 398 | # Obsolete; use --with-x. |
| 399 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 400 | |
| 401 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 402 | | --x-incl | --x-inc | --x-in | --x-i) |
| 403 | ac_prev=x_includes ;; |
| 404 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 405 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 406 | x_includes="$ac_optarg" ;; |
| 407 | |
| 408 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 409 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 410 | ac_prev=x_libraries ;; |
| 411 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 412 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 413 | x_libraries="$ac_optarg" ;; |
| 414 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 415 | -*) { 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] | 416 | ;; |
| 417 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 418 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 419 | 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] | 420 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 421 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 422 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 423 | { 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] | 424 | fi |
| 425 | nonopt="$ac_option" |
| 426 | ;; |
| 427 | |
| 428 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 429 | done |
| 430 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 431 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 432 | { 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] | 433 | fi |
| 434 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 435 | 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] | 436 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 437 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 438 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 439 | # 1 file creation |
| 440 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 441 | # 3 some systems may open it to /dev/tty |
| 442 | # 4 used on the Kubota Titan |
| 443 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 444 | # 5 compiler messages saved in config.log |
| 445 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 446 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 447 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 448 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 449 | fi |
| 450 | exec 5>./config.log |
| 451 | |
| 452 | echo "\ |
| 453 | This file contains any messages produced by compilers while |
| 454 | running configure, to aid debugging if configure makes a mistake. |
| 455 | " 1>&5 |
| 456 | |
| 457 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 458 | # Also quote any args containing shell metacharacters. |
| 459 | ac_configure_args= |
| 460 | for ac_arg |
| 461 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 462 | case "$ac_arg" in |
| 463 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 464 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 465 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 466 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 467 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 468 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 469 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 470 | esac |
| 471 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 472 | |
| 473 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 474 | # Only set these to C if already set. These must not be set unconditionally |
| 475 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 476 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 477 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 478 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 479 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 480 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 481 | 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] | 482 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 484 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 485 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 486 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 487 | |
| 488 | # A filename unique to this package, relative to the directory that |
| 489 | # 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] | 490 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 491 | |
| 492 | # Find the source files, if location was not specified. |
| 493 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 494 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 495 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 496 | ac_prog=$0 |
| 497 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 498 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 499 | srcdir=$ac_confdir |
| 500 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 501 | srcdir=.. |
| 502 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 503 | else |
| 504 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 505 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 506 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 507 | if test "$ac_srcdir_defaulted" = yes; then |
| 508 | { 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] | 509 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 510 | { 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] | 511 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 512 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 513 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 514 | |
| 515 | # Prefer explicitly selected file to automatically selected ones. |
| 516 | if test -z "$CONFIG_SITE"; then |
| 517 | if test "x$prefix" != xNONE; then |
| 518 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 519 | else |
| 520 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 521 | fi |
| 522 | fi |
| 523 | for ac_site_file in $CONFIG_SITE; do |
| 524 | if test -r "$ac_site_file"; then |
| 525 | echo "loading site script $ac_site_file" |
| 526 | . "$ac_site_file" |
| 527 | fi |
| 528 | done |
| 529 | |
| 530 | if test -r "$cache_file"; then |
| 531 | echo "loading cache $cache_file" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 532 | . $cache_file |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 533 | else |
| 534 | echo "creating cache $cache_file" |
| 535 | > $cache_file |
| 536 | fi |
| 537 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 538 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 539 | # 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] | 540 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 541 | 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] | 542 | 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] | 543 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 545 | ac_exeext= |
| 546 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 547 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 548 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 549 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 550 | ac_n= ac_c=' |
| 551 | ' ac_t=' ' |
| 552 | else |
| 553 | ac_n=-n ac_c= ac_t= |
| 554 | fi |
| 555 | else |
| 556 | ac_n= ac_c='\c' ac_t= |
| 557 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 558 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 559 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 560 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 561 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 562 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 563 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 564 | VERSION=2.0 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 565 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 566 | # NEXTSTEP stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 567 | 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] | 568 | |
| 569 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 570 | echo "configure:571: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 571 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 572 | if test "${with_next_archs+set}" = set; then |
| 573 | withval="$with_next_archs" |
| 574 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 575 | if test -n "$withval"; then |
| 576 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 577 | # GCC does not currently support multi archs on the NeXT |
| 578 | with_gcc=no |
| 579 | fi |
| 580 | echo "$ac_t""$with_next_archs" 1>&6 |
| 581 | |
| 582 | else |
| 583 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 584 | fi |
| 585 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 586 | |
| 587 | if test -z "$MACHDEP" |
| 588 | then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 589 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 590 | sed -e 's/://' -e 's/\./_/'` && \ |
| 591 | ac_sys_system=next && ac_sys_release=$4 |
| 592 | |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 593 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 594 | fi |
| 595 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 596 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 597 | # Check whether --with-next-framework or --without-next-framework was given. |
| 598 | if test "${with_next_framework+set}" = set; then |
| 599 | withval="$with_next_framework" |
| 600 | : |
| 601 | fi |
| 602 | |
| 603 | # Check whether --with-dyld or --without-dyld was given. |
| 604 | if test "${with_dyld+set}" = set; then |
| 605 | withval="$with_dyld" |
| 606 | : |
| 607 | fi |
| 608 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 609 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 610 | # Set name for machine-dependent library files |
| 611 | |
| 612 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 613 | echo "configure:614: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 614 | if test -z "$MACHDEP" |
| 615 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 616 | ac_sys_system=`uname -s` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 617 | 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] | 618 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 619 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 620 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 621 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 622 | ac_md_system=`echo $ac_sys_system | |
| 623 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 624 | ac_md_release=`echo $ac_sys_release | |
| 625 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 626 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 627 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 628 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 629 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 630 | esac |
| 631 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 632 | |
| 633 | # |
| 634 | # SGI compilers allow the specification of the both the ABI and the |
| 635 | # ISA on the command line. Depending on the values of these switches, |
| 636 | # different and often incompatable code will be generated. |
| 637 | # |
| 638 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 639 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 640 | # variable is also adjusted. |
| 641 | # |
| 642 | |
| 643 | if test ! -z "$SGI_ABI" |
| 644 | then |
| 645 | CC="cc $SGI_ABI" |
| 646 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 647 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 648 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 649 | echo "$ac_t""$MACHDEP" 1>&6 |
| 650 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 651 | # |
| 652 | # CCC is the command that compiles C++ programs |
| 653 | # |
| 654 | # Not all make programs have this predefined. |
| 655 | # |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 656 | #AC_SUBST(SET_CCC) |
| 657 | #AC_MSG_CHECKING(CCC) |
| 658 | #if test -z "$CCC" |
| 659 | #then |
| 660 | # case $ac_sys_system in |
| 661 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 662 | # Linux*) SET_CCC="CCC= g++";; |
| 663 | # *) SET_CCC="" |
| 664 | # esac |
| 665 | #else |
| 666 | # SET_CCC="CCC= ${CCC}" |
| 667 | #fi |
| 668 | #AC_MSG_RESULT($SET_CCC) |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 669 | |
| 670 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 671 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 672 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 673 | echo "configure:674: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 674 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 675 | if test "${with_gcc+set}" = set; then |
| 676 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 677 | |
| 678 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 679 | no) CC=cc |
| 680 | without_gcc=yes;; |
| 681 | yes) CC=gcc |
| 682 | without_gcc=no;; |
| 683 | *) CC=$withval |
| 684 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 685 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 686 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 687 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 688 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 689 | OSF1) CC=cc |
| 690 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 691 | BeOS*) |
| 692 | # Dunno if it's a good idea to get this over with all at once, or |
| 693 | # to handle it in with the other goodies. |
| 694 | MACHDEP=beos |
| 695 | |
| 696 | case $BE_HOST_CPU in |
| 697 | ppc) |
Guido van Rossum | 8137680 | 1999-04-06 15:50:51 +0000 | [diff] [blame] | 698 | CC="mwcc -I$PWD/BeOS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 699 | without_gcc=yes |
Guido van Rossum | 6b9da45 | 1999-03-24 17:48:12 +0000 | [diff] [blame] | 700 | case `uname -r` in |
| 701 | 4.0*) OPT="-DUSE_DL_EXPORT -O7 -opt schedule604 -export pragma" ;; |
| 702 | *) OPT="-DUSE_DL_EXPORT -O2 -proc 604e -export pragma" ;; |
| 703 | esac |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 704 | CCSHARED=-UUSE_DL_EXPORT |
| 705 | LDFLAGS="$LDFLAGS -nodup" |
| 706 | |
| 707 | AR="$PWD/BeOS/ar-fake" |
| 708 | RANLIB=: |
| 709 | |
| 710 | cat >> confdefs.h <<\EOF |
| 711 | #define DL_EXPORT_HEADER "dl_export.h" |
| 712 | EOF |
| 713 | |
| 714 | ;; |
| 715 | x86) |
| 716 | CC="gcc -I$PWD/BeOS" |
| 717 | without_gcc=no |
Guido van Rossum | 32000e8 | 2000-05-22 21:31:50 +0000 | [diff] [blame] | 718 | OPT="-DUSE_DL_EXPORT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 719 | CCSHARED=-UUSE_DL_EXPORT |
| 720 | |
| 721 | AR="$PWD/BeOS/ar-fake" |
| 722 | RANLIB=: |
| 723 | |
| 724 | cat >> confdefs.h <<\EOF |
| 725 | #define DL_EXPORT_HEADER "dl_export.h" |
| 726 | EOF |
| 727 | |
| 728 | ;; |
| 729 | *) |
| 730 | { echo "configure: error: Your BeOS system isn't PowerPC or x86... neat" 1>&2; exit 1; } |
| 731 | ;; |
| 732 | esac |
| 733 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 734 | Monterey*) |
| 735 | RANLIB=: |
| 736 | without_gcc=;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 737 | *) without_gcc=no;; |
| 738 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 739 | fi |
| 740 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 741 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 742 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 743 | |
| 744 | |
| 745 | MAINOBJ=python.o |
| 746 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 747 | echo "configure:748: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 748 | # Check whether --with-cxx or --without-cxx was given. |
| 749 | if test "${with_cxx+set}" = set; then |
| 750 | withval="$with_cxx" |
| 751 | |
| 752 | case $withval in |
| 753 | no) CXX= |
| 754 | with_cxx=no;; |
| 755 | *) CXX=$withval |
| 756 | MAINOBJ=ccpython.o |
| 757 | with_cxx=$withval;; |
| 758 | esac |
| 759 | else |
| 760 | |
| 761 | with_cxx=no |
| 762 | |
| 763 | fi |
| 764 | |
| 765 | echo "$ac_t""$with_cxx" 1>&6 |
| 766 | SET_CXX="CXX = $CXX" |
| 767 | |
| 768 | #AC_MSG_CHECKING(CCC) |
| 769 | #if test -z "$CCC" |
| 770 | #then |
| 771 | # case $ac_sys_system in |
| 772 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 773 | # Linux*) SET_CCC="CCC= g++";; |
| 774 | # *) SET_CCC="" |
| 775 | # esac |
| 776 | #else |
| 777 | # SET_CCC="CCC= ${CCC}" |
| 778 | #fi |
| 779 | #AC_MSG_RESULT($SET_CCC) |
| 780 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 781 | # If the user switches compilers, we can't believe the cache |
| 782 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 783 | then |
| 784 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 785 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 786 | fi |
| 787 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 788 | # Extract the first word of "gcc", so it can be a program name with args. |
| 789 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 790 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 791 | echo "configure:792: checking for $ac_word" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 792 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 793 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 794 | else |
| 795 | if test -n "$CC"; then |
| 796 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 797 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 798 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 799 | ac_dummy="$PATH" |
| 800 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 801 | test -z "$ac_dir" && ac_dir=. |
| 802 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 803 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 804 | break |
| 805 | fi |
| 806 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 807 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 808 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 809 | fi |
| 810 | CC="$ac_cv_prog_CC" |
| 811 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 812 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 813 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 814 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 815 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 816 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 817 | if test -z "$CC"; then |
| 818 | # Extract the first word of "cc", so it can be a program name with args. |
| 819 | set dummy cc; ac_word=$2 |
| 820 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 821 | echo "configure:822: checking for $ac_word" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 822 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 823 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 824 | else |
| 825 | if test -n "$CC"; then |
| 826 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 827 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 828 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 829 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 830 | ac_dummy="$PATH" |
| 831 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 832 | test -z "$ac_dir" && ac_dir=. |
| 833 | if test -f $ac_dir/$ac_word; then |
| 834 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 835 | ac_prog_rejected=yes |
| 836 | continue |
| 837 | fi |
| 838 | ac_cv_prog_CC="cc" |
| 839 | break |
| 840 | fi |
| 841 | done |
| 842 | IFS="$ac_save_ifs" |
| 843 | if test $ac_prog_rejected = yes; then |
| 844 | # We found a bogon in the path, so make sure we never use it. |
| 845 | set dummy $ac_cv_prog_CC |
| 846 | shift |
| 847 | if test $# -gt 0; then |
| 848 | # We chose a different compiler from the bogus one. |
| 849 | # However, it has the same basename, so the bogon will be chosen |
| 850 | # first if we set CC to just the basename; use the full file name. |
| 851 | shift |
| 852 | set dummy "$ac_dir/$ac_word" "$@" |
| 853 | shift |
| 854 | ac_cv_prog_CC="$@" |
| 855 | fi |
| 856 | fi |
| 857 | fi |
| 858 | fi |
| 859 | CC="$ac_cv_prog_CC" |
| 860 | if test -n "$CC"; then |
| 861 | echo "$ac_t""$CC" 1>&6 |
| 862 | else |
| 863 | echo "$ac_t""no" 1>&6 |
| 864 | fi |
| 865 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 866 | if test -z "$CC"; then |
| 867 | case "`uname -s`" in |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 868 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 869 | # Extract the first word of "cl", so it can be a program name with args. |
| 870 | set dummy cl; ac_word=$2 |
| 871 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 872 | echo "configure:873: checking for $ac_word" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 873 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 874 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 875 | else |
| 876 | if test -n "$CC"; then |
| 877 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 878 | else |
| 879 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 880 | ac_dummy="$PATH" |
| 881 | for ac_dir in $ac_dummy; do |
| 882 | test -z "$ac_dir" && ac_dir=. |
| 883 | if test -f $ac_dir/$ac_word; then |
| 884 | ac_cv_prog_CC="cl" |
| 885 | break |
| 886 | fi |
| 887 | done |
| 888 | IFS="$ac_save_ifs" |
| 889 | fi |
| 890 | fi |
| 891 | CC="$ac_cv_prog_CC" |
| 892 | if test -n "$CC"; then |
| 893 | echo "$ac_t""$CC" 1>&6 |
| 894 | else |
| 895 | echo "$ac_t""no" 1>&6 |
| 896 | fi |
| 897 | ;; |
| 898 | esac |
| 899 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 900 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 901 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 902 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 903 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 904 | echo "configure:905: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 905 | |
| 906 | ac_ext=c |
| 907 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 908 | ac_cpp='$CPP $CPPFLAGS' |
| 909 | 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] | 910 | 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] | 911 | cross_compiling=$ac_cv_prog_cc_cross |
| 912 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 913 | cat > conftest.$ac_ext << EOF |
| 914 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 915 | #line 916 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 916 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 917 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 918 | main(){return(0);} |
| 919 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 920 | if { (eval echo configure:921: \"$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] | 921 | ac_cv_prog_cc_works=yes |
| 922 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 923 | if (./conftest; exit) 2>/dev/null; then |
| 924 | ac_cv_prog_cc_cross=no |
| 925 | else |
| 926 | ac_cv_prog_cc_cross=yes |
| 927 | fi |
| 928 | else |
| 929 | echo "configure: failed program was:" >&5 |
| 930 | cat conftest.$ac_ext >&5 |
| 931 | ac_cv_prog_cc_works=no |
| 932 | fi |
| 933 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 934 | ac_ext=c |
| 935 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 936 | ac_cpp='$CPP $CPPFLAGS' |
| 937 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 938 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 939 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 940 | |
| 941 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 942 | if test $ac_cv_prog_cc_works = no; then |
| 943 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 944 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 945 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 946 | echo "configure:947: 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] | 947 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 948 | cross_compiling=$ac_cv_prog_cc_cross |
| 949 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 950 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 951 | echo "configure:952: checking whether we are using GNU C" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 952 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 953 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 954 | else |
| 955 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 956 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 957 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 958 | #endif |
| 959 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 960 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:961: \"$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] | 961 | ac_cv_prog_gcc=yes |
| 962 | else |
| 963 | ac_cv_prog_gcc=no |
| 964 | fi |
| 965 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 966 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 967 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 968 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 969 | if test $ac_cv_prog_gcc = yes; then |
| 970 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 971 | else |
| 972 | GCC= |
| 973 | fi |
| 974 | |
| 975 | ac_test_CFLAGS="${CFLAGS+set}" |
| 976 | ac_save_CFLAGS="$CFLAGS" |
| 977 | CFLAGS= |
| 978 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 979 | echo "configure:980: checking whether ${CC-cc} accepts -g" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 980 | 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] | 981 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 982 | else |
| 983 | echo 'void f(){}' > conftest.c |
| 984 | 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] | 985 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 986 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 987 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 988 | fi |
| 989 | rm -f conftest* |
| 990 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 991 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 992 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 993 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 994 | if test "$ac_test_CFLAGS" = set; then |
| 995 | CFLAGS="$ac_save_CFLAGS" |
| 996 | elif test $ac_cv_prog_cc_g = yes; then |
| 997 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 998 | CFLAGS="-g -O2" |
| 999 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1000 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1001 | fi |
| 1002 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1003 | if test "$GCC" = yes; then |
| 1004 | CFLAGS="-O2" |
| 1005 | else |
| 1006 | CFLAGS= |
| 1007 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1008 | fi |
| 1009 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1010 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1011 | case $MACHDEP in |
| 1012 | bsdos*) |
| 1013 | case $CC in |
| 1014 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1015 | esac;; |
| 1016 | esac |
| 1017 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1018 | case $ac_sys_system in |
| 1019 | hp*|HP*) |
| 1020 | case $CC in |
| 1021 | cc|*/cc) CC="$CC -Aa -D_HPUX_SOURCE";; |
| 1022 | esac;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1023 | BeOS*) |
| 1024 | case $CC in |
| 1025 | cc) CC=cc;; |
| 1026 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1027 | Monterey*) |
| 1028 | case $CC in |
| 1029 | cc) CC="$CC -Wl,-Bexport";; |
| 1030 | esac;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1031 | esac |
| 1032 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1033 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1034 | # name of the library into which to insert object files). On systems |
| 1035 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
| 1036 | # the Makefiles). |
| 1037 | |
| 1038 | |
| 1039 | LDLIBRARY='' |
| 1040 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1041 | # LINKCC is the command that links the python executable -- default is $(CC). |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1042 | # This is altered for AIX and BeOS in order to build the export list before |
| 1043 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1044 | |
| 1045 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1046 | echo "configure:1047: checking LINKCC" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1047 | if test -z "$LINKCC" -a ! -z "$CXX" |
| 1048 | then |
| 1049 | LINKCC="$CXX" |
| 1050 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1051 | if test -z "$LINKCC" |
| 1052 | then |
| 1053 | case $ac_sys_system in |
| 1054 | AIX*) |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 1055 | LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1056 | BeOS*) |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 1057 | LINKCC="\$(srcdir)/../BeOS/linkcc \$(LIBRARY) \$(PURIFY) \$(CC) \$(OPT)" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1058 | LDLIBRARY='libpython$(VERSION).so';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1059 | dgux*) |
| 1060 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1061 | Monterey64*) |
| 1062 | LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1063 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1064 | esac |
| 1065 | fi |
| 1066 | echo "$ac_t""$LINKCC" 1>&6 |
| 1067 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1068 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1069 | echo "configure:1070: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1070 | |
| 1071 | # NeXT framework builds require that the 'ar' library be converted into |
| 1072 | # a bundle using libtool. |
| 1073 | if test "$with_next_framework" |
| 1074 | then |
| 1075 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1076 | fi |
| 1077 | |
| 1078 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 1079 | if test "$MACHDEP" = "dguxR4" |
| 1080 | then |
| 1081 | LDLIBRARY='libpython$(VERSION).so' |
| 1082 | OPT="$OPT -pic" |
| 1083 | fi |
| 1084 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1085 | |
| 1086 | # If LDLIBRARY is different from LIBRARY, emit a rule to build it. |
| 1087 | if test -z "$LDLIBRARY" |
| 1088 | then |
| 1089 | LDLIBRARY='libpython$(VERSION).a' |
| 1090 | MAKE_LDLIBRARY="true" |
| 1091 | else |
| 1092 | MAKE_LDLIBRARY='$(MAKE) $(LDLIBRARY)' |
| 1093 | fi |
| 1094 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1095 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1096 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1097 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1098 | echo "configure:1099: checking for $ac_word" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1099 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1100 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1101 | else |
| 1102 | if test -n "$RANLIB"; then |
| 1103 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1104 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1105 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1106 | ac_dummy="$PATH" |
| 1107 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1108 | test -z "$ac_dir" && ac_dir=. |
| 1109 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1110 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1111 | break |
| 1112 | fi |
| 1113 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1114 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1115 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1116 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1117 | fi |
| 1118 | RANLIB="$ac_cv_prog_RANLIB" |
| 1119 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1120 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1121 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1122 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1123 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1124 | |
| 1125 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1126 | for ac_prog in ar aal |
| 1127 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1128 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1129 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1130 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1131 | echo "configure:1132: checking for $ac_word" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1132 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1133 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1134 | else |
| 1135 | if test -n "$AR"; then |
| 1136 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1137 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1138 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1139 | ac_dummy="$PATH" |
| 1140 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1141 | test -z "$ac_dir" && ac_dir=. |
| 1142 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1143 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1144 | break |
| 1145 | fi |
| 1146 | done |
| 1147 | IFS="$ac_save_ifs" |
| 1148 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1149 | fi |
| 1150 | AR="$ac_cv_prog_AR" |
| 1151 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1152 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1153 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1154 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1155 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1156 | |
| 1157 | test -n "$AR" && break |
| 1158 | done |
| 1159 | test -n "$AR" || AR="ar" |
| 1160 | |
| 1161 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1162 | |
| 1163 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1164 | # Install just never works :-( |
| 1165 | if test -z "$INSTALL" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1166 | then |
| 1167 | INSTALL=cp |
| 1168 | INSTALL_PROGRAM=cp |
| 1169 | INSTALL_DATA=cp |
| 1170 | else |
| 1171 | INSTALL_PROGRAM="$INSTALL" |
| 1172 | INSTALL_DATA="$INSTALL -m 644" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1173 | fi |
| 1174 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1175 | # Not every filesystem supports hard links |
| 1176 | |
| 1177 | if test -z "$LN" ; then |
| 1178 | case $ac_sys_system in |
| 1179 | BeOS*) LN="ln -s";; |
| 1180 | *) LN=ln;; |
| 1181 | esac |
| 1182 | fi |
| 1183 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1184 | # Optimizer/debugger flags passed between Makefiles |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1185 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1186 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1187 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1188 | case $GCC in |
| 1189 | yes) |
| 1190 | case $ac_cv_prog_cc_g in |
| 1191 | yes) OPT="-g -O2";; |
| 1192 | *) OPT="-O2";; |
| 1193 | esac |
| 1194 | ;; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1195 | *) OPT="-O";; |
| 1196 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1197 | fi |
| 1198 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1199 | # The current (beta) Monterey compiler dies with optimizations |
| 1200 | case $ac_sys_system in |
| 1201 | Monterey*) OPT="";; |
| 1202 | esac |
| 1203 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1204 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1205 | then |
| 1206 | OPT="$OPT $ac_arch_flags" |
| 1207 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1208 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1209 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1210 | echo "configure:1211: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1211 | # On Suns, sometimes $CPP names a directory. |
| 1212 | if test -n "$CPP" && test -d "$CPP"; then |
| 1213 | CPP= |
| 1214 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1215 | if test -z "$CPP"; then |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1216 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1217 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1218 | else |
| 1219 | # This must be in double quotes, not single quotes, because CPP may get |
| 1220 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1221 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1222 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1223 | # not just through cpp. |
| 1224 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1225 | #line 1226 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1226 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1227 | #include <assert.h> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1228 | Syntax Error |
| 1229 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1230 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1231 | { (eval echo configure:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1232 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1233 | if test -z "$ac_err"; then |
| 1234 | : |
| 1235 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1236 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1237 | echo "configure: failed program was:" >&5 |
| 1238 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1239 | rm -rf conftest* |
| 1240 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1241 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1242 | #line 1243 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1243 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1244 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1245 | Syntax Error |
| 1246 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1247 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1248 | { (eval echo configure:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1249 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1250 | if test -z "$ac_err"; then |
| 1251 | : |
| 1252 | else |
| 1253 | echo "$ac_err" >&5 |
| 1254 | echo "configure: failed program was:" >&5 |
| 1255 | cat conftest.$ac_ext >&5 |
| 1256 | rm -rf conftest* |
| 1257 | CPP="${CC-cc} -nologo -E" |
| 1258 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1259 | #line 1260 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1260 | #include "confdefs.h" |
| 1261 | #include <assert.h> |
| 1262 | Syntax Error |
| 1263 | EOF |
| 1264 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1265 | { (eval echo configure:1266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1266 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1267 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1268 | : |
| 1269 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1270 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1271 | echo "configure: failed program was:" >&5 |
| 1272 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1273 | rm -rf conftest* |
| 1274 | CPP=/lib/cpp |
| 1275 | fi |
| 1276 | rm -f conftest* |
| 1277 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1278 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1279 | fi |
| 1280 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1281 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1282 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1283 | CPP="$ac_cv_prog_CPP" |
| 1284 | else |
| 1285 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1286 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1287 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1288 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1289 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1290 | echo "configure:1291: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1291 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1292 | #line 1293 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1293 | #include "confdefs.h" |
| 1294 | #ifdef _AIX |
| 1295 | yes |
| 1296 | #endif |
| 1297 | |
| 1298 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1299 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1300 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1301 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1302 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1303 | #define _ALL_SOURCE 1 |
| 1304 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1305 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1306 | else |
| 1307 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1308 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1309 | fi |
| 1310 | rm -f conftest* |
| 1311 | |
| 1312 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1313 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1314 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1315 | echo "configure:1316: checking for minix/config.h" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1316 | 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] | 1317 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1318 | else |
| 1319 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1320 | #line 1321 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1321 | #include "confdefs.h" |
| 1322 | #include <minix/config.h> |
| 1323 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1324 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1325 | { (eval echo configure:1326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1326 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1327 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1328 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1329 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1330 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1331 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1332 | echo "configure: failed program was:" >&5 |
| 1333 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1334 | rm -rf conftest* |
| 1335 | eval "ac_cv_header_$ac_safe=no" |
| 1336 | fi |
| 1337 | rm -f conftest* |
| 1338 | fi |
| 1339 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1340 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1341 | MINIX=yes |
| 1342 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1343 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1344 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1345 | fi |
| 1346 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1347 | if test "$MINIX" = yes; then |
| 1348 | cat >> confdefs.h <<\EOF |
| 1349 | #define _POSIX_SOURCE 1 |
| 1350 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1351 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1352 | cat >> confdefs.h <<\EOF |
| 1353 | #define _POSIX_1_SOURCE 2 |
| 1354 | EOF |
| 1355 | |
| 1356 | cat >> confdefs.h <<\EOF |
| 1357 | #define _MINIX 1 |
| 1358 | EOF |
| 1359 | |
| 1360 | fi |
| 1361 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1362 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1363 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1364 | echo "configure:1365: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1365 | 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] | 1366 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1367 | else |
| 1368 | ac_save_cc="$CC" |
| 1369 | CC="$CC -OPT:Olimit=0" |
| 1370 | if test "$cross_compiling" = yes; then |
| 1371 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1372 | else |
| 1373 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1374 | #line 1375 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1375 | #include "confdefs.h" |
| 1376 | int main() { return 0; } |
| 1377 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1378 | if { (eval echo configure:1379: \"$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] | 1379 | then |
| 1380 | ac_cv_opt_olimit_ok=yes |
| 1381 | else |
| 1382 | echo "configure: failed program was:" >&5 |
| 1383 | cat conftest.$ac_ext >&5 |
| 1384 | rm -fr conftest* |
| 1385 | ac_cv_opt_olimit_ok=no |
| 1386 | fi |
| 1387 | rm -fr conftest* |
| 1388 | fi |
| 1389 | |
| 1390 | CC="$ac_save_cc" |
| 1391 | fi |
| 1392 | |
| 1393 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1394 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 1395 | OPT="$OPT -OPT:Olimit=0" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1396 | else |
| 1397 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1398 | echo "configure:1399: checking whether $CC accepts -Olimit 1500" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1399 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1400 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1401 | else |
| 1402 | ac_save_cc="$CC" |
| 1403 | CC="$CC -Olimit 1500" |
| 1404 | if test "$cross_compiling" = yes; then |
| 1405 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1406 | else |
| 1407 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1408 | #line 1409 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1409 | #include "confdefs.h" |
| 1410 | int main() { return 0; } |
| 1411 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1412 | if { (eval echo configure:1413: \"$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] | 1413 | then |
| 1414 | ac_cv_olimit_ok=yes |
| 1415 | else |
| 1416 | echo "configure: failed program was:" >&5 |
| 1417 | cat conftest.$ac_ext >&5 |
| 1418 | rm -fr conftest* |
| 1419 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1420 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1421 | rm -fr conftest* |
| 1422 | fi |
| 1423 | |
| 1424 | CC="$ac_save_cc" |
| 1425 | fi |
| 1426 | |
| 1427 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1428 | if test $ac_cv_olimit_ok = yes; then |
| 1429 | OPT="$OPT -Olimit 1500" |
| 1430 | fi |
| 1431 | fi |
| 1432 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1433 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1434 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1435 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1436 | echo "configure:1437: checking for ANSI C header files" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1437 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1438 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1439 | else |
| 1440 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1441 | #line 1442 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1442 | #include "confdefs.h" |
| 1443 | #include <stdlib.h> |
| 1444 | #include <stdarg.h> |
| 1445 | #include <string.h> |
| 1446 | #include <float.h> |
| 1447 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1448 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1449 | { (eval echo configure:1450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1450 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1451 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1452 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1453 | ac_cv_header_stdc=yes |
| 1454 | else |
| 1455 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1456 | echo "configure: failed program was:" >&5 |
| 1457 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1458 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1459 | ac_cv_header_stdc=no |
| 1460 | fi |
| 1461 | rm -f conftest* |
| 1462 | |
| 1463 | if test $ac_cv_header_stdc = yes; then |
| 1464 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1465 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1466 | #line 1467 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1467 | #include "confdefs.h" |
| 1468 | #include <string.h> |
| 1469 | EOF |
| 1470 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1471 | egrep "memchr" >/dev/null 2>&1; then |
| 1472 | : |
| 1473 | else |
| 1474 | rm -rf conftest* |
| 1475 | ac_cv_header_stdc=no |
| 1476 | fi |
| 1477 | rm -f conftest* |
| 1478 | |
| 1479 | fi |
| 1480 | |
| 1481 | if test $ac_cv_header_stdc = yes; then |
| 1482 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1483 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1484 | #line 1485 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1485 | #include "confdefs.h" |
| 1486 | #include <stdlib.h> |
| 1487 | EOF |
| 1488 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1489 | egrep "free" >/dev/null 2>&1; then |
| 1490 | : |
| 1491 | else |
| 1492 | rm -rf conftest* |
| 1493 | ac_cv_header_stdc=no |
| 1494 | fi |
| 1495 | rm -f conftest* |
| 1496 | |
| 1497 | fi |
| 1498 | |
| 1499 | if test $ac_cv_header_stdc = yes; then |
| 1500 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1501 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1502 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1503 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1504 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1505 | #line 1506 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1506 | #include "confdefs.h" |
| 1507 | #include <ctype.h> |
| 1508 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1509 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1510 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1511 | int main () { int i; for (i = 0; i < 256; i++) |
| 1512 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1513 | exit (0); } |
| 1514 | |
| 1515 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +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 | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1517 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1518 | : |
| 1519 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1520 | echo "configure: failed program was:" >&5 |
| 1521 | cat conftest.$ac_ext >&5 |
| 1522 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1523 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1524 | fi |
| 1525 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1526 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1527 | |
| 1528 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1529 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1530 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1531 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1532 | if test $ac_cv_header_stdc = yes; then |
| 1533 | cat >> confdefs.h <<\EOF |
| 1534 | #define STDC_HEADERS 1 |
| 1535 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1536 | |
| 1537 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1538 | |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame^] | 1539 | 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] | 1540 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \ |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1541 | sys/audioio.h sys/file.h sys/lock.h \ |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 1542 | sys/param.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 1543 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1544 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1545 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1546 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1547 | echo "configure:1548: checking for $ac_hdr" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1548 | 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] | 1549 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1550 | else |
| 1551 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1552 | #line 1553 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1553 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1554 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1555 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1556 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1557 | { (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1558 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1559 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1560 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1561 | eval "ac_cv_header_$ac_safe=yes" |
| 1562 | else |
| 1563 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1564 | echo "configure: failed program was:" >&5 |
| 1565 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1566 | rm -rf conftest* |
| 1567 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1568 | fi |
| 1569 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1570 | fi |
| 1571 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1572 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1573 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1574 | cat >> confdefs.h <<EOF |
| 1575 | #define $ac_tr_hdr 1 |
| 1576 | EOF |
| 1577 | |
| 1578 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1579 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1580 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1581 | done |
| 1582 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1583 | ac_header_dirent=no |
| 1584 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1585 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1586 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1587 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1588 | echo "configure:1589: checking for $ac_hdr that defines DIR" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1589 | 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] | 1590 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1591 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1592 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1593 | #line 1594 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1594 | #include "confdefs.h" |
| 1595 | #include <sys/types.h> |
| 1596 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1597 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1598 | DIR *dirp = 0; |
| 1599 | ; return 0; } |
| 1600 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1601 | if { (eval echo configure:1602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1602 | rm -rf conftest* |
| 1603 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1604 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1605 | echo "configure: failed program was:" >&5 |
| 1606 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1607 | rm -rf conftest* |
| 1608 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1609 | fi |
| 1610 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1611 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1612 | 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] | 1613 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1614 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1615 | cat >> confdefs.h <<EOF |
| 1616 | #define $ac_tr_hdr 1 |
| 1617 | EOF |
| 1618 | ac_header_dirent=$ac_hdr; break |
| 1619 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1620 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1621 | fi |
| 1622 | done |
| 1623 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1624 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1625 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1626 | echo "configure:1627: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1627 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1628 | 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] | 1629 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1630 | else |
| 1631 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1632 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1633 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1634 | #line 1635 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1635 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1636 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1637 | /* We use char because int might match the return type of a gcc2 |
| 1638 | builtin and then its argument prototype would still apply. */ |
| 1639 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1640 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1641 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1642 | opendir() |
| 1643 | ; return 0; } |
| 1644 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1645 | if { (eval echo configure:1646: \"$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] | 1646 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1647 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1648 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1649 | echo "configure: failed program was:" >&5 |
| 1650 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1651 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1652 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1653 | fi |
| 1654 | rm -f conftest* |
| 1655 | LIBS="$ac_save_LIBS" |
| 1656 | |
| 1657 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1658 | 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] | 1659 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1660 | LIBS="$LIBS -ldir" |
| 1661 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1662 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1663 | fi |
| 1664 | |
| 1665 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1666 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1667 | echo "configure:1668: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1668 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1669 | 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] | 1670 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1671 | else |
| 1672 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1673 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1674 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1675 | #line 1676 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1676 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1677 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1678 | /* We use char because int might match the return type of a gcc2 |
| 1679 | builtin and then its argument prototype would still apply. */ |
| 1680 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1681 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1682 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1683 | opendir() |
| 1684 | ; return 0; } |
| 1685 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1686 | if { (eval echo configure:1687: \"$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] | 1687 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1688 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1689 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1690 | echo "configure: failed program was:" >&5 |
| 1691 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1692 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1693 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1694 | fi |
| 1695 | rm -f conftest* |
| 1696 | LIBS="$ac_save_LIBS" |
| 1697 | |
| 1698 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1699 | 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] | 1700 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1701 | LIBS="$LIBS -lx" |
| 1702 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1703 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1704 | fi |
| 1705 | |
| 1706 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1707 | |
| 1708 | |
| 1709 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1710 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1711 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1712 | echo "configure:1713: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1713 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1714 | #line 1715 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1715 | #include "confdefs.h" |
| 1716 | #include <time.h> |
| 1717 | EOF |
| 1718 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1719 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1720 | rm -rf conftest* |
| 1721 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1722 | else |
| 1723 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1724 | cat >> confdefs.h <<\EOF |
| 1725 | #define clock_t long |
| 1726 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1727 | |
| 1728 | fi |
| 1729 | rm -f conftest* |
| 1730 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1731 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1732 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1733 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1734 | cat >> confdefs.h <<\EOF |
| 1735 | #if defined(SCO_DS) |
| 1736 | #undef _OFF_T |
| 1737 | #endif |
| 1738 | EOF |
| 1739 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1740 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1741 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1742 | echo "configure:1743: checking for mode_t" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1743 | 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] | 1744 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1745 | else |
| 1746 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1747 | #line 1748 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1748 | #include "confdefs.h" |
| 1749 | #include <sys/types.h> |
| 1750 | #if STDC_HEADERS |
| 1751 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1752 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1753 | #endif |
| 1754 | EOF |
| 1755 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1756 | 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] | 1757 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1758 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1759 | else |
| 1760 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1761 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1762 | fi |
| 1763 | rm -f conftest* |
| 1764 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1765 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1766 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 1767 | if test $ac_cv_type_mode_t = no; then |
| 1768 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1769 | #define mode_t int |
| 1770 | EOF |
| 1771 | |
| 1772 | fi |
| 1773 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1774 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1775 | echo "configure:1776: checking for off_t" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1776 | 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] | 1777 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1778 | else |
| 1779 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1780 | #line 1781 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1781 | #include "confdefs.h" |
| 1782 | #include <sys/types.h> |
| 1783 | #if STDC_HEADERS |
| 1784 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1785 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1786 | #endif |
| 1787 | EOF |
| 1788 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1789 | 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] | 1790 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1791 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1792 | else |
| 1793 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1794 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1795 | fi |
| 1796 | rm -f conftest* |
| 1797 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1798 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1799 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 1800 | if test $ac_cv_type_off_t = no; then |
| 1801 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1802 | #define off_t long |
| 1803 | EOF |
| 1804 | |
| 1805 | fi |
| 1806 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1807 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1808 | echo "configure:1809: checking for pid_t" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1809 | 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] | 1810 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1811 | else |
| 1812 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1813 | #line 1814 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1814 | #include "confdefs.h" |
| 1815 | #include <sys/types.h> |
| 1816 | #if STDC_HEADERS |
| 1817 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1818 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1819 | #endif |
| 1820 | EOF |
| 1821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1822 | 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] | 1823 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1824 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1825 | else |
| 1826 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1827 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1828 | fi |
| 1829 | rm -f conftest* |
| 1830 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1831 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1832 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 1833 | if test $ac_cv_type_pid_t = no; then |
| 1834 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1835 | #define pid_t int |
| 1836 | EOF |
| 1837 | |
| 1838 | fi |
| 1839 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1840 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1841 | echo "configure:1842: checking return type of signal handlers" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1842 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1843 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1844 | else |
| 1845 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1846 | #line 1847 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1847 | #include "confdefs.h" |
| 1848 | #include <sys/types.h> |
| 1849 | #include <signal.h> |
| 1850 | #ifdef signal |
| 1851 | #undef signal |
| 1852 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1853 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1854 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1855 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1856 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1857 | #endif |
| 1858 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1859 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1860 | int i; |
| 1861 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1862 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1863 | if { (eval echo configure:1864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1864 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1865 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1866 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1867 | echo "configure: failed program was:" >&5 |
| 1868 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1869 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1870 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1871 | fi |
| 1872 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1873 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1874 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1875 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1876 | cat >> confdefs.h <<EOF |
| 1877 | #define RETSIGTYPE $ac_cv_type_signal |
| 1878 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1879 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1880 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1881 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1882 | echo "configure:1883: checking for size_t" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1883 | 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] | 1884 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1885 | else |
| 1886 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1887 | #line 1888 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1888 | #include "confdefs.h" |
| 1889 | #include <sys/types.h> |
| 1890 | #if STDC_HEADERS |
| 1891 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1892 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1893 | #endif |
| 1894 | EOF |
| 1895 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1896 | 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] | 1897 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1898 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1899 | else |
| 1900 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1901 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1902 | fi |
| 1903 | rm -f conftest* |
| 1904 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1905 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1906 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 1907 | if test $ac_cv_type_size_t = no; then |
| 1908 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1909 | #define size_t unsigned |
| 1910 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1911 | |
| 1912 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1913 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1914 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1915 | echo "configure:1916: checking for uid_t in sys/types.h" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1916 | 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] | 1917 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1918 | else |
| 1919 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1920 | #line 1921 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1921 | #include "confdefs.h" |
| 1922 | #include <sys/types.h> |
| 1923 | EOF |
| 1924 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1925 | egrep "uid_t" >/dev/null 2>&1; then |
| 1926 | rm -rf conftest* |
| 1927 | ac_cv_type_uid_t=yes |
| 1928 | else |
| 1929 | rm -rf conftest* |
| 1930 | ac_cv_type_uid_t=no |
| 1931 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1932 | rm -f conftest* |
| 1933 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1934 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1935 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1936 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1937 | if test $ac_cv_type_uid_t = no; then |
| 1938 | cat >> confdefs.h <<\EOF |
| 1939 | #define uid_t int |
| 1940 | EOF |
| 1941 | |
| 1942 | cat >> confdefs.h <<\EOF |
| 1943 | #define gid_t int |
| 1944 | EOF |
| 1945 | |
| 1946 | fi |
| 1947 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1948 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1949 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1950 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1951 | echo "configure:1952: checking size of int" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1952 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1953 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1954 | else |
| 1955 | if test "$cross_compiling" = yes; then |
| 1956 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1957 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1958 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1959 | #line 1960 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1960 | #include "confdefs.h" |
| 1961 | #include <stdio.h> |
| 1962 | main() |
| 1963 | { |
| 1964 | FILE *f=fopen("conftestval", "w"); |
| 1965 | if (!f) exit(1); |
| 1966 | fprintf(f, "%d\n", sizeof(int)); |
| 1967 | exit(0); |
| 1968 | } |
| 1969 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1970 | if { (eval echo configure:1971: \"$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] | 1971 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1972 | ac_cv_sizeof_int=`cat conftestval` |
| 1973 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1974 | echo "configure: failed program was:" >&5 |
| 1975 | cat conftest.$ac_ext >&5 |
| 1976 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1977 | ac_cv_sizeof_int=0 |
| 1978 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1979 | rm -fr conftest* |
| 1980 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1981 | |
| 1982 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1983 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 1984 | cat >> confdefs.h <<EOF |
| 1985 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 1986 | EOF |
| 1987 | |
| 1988 | |
| 1989 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1990 | echo "configure:1991: checking size of long" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1991 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1992 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1993 | else |
| 1994 | if test "$cross_compiling" = yes; then |
| 1995 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1996 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1997 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1998 | #line 1999 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1999 | #include "confdefs.h" |
| 2000 | #include <stdio.h> |
| 2001 | main() |
| 2002 | { |
| 2003 | FILE *f=fopen("conftestval", "w"); |
| 2004 | if (!f) exit(1); |
| 2005 | fprintf(f, "%d\n", sizeof(long)); |
| 2006 | exit(0); |
| 2007 | } |
| 2008 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2009 | if { (eval echo configure:2010: \"$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] | 2010 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2011 | ac_cv_sizeof_long=`cat conftestval` |
| 2012 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2013 | echo "configure: failed program was:" >&5 |
| 2014 | cat conftest.$ac_ext >&5 |
| 2015 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2016 | ac_cv_sizeof_long=0 |
| 2017 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2018 | rm -fr conftest* |
| 2019 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2020 | |
| 2021 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2022 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2023 | cat >> confdefs.h <<EOF |
| 2024 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2025 | EOF |
| 2026 | |
| 2027 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2028 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2029 | echo "configure:2030: checking size of void *" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2030 | 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] | 2031 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2032 | else |
| 2033 | if test "$cross_compiling" = yes; then |
| 2034 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2035 | else |
| 2036 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2037 | #line 2038 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2038 | #include "confdefs.h" |
| 2039 | #include <stdio.h> |
| 2040 | main() |
| 2041 | { |
| 2042 | FILE *f=fopen("conftestval", "w"); |
| 2043 | if (!f) exit(1); |
| 2044 | fprintf(f, "%d\n", sizeof(void *)); |
| 2045 | exit(0); |
| 2046 | } |
| 2047 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2048 | if { (eval echo configure:2049: \"$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] | 2049 | then |
| 2050 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2051 | else |
| 2052 | echo "configure: failed program was:" >&5 |
| 2053 | cat conftest.$ac_ext >&5 |
| 2054 | rm -fr conftest* |
| 2055 | ac_cv_sizeof_void_p=0 |
| 2056 | fi |
| 2057 | rm -fr conftest* |
| 2058 | fi |
| 2059 | |
| 2060 | fi |
| 2061 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2062 | cat >> confdefs.h <<EOF |
| 2063 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2064 | EOF |
| 2065 | |
| 2066 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2067 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2068 | echo "configure:2069: checking size of char" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2069 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2070 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2071 | else |
| 2072 | if test "$cross_compiling" = yes; then |
| 2073 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2074 | else |
| 2075 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2076 | #line 2077 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2077 | #include "confdefs.h" |
| 2078 | #include <stdio.h> |
| 2079 | main() |
| 2080 | { |
| 2081 | FILE *f=fopen("conftestval", "w"); |
| 2082 | if (!f) exit(1); |
| 2083 | fprintf(f, "%d\n", sizeof(char)); |
| 2084 | exit(0); |
| 2085 | } |
| 2086 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2087 | if { (eval echo configure:2088: \"$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] | 2088 | then |
| 2089 | ac_cv_sizeof_char=`cat conftestval` |
| 2090 | else |
| 2091 | echo "configure: failed program was:" >&5 |
| 2092 | cat conftest.$ac_ext >&5 |
| 2093 | rm -fr conftest* |
| 2094 | ac_cv_sizeof_char=0 |
| 2095 | fi |
| 2096 | rm -fr conftest* |
| 2097 | fi |
| 2098 | |
| 2099 | fi |
| 2100 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2101 | cat >> confdefs.h <<EOF |
| 2102 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2103 | EOF |
| 2104 | |
| 2105 | |
| 2106 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2107 | echo "configure:2108: checking size of short" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2108 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2109 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2110 | else |
| 2111 | if test "$cross_compiling" = yes; then |
| 2112 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2113 | else |
| 2114 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2115 | #line 2116 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2116 | #include "confdefs.h" |
| 2117 | #include <stdio.h> |
| 2118 | main() |
| 2119 | { |
| 2120 | FILE *f=fopen("conftestval", "w"); |
| 2121 | if (!f) exit(1); |
| 2122 | fprintf(f, "%d\n", sizeof(short)); |
| 2123 | exit(0); |
| 2124 | } |
| 2125 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2126 | if { (eval echo configure:2127: \"$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] | 2127 | then |
| 2128 | ac_cv_sizeof_short=`cat conftestval` |
| 2129 | else |
| 2130 | echo "configure: failed program was:" >&5 |
| 2131 | cat conftest.$ac_ext >&5 |
| 2132 | rm -fr conftest* |
| 2133 | ac_cv_sizeof_short=0 |
| 2134 | fi |
| 2135 | rm -fr conftest* |
| 2136 | fi |
| 2137 | |
| 2138 | fi |
| 2139 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2140 | cat >> confdefs.h <<EOF |
| 2141 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2142 | EOF |
| 2143 | |
| 2144 | |
| 2145 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2146 | echo "configure:2147: checking size of float" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2147 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2148 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2149 | else |
| 2150 | if test "$cross_compiling" = yes; then |
| 2151 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2152 | else |
| 2153 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2154 | #line 2155 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2155 | #include "confdefs.h" |
| 2156 | #include <stdio.h> |
| 2157 | main() |
| 2158 | { |
| 2159 | FILE *f=fopen("conftestval", "w"); |
| 2160 | if (!f) exit(1); |
| 2161 | fprintf(f, "%d\n", sizeof(float)); |
| 2162 | exit(0); |
| 2163 | } |
| 2164 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2165 | if { (eval echo configure:2166: \"$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] | 2166 | then |
| 2167 | ac_cv_sizeof_float=`cat conftestval` |
| 2168 | else |
| 2169 | echo "configure: failed program was:" >&5 |
| 2170 | cat conftest.$ac_ext >&5 |
| 2171 | rm -fr conftest* |
| 2172 | ac_cv_sizeof_float=0 |
| 2173 | fi |
| 2174 | rm -fr conftest* |
| 2175 | fi |
| 2176 | |
| 2177 | fi |
| 2178 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2179 | cat >> confdefs.h <<EOF |
| 2180 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2181 | EOF |
| 2182 | |
| 2183 | |
| 2184 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2185 | echo "configure:2186: checking size of double" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2186 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2187 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2188 | else |
| 2189 | if test "$cross_compiling" = yes; then |
| 2190 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2191 | else |
| 2192 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2193 | #line 2194 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2194 | #include "confdefs.h" |
| 2195 | #include <stdio.h> |
| 2196 | main() |
| 2197 | { |
| 2198 | FILE *f=fopen("conftestval", "w"); |
| 2199 | if (!f) exit(1); |
| 2200 | fprintf(f, "%d\n", sizeof(double)); |
| 2201 | exit(0); |
| 2202 | } |
| 2203 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2204 | if { (eval echo configure:2205: \"$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] | 2205 | then |
| 2206 | ac_cv_sizeof_double=`cat conftestval` |
| 2207 | else |
| 2208 | echo "configure: failed program was:" >&5 |
| 2209 | cat conftest.$ac_ext >&5 |
| 2210 | rm -fr conftest* |
| 2211 | ac_cv_sizeof_double=0 |
| 2212 | fi |
| 2213 | rm -fr conftest* |
| 2214 | fi |
| 2215 | |
| 2216 | fi |
| 2217 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2218 | cat >> confdefs.h <<EOF |
| 2219 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2220 | EOF |
| 2221 | |
| 2222 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2223 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2224 | echo "configure:2225: checking size of fpos_t" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2225 | 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] | 2226 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2227 | else |
| 2228 | if test "$cross_compiling" = yes; then |
| 2229 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2230 | else |
| 2231 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2232 | #line 2233 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2233 | #include "confdefs.h" |
| 2234 | #include <stdio.h> |
| 2235 | main() |
| 2236 | { |
| 2237 | FILE *f=fopen("conftestval", "w"); |
| 2238 | if (!f) exit(1); |
| 2239 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2240 | exit(0); |
| 2241 | } |
| 2242 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2243 | if { (eval echo configure:2244: \"$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] | 2244 | then |
| 2245 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2246 | else |
| 2247 | echo "configure: failed program was:" >&5 |
| 2248 | cat conftest.$ac_ext >&5 |
| 2249 | rm -fr conftest* |
| 2250 | ac_cv_sizeof_fpos_t=0 |
| 2251 | fi |
| 2252 | rm -fr conftest* |
| 2253 | fi |
| 2254 | |
| 2255 | fi |
| 2256 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2257 | cat >> confdefs.h <<EOF |
| 2258 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2259 | EOF |
| 2260 | |
| 2261 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2262 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2263 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2264 | echo "configure:2265: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2265 | have_long_long=no |
| 2266 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2267 | #line 2268 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2268 | #include "confdefs.h" |
| 2269 | |
| 2270 | int main() { |
| 2271 | long long x; x = (long long)0; |
| 2272 | ; return 0; } |
| 2273 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2274 | if { (eval echo configure:2275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2275 | rm -rf conftest* |
| 2276 | cat >> confdefs.h <<\EOF |
| 2277 | #define HAVE_LONG_LONG 1 |
| 2278 | EOF |
| 2279 | have_long_long=yes |
| 2280 | else |
| 2281 | echo "configure: failed program was:" >&5 |
| 2282 | cat conftest.$ac_ext >&5 |
| 2283 | fi |
| 2284 | rm -f conftest* |
| 2285 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2286 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2287 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2288 | echo "configure:2289: checking size of long long" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2289 | 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] | 2290 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2291 | else |
| 2292 | if test "$cross_compiling" = yes; then |
| 2293 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2294 | else |
| 2295 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2296 | #line 2297 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2297 | #include "confdefs.h" |
| 2298 | #include <stdio.h> |
| 2299 | main() |
| 2300 | { |
| 2301 | FILE *f=fopen("conftestval", "w"); |
| 2302 | if (!f) exit(1); |
| 2303 | fprintf(f, "%d\n", sizeof(long long)); |
| 2304 | exit(0); |
| 2305 | } |
| 2306 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2307 | if { (eval echo configure:2308: \"$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] | 2308 | then |
| 2309 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2310 | else |
| 2311 | echo "configure: failed program was:" >&5 |
| 2312 | cat conftest.$ac_ext >&5 |
| 2313 | rm -fr conftest* |
| 2314 | ac_cv_sizeof_long_long=0 |
| 2315 | fi |
| 2316 | rm -fr conftest* |
| 2317 | fi |
| 2318 | |
| 2319 | fi |
| 2320 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2321 | cat >> confdefs.h <<EOF |
| 2322 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2323 | EOF |
| 2324 | |
| 2325 | |
| 2326 | fi |
| 2327 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2328 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2329 | echo "configure:2330: checking for uintptr_t support" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2330 | have_uintptr_t=no |
| 2331 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2332 | #line 2333 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2333 | #include "confdefs.h" |
| 2334 | |
| 2335 | int main() { |
| 2336 | uintptr_t x; x = (uintptr_t)0; |
| 2337 | ; return 0; } |
| 2338 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2339 | if { (eval echo configure:2340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2340 | rm -rf conftest* |
| 2341 | cat >> confdefs.h <<\EOF |
| 2342 | #define HAVE_UINTPTR_T 1 |
| 2343 | EOF |
| 2344 | have_uintptr_t=yes |
| 2345 | else |
| 2346 | echo "configure: failed program was:" >&5 |
| 2347 | cat conftest.$ac_ext >&5 |
| 2348 | fi |
| 2349 | rm -f conftest* |
| 2350 | echo "$ac_t""$have_uintptr_t" 1>&6 |
| 2351 | if test "$have_uintptr_t" = yes ; then |
| 2352 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2353 | echo "configure:2354: checking size of uintptr_t" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2354 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then |
| 2355 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2356 | else |
| 2357 | if test "$cross_compiling" = yes; then |
| 2358 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2359 | else |
| 2360 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2361 | #line 2362 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2362 | #include "confdefs.h" |
| 2363 | #include <stdio.h> |
| 2364 | main() |
| 2365 | { |
| 2366 | FILE *f=fopen("conftestval", "w"); |
| 2367 | if (!f) exit(1); |
| 2368 | fprintf(f, "%d\n", sizeof(uintptr_t)); |
| 2369 | exit(0); |
| 2370 | } |
| 2371 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2372 | if { (eval echo configure:2373: \"$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] | 2373 | then |
| 2374 | ac_cv_sizeof_uintptr_t=`cat conftestval` |
| 2375 | else |
| 2376 | echo "configure: failed program was:" >&5 |
| 2377 | cat conftest.$ac_ext >&5 |
| 2378 | rm -fr conftest* |
| 2379 | ac_cv_sizeof_uintptr_t=0 |
| 2380 | fi |
| 2381 | rm -fr conftest* |
| 2382 | fi |
| 2383 | |
| 2384 | fi |
| 2385 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 |
| 2386 | cat >> confdefs.h <<EOF |
| 2387 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 2388 | EOF |
| 2389 | |
| 2390 | |
| 2391 | fi |
| 2392 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2393 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2394 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2395 | echo "configure:2396: checking size of off_t" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2396 | 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] | 2397 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2398 | else |
| 2399 | if test "$cross_compiling" = yes; then |
| 2400 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2401 | else |
| 2402 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2403 | #line 2404 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2404 | #include "confdefs.h" |
| 2405 | #include <stdio.h> |
| 2406 | #include <sys/types.h> |
| 2407 | main() |
| 2408 | { |
| 2409 | FILE *f=fopen("conftestval", "w"); |
| 2410 | if (!f) exit(1); |
| 2411 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2412 | exit(0); |
| 2413 | } |
| 2414 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2415 | if { (eval echo configure:2416: \"$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] | 2416 | then |
| 2417 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2418 | else |
| 2419 | echo "configure: failed program was:" >&5 |
| 2420 | cat conftest.$ac_ext >&5 |
| 2421 | rm -fr conftest* |
| 2422 | ac_cv_sizeof_off_t=0 |
| 2423 | fi |
| 2424 | rm -fr conftest* |
| 2425 | fi |
| 2426 | |
| 2427 | |
| 2428 | fi |
| 2429 | |
| 2430 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2431 | cat >> confdefs.h <<EOF |
| 2432 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2433 | EOF |
| 2434 | |
| 2435 | |
| 2436 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2437 | echo "configure:2438: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2438 | if test "$have_long_long" = yes -a \ |
| 2439 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2440 | "$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] | 2441 | cat >> confdefs.h <<\EOF |
| 2442 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2443 | EOF |
| 2444 | |
| 2445 | echo "$ac_t""yes" 1>&6 |
| 2446 | else |
| 2447 | echo "$ac_t""no" 1>&6 |
| 2448 | fi |
| 2449 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2450 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2451 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2452 | echo "configure:2453: checking size of time_t" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2453 | 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] | 2454 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2455 | else |
| 2456 | if test "$cross_compiling" = yes; then |
| 2457 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2458 | else |
| 2459 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2460 | #line 2461 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2461 | #include "confdefs.h" |
| 2462 | #include <stdio.h> |
| 2463 | #include <time.h> |
| 2464 | main() |
| 2465 | { |
| 2466 | FILE *f=fopen("conftestval", "w"); |
| 2467 | if (!f) exit(1); |
| 2468 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2469 | exit(0); |
| 2470 | } |
| 2471 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2472 | if { (eval echo configure:2473: \"$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] | 2473 | then |
| 2474 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2475 | else |
| 2476 | echo "configure: failed program was:" >&5 |
| 2477 | cat conftest.$ac_ext >&5 |
| 2478 | rm -fr conftest* |
| 2479 | ac_cv_sizeof_time_t=0 |
| 2480 | fi |
| 2481 | rm -fr conftest* |
| 2482 | fi |
| 2483 | |
| 2484 | |
| 2485 | fi |
| 2486 | |
| 2487 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2488 | cat >> confdefs.h <<EOF |
| 2489 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2490 | EOF |
| 2491 | |
| 2492 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2493 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2494 | # if have pthread_t then define SIZEOF_PTHREAD_T |
| 2495 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 |
| 2496 | echo "configure:2497: checking for pthread_t" >&5 |
| 2497 | have_pthread_t=no |
| 2498 | cat > conftest.$ac_ext <<EOF |
| 2499 | #line 2500 "configure" |
| 2500 | #include "confdefs.h" |
| 2501 | #include <pthread.h> |
| 2502 | int main() { |
| 2503 | pthread_t x; x = (pthread_t)0; |
| 2504 | ; return 0; } |
| 2505 | EOF |
| 2506 | if { (eval echo configure:2507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2507 | rm -rf conftest* |
| 2508 | have_pthread_t=yes |
| 2509 | else |
| 2510 | echo "configure: failed program was:" >&5 |
| 2511 | cat conftest.$ac_ext >&5 |
| 2512 | fi |
| 2513 | rm -f conftest* |
| 2514 | echo "$ac_t""$have_pthread_t" 1>&6 |
| 2515 | if test "$have_pthread_t" = yes ; then |
| 2516 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 2517 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 |
| 2518 | echo "configure:2519: checking size of pthread_t" >&5 |
| 2519 | if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then |
| 2520 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2521 | else |
| 2522 | if test "$cross_compiling" = yes; then |
| 2523 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2524 | else |
| 2525 | cat > conftest.$ac_ext <<EOF |
| 2526 | #line 2527 "configure" |
| 2527 | #include "confdefs.h" |
| 2528 | #include <stdio.h> |
| 2529 | #include <pthread.h> |
| 2530 | main() |
| 2531 | { |
| 2532 | FILE *f=fopen("conftestval", "w"); |
| 2533 | if (!f) exit(1); |
| 2534 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 2535 | exit(0); |
| 2536 | } |
| 2537 | EOF |
| 2538 | if { (eval echo configure:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2539 | then |
| 2540 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 2541 | else |
| 2542 | echo "configure: failed program was:" >&5 |
| 2543 | cat conftest.$ac_ext >&5 |
| 2544 | rm -fr conftest* |
| 2545 | ac_cv_sizeof_pthread_t=0 |
| 2546 | fi |
| 2547 | rm -fr conftest* |
| 2548 | fi |
| 2549 | |
| 2550 | |
| 2551 | fi |
| 2552 | |
| 2553 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 |
| 2554 | cat >> confdefs.h <<EOF |
| 2555 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| 2556 | EOF |
| 2557 | |
| 2558 | fi |
| 2559 | |
| 2560 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2561 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2562 | |
| 2563 | case $ac_sys_system/$ac_sys_release in |
| 2564 | next/4*) |
| 2565 | ns_undef_sym='__environ' |
| 2566 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2567 | next/5*) |
| 2568 | ns_undef_sym='_environ' |
| 2569 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2570 | esac |
| 2571 | |
| 2572 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2573 | echo "configure:2574: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2574 | if test "$with_next_framework" |
| 2575 | then |
| 2576 | OPT="$OPT -fno-common" |
| 2577 | # -U __environ is needed since bundles don't have access |
| 2578 | # to crt0 when built but will always be linked against it |
| 2579 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2580 | cat >> confdefs.h <<\EOF |
| 2581 | #define WITH_NEXT_FRAMEWORK 1 |
| 2582 | EOF |
| 2583 | |
| 2584 | echo "$ac_t""yes" 1>&6 |
| 2585 | else |
| 2586 | echo "$ac_t""no" 1>&6 |
| 2587 | fi |
| 2588 | |
| 2589 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2590 | echo "configure:2591: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2591 | if test "$with_next_framework" -o "$with_dyld" |
| 2592 | then |
| 2593 | if test "$with_dyld" |
| 2594 | then |
| 2595 | echo "$ac_t""yes" 1>&6 |
| 2596 | else |
| 2597 | echo "$ac_t""required for framework build" 1>&6 |
| 2598 | fi |
| 2599 | cat >> confdefs.h <<\EOF |
| 2600 | #define WITH_DYLD 1 |
| 2601 | EOF |
| 2602 | |
| 2603 | ns_dyld='set' |
| 2604 | else |
| 2605 | echo "$ac_t""no" 1>&6 |
| 2606 | fi |
| 2607 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2608 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2609 | |
| 2610 | |
| 2611 | |
| 2612 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2613 | # SO is the extension of shared libraries `(including the dot!) |
| 2614 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2615 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2616 | echo "configure:2617: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2617 | if test -z "$SO" |
| 2618 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2619 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2620 | hp*|HP*) SO=.sl;; |
| 2621 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2622 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2623 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2624 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2625 | # LDSHARED is the ld *command* used to create shared library |
| 2626 | # -- "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] | 2627 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2628 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2629 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2630 | echo "configure:2631: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2631 | if test -z "$LDSHARED" |
| 2632 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2633 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 2634 | AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2635 | BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2636 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2637 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2638 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2639 | SunOS/5*) |
| 2640 | if test "$GCC" = "yes" |
| 2641 | then LDSHARED='$(CC) -G' |
| 2642 | else LDSHARED="ld -G"; |
| 2643 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2644 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2645 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2646 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2647 | next/*) |
| 2648 | if test "$ns_dyld" |
| 2649 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind' |
| 2650 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2651 | fi |
| 2652 | if test "$with_next_framework" ; then |
| 2653 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2654 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2655 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2656 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2657 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | a8acf72 | 1999-04-27 22:06:08 +0000 | [diff] [blame] | 2658 | FreeBSD*/[34]*) LDSHARED="gcc -shared";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2659 | FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";; |
| 2660 | NetBSD*) |
| 2661 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2662 | then |
| 2663 | LDSHARED="cc -shared" |
| 2664 | else |
| 2665 | LDSHARED="ld -Bshareable" |
| 2666 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2667 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2668 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2669 | *) LDSHARED="ld";; |
| 2670 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2671 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2672 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2673 | # 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] | 2674 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2675 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2676 | echo "configure:2677: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2677 | if test -z "$CCSHARED" |
| 2678 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2679 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2680 | hp*|HP*) if test "$GCC" = yes; |
| 2681 | then CCSHARED="-fpic"; |
| 2682 | else CCSHARED="+z"; |
| 2683 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2684 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2685 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2686 | FreeBSD*|OpenBSD*) CCSHARED="-fpic";; |
| 2687 | NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2688 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2689 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2690 | IRIX*/6*) case $CC in |
| 2691 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2692 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2693 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2694 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2695 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2696 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2697 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2698 | # the python executable -- this is only needed for a few systems |
| 2699 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2700 | echo "configure:2701: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2701 | if test -z "$LINKFORSHARED" |
| 2702 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2703 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 69f6580 | 1998-03-03 21:47:00 +0000 | [diff] [blame] | 2704 | AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2705 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2706 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2707 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | a8acf72 | 1999-04-27 22:06:08 +0000 | [diff] [blame] | 2708 | FreeBSD/[34]*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2709 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2710 | # -u libsys_s pulls in all symbols in libsys |
| 2711 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2712 | # -u __dummy makes the linker aware of the objc runtime |
| 2713 | # in System.framework; otherwise, __objcInit (referenced in |
| 2714 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2715 | # loading of any modules which reference it in System.framework |
| 2716 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2717 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2718 | NetBSD*) |
| 2719 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2720 | then |
| 2721 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2722 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2723 | SunOS/5*) case $CC in |
| 2724 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 2725 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2726 | then |
| 2727 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2728 | fi;; |
| 2729 | esac;; |
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""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2733 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2734 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2735 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2736 | echo "configure:2737: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2737 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2738 | 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] | 2739 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2740 | else |
| 2741 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2742 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2743 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2744 | #line 2745 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2745 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2746 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2747 | /* We use char because int might match the return type of a gcc2 |
| 2748 | builtin and then its argument prototype would still apply. */ |
| 2749 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2750 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2751 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2752 | dlopen() |
| 2753 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2754 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2755 | if { (eval echo configure:2756: \"$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] | 2756 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2757 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2758 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2759 | echo "configure: failed program was:" >&5 |
| 2760 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2761 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2762 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2763 | fi |
| 2764 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2765 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2766 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2767 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2768 | 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] | 2769 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2770 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2771 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2772 | cat >> confdefs.h <<EOF |
| 2773 | #define $ac_tr_lib 1 |
| 2774 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2775 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2776 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2777 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2778 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2779 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2780 | fi |
| 2781 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2782 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2783 | echo "configure:2784: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2784 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2785 | 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] | 2786 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2787 | else |
| 2788 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2789 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2790 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2791 | #line 2792 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2792 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2793 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2794 | /* We use char because int might match the return type of a gcc2 |
| 2795 | builtin and then its argument prototype would still apply. */ |
| 2796 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2797 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2798 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2799 | shl_load() |
| 2800 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2801 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2802 | if { (eval echo configure:2803: \"$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] | 2803 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2804 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2805 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2806 | echo "configure: failed program was:" >&5 |
| 2807 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2808 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2809 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2810 | fi |
| 2811 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2812 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2813 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2814 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2815 | 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] | 2816 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2817 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2818 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2819 | cat >> confdefs.h <<EOF |
| 2820 | #define $ac_tr_lib 1 |
| 2821 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2822 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2823 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2824 | |
| 2825 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2826 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2827 | fi |
| 2828 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2829 | |
| 2830 | # checks for system dependent C++ extensions support |
| 2831 | case "$ac_sys_system" in |
| 2832 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2833 | echo "configure:2834: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2834 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2835 | #line 2836 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2836 | #include "confdefs.h" |
| 2837 | #include "/usr/lpp/xlC/include/load.h" |
| 2838 | int main() { |
| 2839 | loadAndInit("", 0, "") |
| 2840 | ; return 0; } |
| 2841 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2842 | if { (eval echo configure:2843: \"$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] | 2843 | rm -rf conftest* |
| 2844 | cat >> confdefs.h <<\EOF |
| 2845 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 2846 | EOF |
| 2847 | |
| 2848 | echo "$ac_t""yes" 1>&6 |
| 2849 | else |
| 2850 | echo "configure: failed program was:" >&5 |
| 2851 | cat conftest.$ac_ext >&5 |
| 2852 | rm -rf conftest* |
| 2853 | echo "$ac_t""no" 1>&6 |
| 2854 | fi |
| 2855 | rm -f conftest*;; |
| 2856 | *) ;; |
| 2857 | esac |
| 2858 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2859 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 2860 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2861 | # BeOS' sockets are stashed in libnet. |
| 2862 | case "$ac_sys_system" in |
| 2863 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2864 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2865 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2866 | echo "configure:2867: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2867 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2868 | 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] | 2869 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2870 | else |
| 2871 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2872 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2873 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2874 | #line 2875 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2875 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2876 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2877 | /* We use char because int might match the return type of a gcc2 |
| 2878 | builtin and then its argument prototype would still apply. */ |
| 2879 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2880 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2881 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2882 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2883 | ; return 0; } |
| 2884 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2885 | if { (eval echo configure:2886: \"$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] | 2886 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2887 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2888 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2889 | echo "configure: failed program was:" >&5 |
| 2890 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2891 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2892 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2893 | fi |
| 2894 | rm -f conftest* |
| 2895 | LIBS="$ac_save_LIBS" |
| 2896 | |
| 2897 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2898 | 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] | 2899 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2900 | LIBS="-lnsl $LIBS" |
| 2901 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2902 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2903 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2904 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2905 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2906 | echo "configure:2907: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2907 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2908 | 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] | 2909 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2910 | else |
| 2911 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2912 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2913 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2914 | #line 2915 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2915 | #include "confdefs.h" |
| 2916 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2917 | /* We use char because int might match the return type of a gcc2 |
| 2918 | builtin and then its argument prototype would still apply. */ |
| 2919 | char socket(); |
| 2920 | |
| 2921 | int main() { |
| 2922 | socket() |
| 2923 | ; return 0; } |
| 2924 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2925 | if { (eval echo configure:2926: \"$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] | 2926 | rm -rf conftest* |
| 2927 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2928 | else |
| 2929 | echo "configure: failed program was:" >&5 |
| 2930 | cat conftest.$ac_ext >&5 |
| 2931 | rm -rf conftest* |
| 2932 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2933 | fi |
| 2934 | rm -f conftest* |
| 2935 | LIBS="$ac_save_LIBS" |
| 2936 | |
| 2937 | fi |
| 2938 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2939 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2940 | LIBS="-lsocket $LIBS" |
| 2941 | else |
| 2942 | echo "$ac_t""no" 1>&6 |
| 2943 | fi |
| 2944 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2945 | ;; |
| 2946 | esac |
| 2947 | case "$ac_sys_system" in |
| 2948 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2949 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2950 | echo "configure:2951: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2951 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2952 | 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] | 2953 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2954 | else |
| 2955 | ac_save_LIBS="$LIBS" |
| 2956 | LIBS="-lnet $LIBS $LIBS" |
| 2957 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2958 | #line 2959 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2959 | #include "confdefs.h" |
| 2960 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2961 | /* We use char because int might match the return type of a gcc2 |
| 2962 | builtin and then its argument prototype would still apply. */ |
| 2963 | char socket(); |
| 2964 | |
| 2965 | int main() { |
| 2966 | socket() |
| 2967 | ; return 0; } |
| 2968 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2969 | if { (eval echo configure:2970: \"$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] | 2970 | rm -rf conftest* |
| 2971 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2972 | else |
| 2973 | echo "configure: failed program was:" >&5 |
| 2974 | cat conftest.$ac_ext >&5 |
| 2975 | rm -rf conftest* |
| 2976 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2977 | fi |
| 2978 | rm -f conftest* |
| 2979 | LIBS="$ac_save_LIBS" |
| 2980 | |
| 2981 | fi |
| 2982 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2983 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2984 | LIBS="-lnet $LIBS" |
| 2985 | else |
| 2986 | echo "$ac_t""no" 1>&6 |
| 2987 | fi |
| 2988 | # BeOS |
| 2989 | ;; |
| 2990 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2991 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2992 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2993 | echo "configure:2994: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2994 | # Check whether --with-libs or --without-libs was given. |
| 2995 | if test "${with_libs+set}" = set; then |
| 2996 | withval="$with_libs" |
| 2997 | |
| 2998 | echo "$ac_t""$withval" 1>&6 |
| 2999 | LIBS="$withval $LIBS" |
| 3000 | |
| 3001 | else |
| 3002 | echo "$ac_t""no" 1>&6 |
| 3003 | fi |
| 3004 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3005 | |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 3006 | echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3007 | echo "configure:3008: checking for --with(out)-readline" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3008 | # Check whether --with-readline or --without-readline was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3009 | if test "${with_readline+set}" = set; then |
| 3010 | withval="$with_readline" |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 3011 | echo "$ac_t""$withval" 1>&6 |
| 3012 | { echo "configure: error: --with(out)-readline is obsolete" 1>&2; exit 1; } |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 3013 | else |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 3014 | echo "$ac_t""not specified." 1>&6 |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 3015 | fi |
| 3016 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3017 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3018 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3019 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3020 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3021 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3022 | echo "configure:3023: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3023 | |
| 3024 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 3025 | if test "${with_dec_threads+set}" = set; then |
| 3026 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3027 | |
| 3028 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3029 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3030 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3031 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3032 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3033 | else |
| 3034 | echo "$ac_t""no" 1>&6 |
| 3035 | fi |
| 3036 | |
| 3037 | |
| 3038 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3039 | echo "configure:3040: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3040 | # Check whether --with-threads or --without-threads was given. |
| 3041 | if test "${with_threads+set}" = set; then |
| 3042 | withval="$with_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3043 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3044 | fi |
| 3045 | |
| 3046 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3047 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3048 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3049 | if test "${with_thread+set}" = set; then |
| 3050 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3051 | |
| 3052 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3053 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3054 | |
| 3055 | |
| 3056 | if test -z "$with_threads" |
| 3057 | then with_threads="yes" |
| 3058 | fi |
| 3059 | echo "$ac_t""$with_threads" 1>&6 |
| 3060 | |
| 3061 | if test "$with_threads" = "no" |
| 3062 | then |
| 3063 | USE_THREAD_MODULE="#" |
| 3064 | else |
| 3065 | if test -d "$with_threads" |
| 3066 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 3067 | fi |
| 3068 | if test -d "$withval" |
| 3069 | then LDFLAGS="$LDFLAGS -L$withval" |
| 3070 | fi |
| 3071 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3072 | #define _REENTRANT 1 |
| 3073 | EOF |
| 3074 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3075 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3076 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3077 | echo "configure:3078: checking for mach/cthreads.h" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3078 | 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] | 3079 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3080 | else |
| 3081 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3082 | #line 3083 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3083 | #include "confdefs.h" |
| 3084 | #include <mach/cthreads.h> |
| 3085 | EOF |
| 3086 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3087 | { (eval echo configure:3088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3088 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3089 | if test -z "$ac_err"; then |
| 3090 | rm -rf conftest* |
| 3091 | eval "ac_cv_header_$ac_safe=yes" |
| 3092 | else |
| 3093 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3094 | echo "configure: failed program was:" >&5 |
| 3095 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3096 | rm -rf conftest* |
| 3097 | eval "ac_cv_header_$ac_safe=no" |
| 3098 | fi |
| 3099 | rm -f conftest* |
| 3100 | fi |
| 3101 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3102 | echo "$ac_t""yes" 1>&6 |
| 3103 | cat >> confdefs.h <<\EOF |
| 3104 | #define WITH_THREAD 1 |
| 3105 | EOF |
| 3106 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3107 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3108 | #define C_THREADS 1 |
| 3109 | EOF |
| 3110 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3111 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3112 | else |
| 3113 | echo "$ac_t""no" 1>&6 |
| 3114 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3115 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3116 | echo "configure:3117: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3117 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3118 | 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] | 3119 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3120 | else |
| 3121 | ac_save_LIBS="$LIBS" |
| 3122 | LIBS="-lpthread $LIBS" |
| 3123 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3124 | #line 3125 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3125 | #include "confdefs.h" |
| 3126 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3127 | /* We use char because int might match the return type of a gcc2 |
| 3128 | builtin and then its argument prototype would still apply. */ |
| 3129 | char pthread_create(); |
| 3130 | |
| 3131 | int main() { |
| 3132 | pthread_create() |
| 3133 | ; return 0; } |
| 3134 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3135 | if { (eval echo configure:3136: \"$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] | 3136 | rm -rf conftest* |
| 3137 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3138 | else |
| 3139 | echo "configure: failed program was:" >&5 |
| 3140 | cat conftest.$ac_ext >&5 |
| 3141 | rm -rf conftest* |
| 3142 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3143 | fi |
| 3144 | rm -f conftest* |
| 3145 | LIBS="$ac_save_LIBS" |
| 3146 | |
| 3147 | fi |
| 3148 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3149 | echo "$ac_t""yes" 1>&6 |
| 3150 | cat >> confdefs.h <<\EOF |
| 3151 | #define WITH_THREAD 1 |
| 3152 | EOF |
| 3153 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3154 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3155 | #define _POSIX_THREADS 1 |
| 3156 | EOF |
| 3157 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3158 | LIBS="-lpthread $LIBS" |
| 3159 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3160 | else |
| 3161 | echo "$ac_t""no" 1>&6 |
| 3162 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3163 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3164 | echo "configure:3165: checking for pthread_detach" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3165 | 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] | 3166 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3167 | else |
| 3168 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3169 | #line 3170 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3170 | #include "confdefs.h" |
| 3171 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3172 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3173 | #include <assert.h> |
| 3174 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3175 | /* We use char because int might match the return type of a gcc2 |
| 3176 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3177 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3178 | |
| 3179 | int main() { |
| 3180 | |
| 3181 | /* The GNU C library defines this for functions which it implements |
| 3182 | to always fail with ENOSYS. Some functions are actually named |
| 3183 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3184 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3185 | choke me |
| 3186 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3187 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3188 | #endif |
| 3189 | |
| 3190 | ; return 0; } |
| 3191 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3192 | if { (eval echo configure:3193: \"$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] | 3193 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3194 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3195 | else |
| 3196 | echo "configure: failed program was:" >&5 |
| 3197 | cat conftest.$ac_ext >&5 |
| 3198 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3199 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3200 | fi |
| 3201 | rm -f conftest* |
| 3202 | fi |
| 3203 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3204 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3205 | echo "$ac_t""yes" 1>&6 |
| 3206 | cat >> confdefs.h <<\EOF |
| 3207 | #define WITH_THREAD 1 |
| 3208 | EOF |
| 3209 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3210 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3211 | #define _POSIX_THREADS 1 |
| 3212 | EOF |
| 3213 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3214 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3215 | else |
| 3216 | echo "$ac_t""no" 1>&6 |
| 3217 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3218 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3219 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3220 | echo "configure:3221: checking for kernel/OS.h" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3221 | 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] | 3222 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3223 | else |
| 3224 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3225 | #line 3226 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3226 | #include "confdefs.h" |
| 3227 | #include <kernel/OS.h> |
| 3228 | EOF |
| 3229 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3230 | { (eval echo configure:3231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3231 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3232 | if test -z "$ac_err"; then |
| 3233 | rm -rf conftest* |
| 3234 | eval "ac_cv_header_$ac_safe=yes" |
| 3235 | else |
| 3236 | echo "$ac_err" >&5 |
| 3237 | echo "configure: failed program was:" >&5 |
| 3238 | cat conftest.$ac_ext >&5 |
| 3239 | rm -rf conftest* |
| 3240 | eval "ac_cv_header_$ac_safe=no" |
| 3241 | fi |
| 3242 | rm -f conftest* |
| 3243 | fi |
| 3244 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3245 | echo "$ac_t""yes" 1>&6 |
| 3246 | cat >> confdefs.h <<\EOF |
| 3247 | #define WITH_THREAD 1 |
| 3248 | EOF |
| 3249 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3250 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3251 | #define BEOS_THREADS 1 |
| 3252 | EOF |
| 3253 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3254 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3255 | else |
| 3256 | echo "$ac_t""no" 1>&6 |
| 3257 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3258 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3259 | echo "configure:3260: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3260 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3261 | 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] | 3262 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3263 | else |
| 3264 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3265 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3266 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3267 | #line 3268 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3268 | #include "confdefs.h" |
| 3269 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3270 | /* We use char because int might match the return type of a gcc2 |
| 3271 | builtin and then its argument prototype would still apply. */ |
| 3272 | char pthread_create(); |
| 3273 | |
| 3274 | int main() { |
| 3275 | pthread_create() |
| 3276 | ; return 0; } |
| 3277 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3278 | if { (eval echo configure:3279: \"$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] | 3279 | rm -rf conftest* |
| 3280 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3281 | else |
| 3282 | echo "configure: failed program was:" >&5 |
| 3283 | cat conftest.$ac_ext >&5 |
| 3284 | rm -rf conftest* |
| 3285 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3286 | fi |
| 3287 | rm -f conftest* |
| 3288 | LIBS="$ac_save_LIBS" |
| 3289 | |
| 3290 | fi |
| 3291 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3292 | echo "$ac_t""yes" 1>&6 |
| 3293 | cat >> confdefs.h <<\EOF |
| 3294 | #define WITH_THREAD 1 |
| 3295 | EOF |
| 3296 | |
| 3297 | cat >> confdefs.h <<\EOF |
| 3298 | #define _POSIX_THREADS 1 |
| 3299 | EOF |
| 3300 | |
| 3301 | LIBS="$LIBS -lpthreads" |
| 3302 | LIBOBJS="$LIBOBJS thread.o" |
| 3303 | else |
| 3304 | echo "$ac_t""no" 1>&6 |
| 3305 | |
| 3306 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3307 | echo "configure:3308: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3308 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3309 | 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] | 3310 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3311 | else |
| 3312 | ac_save_LIBS="$LIBS" |
| 3313 | LIBS="-lc_r $LIBS" |
| 3314 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3315 | #line 3316 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3316 | #include "confdefs.h" |
| 3317 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3318 | /* We use char because int might match the return type of a gcc2 |
| 3319 | builtin and then its argument prototype would still apply. */ |
| 3320 | char pthread_create(); |
| 3321 | |
| 3322 | int main() { |
| 3323 | pthread_create() |
| 3324 | ; return 0; } |
| 3325 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3326 | if { (eval echo configure:3327: \"$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] | 3327 | rm -rf conftest* |
| 3328 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3329 | else |
| 3330 | echo "configure: failed program was:" >&5 |
| 3331 | cat conftest.$ac_ext >&5 |
| 3332 | rm -rf conftest* |
| 3333 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3334 | fi |
| 3335 | rm -f conftest* |
| 3336 | LIBS="$ac_save_LIBS" |
| 3337 | |
| 3338 | fi |
| 3339 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3340 | echo "$ac_t""yes" 1>&6 |
| 3341 | cat >> confdefs.h <<\EOF |
| 3342 | #define WITH_THREAD 1 |
| 3343 | EOF |
| 3344 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3345 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3346 | #define _POSIX_THREADS 1 |
| 3347 | EOF |
| 3348 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3349 | LIBS="$LIBS -lc_r" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3350 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3351 | else |
| 3352 | echo "$ac_t""no" 1>&6 |
| 3353 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3354 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3355 | echo "configure:3356: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3356 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3357 | 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] | 3358 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3359 | else |
| 3360 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3361 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3362 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3363 | #line 3364 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3364 | #include "confdefs.h" |
| 3365 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3366 | /* We use char because int might match the return type of a gcc2 |
| 3367 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3368 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3369 | |
| 3370 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3371 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3372 | ; return 0; } |
| 3373 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3374 | if { (eval echo configure:3375: \"$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] | 3375 | rm -rf conftest* |
| 3376 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3377 | else |
| 3378 | echo "configure: failed program was:" >&5 |
| 3379 | cat conftest.$ac_ext >&5 |
| 3380 | rm -rf conftest* |
| 3381 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3382 | fi |
| 3383 | rm -f conftest* |
| 3384 | LIBS="$ac_save_LIBS" |
| 3385 | |
| 3386 | fi |
| 3387 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3388 | echo "$ac_t""yes" 1>&6 |
| 3389 | cat >> confdefs.h <<\EOF |
| 3390 | #define WITH_THREAD 1 |
| 3391 | EOF |
| 3392 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3393 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3394 | #define _POSIX_THREADS 1 |
| 3395 | EOF |
| 3396 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3397 | LIBS="$LIBS -lthread" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3398 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3399 | else |
| 3400 | echo "$ac_t""no" 1>&6 |
| 3401 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3402 | echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3403 | echo "configure:3404: checking for pth_init in -lpth" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3404 | ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3405 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3406 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3407 | else |
| 3408 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3409 | LIBS="-lpth $LIBS" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3410 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3411 | #line 3412 "configure" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3412 | #include "confdefs.h" |
| 3413 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3414 | /* We use char because int might match the return type of a gcc2 |
| 3415 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3416 | char pth_init(); |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3417 | |
| 3418 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3419 | pth_init() |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3420 | ; return 0; } |
| 3421 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3422 | if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3423 | rm -rf conftest* |
| 3424 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3425 | else |
| 3426 | echo "configure: failed program was:" >&5 |
| 3427 | cat conftest.$ac_ext >&5 |
| 3428 | rm -rf conftest* |
| 3429 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3430 | fi |
| 3431 | rm -f conftest* |
| 3432 | LIBS="$ac_save_LIBS" |
| 3433 | |
| 3434 | fi |
| 3435 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3436 | echo "$ac_t""yes" 1>&6 |
| 3437 | cat >> confdefs.h <<\EOF |
| 3438 | #define WITH_THREAD 1 |
| 3439 | EOF |
| 3440 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3441 | cat >> confdefs.h <<\EOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3442 | #define _GNU_PTH 1 |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3443 | EOF |
| 3444 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3445 | LIBS="-lpth $LIBS" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3446 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3447 | else |
| 3448 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3449 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3450 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3451 | echo "configure:3452: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3452 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3453 | 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] | 3454 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3455 | else |
| 3456 | ac_save_LIBS="$LIBS" |
| 3457 | LIBS="-lcma $LIBS" |
| 3458 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3459 | #line 3460 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3460 | #include "confdefs.h" |
| 3461 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3462 | /* We use char because int might match the return type of a gcc2 |
| 3463 | builtin and then its argument prototype would still apply. */ |
| 3464 | char pthread_create(); |
| 3465 | |
| 3466 | int main() { |
| 3467 | pthread_create() |
| 3468 | ; return 0; } |
| 3469 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3470 | if { (eval echo configure:3471: \"$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] | 3471 | rm -rf conftest* |
| 3472 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3473 | else |
| 3474 | echo "configure: failed program was:" >&5 |
| 3475 | cat conftest.$ac_ext >&5 |
| 3476 | rm -rf conftest* |
| 3477 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3478 | fi |
| 3479 | rm -f conftest* |
| 3480 | LIBS="$ac_save_LIBS" |
| 3481 | |
| 3482 | fi |
| 3483 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3484 | echo "$ac_t""yes" 1>&6 |
| 3485 | cat >> confdefs.h <<\EOF |
| 3486 | #define WITH_THREAD 1 |
| 3487 | EOF |
| 3488 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3489 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3490 | #define _POSIX_THREADS 1 |
| 3491 | EOF |
| 3492 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3493 | LIBS="$LIBS -lcma" |
| 3494 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3495 | else |
| 3496 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3497 | fi |
| 3498 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3499 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3500 | fi |
| 3501 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3502 | fi |
| 3503 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3504 | fi |
| 3505 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3506 | fi |
| 3507 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3508 | fi |
| 3509 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3510 | fi |
| 3511 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3512 | fi |
| 3513 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3514 | fi |
| 3515 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3516 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3517 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3518 | echo "configure:3519: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3519 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3520 | 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] | 3521 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3522 | else |
| 3523 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3524 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3525 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3526 | #line 3527 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3527 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3528 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3529 | /* We use char because int might match the return type of a gcc2 |
| 3530 | builtin and then its argument prototype would still apply. */ |
| 3531 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3532 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3533 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3534 | usconfig() |
| 3535 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3536 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3537 | if { (eval echo configure:3538: \"$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] | 3538 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3539 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3540 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3541 | echo "configure: failed program was:" >&5 |
| 3542 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3543 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3544 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3545 | fi |
| 3546 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3547 | LIBS="$ac_save_LIBS" |
| 3548 | |
| 3549 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3550 | 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] | 3551 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3552 | cat >> confdefs.h <<\EOF |
| 3553 | #define WITH_THREAD 1 |
| 3554 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3555 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3556 | LIBS="$LIBS -lmpc" |
| 3557 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3558 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3559 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3560 | fi |
| 3561 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3562 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3563 | echo "configure:3564: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3564 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3565 | 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] | 3566 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3567 | else |
| 3568 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3569 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3570 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3571 | #line 3572 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3572 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3573 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3574 | /* We use char because int might match the return type of a gcc2 |
| 3575 | builtin and then its argument prototype would still apply. */ |
| 3576 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3577 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3578 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3579 | thr_create() |
| 3580 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3581 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3582 | if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3583 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3584 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3585 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3586 | echo "configure: failed program was:" >&5 |
| 3587 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3588 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3589 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3590 | fi |
| 3591 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3592 | LIBS="$ac_save_LIBS" |
| 3593 | |
| 3594 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3595 | 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] | 3596 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3597 | cat >> confdefs.h <<\EOF |
| 3598 | #define WITH_THREAD 1 |
| 3599 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3600 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3601 | LIBS="$LIBS -lthread" |
| 3602 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3603 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3604 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3605 | fi |
| 3606 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3607 | fi |
| 3608 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3609 | # Check for GC support |
| 3610 | |
| 3611 | USE_GC_MODULE="" |
| 3612 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3613 | echo "configure:3614: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3614 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 3615 | if test "${with_cycle_gc+set}" = set; then |
| 3616 | withval="$with_cycle_gc" |
| 3617 | : |
| 3618 | fi |
| 3619 | |
| 3620 | |
| 3621 | if test -z "$with_cycle_gc" |
| 3622 | then with_cycle_gc="yes" |
| 3623 | fi |
| 3624 | if test "$with_cycle_gc" = "no" |
| 3625 | then |
| 3626 | USE_GC_MODULE="#" |
| 3627 | else |
| 3628 | cat >> confdefs.h <<\EOF |
| 3629 | #define WITH_CYCLE_GC 1 |
| 3630 | EOF |
| 3631 | |
| 3632 | fi |
| 3633 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 3634 | |
| 3635 | # Check for --with-wctype-functions |
| 3636 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3637 | echo "configure:3638: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3638 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 3639 | if test "${with_wctype_functions+set}" = set; then |
| 3640 | withval="$with_wctype_functions" |
| 3641 | |
| 3642 | if test "$withval" != no |
| 3643 | then cat >> confdefs.h <<\EOF |
| 3644 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 3645 | EOF |
| 3646 | echo "$ac_t""yes" 1>&6 |
| 3647 | else echo "$ac_t""no" 1>&6 |
| 3648 | fi |
| 3649 | else |
| 3650 | echo "$ac_t""no" 1>&6 |
| 3651 | fi |
| 3652 | |
| 3653 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3654 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3655 | |
| 3656 | DLINCLDIR=/ |
| 3657 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3658 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3659 | echo "configure:3660: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3660 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3661 | if test "${with_sgi_dl+set}" = set; then |
| 3662 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3663 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3664 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3665 | cat >> confdefs.h <<\EOF |
| 3666 | #define WITH_SGI_DL 1 |
| 3667 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3668 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3669 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3670 | dldir=$withval |
| 3671 | if test -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3672 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3673 | 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] | 3674 | fi |
| 3675 | DLINCLDIR=${dldir} |
| 3676 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3677 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3678 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3679 | fi |
| 3680 | |
| 3681 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3682 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3683 | echo "configure:3684: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3684 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3685 | if test "${with_dl_dld+set}" = set; then |
| 3686 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3687 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3688 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3689 | cat >> confdefs.h <<\EOF |
| 3690 | #define WITH_DL_DLD 1 |
| 3691 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3692 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3693 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3694 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 3695 | dlddir=`echo "$withval" | sed 's/.*,//'` |
| 3696 | if test -d "$dldir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3697 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3698 | 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] | 3699 | fi |
| 3700 | DLINCLDIR=${dldir} |
| 3701 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3702 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3703 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3704 | fi |
| 3705 | |
| 3706 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3707 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 3708 | # 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] | 3709 | for ac_func in dlopen |
| 3710 | do |
| 3711 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3712 | echo "configure:3713: checking for $ac_func" >&5 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3713 | 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] | 3714 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3715 | else |
| 3716 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3717 | #line 3718 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3718 | #include "confdefs.h" |
| 3719 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3720 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3721 | #include <assert.h> |
| 3722 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3723 | /* We use char because int might match the return type of a gcc2 |
| 3724 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3725 | char $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3726 | |
| 3727 | int main() { |
| 3728 | |
| 3729 | /* The GNU C library defines this for functions which it implements |
| 3730 | to always fail with ENOSYS. Some functions are actually named |
| 3731 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3732 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3733 | choke me |
| 3734 | #else |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3735 | $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3736 | #endif |
| 3737 | |
| 3738 | ; return 0; } |
| 3739 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3740 | if { (eval echo configure:3741: \"$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] | 3741 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3742 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3743 | else |
| 3744 | echo "configure: failed program was:" >&5 |
| 3745 | cat conftest.$ac_ext >&5 |
| 3746 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3747 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3748 | fi |
| 3749 | rm -f conftest* |
| 3750 | fi |
| 3751 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3752 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3753 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3754 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3755 | cat >> confdefs.h <<EOF |
| 3756 | #define $ac_tr_func 1 |
| 3757 | EOF |
| 3758 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3759 | else |
| 3760 | echo "$ac_t""no" 1>&6 |
| 3761 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3762 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3763 | |
| 3764 | |
| 3765 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 3766 | # loading of modules. |
| 3767 | |
| 3768 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3769 | echo "configure:3770: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3770 | if test -z "$DYNLOADFILE" |
| 3771 | then |
| 3772 | case $ac_sys_system/$ac_sys_release in |
| 3773 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 3774 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 3775 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
| 3776 | next/*) DYNLOADFILE="dynload_next.o";; |
| 3777 | *) |
| 3778 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 3779 | # out any dynamic loading |
| 3780 | if test "$ac_cv_func_dlopen" = yes |
| 3781 | then DYNLOADFILE="dynload_shlib.o" |
| 3782 | else DYNLOADFILE="dynload_stub.o" |
| 3783 | fi |
| 3784 | ;; |
| 3785 | esac |
| 3786 | fi |
| 3787 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 3788 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 3789 | then |
| 3790 | cat >> confdefs.h <<\EOF |
| 3791 | #define HAVE_DYNAMIC_LOADING 1 |
| 3792 | EOF |
| 3793 | |
| 3794 | fi |
| 3795 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3796 | # checks for library functions |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3797 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3798 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3799 | getgroups getlogin getpeername getpid getpwent getwd \ |
Andrew M. Kuchling | 22c6934 | 2000-06-18 15:07:40 +0000 | [diff] [blame] | 3800 | kill link lstat mkfifo mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame^] | 3801 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3802 | putenv readlink \ |
Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 3803 | select setegid seteuid setgid \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3804 | setlocale setregid setreuid setsid setpgid setuid setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3805 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 3806 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | 70c21a1 | 2000-07-14 14:28:33 +0000 | [diff] [blame] | 3807 | truncate uname waitpid _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3808 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3809 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3810 | echo "configure:3811: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3811 | 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] | 3812 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3813 | else |
| 3814 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3815 | #line 3816 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3816 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3817 | /* System header to define __stub macros and hopefully few prototypes, |
| 3818 | which can conflict with char $ac_func(); below. */ |
| 3819 | #include <assert.h> |
| 3820 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3821 | /* We use char because int might match the return type of a gcc2 |
| 3822 | builtin and then its argument prototype would still apply. */ |
| 3823 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3824 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3825 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3826 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3827 | /* The GNU C library defines this for functions which it implements |
| 3828 | to always fail with ENOSYS. Some functions are actually named |
| 3829 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3830 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3831 | choke me |
| 3832 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3833 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3834 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3835 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3836 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3837 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3838 | if { (eval echo configure:3839: \"$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] | 3839 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3840 | eval "ac_cv_func_$ac_func=yes" |
| 3841 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3842 | echo "configure: failed program was:" >&5 |
| 3843 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3844 | rm -rf conftest* |
| 3845 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3846 | fi |
| 3847 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3848 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3849 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3850 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3851 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3852 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3853 | cat >> confdefs.h <<EOF |
| 3854 | #define $ac_tr_func 1 |
| 3855 | EOF |
| 3856 | |
| 3857 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3858 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3859 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3860 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3861 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3862 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3863 | # check for openpty and forkpty |
| 3864 | |
| 3865 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3866 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3867 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3868 | echo "configure:3869: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3869 | 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] | 3870 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3871 | else |
| 3872 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3873 | #line 3874 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3874 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3875 | /* System header to define __stub macros and hopefully few prototypes, |
| 3876 | which can conflict with char $ac_func(); below. */ |
| 3877 | #include <assert.h> |
| 3878 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3879 | /* We use char because int might match the return type of a gcc2 |
| 3880 | builtin and then its argument prototype would still apply. */ |
| 3881 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3882 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3883 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3884 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3885 | /* The GNU C library defines this for functions which it implements |
| 3886 | to always fail with ENOSYS. Some functions are actually named |
| 3887 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3888 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3889 | choke me |
| 3890 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3891 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3892 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3893 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3894 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3895 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3896 | if { (eval echo configure:3897: \"$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] | 3897 | rm -rf conftest* |
| 3898 | eval "ac_cv_func_$ac_func=yes" |
| 3899 | else |
| 3900 | echo "configure: failed program was:" >&5 |
| 3901 | cat conftest.$ac_ext >&5 |
| 3902 | rm -rf conftest* |
| 3903 | eval "ac_cv_func_$ac_func=no" |
| 3904 | fi |
| 3905 | rm -f conftest* |
| 3906 | fi |
| 3907 | |
| 3908 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3909 | echo "$ac_t""yes" 1>&6 |
| 3910 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3911 | cat >> confdefs.h <<EOF |
| 3912 | #define $ac_tr_func 1 |
| 3913 | EOF |
| 3914 | |
| 3915 | else |
| 3916 | echo "$ac_t""no" 1>&6 |
| 3917 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3918 | echo "configure:3919: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3919 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3920 | 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] | 3921 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3922 | else |
| 3923 | ac_save_LIBS="$LIBS" |
| 3924 | LIBS="-lutil $LIBS" |
| 3925 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3926 | #line 3927 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3927 | #include "confdefs.h" |
| 3928 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3929 | /* We use char because int might match the return type of a gcc2 |
| 3930 | builtin and then its argument prototype would still apply. */ |
| 3931 | char openpty(); |
| 3932 | |
| 3933 | int main() { |
| 3934 | openpty() |
| 3935 | ; return 0; } |
| 3936 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3937 | if { (eval echo configure:3938: \"$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] | 3938 | rm -rf conftest* |
| 3939 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3940 | else |
| 3941 | echo "configure: failed program was:" >&5 |
| 3942 | cat conftest.$ac_ext >&5 |
| 3943 | rm -rf conftest* |
| 3944 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3945 | fi |
| 3946 | rm -f conftest* |
| 3947 | LIBS="$ac_save_LIBS" |
| 3948 | |
| 3949 | fi |
| 3950 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3951 | echo "$ac_t""yes" 1>&6 |
| 3952 | cat >> confdefs.h <<\EOF |
| 3953 | #define HAVE_OPENPTY 1 |
| 3954 | EOF |
| 3955 | LIBS="$LIBS -lutil" |
| 3956 | else |
| 3957 | echo "$ac_t""no" 1>&6 |
| 3958 | fi |
| 3959 | |
| 3960 | fi |
| 3961 | done |
| 3962 | |
| 3963 | for ac_func in forkpty |
| 3964 | do |
| 3965 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3966 | echo "configure:3967: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3967 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3968 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3969 | else |
| 3970 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3971 | #line 3972 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3972 | #include "confdefs.h" |
| 3973 | /* System header to define __stub macros and hopefully few prototypes, |
| 3974 | which can conflict with char $ac_func(); below. */ |
| 3975 | #include <assert.h> |
| 3976 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3977 | /* We use char because int might match the return type of a gcc2 |
| 3978 | builtin and then its argument prototype would still apply. */ |
| 3979 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3980 | |
| 3981 | int main() { |
| 3982 | |
| 3983 | /* The GNU C library defines this for functions which it implements |
| 3984 | to always fail with ENOSYS. Some functions are actually named |
| 3985 | something starting with __ and the normal name is an alias. */ |
| 3986 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3987 | choke me |
| 3988 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3989 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3990 | #endif |
| 3991 | |
| 3992 | ; return 0; } |
| 3993 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3994 | if { (eval echo configure:3995: \"$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] | 3995 | rm -rf conftest* |
| 3996 | eval "ac_cv_func_$ac_func=yes" |
| 3997 | else |
| 3998 | echo "configure: failed program was:" >&5 |
| 3999 | cat conftest.$ac_ext >&5 |
| 4000 | rm -rf conftest* |
| 4001 | eval "ac_cv_func_$ac_func=no" |
| 4002 | fi |
| 4003 | rm -f conftest* |
| 4004 | fi |
| 4005 | |
| 4006 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4007 | echo "$ac_t""yes" 1>&6 |
| 4008 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4009 | cat >> confdefs.h <<EOF |
| 4010 | #define $ac_tr_func 1 |
| 4011 | EOF |
| 4012 | |
| 4013 | else |
| 4014 | echo "$ac_t""no" 1>&6 |
| 4015 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4016 | echo "configure:4017: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4017 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4018 | 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] | 4019 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4020 | else |
| 4021 | ac_save_LIBS="$LIBS" |
| 4022 | LIBS="-lutil $LIBS" |
| 4023 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4024 | #line 4025 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4025 | #include "confdefs.h" |
| 4026 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4027 | /* We use char because int might match the return type of a gcc2 |
| 4028 | builtin and then its argument prototype would still apply. */ |
| 4029 | char forkpty(); |
| 4030 | |
| 4031 | int main() { |
| 4032 | forkpty() |
| 4033 | ; return 0; } |
| 4034 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4035 | if { (eval echo configure:4036: \"$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] | 4036 | rm -rf conftest* |
| 4037 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4038 | else |
| 4039 | echo "configure: failed program was:" >&5 |
| 4040 | cat conftest.$ac_ext >&5 |
| 4041 | rm -rf conftest* |
| 4042 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4043 | fi |
| 4044 | rm -f conftest* |
| 4045 | LIBS="$ac_save_LIBS" |
| 4046 | |
| 4047 | fi |
| 4048 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4049 | echo "$ac_t""yes" 1>&6 |
| 4050 | cat >> confdefs.h <<\EOF |
| 4051 | #define HAVE_FORKPTY 1 |
| 4052 | EOF |
| 4053 | LIBS="$LIBS -lutil" |
| 4054 | else |
| 4055 | echo "$ac_t""no" 1>&6 |
| 4056 | fi |
| 4057 | |
| 4058 | fi |
| 4059 | done |
| 4060 | |
| 4061 | |
| 4062 | # check for long file support functions |
| 4063 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 4064 | do |
| 4065 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4066 | echo "configure:4067: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4067 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4068 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4069 | else |
| 4070 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4071 | #line 4072 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4072 | #include "confdefs.h" |
| 4073 | /* System header to define __stub macros and hopefully few prototypes, |
| 4074 | which can conflict with char $ac_func(); below. */ |
| 4075 | #include <assert.h> |
| 4076 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4077 | /* We use char because int might match the return type of a gcc2 |
| 4078 | builtin and then its argument prototype would still apply. */ |
| 4079 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4080 | |
| 4081 | int main() { |
| 4082 | |
| 4083 | /* The GNU C library defines this for functions which it implements |
| 4084 | to always fail with ENOSYS. Some functions are actually named |
| 4085 | something starting with __ and the normal name is an alias. */ |
| 4086 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4087 | choke me |
| 4088 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4089 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4090 | #endif |
| 4091 | |
| 4092 | ; return 0; } |
| 4093 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4094 | if { (eval echo configure:4095: \"$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] | 4095 | rm -rf conftest* |
| 4096 | eval "ac_cv_func_$ac_func=yes" |
| 4097 | else |
| 4098 | echo "configure: failed program was:" >&5 |
| 4099 | cat conftest.$ac_ext >&5 |
| 4100 | rm -rf conftest* |
| 4101 | eval "ac_cv_func_$ac_func=no" |
| 4102 | fi |
| 4103 | rm -f conftest* |
| 4104 | fi |
| 4105 | |
| 4106 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4107 | echo "$ac_t""yes" 1>&6 |
| 4108 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4109 | cat >> confdefs.h <<EOF |
| 4110 | #define $ac_tr_func 1 |
| 4111 | EOF |
| 4112 | |
| 4113 | else |
| 4114 | echo "$ac_t""no" 1>&6 |
| 4115 | fi |
| 4116 | done |
| 4117 | |
| 4118 | |
| 4119 | for ac_func in dup2 getcwd strdup strerror memmove |
| 4120 | do |
| 4121 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4122 | echo "configure:4123: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4123 | 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] | 4124 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4125 | else |
| 4126 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4127 | #line 4128 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4128 | #include "confdefs.h" |
| 4129 | /* System header to define __stub macros and hopefully few prototypes, |
| 4130 | which can conflict with char $ac_func(); below. */ |
| 4131 | #include <assert.h> |
| 4132 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4133 | /* We use char because int might match the return type of a gcc2 |
| 4134 | builtin and then its argument prototype would still apply. */ |
| 4135 | char $ac_func(); |
| 4136 | |
| 4137 | int main() { |
| 4138 | |
| 4139 | /* The GNU C library defines this for functions which it implements |
| 4140 | to always fail with ENOSYS. Some functions are actually named |
| 4141 | something starting with __ and the normal name is an alias. */ |
| 4142 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4143 | choke me |
| 4144 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4145 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4146 | #endif |
| 4147 | |
| 4148 | ; return 0; } |
| 4149 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4150 | if { (eval echo configure:4151: \"$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] | 4151 | rm -rf conftest* |
| 4152 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4153 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4154 | echo "configure: failed program was:" >&5 |
| 4155 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4156 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4157 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4158 | fi |
| 4159 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4160 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4161 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4162 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4163 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4164 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4165 | cat >> confdefs.h <<EOF |
| 4166 | #define $ac_tr_func 1 |
| 4167 | EOF |
| 4168 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4169 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4170 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4171 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4172 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4173 | done |
| 4174 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4175 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4176 | for ac_func in getpgrp |
| 4177 | do |
| 4178 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4179 | echo "configure:4180: checking for $ac_func" >&5 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4180 | 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] | 4181 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4182 | else |
| 4183 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4184 | #line 4185 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4185 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4186 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4187 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4188 | #include <assert.h> |
| 4189 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4190 | /* We use char because int might match the return type of a gcc2 |
| 4191 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4192 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4193 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4194 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4195 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4196 | /* The GNU C library defines this for functions which it implements |
| 4197 | to always fail with ENOSYS. Some functions are actually named |
| 4198 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4199 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4200 | choke me |
| 4201 | #else |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4202 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4203 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4204 | |
| 4205 | ; return 0; } |
| 4206 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4207 | if { (eval echo configure:4208: \"$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] | 4208 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4209 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4210 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4211 | echo "configure: failed program was:" >&5 |
| 4212 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4213 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4214 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4215 | fi |
| 4216 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4217 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4218 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4219 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4220 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4221 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4222 | cat >> confdefs.h <<EOF |
| 4223 | #define $ac_tr_func 1 |
| 4224 | EOF |
| 4225 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4226 | #line 4227 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4227 | #include "confdefs.h" |
| 4228 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4229 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4230 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4231 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4232 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4233 | if { (eval echo configure:4234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4234 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4235 | cat >> confdefs.h <<\EOF |
| 4236 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4237 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4238 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4239 | else |
| 4240 | echo "configure: failed program was:" >&5 |
| 4241 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4242 | fi |
| 4243 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4244 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4245 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4246 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4247 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4248 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4249 | for ac_func in setpgrp |
| 4250 | do |
| 4251 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4252 | echo "configure:4253: checking for $ac_func" >&5 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4253 | 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] | 4254 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4255 | else |
| 4256 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4257 | #line 4258 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4258 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4259 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4260 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4261 | #include <assert.h> |
| 4262 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4263 | /* We use char because int might match the return type of a gcc2 |
| 4264 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4265 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4266 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4267 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4268 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4269 | /* The GNU C library defines this for functions which it implements |
| 4270 | to always fail with ENOSYS. Some functions are actually named |
| 4271 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4272 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4273 | choke me |
| 4274 | #else |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4275 | $ac_func(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4276 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4277 | |
| 4278 | ; return 0; } |
| 4279 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4280 | if { (eval echo configure:4281: \"$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] | 4281 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4282 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4283 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4284 | echo "configure: failed program was:" >&5 |
| 4285 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4286 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4287 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4288 | fi |
| 4289 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4290 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4291 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4292 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4293 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4294 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4295 | cat >> confdefs.h <<EOF |
| 4296 | #define $ac_tr_func 1 |
| 4297 | EOF |
| 4298 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4299 | #line 4300 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4300 | #include "confdefs.h" |
| 4301 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4302 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4303 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4304 | ; return 0; } |
| 4305 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4306 | if { (eval echo configure:4307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4307 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4308 | cat >> confdefs.h <<\EOF |
| 4309 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4310 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4311 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4312 | else |
| 4313 | echo "configure: failed program was:" >&5 |
| 4314 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4315 | fi |
| 4316 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4317 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4318 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4319 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4320 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4321 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4322 | for ac_func in gettimeofday |
| 4323 | do |
| 4324 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4325 | echo "configure:4326: checking for $ac_func" >&5 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4326 | 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] | 4327 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4328 | else |
| 4329 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4330 | #line 4331 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4331 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4332 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4333 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4334 | #include <assert.h> |
| 4335 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4336 | /* We use char because int might match the return type of a gcc2 |
| 4337 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4338 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4339 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4340 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4341 | |
| 4342 | /* The GNU C library defines this for functions which it implements |
| 4343 | to always fail with ENOSYS. Some functions are actually named |
| 4344 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4345 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4346 | choke me |
| 4347 | #else |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4348 | $ac_func(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4349 | #endif |
| 4350 | |
| 4351 | ; return 0; } |
| 4352 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4353 | if { (eval echo configure:4354: \"$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] | 4354 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4355 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4356 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4357 | echo "configure: failed program was:" >&5 |
| 4358 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4359 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4360 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4361 | fi |
| 4362 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4363 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4364 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4365 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4366 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4367 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4368 | cat >> confdefs.h <<EOF |
| 4369 | #define $ac_tr_func 1 |
| 4370 | EOF |
| 4371 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4372 | #line 4373 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4373 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4374 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4375 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4376 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 4377 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4378 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4379 | if { (eval echo configure:4380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4380 | : |
| 4381 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4382 | echo "configure: failed program was:" >&5 |
| 4383 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4384 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4385 | cat >> confdefs.h <<\EOF |
| 4386 | #define GETTIMEOFDAY_NO_TZ 1 |
| 4387 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4388 | |
| 4389 | fi |
| 4390 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4391 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4392 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4393 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4394 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4395 | |
| 4396 | |
| 4397 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4398 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4399 | echo "configure:4400: checking whether time.h and sys/time.h may both be included" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4400 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4401 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4402 | else |
| 4403 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4404 | #line 4405 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4405 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4406 | #include <sys/types.h> |
| 4407 | #include <sys/time.h> |
| 4408 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4409 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4410 | struct tm *tp; |
| 4411 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4412 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4413 | if { (eval echo configure:4414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4414 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4415 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4416 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4417 | echo "configure: failed program was:" >&5 |
| 4418 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4419 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4420 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4421 | fi |
| 4422 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4423 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4424 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4425 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4426 | if test $ac_cv_header_time = yes; then |
| 4427 | cat >> confdefs.h <<\EOF |
| 4428 | #define TIME_WITH_SYS_TIME 1 |
| 4429 | EOF |
| 4430 | |
| 4431 | fi |
| 4432 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4433 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4434 | echo "configure:4435: checking whether struct tm is in sys/time.h or time.h" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4435 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4436 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4437 | else |
| 4438 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4439 | #line 4440 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4440 | #include "confdefs.h" |
| 4441 | #include <sys/types.h> |
| 4442 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4443 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4444 | struct tm *tp; tp->tm_sec; |
| 4445 | ; return 0; } |
| 4446 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4447 | if { (eval echo configure:4448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4448 | rm -rf conftest* |
| 4449 | ac_cv_struct_tm=time.h |
| 4450 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4451 | echo "configure: failed program was:" >&5 |
| 4452 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4453 | rm -rf conftest* |
| 4454 | ac_cv_struct_tm=sys/time.h |
| 4455 | fi |
| 4456 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4457 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4458 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4459 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4460 | if test $ac_cv_struct_tm = sys/time.h; then |
| 4461 | cat >> confdefs.h <<\EOF |
| 4462 | #define TM_IN_SYS_TIME 1 |
| 4463 | EOF |
| 4464 | |
| 4465 | fi |
| 4466 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4467 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4468 | echo "configure:4469: checking for tm_zone in struct tm" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4469 | 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] | 4470 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4471 | else |
| 4472 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4473 | #line 4474 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4474 | #include "confdefs.h" |
| 4475 | #include <sys/types.h> |
| 4476 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4477 | int main() { |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4478 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4479 | ; return 0; } |
| 4480 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4481 | if { (eval echo configure:4482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4482 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4483 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4484 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4485 | echo "configure: failed program was:" >&5 |
| 4486 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4487 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4488 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4489 | fi |
| 4490 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4491 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4492 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4493 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 4494 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4495 | cat >> confdefs.h <<\EOF |
| 4496 | #define HAVE_TM_ZONE 1 |
| 4497 | EOF |
| 4498 | |
| 4499 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4500 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4501 | echo "configure:4502: checking for tzname" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4502 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4503 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4504 | else |
| 4505 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4506 | #line 4507 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4507 | #include "confdefs.h" |
| 4508 | #include <time.h> |
| 4509 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4510 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4511 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4512 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4513 | atoi(*tzname); |
| 4514 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4515 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4516 | if { (eval echo configure:4517: \"$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] | 4517 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4518 | ac_cv_var_tzname=yes |
| 4519 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4520 | echo "configure: failed program was:" >&5 |
| 4521 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4522 | rm -rf conftest* |
| 4523 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4524 | fi |
| 4525 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4526 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4527 | |
| 4528 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4529 | if test $ac_cv_var_tzname = yes; then |
| 4530 | cat >> confdefs.h <<\EOF |
| 4531 | #define HAVE_TZNAME 1 |
| 4532 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4533 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4534 | fi |
| 4535 | fi |
| 4536 | |
| 4537 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4538 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4539 | echo "configure:4540: checking for time.h that defines altzone" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4540 | 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] | 4541 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4542 | else |
| 4543 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4544 | #line 4545 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4545 | #include "confdefs.h" |
| 4546 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4547 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4548 | return altzone; |
| 4549 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4550 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4551 | if { (eval echo configure:4552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4552 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4553 | ac_cv_header_time_altzone=yes |
| 4554 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4555 | echo "configure: failed program was:" >&5 |
| 4556 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4557 | rm -rf conftest* |
| 4558 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4559 | fi |
| 4560 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4561 | fi |
| 4562 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4563 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4564 | if test $ac_cv_header_time_altzone = yes; then |
| 4565 | cat >> confdefs.h <<\EOF |
| 4566 | #define HAVE_ALTZONE 1 |
| 4567 | EOF |
| 4568 | |
| 4569 | fi |
| 4570 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4571 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4572 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4573 | echo "configure:4574: 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] | 4574 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4575 | #line 4576 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4576 | #include "confdefs.h" |
| 4577 | |
| 4578 | #include <sys/types.h> |
| 4579 | #include <sys/select.h> |
| 4580 | #include <sys/time.h> |
| 4581 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4582 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4583 | ; |
| 4584 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4585 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4586 | if { (eval echo configure:4587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4587 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4588 | cat >> confdefs.h <<\EOF |
| 4589 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 4590 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4591 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4592 | else |
| 4593 | echo "configure: failed program was:" >&5 |
| 4594 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4595 | fi |
| 4596 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4597 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4598 | |
| 4599 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4600 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4601 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4602 | echo "configure:4603: checking whether char is unsigned" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4603 | 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] | 4604 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4605 | else |
| 4606 | if test "$GCC" = yes; then |
| 4607 | # GCC predefines this symbol on systems where it applies. |
| 4608 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4609 | #line 4610 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4610 | #include "confdefs.h" |
| 4611 | #ifdef __CHAR_UNSIGNED__ |
| 4612 | yes |
| 4613 | #endif |
| 4614 | |
| 4615 | EOF |
| 4616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4617 | egrep "yes" >/dev/null 2>&1; then |
| 4618 | rm -rf conftest* |
| 4619 | ac_cv_c_char_unsigned=yes |
| 4620 | else |
| 4621 | rm -rf conftest* |
| 4622 | ac_cv_c_char_unsigned=no |
| 4623 | fi |
| 4624 | rm -f conftest* |
| 4625 | |
| 4626 | else |
| 4627 | if test "$cross_compiling" = yes; then |
| 4628 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4629 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4630 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4631 | #line 4632 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4632 | #include "confdefs.h" |
| 4633 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4634 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4635 | #define volatile |
| 4636 | #endif |
| 4637 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4638 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4639 | } |
| 4640 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4641 | if { (eval echo configure:4642: \"$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] | 4642 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4643 | ac_cv_c_char_unsigned=yes |
| 4644 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4645 | echo "configure: failed program was:" >&5 |
| 4646 | cat conftest.$ac_ext >&5 |
| 4647 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4648 | ac_cv_c_char_unsigned=no |
| 4649 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4650 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4651 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4652 | |
| 4653 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4654 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4655 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4656 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4657 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 4658 | cat >> confdefs.h <<\EOF |
| 4659 | #define __CHAR_UNSIGNED__ 1 |
| 4660 | EOF |
| 4661 | |
| 4662 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4663 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4664 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4665 | echo "configure:4666: checking for working const" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4666 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4667 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4668 | else |
| 4669 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4670 | #line 4671 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4671 | #include "confdefs.h" |
| 4672 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4673 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4674 | |
| 4675 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4676 | typedef int charset[2]; const charset x; |
| 4677 | /* SunOS 4.1.1 cc rejects this. */ |
| 4678 | char const *const *ccp; |
| 4679 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4680 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4681 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4682 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4683 | /* AIX XL C 1.02.0.0 rejects this. |
| 4684 | It does not let you subtract one const X* pointer from another in an arm |
| 4685 | of an if-expression whose if-part is not a constant expression */ |
| 4686 | const char *g = "string"; |
| 4687 | ccp = &g + (g ? g-g : 0); |
| 4688 | /* HPUX 7.0 cc rejects these. */ |
| 4689 | ++ccp; |
| 4690 | p = (char**) ccp; |
| 4691 | ccp = (char const *const *) p; |
| 4692 | { /* SCO 3.2v4 cc rejects this. */ |
| 4693 | char *t; |
| 4694 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4695 | |
| 4696 | *t++ = 0; |
| 4697 | } |
| 4698 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4699 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4700 | const int *foo = &x[0]; |
| 4701 | ++foo; |
| 4702 | } |
| 4703 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4704 | typedef const int *iptr; |
| 4705 | iptr p = 0; |
| 4706 | ++p; |
| 4707 | } |
| 4708 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4709 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4710 | struct s { int j; const int *ap[3]; }; |
| 4711 | struct s *b; b->j = 5; |
| 4712 | } |
| 4713 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4714 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4715 | } |
| 4716 | |
| 4717 | ; return 0; } |
| 4718 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4719 | if { (eval echo configure:4720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4720 | rm -rf conftest* |
| 4721 | ac_cv_c_const=yes |
| 4722 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4723 | echo "configure: failed program was:" >&5 |
| 4724 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4725 | rm -rf conftest* |
| 4726 | ac_cv_c_const=no |
| 4727 | fi |
| 4728 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4729 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4730 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4731 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4732 | if test $ac_cv_c_const = no; then |
| 4733 | cat >> confdefs.h <<\EOF |
| 4734 | #define const |
| 4735 | EOF |
| 4736 | |
| 4737 | fi |
| 4738 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4739 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4740 | echo "configure:4741: checking for inline" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4741 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4742 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4743 | else |
| 4744 | ac_cv_c_inline=no |
| 4745 | for ac_kw in inline __inline__ __inline; do |
| 4746 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4747 | #line 4748 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4748 | #include "confdefs.h" |
| 4749 | |
| 4750 | int main() { |
| 4751 | } $ac_kw foo() { |
| 4752 | ; return 0; } |
| 4753 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4754 | if { (eval echo configure:4755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4755 | rm -rf conftest* |
| 4756 | ac_cv_c_inline=$ac_kw; break |
| 4757 | else |
| 4758 | echo "configure: failed program was:" >&5 |
| 4759 | cat conftest.$ac_ext >&5 |
| 4760 | fi |
| 4761 | rm -f conftest* |
| 4762 | done |
| 4763 | |
| 4764 | fi |
| 4765 | |
| 4766 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 4767 | case "$ac_cv_c_inline" in |
| 4768 | inline | yes) ;; |
| 4769 | no) cat >> confdefs.h <<\EOF |
| 4770 | #define inline |
| 4771 | EOF |
| 4772 | ;; |
| 4773 | *) cat >> confdefs.h <<EOF |
| 4774 | #define inline $ac_cv_c_inline |
| 4775 | EOF |
| 4776 | ;; |
| 4777 | esac |
| 4778 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4779 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4780 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4781 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4782 | echo "configure:4783: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4783 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4784 | #line 4785 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4785 | #include "confdefs.h" |
| 4786 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4787 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4788 | volatile int x; x = 0; |
| 4789 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4790 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4791 | if { (eval echo configure:4792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4792 | rm -rf conftest* |
| 4793 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4794 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4795 | echo "configure: failed program was:" >&5 |
| 4796 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4797 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4798 | cat >> confdefs.h <<\EOF |
| 4799 | #define volatile |
| 4800 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4801 | |
| 4802 | fi |
| 4803 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4804 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4805 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4806 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4807 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4808 | echo "configure:4809: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4809 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4810 | #line 4811 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4811 | #include "confdefs.h" |
| 4812 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4813 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4814 | signed char c; |
| 4815 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4816 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4817 | if { (eval echo configure:4818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4818 | rm -rf conftest* |
| 4819 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4820 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4821 | echo "configure: failed program was:" >&5 |
| 4822 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4823 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4824 | cat >> confdefs.h <<\EOF |
| 4825 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4826 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4827 | |
| 4828 | fi |
| 4829 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4830 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4831 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4832 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4833 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4834 | echo "configure:4835: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4835 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4836 | #line 4837 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4837 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4838 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4839 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4840 | return foo(10); |
| 4841 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4842 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4843 | if { (eval echo configure:4844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4844 | rm -rf conftest* |
| 4845 | cat >> confdefs.h <<\EOF |
| 4846 | #define HAVE_PROTOTYPES 1 |
| 4847 | EOF |
| 4848 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4849 | else |
| 4850 | echo "configure: failed program was:" >&5 |
| 4851 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4852 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4853 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4854 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4855 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4856 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4857 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4858 | echo "configure:4859: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4859 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4860 | #line 4861 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4861 | #include "confdefs.h" |
| 4862 | |
| 4863 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4864 | int foo(int x, ...) { |
| 4865 | va_list va; |
| 4866 | va_start(va, x); |
| 4867 | va_arg(va, int); |
| 4868 | va_arg(va, char *); |
| 4869 | va_arg(va, double); |
| 4870 | return 0; |
| 4871 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4872 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4873 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4874 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4875 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4876 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4877 | if { (eval echo configure:4878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4878 | rm -rf conftest* |
| 4879 | cat >> confdefs.h <<\EOF |
| 4880 | #define HAVE_STDARG_PROTOTYPES 1 |
| 4881 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4882 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4883 | else |
| 4884 | echo "configure: failed program was:" >&5 |
| 4885 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4886 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4887 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4888 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4889 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4890 | if test "$have_prototypes" = yes; then |
| 4891 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4892 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4893 | echo "configure:4894: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4894 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4895 | #line 4896 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4896 | #include "confdefs.h" |
| 4897 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4898 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4899 | char **t;execve("@",t,t); |
| 4900 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4901 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4902 | if { (eval echo configure:4903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4903 | : |
| 4904 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4905 | echo "configure: failed program was:" >&5 |
| 4906 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4907 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4908 | cat >> confdefs.h <<\EOF |
| 4909 | #define BAD_EXEC_PROTOTYPES 1 |
| 4910 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4911 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4912 | fi |
| 4913 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4914 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4915 | fi |
| 4916 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4917 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4918 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4919 | echo "configure:4920: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4920 | if test "$cross_compiling" = yes; then |
| 4921 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4922 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4923 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4924 | #line 4925 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4925 | #include "confdefs.h" |
| 4926 | |
| 4927 | struct s { int a; int b; }; |
| 4928 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4929 | int foobar() { |
| 4930 | static int random; |
| 4931 | random = (int) &foo; |
| 4932 | return random; |
| 4933 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4934 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4935 | main() { |
| 4936 | exit(!((int)&foo == foobar())); |
| 4937 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4938 | |
| 4939 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4940 | if { (eval echo configure:4941: \"$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] | 4941 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4942 | : |
| 4943 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4944 | echo "configure: failed program was:" >&5 |
| 4945 | cat conftest.$ac_ext >&5 |
| 4946 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4947 | cat >> confdefs.h <<\EOF |
| 4948 | #define BAD_STATIC_FORWARD 1 |
| 4949 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4950 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4951 | fi |
| 4952 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4953 | fi |
| 4954 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4955 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4956 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4957 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4958 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4959 | echo "configure:4960: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4960 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4961 | #line 4962 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4962 | #include "confdefs.h" |
| 4963 | |
| 4964 | #ifdef HAVE_STDARG_PROTOTYPES |
| 4965 | #include <stdarg.h> |
| 4966 | #else |
| 4967 | #include <varargs.h> |
| 4968 | #endif |
| 4969 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4970 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4971 | va_list list1, list2; list1 = list2; |
| 4972 | ; return 0; } |
| 4973 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4974 | if { (eval echo configure:4975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4975 | : |
| 4976 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4977 | echo "configure: failed program was:" >&5 |
| 4978 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4979 | rm -rf conftest* |
| 4980 | cat >> confdefs.h <<\EOF |
| 4981 | #define VA_LIST_IS_ARRAY 1 |
| 4982 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4983 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4984 | fi |
| 4985 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4986 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4987 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4988 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 4989 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4990 | echo "configure:4991: checking for gethostbyname_r" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4991 | 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] | 4992 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4993 | else |
| 4994 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 4995 | #line 4996 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4996 | #include "confdefs.h" |
| 4997 | /* System header to define __stub macros and hopefully few prototypes, |
| 4998 | which can conflict with char gethostbyname_r(); below. */ |
| 4999 | #include <assert.h> |
| 5000 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5001 | /* We use char because int might match the return type of a gcc2 |
| 5002 | builtin and then its argument prototype would still apply. */ |
| 5003 | char gethostbyname_r(); |
| 5004 | |
| 5005 | int main() { |
| 5006 | |
| 5007 | /* The GNU C library defines this for functions which it implements |
| 5008 | to always fail with ENOSYS. Some functions are actually named |
| 5009 | something starting with __ and the normal name is an alias. */ |
| 5010 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 5011 | choke me |
| 5012 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5013 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5014 | #endif |
| 5015 | |
| 5016 | ; return 0; } |
| 5017 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5018 | if { (eval echo configure:5019: \"$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] | 5019 | rm -rf conftest* |
| 5020 | eval "ac_cv_func_gethostbyname_r=yes" |
| 5021 | else |
| 5022 | echo "configure: failed program was:" >&5 |
| 5023 | cat conftest.$ac_ext >&5 |
| 5024 | rm -rf conftest* |
| 5025 | eval "ac_cv_func_gethostbyname_r=no" |
| 5026 | fi |
| 5027 | rm -f conftest* |
| 5028 | fi |
| 5029 | |
| 5030 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 5031 | echo "$ac_t""yes" 1>&6 |
| 5032 | |
| 5033 | cat >> confdefs.h <<\EOF |
| 5034 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5035 | EOF |
| 5036 | |
| 5037 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5038 | echo "configure:5039: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5039 | OLD_CFLAGS=$CFLAGS |
| 5040 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 5041 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5042 | #line 5043 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5043 | #include "confdefs.h" |
| 5044 | |
| 5045 | # include <netdb.h> |
| 5046 | |
| 5047 | int main() { |
| 5048 | |
| 5049 | char *name; |
| 5050 | struct hostent *he, *res; |
| 5051 | char buffer[2048]; |
| 5052 | int buflen = 2048; |
| 5053 | int h_errnop; |
| 5054 | |
| 5055 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 5056 | |
| 5057 | ; return 0; } |
| 5058 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5059 | if { (eval echo configure:5060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5060 | rm -rf conftest* |
| 5061 | |
| 5062 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5063 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5064 | EOF |
| 5065 | |
| 5066 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5067 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 5068 | EOF |
| 5069 | |
| 5070 | echo "$ac_t""yes" 1>&6 |
| 5071 | |
| 5072 | else |
| 5073 | echo "configure: failed program was:" >&5 |
| 5074 | cat conftest.$ac_ext >&5 |
| 5075 | rm -rf conftest* |
| 5076 | |
| 5077 | echo "$ac_t""no" 1>&6 |
| 5078 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5079 | echo "configure:5080: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5080 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5081 | #line 5082 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5082 | #include "confdefs.h" |
| 5083 | |
| 5084 | # include <netdb.h> |
| 5085 | |
| 5086 | int main() { |
| 5087 | |
| 5088 | char *name; |
| 5089 | struct hostent *he; |
| 5090 | char buffer[2048]; |
| 5091 | int buflen = 2048; |
| 5092 | int h_errnop; |
| 5093 | |
| 5094 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 5095 | |
| 5096 | ; return 0; } |
| 5097 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5098 | if { (eval echo configure:5099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5099 | rm -rf conftest* |
| 5100 | |
| 5101 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5102 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5103 | EOF |
| 5104 | |
| 5105 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5106 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 5107 | EOF |
| 5108 | |
| 5109 | echo "$ac_t""yes" 1>&6 |
| 5110 | |
| 5111 | else |
| 5112 | echo "configure: failed program was:" >&5 |
| 5113 | cat conftest.$ac_ext >&5 |
| 5114 | rm -rf conftest* |
| 5115 | |
| 5116 | echo "$ac_t""no" 1>&6 |
| 5117 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5118 | echo "configure:5119: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5119 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5120 | #line 5121 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5121 | #include "confdefs.h" |
| 5122 | |
| 5123 | # include <netdb.h> |
| 5124 | |
| 5125 | int main() { |
| 5126 | |
| 5127 | char *name; |
| 5128 | struct hostent *he; |
| 5129 | struct hostent_data data; |
| 5130 | |
| 5131 | (void) gethostbyname_r(name, he, &data); |
| 5132 | |
| 5133 | ; return 0; } |
| 5134 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5135 | if { (eval echo configure:5136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5136 | rm -rf conftest* |
| 5137 | |
| 5138 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5139 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5140 | EOF |
| 5141 | |
| 5142 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5143 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 5144 | EOF |
| 5145 | |
| 5146 | echo "$ac_t""yes" 1>&6 |
| 5147 | |
| 5148 | else |
| 5149 | echo "configure: failed program was:" >&5 |
| 5150 | cat conftest.$ac_ext >&5 |
| 5151 | rm -rf conftest* |
| 5152 | |
| 5153 | echo "$ac_t""no" 1>&6 |
| 5154 | |
| 5155 | fi |
| 5156 | rm -f conftest* |
| 5157 | |
| 5158 | fi |
| 5159 | rm -f conftest* |
| 5160 | |
| 5161 | fi |
| 5162 | rm -f conftest* |
| 5163 | CFLAGS=$OLD_CFLAGS |
| 5164 | |
| 5165 | else |
| 5166 | echo "$ac_t""no" 1>&6 |
| 5167 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5168 | for ac_func in gethostbyname |
| 5169 | do |
| 5170 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5171 | echo "configure:5172: checking for $ac_func" >&5 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5172 | 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] | 5173 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5174 | else |
| 5175 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5176 | #line 5177 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5177 | #include "confdefs.h" |
| 5178 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5179 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5180 | #include <assert.h> |
| 5181 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5182 | /* We use char because int might match the return type of a gcc2 |
| 5183 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5184 | char $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5185 | |
| 5186 | int main() { |
| 5187 | |
| 5188 | /* The GNU C library defines this for functions which it implements |
| 5189 | to always fail with ENOSYS. Some functions are actually named |
| 5190 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5191 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5192 | choke me |
| 5193 | #else |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5194 | $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5195 | #endif |
| 5196 | |
| 5197 | ; return 0; } |
| 5198 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5199 | if { (eval echo configure:5200: \"$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] | 5200 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5201 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5202 | else |
| 5203 | echo "configure: failed program was:" >&5 |
| 5204 | cat conftest.$ac_ext >&5 |
| 5205 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5206 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5207 | fi |
| 5208 | rm -f conftest* |
| 5209 | fi |
| 5210 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5211 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5212 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5213 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5214 | cat >> confdefs.h <<EOF |
| 5215 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5216 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5217 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5218 | else |
| 5219 | echo "$ac_t""no" 1>&6 |
| 5220 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5221 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5222 | |
| 5223 | |
| 5224 | fi |
| 5225 | |
| 5226 | |
| 5227 | |
| 5228 | |
| 5229 | |
| 5230 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5231 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5232 | # checks for system services |
| 5233 | # (none yet) |
| 5234 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5235 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5236 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5237 | echo "configure:5238: checking for __fpu_control" >&5 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5238 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then |
| 5239 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5240 | else |
| 5241 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5242 | #line 5243 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5243 | #include "confdefs.h" |
| 5244 | /* System header to define __stub macros and hopefully few prototypes, |
| 5245 | which can conflict with char __fpu_control(); below. */ |
| 5246 | #include <assert.h> |
| 5247 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5248 | /* We use char because int might match the return type of a gcc2 |
| 5249 | builtin and then its argument prototype would still apply. */ |
| 5250 | char __fpu_control(); |
| 5251 | |
| 5252 | int main() { |
| 5253 | |
| 5254 | /* The GNU C library defines this for functions which it implements |
| 5255 | to always fail with ENOSYS. Some functions are actually named |
| 5256 | something starting with __ and the normal name is an alias. */ |
| 5257 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 5258 | choke me |
| 5259 | #else |
| 5260 | __fpu_control(); |
| 5261 | #endif |
| 5262 | |
| 5263 | ; return 0; } |
| 5264 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5265 | if { (eval echo configure:5266: \"$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] | 5266 | rm -rf conftest* |
| 5267 | eval "ac_cv_func___fpu_control=yes" |
| 5268 | else |
| 5269 | echo "configure: failed program was:" >&5 |
| 5270 | cat conftest.$ac_ext >&5 |
| 5271 | rm -rf conftest* |
| 5272 | eval "ac_cv_func___fpu_control=no" |
| 5273 | fi |
| 5274 | rm -f conftest* |
| 5275 | fi |
| 5276 | |
| 5277 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 5278 | echo "$ac_t""yes" 1>&6 |
| 5279 | : |
| 5280 | else |
| 5281 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5282 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5283 | echo "configure:5284: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5284 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5285 | 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] | 5286 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5287 | else |
| 5288 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5289 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5290 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5291 | #line 5292 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5292 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5293 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5294 | /* We use char because int might match the return type of a gcc2 |
| 5295 | builtin and then its argument prototype would still apply. */ |
| 5296 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5297 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5298 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5299 | __fpu_control() |
| 5300 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5301 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5302 | if { (eval echo configure:5303: \"$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] | 5303 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5304 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5305 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5306 | echo "configure: failed program was:" >&5 |
| 5307 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5308 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5309 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5310 | fi |
| 5311 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5312 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5313 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5314 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5315 | 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] | 5316 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5317 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5318 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5319 | cat >> confdefs.h <<EOF |
| 5320 | #define $ac_tr_lib 1 |
| 5321 | EOF |
| 5322 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5323 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5324 | |
| 5325 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5326 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5327 | fi |
| 5328 | |
| 5329 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5330 | fi |
| 5331 | |
| 5332 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5333 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5334 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5335 | echo "configure:5336: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5336 | # Check whether --with-fpectl or --without-fpectl was given. |
| 5337 | if test "${with_fpectl+set}" = set; then |
| 5338 | withval="$with_fpectl" |
| 5339 | |
| 5340 | if test "$withval" != no |
| 5341 | then cat >> confdefs.h <<\EOF |
| 5342 | #define WANT_SIGFPE_HANDLER 1 |
| 5343 | EOF |
| 5344 | echo "$ac_t""yes" 1>&6 |
| 5345 | else echo "$ac_t""no" 1>&6 |
| 5346 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5347 | else |
| 5348 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5349 | fi |
| 5350 | |
| 5351 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5352 | # check for --with-libm=... |
| 5353 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5354 | case $ac_sys_system in |
| 5355 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5356 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5357 | *) LIBM=-lm |
| 5358 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5359 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5360 | echo "configure:5361: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5361 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5362 | if test "${with_libm+set}" = set; then |
| 5363 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5364 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5365 | if test "$withval" = no |
| 5366 | then LIBM= |
| 5367 | echo "$ac_t""force LIBM empty" 1>&6 |
| 5368 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5369 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5370 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5371 | 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] | 5372 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5373 | else |
| 5374 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5375 | fi |
| 5376 | |
| 5377 | |
| 5378 | # check for --with-libc=... |
| 5379 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5380 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5381 | echo "configure:5382: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5382 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5383 | if test "${with_libc+set}" = set; then |
| 5384 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5385 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5386 | if test "$withval" = no |
| 5387 | then LIBC= |
| 5388 | echo "$ac_t""force LIBC empty" 1>&6 |
| 5389 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5390 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5391 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5392 | 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] | 5393 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5394 | else |
| 5395 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5396 | fi |
| 5397 | |
| 5398 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5399 | # check for hypot() in math library |
| 5400 | LIBS_SAVE=$LIBS |
| 5401 | LIBS="$LIBS $LIBM" |
| 5402 | for ac_func in hypot |
| 5403 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5404 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5405 | echo "configure:5406: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5406 | 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] | 5407 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5408 | else |
| 5409 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5410 | #line 5411 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5411 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5412 | /* System header to define __stub macros and hopefully few prototypes, |
| 5413 | which can conflict with char $ac_func(); below. */ |
| 5414 | #include <assert.h> |
| 5415 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5416 | /* We use char because int might match the return type of a gcc2 |
| 5417 | builtin and then its argument prototype would still apply. */ |
| 5418 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5419 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5420 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5421 | |
| 5422 | /* The GNU C library defines this for functions which it implements |
| 5423 | to always fail with ENOSYS. Some functions are actually named |
| 5424 | something starting with __ and the normal name is an alias. */ |
| 5425 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5426 | choke me |
| 5427 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5428 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5429 | #endif |
| 5430 | |
| 5431 | ; return 0; } |
| 5432 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5433 | if { (eval echo configure:5434: \"$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] | 5434 | rm -rf conftest* |
| 5435 | eval "ac_cv_func_$ac_func=yes" |
| 5436 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5437 | echo "configure: failed program was:" >&5 |
| 5438 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5439 | rm -rf conftest* |
| 5440 | eval "ac_cv_func_$ac_func=no" |
| 5441 | fi |
| 5442 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5443 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5444 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5445 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5446 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5447 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5448 | cat >> confdefs.h <<EOF |
| 5449 | #define $ac_tr_func 1 |
| 5450 | EOF |
| 5451 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5452 | else |
| 5453 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5454 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5455 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5456 | done |
| 5457 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5458 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5459 | LIBS=$LIBS_SAVE |
| 5460 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5461 | # check for getopt |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5462 | echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5463 | echo "configure:5464: checking for genuine getopt" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5464 | if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5465 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5466 | else |
| 5467 | if test "$cross_compiling" = yes; then |
| 5468 | ac_cv_func_getopt=no |
| 5469 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5470 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5471 | #line 5472 "configure" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5472 | #include "confdefs.h" |
| 5473 | #include <stdio.h> |
| 5474 | extern int optind, opterr, getopt(); |
| 5475 | extern char* optarg; |
| 5476 | int main() { |
| 5477 | char* av[] = { "testprog", "parameter", "-fFlag", NULL }; |
| 5478 | opterr = 0; |
| 5479 | if (getopt(3, av, "f:") == 'f') { exit(1); } |
| 5480 | exit(0); |
| 5481 | } |
| 5482 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5483 | if { (eval echo configure:5484: \"$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] | 5484 | then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5485 | ac_cv_func_getopt=yes |
| 5486 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5487 | echo "configure: failed program was:" >&5 |
| 5488 | cat conftest.$ac_ext >&5 |
| 5489 | rm -fr conftest* |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5490 | ac_cv_func_getopt=no |
| 5491 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5492 | rm -fr conftest* |
| 5493 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5494 | |
| 5495 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5496 | echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5497 | test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 5498 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5499 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5500 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5501 | echo "configure:5502: checking what malloc(0) returns" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5502 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5503 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5504 | else |
| 5505 | if test "$cross_compiling" = yes; then |
| 5506 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5507 | else |
| 5508 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5509 | #line 5510 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5510 | #include "confdefs.h" |
| 5511 | #include <stdio.h> |
| 5512 | #ifdef HAVE_STDLIB |
| 5513 | #include <stdlib.h> |
| 5514 | #else |
| 5515 | char *malloc(), *realloc(); |
| 5516 | int *free(); |
| 5517 | #endif |
| 5518 | main() { |
| 5519 | char *p; |
| 5520 | p = malloc(0); |
| 5521 | if (p == NULL) exit(1); |
| 5522 | p = realloc(p, 0); |
| 5523 | if (p == NULL) exit(1); |
| 5524 | free(p); |
| 5525 | exit(0); |
| 5526 | } |
| 5527 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5528 | if { (eval echo configure:5529: \"$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] | 5529 | then |
| 5530 | ac_cv_malloc_zero=nonnull |
| 5531 | else |
| 5532 | echo "configure: failed program was:" >&5 |
| 5533 | cat conftest.$ac_ext >&5 |
| 5534 | rm -fr conftest* |
| 5535 | ac_cv_malloc_zero=null |
| 5536 | fi |
| 5537 | rm -fr conftest* |
| 5538 | fi |
| 5539 | |
| 5540 | fi |
| 5541 | |
| 5542 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 5543 | if test "$ac_cv_malloc_zero" = null |
| 5544 | then |
| 5545 | cat >> confdefs.h <<\EOF |
| 5546 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 5547 | EOF |
| 5548 | |
| 5549 | fi |
| 5550 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5551 | # check for wchar.h |
| 5552 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 5553 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5554 | echo "configure:5555: checking for wchar.h" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5555 | 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] | 5556 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5557 | else |
| 5558 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5559 | #line 5560 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5560 | #include "confdefs.h" |
| 5561 | #include <wchar.h> |
| 5562 | EOF |
| 5563 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5564 | { (eval echo configure:5565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5565 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5566 | if test -z "$ac_err"; then |
| 5567 | rm -rf conftest* |
| 5568 | eval "ac_cv_header_$ac_safe=yes" |
| 5569 | else |
| 5570 | echo "$ac_err" >&5 |
| 5571 | echo "configure: failed program was:" >&5 |
| 5572 | cat conftest.$ac_ext >&5 |
| 5573 | rm -rf conftest* |
| 5574 | eval "ac_cv_header_$ac_safe=no" |
| 5575 | fi |
| 5576 | rm -f conftest* |
| 5577 | fi |
| 5578 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5579 | echo "$ac_t""yes" 1>&6 |
| 5580 | cat >> confdefs.h <<\EOF |
| 5581 | #define HAVE_WCHAR_H 1 |
| 5582 | EOF |
| 5583 | wchar_h="yes" |
| 5584 | else |
| 5585 | echo "$ac_t""no" 1>&6 |
| 5586 | wchar_h="no" |
| 5587 | |
| 5588 | fi |
| 5589 | |
| 5590 | |
| 5591 | # check for usable wchar_t |
| 5592 | usable_wchar_t="unkown" |
| 5593 | echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5594 | echo "configure:5595: checking for usable wchar_t" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5595 | if test "$cross_compiling" = yes; then |
| 5596 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5597 | else |
| 5598 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5599 | #line 5600 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5600 | #include "confdefs.h" |
| 5601 | |
| 5602 | #include "wchar.h" |
| 5603 | #include "wctype.h" |
| 5604 | main() { |
| 5605 | wchar_t s; |
| 5606 | if (sizeof(s) == 2) |
| 5607 | exit(0); |
| 5608 | else |
| 5609 | exit(1); |
| 5610 | } |
| 5611 | |
| 5612 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5613 | if { (eval echo configure:5614: \"$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] | 5614 | then |
| 5615 | cat >> confdefs.h <<\EOF |
| 5616 | #define HAVE_USABLE_WCHAR_T 1 |
| 5617 | EOF |
| 5618 | usable_wchar_t="yes" |
| 5619 | else |
| 5620 | echo "configure: failed program was:" >&5 |
| 5621 | cat conftest.$ac_ext >&5 |
| 5622 | rm -fr conftest* |
| 5623 | usable_wchar_t="no" |
| 5624 | fi |
| 5625 | rm -fr conftest* |
| 5626 | fi |
| 5627 | |
| 5628 | echo "$ac_t""$usable_wchar_t" 1>&6 |
| 5629 | |
| 5630 | # check for endianness |
| 5631 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5632 | echo "configure:5633: checking whether byte ordering is bigendian" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5633 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5634 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5635 | else |
| 5636 | ac_cv_c_bigendian=unknown |
| 5637 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5638 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5639 | #line 5640 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5640 | #include "confdefs.h" |
| 5641 | #include <sys/types.h> |
| 5642 | #include <sys/param.h> |
| 5643 | int main() { |
| 5644 | |
| 5645 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5646 | bogus endian macros |
| 5647 | #endif |
| 5648 | ; return 0; } |
| 5649 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5650 | if { (eval echo configure:5651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5651 | rm -rf conftest* |
| 5652 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5653 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5654 | #line 5655 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5655 | #include "confdefs.h" |
| 5656 | #include <sys/types.h> |
| 5657 | #include <sys/param.h> |
| 5658 | int main() { |
| 5659 | |
| 5660 | #if BYTE_ORDER != BIG_ENDIAN |
| 5661 | not big endian |
| 5662 | #endif |
| 5663 | ; return 0; } |
| 5664 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5665 | if { (eval echo configure:5666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5666 | rm -rf conftest* |
| 5667 | ac_cv_c_bigendian=yes |
| 5668 | else |
| 5669 | echo "configure: failed program was:" >&5 |
| 5670 | cat conftest.$ac_ext >&5 |
| 5671 | rm -rf conftest* |
| 5672 | ac_cv_c_bigendian=no |
| 5673 | fi |
| 5674 | rm -f conftest* |
| 5675 | else |
| 5676 | echo "configure: failed program was:" >&5 |
| 5677 | cat conftest.$ac_ext >&5 |
| 5678 | fi |
| 5679 | rm -f conftest* |
| 5680 | if test $ac_cv_c_bigendian = unknown; then |
| 5681 | if test "$cross_compiling" = yes; then |
| 5682 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5683 | else |
| 5684 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5685 | #line 5686 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5686 | #include "confdefs.h" |
| 5687 | main () { |
| 5688 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5689 | union |
| 5690 | { |
| 5691 | long l; |
| 5692 | char c[sizeof (long)]; |
| 5693 | } u; |
| 5694 | u.l = 1; |
| 5695 | exit (u.c[sizeof (long) - 1] == 1); |
| 5696 | } |
| 5697 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5698 | if { (eval echo configure:5699: \"$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] | 5699 | then |
| 5700 | ac_cv_c_bigendian=no |
| 5701 | else |
| 5702 | echo "configure: failed program was:" >&5 |
| 5703 | cat conftest.$ac_ext >&5 |
| 5704 | rm -fr conftest* |
| 5705 | ac_cv_c_bigendian=yes |
| 5706 | fi |
| 5707 | rm -fr conftest* |
| 5708 | fi |
| 5709 | |
| 5710 | fi |
| 5711 | fi |
| 5712 | |
| 5713 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5714 | if test $ac_cv_c_bigendian = yes; then |
| 5715 | cat >> confdefs.h <<\EOF |
| 5716 | #define WORDS_BIGENDIAN 1 |
| 5717 | EOF |
| 5718 | |
| 5719 | fi |
| 5720 | |
| 5721 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5722 | # Check whether right shifting a negative integer extends the sign bit |
| 5723 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 5724 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5725 | echo "configure:5726: checking whether right shift extends the sign bit" >&5 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5726 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
| 5727 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5728 | else |
| 5729 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5730 | if test "$cross_compiling" = yes; then |
| 5731 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5732 | else |
| 5733 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5734 | #line 5735 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5735 | #include "confdefs.h" |
| 5736 | |
| 5737 | int main() |
| 5738 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5739 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5740 | } |
| 5741 | |
| 5742 | EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5743 | if { (eval echo configure:5744: \"$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] | 5744 | then |
| 5745 | ac_cv_rshift_extends_sign=yes |
| 5746 | else |
| 5747 | echo "configure: failed program was:" >&5 |
| 5748 | cat conftest.$ac_ext >&5 |
| 5749 | rm -fr conftest* |
| 5750 | ac_cv_rshift_extends_sign=no |
| 5751 | fi |
| 5752 | rm -fr conftest* |
| 5753 | fi |
| 5754 | |
| 5755 | fi |
| 5756 | |
| 5757 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 5758 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5759 | then |
| 5760 | cat >> confdefs.h <<\EOF |
| 5761 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 5762 | EOF |
| 5763 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5764 | fi |
| 5765 | |
| 5766 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5767 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 5768 | # Add sys/socket.h to confdefs.h |
| 5769 | cat >> confdefs.h <<\EOF |
| 5770 | #ifdef HAVE_SYS_SOCKET_H |
| 5771 | #include <sys/socket.h> |
| 5772 | #endif |
| 5773 | EOF |
| 5774 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5775 | echo "configure:5776: checking for socklen_t" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5776 | 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] | 5777 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5778 | else |
| 5779 | cat > conftest.$ac_ext <<EOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 5780 | #line 5781 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5781 | #include "confdefs.h" |
| 5782 | #include <sys/types.h> |
| 5783 | #if STDC_HEADERS |
| 5784 | #include <stdlib.h> |
| 5785 | #include <stddef.h> |
| 5786 | #endif |
| 5787 | EOF |
| 5788 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5789 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5790 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5791 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5792 | else |
| 5793 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5794 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5795 | fi |
| 5796 | rm -f conftest* |
| 5797 | |
| 5798 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5799 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 5800 | if test $ac_cv_type_socklen_t = no; then |
| 5801 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5802 | #define socklen_t int |
| 5803 | EOF |
| 5804 | |
| 5805 | fi |
| 5806 | |
| 5807 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5808 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5809 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5810 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5811 | # This file is a shell script that caches the results of configure |
| 5812 | # tests run on this system so they can be shared between configure |
| 5813 | # scripts and configure runs. It is not useful on other systems. |
| 5814 | # If it contains results you don't want to keep, you may remove or edit it. |
| 5815 | # |
| 5816 | # By default, configure uses ./config.cache as the cache file, |
| 5817 | # creating it if it does not exist already. You can give configure |
| 5818 | # the --cache-file=FILE option to use a different cache file; that is |
| 5819 | # what configure does when it calls configure scripts in |
| 5820 | # subdirectories, so they share the cache. |
| 5821 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 5822 | # config.status only pays attention to the cache file if you give it the |
| 5823 | # --recheck option to rerun configure. |
| 5824 | # |
| 5825 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5826 | # The following way of writing the cache mishandles newlines in values, |
| 5827 | # but we know of no workaround that is simple, portable, and efficient. |
| 5828 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5829 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5830 | # 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] | 5831 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5832 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5833 | *ac_space=\ *) |
| 5834 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 5835 | # turns \\\\ into \\, and sed turns \\ into \). |
| 5836 | sed -n \ |
| 5837 | -e "s/'/'\\\\''/g" \ |
| 5838 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 5839 | ;; |
| 5840 | *) |
| 5841 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5842 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 5843 | ;; |
| 5844 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5845 | if cmp -s $cache_file confcache; then |
| 5846 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5847 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5848 | if test -w $cache_file; then |
| 5849 | echo "updating cache $cache_file" |
| 5850 | cat confcache > $cache_file |
| 5851 | else |
| 5852 | echo "not updating unwritable cache $cache_file" |
| 5853 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5854 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5855 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5856 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5857 | 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] | 5858 | |
| 5859 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5860 | # Let make expand exec_prefix. |
| 5861 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5862 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5863 | # Any assignment to VPATH causes Sun make to only execute |
| 5864 | # the first set of double-colon rules, so remove it if not needed. |
| 5865 | # If there is a colon in the path, we need to keep it. |
| 5866 | if test "x$srcdir" = x.; then |
| 5867 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 5868 | fi |
| 5869 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5870 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5871 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5872 | DEFS=-DHAVE_CONFIG_H |
| 5873 | |
| 5874 | # Without the "./", some shells look in PATH for config.status. |
| 5875 | : ${CONFIG_STATUS=./config.status} |
| 5876 | |
| 5877 | echo creating $CONFIG_STATUS |
| 5878 | rm -f $CONFIG_STATUS |
| 5879 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5880 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5881 | # Generated automatically by configure. |
| 5882 | # Run this file to recreate the current configuration. |
| 5883 | # This directory was configured as follows, |
| 5884 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 5885 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5886 | # $0 $ac_configure_args |
| 5887 | # |
| 5888 | # Compiler output produced by configure, useful for debugging |
| 5889 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5890 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5891 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5892 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5893 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5894 | case "\$ac_option" in |
| 5895 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5896 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 5897 | 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] | 5898 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5899 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5900 | exit 0 ;; |
| 5901 | -help | --help | --hel | --he | --h) |
| 5902 | echo "\$ac_cs_usage"; exit 0 ;; |
| 5903 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5904 | esac |
| 5905 | done |
| 5906 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5907 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5908 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5909 | trap 'rm -fr `echo "Makefile \ |
| 5910 | Objects/Makefile \ |
| 5911 | Parser/Makefile \ |
Sjoerd Mullender | a179503 | 2000-08-17 11:41:06 +0000 | [diff] [blame] | 5912 | Grammar/Makefile \ |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5913 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5914 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5915 | 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] | 5916 | EOF |
| 5917 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5918 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5919 | # Protect against being on the right side of a sed subst in config.status. |
| 5920 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 5921 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5922 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5923 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5924 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5925 | s%@CFLAGS@%$CFLAGS%g |
| 5926 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 5927 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5928 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5929 | s%@DEFS@%$DEFS%g |
| 5930 | s%@LDFLAGS@%$LDFLAGS%g |
| 5931 | s%@LIBS@%$LIBS%g |
| 5932 | s%@exec_prefix@%$exec_prefix%g |
| 5933 | s%@prefix@%$prefix%g |
| 5934 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5935 | s%@bindir@%$bindir%g |
| 5936 | s%@sbindir@%$sbindir%g |
| 5937 | s%@libexecdir@%$libexecdir%g |
| 5938 | s%@datadir@%$datadir%g |
| 5939 | s%@sysconfdir@%$sysconfdir%g |
| 5940 | s%@sharedstatedir@%$sharedstatedir%g |
| 5941 | s%@localstatedir@%$localstatedir%g |
| 5942 | s%@libdir@%$libdir%g |
| 5943 | s%@includedir@%$includedir%g |
| 5944 | s%@oldincludedir@%$oldincludedir%g |
| 5945 | s%@infodir@%$infodir%g |
| 5946 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 5947 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5948 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 5949 | s%@SGI_ABI@%$SGI_ABI%g |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 5950 | s%@SET_CXX@%$SET_CXX%g |
| 5951 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5952 | s%@CC@%$CC%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 5953 | s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g |
| 5954 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 5955 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5956 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5957 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 5958 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5959 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 5960 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5961 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 5962 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5963 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 5964 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5965 | s%@SO@%$SO%g |
| 5966 | s%@LDSHARED@%$LDSHARED%g |
| 5967 | s%@CCSHARED@%$CCSHARED%g |
| 5968 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5969 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 5970 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5971 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5972 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 5973 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5974 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5975 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 5976 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 5977 | 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] | 5978 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5979 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5980 | s%@LIBM@%$LIBM%g |
| 5981 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5982 | |
| 5983 | CEOF |
| 5984 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5985 | |
| 5986 | cat >> $CONFIG_STATUS <<\EOF |
| 5987 | |
| 5988 | # Split the substitutions into bite-sized pieces for seds with |
| 5989 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 5990 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 5991 | ac_file=1 # Number of current file. |
| 5992 | ac_beg=1 # First line for current file. |
| 5993 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 5994 | ac_more_lines=: |
| 5995 | ac_sed_cmds="" |
| 5996 | while $ac_more_lines; do |
| 5997 | if test $ac_beg -gt 1; then |
| 5998 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5999 | else |
| 6000 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6001 | fi |
| 6002 | if test ! -s conftest.s$ac_file; then |
| 6003 | ac_more_lines=false |
| 6004 | rm -f conftest.s$ac_file |
| 6005 | else |
| 6006 | if test -z "$ac_sed_cmds"; then |
| 6007 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6008 | else |
| 6009 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6010 | fi |
| 6011 | ac_file=`expr $ac_file + 1` |
| 6012 | ac_beg=$ac_end |
| 6013 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6014 | fi |
| 6015 | done |
| 6016 | if test -z "$ac_sed_cmds"; then |
| 6017 | ac_sed_cmds=cat |
| 6018 | fi |
| 6019 | EOF |
| 6020 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6021 | cat >> $CONFIG_STATUS <<EOF |
| 6022 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6023 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 6024 | Objects/Makefile \ |
| 6025 | Parser/Makefile \ |
Sjoerd Mullender | a179503 | 2000-08-17 11:41:06 +0000 | [diff] [blame] | 6026 | Grammar/Makefile \ |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6027 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6028 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6029 | Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6030 | EOF |
| 6031 | cat >> $CONFIG_STATUS <<\EOF |
| 6032 | 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] | 6033 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6034 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6035 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6036 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6037 | *) ac_file_in="${ac_file}.in" ;; |
| 6038 | esac |
| 6039 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6040 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6041 | |
| 6042 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6043 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6044 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6045 | # The file is in a subdirectory. |
| 6046 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6047 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6048 | # A "../" for each directory in $ac_dir_suffix. |
| 6049 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6050 | else |
| 6051 | ac_dir_suffix= ac_dots= |
| 6052 | fi |
| 6053 | |
| 6054 | case "$ac_given_srcdir" in |
| 6055 | .) srcdir=. |
| 6056 | if test -z "$ac_dots"; then top_srcdir=. |
| 6057 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6058 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6059 | *) # Relative path. |
| 6060 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6061 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6062 | esac |
| 6063 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6064 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6065 | echo creating "$ac_file" |
| 6066 | rm -f "$ac_file" |
| 6067 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6068 | case "$ac_file" in |
| 6069 | *Makefile*) ac_comsub="1i\\ |
| 6070 | # $configure_input" ;; |
| 6071 | *) ac_comsub= ;; |
| 6072 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6073 | |
| 6074 | 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] | 6075 | sed -e "$ac_comsub |
| 6076 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6077 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6078 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6079 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6080 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6081 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6082 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6083 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 6084 | # 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] | 6085 | # |
| 6086 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6087 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 6088 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6089 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6090 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6091 | # 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] | 6092 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6093 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6094 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6095 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6096 | # 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] | 6097 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6098 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6099 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6100 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6101 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6102 | if test "${CONFIG_HEADERS+set}" != set; then |
| 6103 | EOF |
| 6104 | cat >> $CONFIG_STATUS <<EOF |
| 6105 | CONFIG_HEADERS="config.h" |
| 6106 | EOF |
| 6107 | cat >> $CONFIG_STATUS <<\EOF |
| 6108 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6109 | 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] | 6110 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6111 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6112 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6113 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6114 | *) ac_file_in="${ac_file}.in" ;; |
| 6115 | esac |
| 6116 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6117 | echo creating $ac_file |
| 6118 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6119 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6120 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6121 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6122 | |
| 6123 | EOF |
| 6124 | |
| 6125 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 6126 | # 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] | 6127 | # 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] | 6128 | # Protect against being in an unquoted here document in config.status. |
| 6129 | rm -f conftest.vals |
| 6130 | cat > conftest.hdr <<\EOF |
| 6131 | s/[\\&%]/\\&/g |
| 6132 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6133 | 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] | 6134 | s%ac_d%ac_u%gp |
| 6135 | s%ac_u%ac_e%gp |
| 6136 | EOF |
| 6137 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 6138 | rm -f conftest.hdr |
| 6139 | |
| 6140 | # This sed command replaces #undef with comments. This is necessary, for |
| 6141 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6142 | # on some systems where configure will not decide to define it. |
| 6143 | cat >> conftest.vals <<\EOF |
| 6144 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6145 | EOF |
| 6146 | |
| 6147 | # Break up conftest.vals because some shells have a limit on |
| 6148 | # 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] | 6149 | |
| 6150 | rm -f conftest.tail |
| 6151 | while : |
| 6152 | do |
| 6153 | ac_lines=`grep -c . conftest.vals` |
| 6154 | # grep -c gives empty output for an empty file on some AIX systems. |
| 6155 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6156 | # Write a limited-size here document to conftest.frag. |
| 6157 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6158 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6159 | echo 'CEOF |
| 6160 | sed -f conftest.frag conftest.in > conftest.out |
| 6161 | rm -f conftest.in |
| 6162 | mv conftest.out conftest.in |
| 6163 | ' >> $CONFIG_STATUS |
| 6164 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6165 | rm -f conftest.vals |
| 6166 | mv conftest.tail conftest.vals |
| 6167 | done |
| 6168 | rm -f conftest.vals |
| 6169 | |
| 6170 | cat >> $CONFIG_STATUS <<\EOF |
| 6171 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6172 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6173 | cat conftest.in >> conftest.h |
| 6174 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6175 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6176 | echo "$ac_file is unchanged" |
| 6177 | rm -f conftest.h |
| 6178 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6179 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6180 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6181 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6182 | # The file is in a subdirectory. |
| 6183 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6184 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6185 | rm -f $ac_file |
| 6186 | mv conftest.h $ac_file |
| 6187 | fi |
| 6188 | fi; done |
| 6189 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6190 | EOF |
| 6191 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6192 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6193 | EOF |
| 6194 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6195 | |
| 6196 | exit 0 |
| 6197 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6198 | chmod +x $CONFIG_STATUS |
| 6199 | rm -fr confdefs* $ac_clean_files |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6200 | 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] | 6201 | |