Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3 | # From configure.in Revision: 1.113 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5 | # Guess values for system-dependent variables and create Makefiles. |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +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 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 17 | --with-next-archs='arch1 arch2 ..' build MAB binary" |
| 18 | ac_help="$ac_help |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 19 | --with-next-framework Build (OpenStep|Rhapsody|MacOS10) framework" |
| 20 | ac_help="$ac_help |
| 21 | --with-dyld Use (OpenStep|Rhapsody|MacOS10) dynamic linker" |
| 22 | ac_help="$ac_help |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23 | --without-gcc never use gcc" |
| 24 | ac_help="$ac_help |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 25 | --with-cxx=<compiler> enable C++ support" |
| 26 | ac_help="$ac_help |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 27 | --with-libs='lib1 ...' link against additional libs" |
| 28 | ac_help="$ac_help |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +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 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 31 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
| 32 | ac_help="$ac_help |
| 33 | --with-threads alias for --with-thread" |
| 34 | ac_help="$ac_help |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 35 | --with-thread[=DIRECTORY] make interpreter thread-safe" |
| 36 | ac_help="$ac_help |
| 37 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
| 38 | ac_help="$ac_help |
| 39 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
| 40 | ac_help="$ac_help |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 41 | --with-fpectl enable SIGFPE catching" |
| 42 | ac_help="$ac_help |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 43 | --with-libm=STRING math library" |
| 44 | ac_help="$ac_help |
| 45 | --with-libc=STRING C library" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 46 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 47 | # Initialize some variables set by options. |
| 48 | # The variables have the same names as the options, with |
| 49 | # dashes changed to underlines. |
| 50 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 51 | cache_file=./config.cache |
| 52 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 53 | host=NONE |
| 54 | no_create= |
| 55 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 56 | no_recursion= |
| 57 | prefix=NONE |
| 58 | program_prefix=NONE |
| 59 | program_suffix=NONE |
| 60 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 61 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 62 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 63 | srcdir= |
| 64 | target=NONE |
| 65 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 66 | x_includes=NONE |
| 67 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 68 | bindir='${exec_prefix}/bin' |
| 69 | sbindir='${exec_prefix}/sbin' |
| 70 | libexecdir='${exec_prefix}/libexec' |
| 71 | datadir='${prefix}/share' |
| 72 | sysconfdir='${prefix}/etc' |
| 73 | sharedstatedir='${prefix}/com' |
| 74 | localstatedir='${prefix}/var' |
| 75 | libdir='${exec_prefix}/lib' |
| 76 | includedir='${prefix}/include' |
| 77 | oldincludedir='/usr/include' |
| 78 | infodir='${prefix}/info' |
| 79 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 80 | |
| 81 | # Initialize some other variables. |
| 82 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 83 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 84 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 85 | # Maximum number of lines to put in a shell here document. |
| 86 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 87 | |
| 88 | ac_prev= |
| 89 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 90 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 91 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 92 | # If the previous option needs an argument, assign it. |
| 93 | if test -n "$ac_prev"; then |
| 94 | eval "$ac_prev=\$ac_option" |
| 95 | ac_prev= |
| 96 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 97 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 98 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 99 | case "$ac_option" in |
| 100 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 101 | *) ac_optarg= ;; |
| 102 | esac |
| 103 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 104 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 105 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 106 | case "$ac_option" in |
| 107 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 108 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 109 | ac_prev=bindir ;; |
| 110 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 111 | bindir="$ac_optarg" ;; |
| 112 | |
| 113 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 114 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 115 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 116 | build="$ac_optarg" ;; |
| 117 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 118 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 119 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 120 | ac_prev=cache_file ;; |
| 121 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 122 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 123 | cache_file="$ac_optarg" ;; |
| 124 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 125 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 126 | ac_prev=datadir ;; |
| 127 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 128 | | --da=*) |
| 129 | datadir="$ac_optarg" ;; |
| 130 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 131 | -disable-* | --disable-*) |
| 132 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 133 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 134 | 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] | 135 | { 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] | 136 | fi |
| 137 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 138 | eval "enable_${ac_feature}=no" ;; |
| 139 | |
| 140 | -enable-* | --enable-*) |
| 141 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 142 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 143 | 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] | 144 | { 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] | 145 | fi |
| 146 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 147 | case "$ac_option" in |
| 148 | *=*) ;; |
| 149 | *) ac_optarg=yes ;; |
| 150 | esac |
| 151 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 152 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 153 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 154 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 155 | | --exec | --exe | --ex) |
| 156 | ac_prev=exec_prefix ;; |
| 157 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 158 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 159 | | --exec=* | --exe=* | --ex=*) |
| 160 | exec_prefix="$ac_optarg" ;; |
| 161 | |
| 162 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 163 | # Obsolete; use --with-gas. |
| 164 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 165 | |
| 166 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 167 | # Omit some internal or obsolete options to make the list less imposing. |
| 168 | # 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] | 169 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 170 | Usage: configure [options] [host] |
| 171 | Options: [defaults in brackets after descriptions] |
| 172 | Configuration: |
| 173 | --cache-file=FILE cache test results in FILE |
| 174 | --help print this message |
| 175 | --no-create do not create output files |
| 176 | --quiet, --silent do not print \`checking...' messages |
| 177 | --version print the version of autoconf that created configure |
| 178 | Directory and file names: |
| 179 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 180 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 181 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 182 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 183 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 184 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 185 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 186 | --datadir=DIR read-only architecture-independent data in DIR |
| 187 | [PREFIX/share] |
| 188 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 189 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 190 | [PREFIX/com] |
| 191 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 192 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 193 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 194 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 195 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 196 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 197 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 198 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 199 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 200 | --program-transform-name=PROGRAM |
| 201 | run sed PROGRAM on installed program names |
| 202 | EOF |
| 203 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 204 | Host type: |
| 205 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 206 | --host=HOST configure for HOST [guessed] |
| 207 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 208 | Features and packages: |
| 209 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 210 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 211 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 212 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 213 | --x-includes=DIR X include files are in DIR |
| 214 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 215 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 216 | if test -n "$ac_help"; then |
| 217 | echo "--enable and --with options recognized:$ac_help" |
| 218 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 219 | exit 0 ;; |
| 220 | |
| 221 | -host | --host | --hos | --ho) |
| 222 | ac_prev=host ;; |
| 223 | -host=* | --host=* | --hos=* | --ho=*) |
| 224 | host="$ac_optarg" ;; |
| 225 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 226 | -includedir | --includedir | --includedi | --included | --include \ |
| 227 | | --includ | --inclu | --incl | --inc) |
| 228 | ac_prev=includedir ;; |
| 229 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 230 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 231 | includedir="$ac_optarg" ;; |
| 232 | |
| 233 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 234 | ac_prev=infodir ;; |
| 235 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 236 | infodir="$ac_optarg" ;; |
| 237 | |
| 238 | -libdir | --libdir | --libdi | --libd) |
| 239 | ac_prev=libdir ;; |
| 240 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 241 | libdir="$ac_optarg" ;; |
| 242 | |
| 243 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 244 | | --libexe | --libex | --libe) |
| 245 | ac_prev=libexecdir ;; |
| 246 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 247 | | --libexe=* | --libex=* | --libe=*) |
| 248 | libexecdir="$ac_optarg" ;; |
| 249 | |
| 250 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 251 | | --localstate | --localstat | --localsta | --localst \ |
| 252 | | --locals | --local | --loca | --loc | --lo) |
| 253 | ac_prev=localstatedir ;; |
| 254 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 255 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 256 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 257 | localstatedir="$ac_optarg" ;; |
| 258 | |
| 259 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 260 | ac_prev=mandir ;; |
| 261 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 262 | mandir="$ac_optarg" ;; |
| 263 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 264 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 265 | # Obsolete; use --without-fp. |
| 266 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 267 | |
| 268 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 269 | | --no-cr | --no-c) |
| 270 | no_create=yes ;; |
| 271 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 272 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 273 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 274 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 275 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 276 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 277 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 278 | | --oldin | --oldi | --old | --ol | --o) |
| 279 | ac_prev=oldincludedir ;; |
| 280 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 281 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 282 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 283 | oldincludedir="$ac_optarg" ;; |
| 284 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 285 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 286 | ac_prev=prefix ;; |
| 287 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 288 | prefix="$ac_optarg" ;; |
| 289 | |
| 290 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 291 | | --program-pre | --program-pr | --program-p) |
| 292 | ac_prev=program_prefix ;; |
| 293 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 294 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 295 | program_prefix="$ac_optarg" ;; |
| 296 | |
| 297 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 298 | | --program-suf | --program-su | --program-s) |
| 299 | ac_prev=program_suffix ;; |
| 300 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 301 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 302 | program_suffix="$ac_optarg" ;; |
| 303 | |
| 304 | -program-transform-name | --program-transform-name \ |
| 305 | | --program-transform-nam | --program-transform-na \ |
| 306 | | --program-transform-n | --program-transform- \ |
| 307 | | --program-transform | --program-transfor \ |
| 308 | | --program-transfo | --program-transf \ |
| 309 | | --program-trans | --program-tran \ |
| 310 | | --progr-tra | --program-tr | --program-t) |
| 311 | ac_prev=program_transform_name ;; |
| 312 | -program-transform-name=* | --program-transform-name=* \ |
| 313 | | --program-transform-nam=* | --program-transform-na=* \ |
| 314 | | --program-transform-n=* | --program-transform-=* \ |
| 315 | | --program-transform=* | --program-transfor=* \ |
| 316 | | --program-transfo=* | --program-transf=* \ |
| 317 | | --program-trans=* | --program-tran=* \ |
| 318 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 319 | program_transform_name="$ac_optarg" ;; |
| 320 | |
| 321 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 322 | | -silent | --silent | --silen | --sile | --sil) |
| 323 | silent=yes ;; |
| 324 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 325 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 326 | ac_prev=sbindir ;; |
| 327 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 328 | | --sbi=* | --sb=*) |
| 329 | sbindir="$ac_optarg" ;; |
| 330 | |
| 331 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 332 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 333 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 334 | | --sha | --sh) |
| 335 | ac_prev=sharedstatedir ;; |
| 336 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 337 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 338 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 339 | | --sha=* | --sh=*) |
| 340 | sharedstatedir="$ac_optarg" ;; |
| 341 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 342 | -site | --site | --sit) |
| 343 | ac_prev=site ;; |
| 344 | -site=* | --site=* | --sit=*) |
| 345 | site="$ac_optarg" ;; |
| 346 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 347 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 348 | ac_prev=srcdir ;; |
| 349 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 350 | srcdir="$ac_optarg" ;; |
| 351 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 352 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 353 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 354 | ac_prev=sysconfdir ;; |
| 355 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 356 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 357 | sysconfdir="$ac_optarg" ;; |
| 358 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 359 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 360 | ac_prev=target ;; |
| 361 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 362 | target="$ac_optarg" ;; |
| 363 | |
| 364 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 365 | verbose=yes ;; |
| 366 | |
| 367 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 368 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 369 | exit 0 ;; |
| 370 | |
| 371 | -with-* | --with-*) |
| 372 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 373 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 374 | 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] | 375 | { 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] | 376 | fi |
| 377 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 378 | case "$ac_option" in |
| 379 | *=*) ;; |
| 380 | *) ac_optarg=yes ;; |
| 381 | esac |
| 382 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 383 | |
| 384 | -without-* | --without-*) |
| 385 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 386 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 387 | 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] | 388 | { 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] | 389 | fi |
| 390 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 391 | eval "with_${ac_package}=no" ;; |
| 392 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 393 | --x) |
| 394 | # Obsolete; use --with-x. |
| 395 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 396 | |
| 397 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 398 | | --x-incl | --x-inc | --x-in | --x-i) |
| 399 | ac_prev=x_includes ;; |
| 400 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 401 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 402 | x_includes="$ac_optarg" ;; |
| 403 | |
| 404 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 405 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 406 | ac_prev=x_libraries ;; |
| 407 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 408 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 409 | x_libraries="$ac_optarg" ;; |
| 410 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 411 | -*) { 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] | 412 | ;; |
| 413 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 414 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 415 | 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] | 416 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 417 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 418 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 419 | { 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] | 420 | fi |
| 421 | nonopt="$ac_option" |
| 422 | ;; |
| 423 | |
| 424 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 425 | done |
| 426 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 427 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 428 | { 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] | 429 | fi |
| 430 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 431 | 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] | 432 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 433 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 434 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 435 | # 1 file creation |
| 436 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 437 | # 3 some systems may open it to /dev/tty |
| 438 | # 4 used on the Kubota Titan |
| 439 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 440 | # 5 compiler messages saved in config.log |
| 441 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 442 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 443 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 444 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 445 | fi |
| 446 | exec 5>./config.log |
| 447 | |
| 448 | echo "\ |
| 449 | This file contains any messages produced by compilers while |
| 450 | running configure, to aid debugging if configure makes a mistake. |
| 451 | " 1>&5 |
| 452 | |
| 453 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 454 | # Also quote any args containing shell metacharacters. |
| 455 | ac_configure_args= |
| 456 | for ac_arg |
| 457 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 458 | case "$ac_arg" in |
| 459 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 460 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 461 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 462 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 463 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 464 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 465 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 466 | esac |
| 467 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 468 | |
| 469 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 470 | # Only set these to C if already set. These must not be set unconditionally |
| 471 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 472 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 473 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 474 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 475 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 476 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 477 | 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] | 478 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 479 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 480 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 481 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 482 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 483 | |
| 484 | # A filename unique to this package, relative to the directory that |
| 485 | # 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] | 486 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 487 | |
| 488 | # Find the source files, if location was not specified. |
| 489 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 490 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 491 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 492 | ac_prog=$0 |
| 493 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 494 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 495 | srcdir=$ac_confdir |
| 496 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 497 | srcdir=.. |
| 498 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 499 | else |
| 500 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 501 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 502 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 503 | if test "$ac_srcdir_defaulted" = yes; then |
| 504 | { 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] | 505 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 506 | { 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] | 507 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 508 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 509 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 510 | |
| 511 | # Prefer explicitly selected file to automatically selected ones. |
| 512 | if test -z "$CONFIG_SITE"; then |
| 513 | if test "x$prefix" != xNONE; then |
| 514 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 515 | else |
| 516 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 517 | fi |
| 518 | fi |
| 519 | for ac_site_file in $CONFIG_SITE; do |
| 520 | if test -r "$ac_site_file"; then |
| 521 | echo "loading site script $ac_site_file" |
| 522 | . "$ac_site_file" |
| 523 | fi |
| 524 | done |
| 525 | |
| 526 | if test -r "$cache_file"; then |
| 527 | echo "loading cache $cache_file" |
| 528 | . $cache_file |
| 529 | else |
| 530 | echo "creating cache $cache_file" |
| 531 | > $cache_file |
| 532 | fi |
| 533 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 534 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 535 | # 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] | 536 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 537 | 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] | 538 | 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] | 539 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 540 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 541 | ac_exeext= |
| 542 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 543 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 544 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 545 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 546 | ac_n= ac_c=' |
| 547 | ' ac_t=' ' |
| 548 | else |
| 549 | ac_n=-n ac_c= ac_t= |
| 550 | fi |
| 551 | else |
| 552 | ac_n= ac_c='\c' ac_t= |
| 553 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 554 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 555 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 556 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 557 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 558 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 559 | |
| 560 | VERSION=1.5 |
| 561 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 562 | # NEXTSTEP stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 563 | 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] | 564 | |
| 565 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 566 | echo "configure:567: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 567 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 568 | if test "${with_next_archs+set}" = set; then |
| 569 | withval="$with_next_archs" |
| 570 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 571 | if test -n "$withval"; then |
| 572 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 573 | # GCC does not currently support multi archs on the NeXT |
| 574 | with_gcc=no |
| 575 | fi |
| 576 | echo "$ac_t""$with_next_archs" 1>&6 |
| 577 | |
| 578 | else |
| 579 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 580 | fi |
| 581 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 582 | |
| 583 | if test -z "$MACHDEP" |
| 584 | then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 585 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 586 | sed -e 's/://' -e 's/\./_/'` && \ |
| 587 | ac_sys_system=next && ac_sys_release=$4 |
| 588 | |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 589 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 590 | fi |
| 591 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 592 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 593 | # Check whether --with-next-framework or --without-next-framework was given. |
| 594 | if test "${with_next_framework+set}" = set; then |
| 595 | withval="$with_next_framework" |
| 596 | : |
| 597 | fi |
| 598 | |
| 599 | # Check whether --with-dyld or --without-dyld was given. |
| 600 | if test "${with_dyld+set}" = set; then |
| 601 | withval="$with_dyld" |
| 602 | : |
| 603 | fi |
| 604 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 605 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 606 | # Set name for machine-dependent library files |
| 607 | |
| 608 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 609 | echo "configure:610: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 610 | if test -z "$MACHDEP" |
| 611 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 612 | ac_sys_system=`uname -s` |
| 613 | if test "$ac_sys_system" = "AIX" ; then |
| 614 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 615 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 616 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 617 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 618 | ac_md_system=`echo $ac_sys_system | |
| 619 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 620 | ac_md_release=`echo $ac_sys_release | |
| 621 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 622 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 623 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 624 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 625 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 626 | esac |
| 627 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 628 | |
| 629 | # |
| 630 | # SGI compilers allow the specification of the both the ABI and the |
| 631 | # ISA on the command line. Depending on the values of these switches, |
| 632 | # different and often incompatable code will be generated. |
| 633 | # |
| 634 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 635 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 636 | # variable is also adjusted. |
| 637 | # |
| 638 | |
| 639 | if test ! -z "$SGI_ABI" |
| 640 | then |
| 641 | CC="cc $SGI_ABI" |
| 642 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 643 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 644 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 645 | echo "$ac_t""$MACHDEP" 1>&6 |
| 646 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 647 | # |
| 648 | # CCC is the command that compiles C++ programs |
| 649 | # |
| 650 | # Not all make programs have this predefined. |
| 651 | # |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 652 | #AC_SUBST(SET_CCC) |
| 653 | #AC_MSG_CHECKING(CCC) |
| 654 | #if test -z "$CCC" |
| 655 | #then |
| 656 | # case $ac_sys_system in |
| 657 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 658 | # Linux*) SET_CCC="CCC= g++";; |
| 659 | # *) SET_CCC="" |
| 660 | # esac |
| 661 | #else |
| 662 | # SET_CCC="CCC= ${CCC}" |
| 663 | #fi |
| 664 | #AC_MSG_RESULT($SET_CCC) |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 665 | |
| 666 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 667 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 668 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 669 | echo "configure:670: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 670 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 671 | if test "${with_gcc+set}" = set; then |
| 672 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 673 | |
| 674 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 675 | no) CC=cc |
| 676 | without_gcc=yes;; |
| 677 | yes) CC=gcc |
| 678 | without_gcc=no;; |
| 679 | *) CC=$withval |
| 680 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 681 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 682 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 683 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 684 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 685 | OSF1) CC=cc |
| 686 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 687 | BeOS*) |
| 688 | # Dunno if it's a good idea to get this over with all at once, or |
| 689 | # to handle it in with the other goodies. |
| 690 | MACHDEP=beos |
| 691 | |
| 692 | case $BE_HOST_CPU in |
| 693 | ppc) |
Guido van Rossum | 8137680 | 1999-04-06 15:50:51 +0000 | [diff] [blame] | 694 | CC="mwcc -I$PWD/BeOS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 695 | without_gcc=yes |
Guido van Rossum | 6b9da45 | 1999-03-24 17:48:12 +0000 | [diff] [blame] | 696 | case `uname -r` in |
| 697 | 4.0*) OPT="-DUSE_DL_EXPORT -O7 -opt schedule604 -export pragma" ;; |
| 698 | *) OPT="-DUSE_DL_EXPORT -O2 -proc 604e -export pragma" ;; |
| 699 | esac |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 700 | CCSHARED=-UUSE_DL_EXPORT |
| 701 | LDFLAGS="$LDFLAGS -nodup" |
| 702 | |
| 703 | AR="$PWD/BeOS/ar-fake" |
| 704 | RANLIB=: |
| 705 | |
| 706 | cat >> confdefs.h <<\EOF |
| 707 | #define DL_EXPORT_HEADER "dl_export.h" |
| 708 | EOF |
| 709 | |
| 710 | ;; |
| 711 | x86) |
| 712 | CC="gcc -I$PWD/BeOS" |
| 713 | without_gcc=no |
| 714 | OPT="-DUSE_DL_EXPORT -O3 -mpentiumpro" |
| 715 | CCSHARED=-UUSE_DL_EXPORT |
| 716 | |
| 717 | AR="$PWD/BeOS/ar-fake" |
| 718 | RANLIB=: |
| 719 | |
| 720 | cat >> confdefs.h <<\EOF |
| 721 | #define DL_EXPORT_HEADER "dl_export.h" |
| 722 | EOF |
| 723 | |
| 724 | ;; |
| 725 | *) |
| 726 | { echo "configure: error: Your BeOS system isn't PowerPC or x86... neat" 1>&2; exit 1; } |
| 727 | ;; |
| 728 | esac |
| 729 | ;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 730 | *) without_gcc=no;; |
| 731 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 732 | fi |
| 733 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 734 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 735 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 736 | |
| 737 | |
| 738 | MAINOBJ=python.o |
| 739 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
| 740 | echo "configure:741: checking for --with-cxx=<compiler>" >&5 |
| 741 | # Check whether --with-cxx or --without-cxx was given. |
| 742 | if test "${with_cxx+set}" = set; then |
| 743 | withval="$with_cxx" |
| 744 | |
| 745 | case $withval in |
| 746 | no) CXX= |
| 747 | with_cxx=no;; |
| 748 | *) CXX=$withval |
| 749 | MAINOBJ=ccpython.o |
| 750 | with_cxx=$withval;; |
| 751 | esac |
| 752 | else |
| 753 | |
| 754 | with_cxx=no |
| 755 | |
| 756 | fi |
| 757 | |
| 758 | echo "$ac_t""$with_cxx" 1>&6 |
| 759 | SET_CXX="CXX = $CXX" |
| 760 | |
| 761 | #AC_MSG_CHECKING(CCC) |
| 762 | #if test -z "$CCC" |
| 763 | #then |
| 764 | # case $ac_sys_system in |
| 765 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 766 | # Linux*) SET_CCC="CCC= g++";; |
| 767 | # *) SET_CCC="" |
| 768 | # esac |
| 769 | #else |
| 770 | # SET_CCC="CCC= ${CCC}" |
| 771 | #fi |
| 772 | #AC_MSG_RESULT($SET_CCC) |
| 773 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 774 | # If the user switches compilers, we can't believe the cache |
| 775 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 776 | then |
| 777 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 778 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 779 | fi |
| 780 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 781 | # Extract the first word of "gcc", so it can be a program name with args. |
| 782 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 783 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 784 | echo "configure:785: checking for $ac_word" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 785 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 786 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 787 | else |
| 788 | if test -n "$CC"; then |
| 789 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 790 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 791 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 792 | ac_dummy="$PATH" |
| 793 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 794 | test -z "$ac_dir" && ac_dir=. |
| 795 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 796 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 797 | break |
| 798 | fi |
| 799 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 800 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 801 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 802 | fi |
| 803 | CC="$ac_cv_prog_CC" |
| 804 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 805 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 806 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 807 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 808 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 809 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 810 | if test -z "$CC"; then |
| 811 | # Extract the first word of "cc", so it can be a program name with args. |
| 812 | set dummy cc; ac_word=$2 |
| 813 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 814 | echo "configure:815: checking for $ac_word" >&5 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 815 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 816 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 817 | else |
| 818 | if test -n "$CC"; then |
| 819 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 820 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 821 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 822 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 823 | ac_dummy="$PATH" |
| 824 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 825 | test -z "$ac_dir" && ac_dir=. |
| 826 | if test -f $ac_dir/$ac_word; then |
| 827 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 828 | ac_prog_rejected=yes |
| 829 | continue |
| 830 | fi |
| 831 | ac_cv_prog_CC="cc" |
| 832 | break |
| 833 | fi |
| 834 | done |
| 835 | IFS="$ac_save_ifs" |
| 836 | if test $ac_prog_rejected = yes; then |
| 837 | # We found a bogon in the path, so make sure we never use it. |
| 838 | set dummy $ac_cv_prog_CC |
| 839 | shift |
| 840 | if test $# -gt 0; then |
| 841 | # We chose a different compiler from the bogus one. |
| 842 | # However, it has the same basename, so the bogon will be chosen |
| 843 | # first if we set CC to just the basename; use the full file name. |
| 844 | shift |
| 845 | set dummy "$ac_dir/$ac_word" "$@" |
| 846 | shift |
| 847 | ac_cv_prog_CC="$@" |
| 848 | fi |
| 849 | fi |
| 850 | fi |
| 851 | fi |
| 852 | CC="$ac_cv_prog_CC" |
| 853 | if test -n "$CC"; then |
| 854 | echo "$ac_t""$CC" 1>&6 |
| 855 | else |
| 856 | echo "$ac_t""no" 1>&6 |
| 857 | fi |
| 858 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 859 | if test -z "$CC"; then |
| 860 | case "`uname -s`" in |
| 861 | *win32* | *WIN32*) |
| 862 | # Extract the first word of "cl", so it can be a program name with args. |
| 863 | set dummy cl; ac_word=$2 |
| 864 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 865 | echo "configure:866: checking for $ac_word" >&5 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 866 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 867 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 868 | else |
| 869 | if test -n "$CC"; then |
| 870 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 871 | else |
| 872 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 873 | ac_dummy="$PATH" |
| 874 | for ac_dir in $ac_dummy; do |
| 875 | test -z "$ac_dir" && ac_dir=. |
| 876 | if test -f $ac_dir/$ac_word; then |
| 877 | ac_cv_prog_CC="cl" |
| 878 | break |
| 879 | fi |
| 880 | done |
| 881 | IFS="$ac_save_ifs" |
| 882 | fi |
| 883 | fi |
| 884 | CC="$ac_cv_prog_CC" |
| 885 | if test -n "$CC"; then |
| 886 | echo "$ac_t""$CC" 1>&6 |
| 887 | else |
| 888 | echo "$ac_t""no" 1>&6 |
| 889 | fi |
| 890 | ;; |
| 891 | esac |
| 892 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 893 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 894 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 895 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 896 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 897 | echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 898 | |
| 899 | ac_ext=c |
| 900 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 901 | ac_cpp='$CPP $CPPFLAGS' |
| 902 | 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] | 903 | 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] | 904 | cross_compiling=$ac_cv_prog_cc_cross |
| 905 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 906 | cat > conftest.$ac_ext << EOF |
| 907 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 908 | #line 909 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 909 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 910 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 911 | main(){return(0);} |
| 912 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 913 | if { (eval echo configure:914: \"$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] | 914 | ac_cv_prog_cc_works=yes |
| 915 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 916 | if (./conftest; exit) 2>/dev/null; then |
| 917 | ac_cv_prog_cc_cross=no |
| 918 | else |
| 919 | ac_cv_prog_cc_cross=yes |
| 920 | fi |
| 921 | else |
| 922 | echo "configure: failed program was:" >&5 |
| 923 | cat conftest.$ac_ext >&5 |
| 924 | ac_cv_prog_cc_works=no |
| 925 | fi |
| 926 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 927 | ac_ext=c |
| 928 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 929 | ac_cpp='$CPP $CPPFLAGS' |
| 930 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 931 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 932 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 933 | |
| 934 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 935 | if test $ac_cv_prog_cc_works = no; then |
| 936 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 937 | fi |
| 938 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 939 | echo "configure:940: 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] | 940 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 941 | cross_compiling=$ac_cv_prog_cc_cross |
| 942 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 943 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 944 | echo "configure:945: checking whether we are using GNU C" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 945 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 946 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 947 | else |
| 948 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 949 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 950 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 951 | #endif |
| 952 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 953 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:954: \"$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] | 954 | ac_cv_prog_gcc=yes |
| 955 | else |
| 956 | ac_cv_prog_gcc=no |
| 957 | fi |
| 958 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 959 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 960 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 961 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 962 | if test $ac_cv_prog_gcc = yes; then |
| 963 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 964 | else |
| 965 | GCC= |
| 966 | fi |
| 967 | |
| 968 | ac_test_CFLAGS="${CFLAGS+set}" |
| 969 | ac_save_CFLAGS="$CFLAGS" |
| 970 | CFLAGS= |
| 971 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 972 | echo "configure:973: checking whether ${CC-cc} accepts -g" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 973 | 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] | 974 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 975 | else |
| 976 | echo 'void f(){}' > conftest.c |
| 977 | 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] | 978 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 979 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 980 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 981 | fi |
| 982 | rm -f conftest* |
| 983 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 984 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 985 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 986 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 987 | if test "$ac_test_CFLAGS" = set; then |
| 988 | CFLAGS="$ac_save_CFLAGS" |
| 989 | elif test $ac_cv_prog_cc_g = yes; then |
| 990 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 991 | CFLAGS="-g -O2" |
| 992 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 993 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 994 | fi |
| 995 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 996 | if test "$GCC" = yes; then |
| 997 | CFLAGS="-O2" |
| 998 | else |
| 999 | CFLAGS= |
| 1000 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1001 | fi |
| 1002 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1003 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1004 | case $MACHDEP in |
| 1005 | bsdos*) |
| 1006 | case $CC in |
| 1007 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1008 | esac;; |
| 1009 | esac |
| 1010 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1011 | case $ac_sys_system in |
| 1012 | hp*|HP*) |
| 1013 | case $CC in |
| 1014 | cc|*/cc) CC="$CC -Aa -D_HPUX_SOURCE";; |
| 1015 | esac;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1016 | BeOS*) |
| 1017 | case $CC in |
| 1018 | cc) CC=cc;; |
| 1019 | esac;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1020 | esac |
| 1021 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1022 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1023 | # name of the library into which to insert object files). On systems |
| 1024 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
| 1025 | # the Makefiles). |
| 1026 | |
| 1027 | |
| 1028 | LDLIBRARY='' |
| 1029 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1030 | # 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] | 1031 | # This is altered for AIX and BeOS in order to build the export list before |
| 1032 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1033 | |
| 1034 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1035 | echo "configure:1036: checking LINKCC" >&5 |
| 1036 | if test -z "$LINKCC" -a ! -z "$CXX" |
| 1037 | then |
| 1038 | LINKCC="$CXX" |
| 1039 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1040 | if test -z "$LINKCC" |
| 1041 | then |
| 1042 | case $ac_sys_system in |
| 1043 | AIX*) |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 1044 | LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1045 | BeOS*) |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 1046 | LINKCC="\$(srcdir)/../BeOS/linkcc \$(LIBRARY) \$(PURIFY) \$(CC) \$(OPT)" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1047 | LDLIBRARY='libpython$(VERSION).so';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1048 | dgux*) |
| 1049 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1050 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1051 | esac |
| 1052 | fi |
| 1053 | echo "$ac_t""$LINKCC" 1>&6 |
| 1054 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1055 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1056 | echo "configure:1057: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1057 | |
| 1058 | # NeXT framework builds require that the 'ar' library be converted into |
| 1059 | # a bundle using libtool. |
| 1060 | if test "$with_next_framework" |
| 1061 | then |
| 1062 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1063 | fi |
| 1064 | |
| 1065 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 1066 | if test "$MACHDEP" = "dguxR4" |
| 1067 | then |
| 1068 | LDLIBRARY='libpython$(VERSION).so' |
| 1069 | OPT="$OPT -pic" |
| 1070 | fi |
| 1071 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1072 | |
| 1073 | # If LDLIBRARY is different from LIBRARY, emit a rule to build it. |
| 1074 | if test -z "$LDLIBRARY" |
| 1075 | then |
| 1076 | LDLIBRARY='libpython$(VERSION).a' |
| 1077 | MAKE_LDLIBRARY="true" |
| 1078 | else |
| 1079 | MAKE_LDLIBRARY='$(MAKE) $(LDLIBRARY)' |
| 1080 | fi |
| 1081 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1082 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1083 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1084 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1085 | echo "configure:1086: checking for $ac_word" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1086 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1087 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1088 | else |
| 1089 | if test -n "$RANLIB"; then |
| 1090 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1091 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1092 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1093 | ac_dummy="$PATH" |
| 1094 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1095 | test -z "$ac_dir" && ac_dir=. |
| 1096 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1097 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1098 | break |
| 1099 | fi |
| 1100 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1101 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1102 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1103 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1104 | fi |
| 1105 | RANLIB="$ac_cv_prog_RANLIB" |
| 1106 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1107 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1108 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1109 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1110 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1111 | |
| 1112 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1113 | for ac_prog in ar aal |
| 1114 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1115 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1116 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1117 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1118 | echo "configure:1119: checking for $ac_word" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1119 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 1120 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1121 | else |
| 1122 | if test -n "$AR"; then |
| 1123 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1124 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1125 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1126 | ac_dummy="$PATH" |
| 1127 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1128 | test -z "$ac_dir" && ac_dir=. |
| 1129 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1130 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1131 | break |
| 1132 | fi |
| 1133 | done |
| 1134 | IFS="$ac_save_ifs" |
| 1135 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1136 | fi |
| 1137 | AR="$ac_cv_prog_AR" |
| 1138 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1139 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1140 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1141 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1142 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1143 | |
| 1144 | test -n "$AR" && break |
| 1145 | done |
| 1146 | test -n "$AR" || AR="ar" |
| 1147 | |
| 1148 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1149 | |
| 1150 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1151 | # Install just never works :-( |
| 1152 | if test -z "$INSTALL" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1153 | then |
| 1154 | INSTALL=cp |
| 1155 | INSTALL_PROGRAM=cp |
| 1156 | INSTALL_DATA=cp |
| 1157 | else |
| 1158 | INSTALL_PROGRAM="$INSTALL" |
| 1159 | INSTALL_DATA="$INSTALL -m 644" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1160 | fi |
| 1161 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1162 | # Not every filesystem supports hard links |
| 1163 | |
| 1164 | if test -z "$LN" ; then |
| 1165 | case $ac_sys_system in |
| 1166 | BeOS*) LN="ln -s";; |
| 1167 | *) LN=ln;; |
| 1168 | esac |
| 1169 | fi |
| 1170 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1171 | # Optimizer/debugger flags passed between Makefiles |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1172 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1173 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1174 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1175 | case $GCC in |
| 1176 | yes) |
| 1177 | case $ac_cv_prog_cc_g in |
| 1178 | yes) OPT="-g -O2";; |
| 1179 | *) OPT="-O2";; |
| 1180 | esac |
| 1181 | ;; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1182 | *) OPT="-O";; |
| 1183 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1184 | fi |
| 1185 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1186 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1187 | then |
| 1188 | OPT="$OPT $ac_arch_flags" |
| 1189 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1190 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1191 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1192 | echo "configure:1193: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1193 | # On Suns, sometimes $CPP names a directory. |
| 1194 | if test -n "$CPP" && test -d "$CPP"; then |
| 1195 | CPP= |
| 1196 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1197 | if test -z "$CPP"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1198 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1199 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1200 | else |
| 1201 | # This must be in double quotes, not single quotes, because CPP may get |
| 1202 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1203 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1204 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1205 | # not just through cpp. |
| 1206 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1207 | #line 1208 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1208 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1209 | #include <assert.h> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1210 | Syntax Error |
| 1211 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1212 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1213 | { (eval echo configure:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1214 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1215 | if test -z "$ac_err"; then |
| 1216 | : |
| 1217 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1218 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1219 | echo "configure: failed program was:" >&5 |
| 1220 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1221 | rm -rf conftest* |
| 1222 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1223 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1224 | #line 1225 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1225 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1226 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1227 | Syntax Error |
| 1228 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1229 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1230 | { (eval echo configure:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1231 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1232 | if test -z "$ac_err"; then |
| 1233 | : |
| 1234 | else |
| 1235 | echo "$ac_err" >&5 |
| 1236 | echo "configure: failed program was:" >&5 |
| 1237 | cat conftest.$ac_ext >&5 |
| 1238 | rm -rf conftest* |
| 1239 | CPP="${CC-cc} -nologo -E" |
| 1240 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1241 | #line 1242 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1242 | #include "confdefs.h" |
| 1243 | #include <assert.h> |
| 1244 | Syntax Error |
| 1245 | EOF |
| 1246 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1247 | { (eval echo configure:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1248 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1249 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1250 | : |
| 1251 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1252 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1253 | echo "configure: failed program was:" >&5 |
| 1254 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1255 | rm -rf conftest* |
| 1256 | CPP=/lib/cpp |
| 1257 | fi |
| 1258 | rm -f conftest* |
| 1259 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1260 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1261 | fi |
| 1262 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1263 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1264 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1265 | CPP="$ac_cv_prog_CPP" |
| 1266 | else |
| 1267 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1268 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1269 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1270 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1271 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1272 | echo "configure:1273: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1273 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1274 | #line 1275 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1275 | #include "confdefs.h" |
| 1276 | #ifdef _AIX |
| 1277 | yes |
| 1278 | #endif |
| 1279 | |
| 1280 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1282 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1283 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1284 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1285 | #define _ALL_SOURCE 1 |
| 1286 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1287 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1288 | else |
| 1289 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1290 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1291 | fi |
| 1292 | rm -f conftest* |
| 1293 | |
| 1294 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1295 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1296 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1297 | echo "configure:1298: checking for minix/config.h" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1298 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1299 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1300 | else |
| 1301 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1302 | #line 1303 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1303 | #include "confdefs.h" |
| 1304 | #include <minix/config.h> |
| 1305 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1306 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1307 | { (eval echo configure:1308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1308 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1309 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1310 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1311 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1312 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1313 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1314 | echo "configure: failed program was:" >&5 |
| 1315 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1316 | rm -rf conftest* |
| 1317 | eval "ac_cv_header_$ac_safe=no" |
| 1318 | fi |
| 1319 | rm -f conftest* |
| 1320 | fi |
| 1321 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1322 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1323 | MINIX=yes |
| 1324 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1325 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1326 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1327 | fi |
| 1328 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1329 | if test "$MINIX" = yes; then |
| 1330 | cat >> confdefs.h <<\EOF |
| 1331 | #define _POSIX_SOURCE 1 |
| 1332 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1333 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1334 | cat >> confdefs.h <<\EOF |
| 1335 | #define _POSIX_1_SOURCE 2 |
| 1336 | EOF |
| 1337 | |
| 1338 | cat >> confdefs.h <<\EOF |
| 1339 | #define _MINIX 1 |
| 1340 | EOF |
| 1341 | |
| 1342 | fi |
| 1343 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1344 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1345 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1346 | echo "configure:1347: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1347 | if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then |
| 1348 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1349 | else |
| 1350 | ac_save_cc="$CC" |
| 1351 | CC="$CC -OPT:Olimit=0" |
| 1352 | if test "$cross_compiling" = yes; then |
| 1353 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1354 | else |
| 1355 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1356 | #line 1357 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1357 | #include "confdefs.h" |
| 1358 | int main() { return 0; } |
| 1359 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1360 | if { (eval echo configure:1361: \"$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] | 1361 | then |
| 1362 | ac_cv_opt_olimit_ok=yes |
| 1363 | else |
| 1364 | echo "configure: failed program was:" >&5 |
| 1365 | cat conftest.$ac_ext >&5 |
| 1366 | rm -fr conftest* |
| 1367 | ac_cv_opt_olimit_ok=no |
| 1368 | fi |
| 1369 | rm -fr conftest* |
| 1370 | fi |
| 1371 | |
| 1372 | CC="$ac_save_cc" |
| 1373 | fi |
| 1374 | |
| 1375 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1376 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 1377 | OPT="$OPT -OPT:Olimit=0" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1378 | else |
| 1379 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1380 | echo "configure:1381: checking whether $CC accepts -Olimit 1500" >&5 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1381 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
| 1382 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1383 | else |
| 1384 | ac_save_cc="$CC" |
| 1385 | CC="$CC -Olimit 1500" |
| 1386 | if test "$cross_compiling" = yes; then |
| 1387 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1388 | else |
| 1389 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1390 | #line 1391 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1391 | #include "confdefs.h" |
| 1392 | int main() { return 0; } |
| 1393 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1394 | if { (eval echo configure:1395: \"$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] | 1395 | then |
| 1396 | ac_cv_olimit_ok=yes |
| 1397 | else |
| 1398 | echo "configure: failed program was:" >&5 |
| 1399 | cat conftest.$ac_ext >&5 |
| 1400 | rm -fr conftest* |
| 1401 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1402 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1403 | rm -fr conftest* |
| 1404 | fi |
| 1405 | |
| 1406 | CC="$ac_save_cc" |
| 1407 | fi |
| 1408 | |
| 1409 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1410 | if test $ac_cv_olimit_ok = yes; then |
| 1411 | OPT="$OPT -Olimit 1500" |
| 1412 | fi |
| 1413 | fi |
| 1414 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1415 | # check for ANSI or K&R ("traditional") preprocessor |
| 1416 | echo $ac_n "checking for C preprocessor type""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1417 | echo "configure:1418: checking for C preprocessor type" >&5 |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1418 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1419 | #line 1420 "configure" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1420 | #include "confdefs.h" |
| 1421 | |
| 1422 | #define spam(name, doc) {#name, &name, #name "() -- " doc} |
| 1423 | int foo; |
| 1424 | struct {char *name; int *addr; char *doc;} desc = spam(foo, "something"); |
| 1425 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1426 | int main() { |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1427 | ; |
| 1428 | ; return 0; } |
| 1429 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1430 | if { (eval echo configure:1431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1431 | rm -rf conftest* |
| 1432 | cpp_type=ansi |
| 1433 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1434 | echo "configure: failed program was:" >&5 |
| 1435 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1436 | rm -rf conftest* |
| 1437 | cat >> confdefs.h <<\EOF |
| 1438 | #define HAVE_OLD_CPP 1 |
| 1439 | EOF |
| 1440 | cpp_type=traditional |
| 1441 | fi |
| 1442 | rm -f conftest* |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1443 | echo "$ac_t""$cpp_type" 1>&6 |
| 1444 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1445 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1446 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1447 | echo "configure:1448: checking for ANSI C header files" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1448 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1449 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1450 | else |
| 1451 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1452 | #line 1453 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1453 | #include "confdefs.h" |
| 1454 | #include <stdlib.h> |
| 1455 | #include <stdarg.h> |
| 1456 | #include <string.h> |
| 1457 | #include <float.h> |
| 1458 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1459 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1460 | { (eval echo configure:1461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1461 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1462 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1463 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1464 | ac_cv_header_stdc=yes |
| 1465 | else |
| 1466 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1467 | echo "configure: failed program was:" >&5 |
| 1468 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1469 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1470 | ac_cv_header_stdc=no |
| 1471 | fi |
| 1472 | rm -f conftest* |
| 1473 | |
| 1474 | if test $ac_cv_header_stdc = yes; then |
| 1475 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1476 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1477 | #line 1478 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1478 | #include "confdefs.h" |
| 1479 | #include <string.h> |
| 1480 | EOF |
| 1481 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1482 | egrep "memchr" >/dev/null 2>&1; then |
| 1483 | : |
| 1484 | else |
| 1485 | rm -rf conftest* |
| 1486 | ac_cv_header_stdc=no |
| 1487 | fi |
| 1488 | rm -f conftest* |
| 1489 | |
| 1490 | fi |
| 1491 | |
| 1492 | if test $ac_cv_header_stdc = yes; then |
| 1493 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1494 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1495 | #line 1496 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1496 | #include "confdefs.h" |
| 1497 | #include <stdlib.h> |
| 1498 | EOF |
| 1499 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1500 | egrep "free" >/dev/null 2>&1; then |
| 1501 | : |
| 1502 | else |
| 1503 | rm -rf conftest* |
| 1504 | ac_cv_header_stdc=no |
| 1505 | fi |
| 1506 | rm -f conftest* |
| 1507 | |
| 1508 | fi |
| 1509 | |
| 1510 | if test $ac_cv_header_stdc = yes; then |
| 1511 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1512 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1513 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1514 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1515 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1516 | #line 1517 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1517 | #include "confdefs.h" |
| 1518 | #include <ctype.h> |
| 1519 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1520 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1521 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1522 | int main () { int i; for (i = 0; i < 256; i++) |
| 1523 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1524 | exit (0); } |
| 1525 | |
| 1526 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1527 | if { (eval echo configure:1528: \"$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] | 1528 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1529 | : |
| 1530 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1531 | echo "configure: failed program was:" >&5 |
| 1532 | cat conftest.$ac_ext >&5 |
| 1533 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1534 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1535 | fi |
| 1536 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1537 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1538 | |
| 1539 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1540 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1541 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1542 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1543 | if test $ac_cv_header_stdc = yes; then |
| 1544 | cat >> confdefs.h <<\EOF |
| 1545 | #define STDC_HEADERS 1 |
| 1546 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1547 | |
| 1548 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1549 | |
Guido van Rossum | 9601315 | 1997-10-08 22:47:52 +0000 | [diff] [blame] | 1550 | for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h pthread.h \ |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 1551 | 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] | 1552 | sys/audioio.h sys/file.h sys/lock.h \ |
| 1553 | sys/param.h sys/select.h sys/time.h sys/times.h \ |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 1554 | sys/un.h sys/utsname.h sys/wait.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1555 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1556 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1557 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1558 | echo "configure:1559: checking for $ac_hdr" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1559 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1560 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1561 | else |
| 1562 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1563 | #line 1564 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1564 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1565 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1566 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1567 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1568 | { (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1569 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1570 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1571 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1572 | eval "ac_cv_header_$ac_safe=yes" |
| 1573 | else |
| 1574 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1575 | echo "configure: failed program was:" >&5 |
| 1576 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1577 | rm -rf conftest* |
| 1578 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1579 | fi |
| 1580 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1581 | fi |
| 1582 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1583 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1584 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1585 | cat >> confdefs.h <<EOF |
| 1586 | #define $ac_tr_hdr 1 |
| 1587 | EOF |
| 1588 | |
| 1589 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1590 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1591 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1592 | done |
| 1593 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1594 | ac_header_dirent=no |
| 1595 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1596 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1597 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1598 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1599 | echo "configure:1600: checking for $ac_hdr that defines DIR" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1600 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
| 1601 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1602 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1603 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1604 | #line 1605 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1605 | #include "confdefs.h" |
| 1606 | #include <sys/types.h> |
| 1607 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1608 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1609 | DIR *dirp = 0; |
| 1610 | ; return 0; } |
| 1611 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1612 | if { (eval echo configure:1613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1613 | rm -rf conftest* |
| 1614 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1615 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1616 | echo "configure: failed program was:" >&5 |
| 1617 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1618 | rm -rf conftest* |
| 1619 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1620 | fi |
| 1621 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1622 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1623 | 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] | 1624 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1625 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1626 | cat >> confdefs.h <<EOF |
| 1627 | #define $ac_tr_hdr 1 |
| 1628 | EOF |
| 1629 | ac_header_dirent=$ac_hdr; break |
| 1630 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1631 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1632 | fi |
| 1633 | done |
| 1634 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1635 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1636 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1637 | echo "configure:1638: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1638 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1639 | 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] | 1640 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1641 | else |
| 1642 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1643 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1644 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1645 | #line 1646 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1646 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1647 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1648 | /* We use char because int might match the return type of a gcc2 |
| 1649 | builtin and then its argument prototype would still apply. */ |
| 1650 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1651 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1652 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1653 | opendir() |
| 1654 | ; return 0; } |
| 1655 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1656 | if { (eval echo configure:1657: \"$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] | 1657 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1658 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1659 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1660 | echo "configure: failed program was:" >&5 |
| 1661 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1662 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1663 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1664 | fi |
| 1665 | rm -f conftest* |
| 1666 | LIBS="$ac_save_LIBS" |
| 1667 | |
| 1668 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1669 | 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] | 1670 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1671 | LIBS="$LIBS -ldir" |
| 1672 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1673 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1674 | fi |
| 1675 | |
| 1676 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1677 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1678 | echo "configure:1679: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1679 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1680 | 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] | 1681 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1682 | else |
| 1683 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1684 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1685 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1686 | #line 1687 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1687 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1688 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1689 | /* We use char because int might match the return type of a gcc2 |
| 1690 | builtin and then its argument prototype would still apply. */ |
| 1691 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1692 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1693 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1694 | opendir() |
| 1695 | ; return 0; } |
| 1696 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1697 | if { (eval echo configure:1698: \"$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] | 1698 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1699 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1700 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1701 | echo "configure: failed program was:" >&5 |
| 1702 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1703 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1704 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1705 | fi |
| 1706 | rm -f conftest* |
| 1707 | LIBS="$ac_save_LIBS" |
| 1708 | |
| 1709 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1710 | 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] | 1711 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1712 | LIBS="$LIBS -lx" |
| 1713 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1714 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1715 | fi |
| 1716 | |
| 1717 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1718 | |
| 1719 | |
| 1720 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1721 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1722 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1723 | echo "configure:1724: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1724 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1725 | #line 1726 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1726 | #include "confdefs.h" |
| 1727 | #include <time.h> |
| 1728 | EOF |
| 1729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1730 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1731 | rm -rf conftest* |
| 1732 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1733 | else |
| 1734 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1735 | cat >> confdefs.h <<\EOF |
| 1736 | #define clock_t long |
| 1737 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1738 | |
| 1739 | fi |
| 1740 | rm -f conftest* |
| 1741 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1742 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1743 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1744 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1745 | cat >> confdefs.h <<\EOF |
| 1746 | #if defined(SCO_DS) |
| 1747 | #undef _OFF_T |
| 1748 | #endif |
| 1749 | EOF |
| 1750 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1751 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1752 | echo "configure:1753: checking for mode_t" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1753 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
| 1754 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1755 | else |
| 1756 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1757 | #line 1758 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1758 | #include "confdefs.h" |
| 1759 | #include <sys/types.h> |
| 1760 | #if STDC_HEADERS |
| 1761 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1762 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1763 | #endif |
| 1764 | EOF |
| 1765 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1766 | 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] | 1767 | rm -rf conftest* |
| 1768 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1769 | else |
| 1770 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1771 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1772 | fi |
| 1773 | rm -f conftest* |
| 1774 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1775 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1776 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1777 | if test $ac_cv_type_mode_t = no; then |
| 1778 | cat >> confdefs.h <<\EOF |
| 1779 | #define mode_t int |
| 1780 | EOF |
| 1781 | |
| 1782 | fi |
| 1783 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1784 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1785 | echo "configure:1786: checking for off_t" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1786 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 1787 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1788 | else |
| 1789 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1790 | #line 1791 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1791 | #include "confdefs.h" |
| 1792 | #include <sys/types.h> |
| 1793 | #if STDC_HEADERS |
| 1794 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1795 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1796 | #endif |
| 1797 | EOF |
| 1798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1799 | 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] | 1800 | rm -rf conftest* |
| 1801 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1802 | else |
| 1803 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1804 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1805 | fi |
| 1806 | rm -f conftest* |
| 1807 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1808 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1809 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1810 | if test $ac_cv_type_off_t = no; then |
| 1811 | cat >> confdefs.h <<\EOF |
| 1812 | #define off_t long |
| 1813 | EOF |
| 1814 | |
| 1815 | fi |
| 1816 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1817 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1818 | echo "configure:1819: checking for pid_t" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1819 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
| 1820 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1821 | else |
| 1822 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1823 | #line 1824 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1824 | #include "confdefs.h" |
| 1825 | #include <sys/types.h> |
| 1826 | #if STDC_HEADERS |
| 1827 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1828 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1829 | #endif |
| 1830 | EOF |
| 1831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1832 | 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] | 1833 | rm -rf conftest* |
| 1834 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1835 | else |
| 1836 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1837 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1838 | fi |
| 1839 | rm -f conftest* |
| 1840 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1841 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1842 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1843 | if test $ac_cv_type_pid_t = no; then |
| 1844 | cat >> confdefs.h <<\EOF |
| 1845 | #define pid_t int |
| 1846 | EOF |
| 1847 | |
| 1848 | fi |
| 1849 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1850 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1851 | echo "configure:1852: checking return type of signal handlers" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1852 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
| 1853 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1854 | else |
| 1855 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1856 | #line 1857 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1857 | #include "confdefs.h" |
| 1858 | #include <sys/types.h> |
| 1859 | #include <signal.h> |
| 1860 | #ifdef signal |
| 1861 | #undef signal |
| 1862 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1863 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1864 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1865 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1866 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1867 | #endif |
| 1868 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1869 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1870 | int i; |
| 1871 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1872 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1873 | if { (eval echo configure:1874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1874 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1875 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1876 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1877 | echo "configure: failed program was:" >&5 |
| 1878 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1879 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1880 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1881 | fi |
| 1882 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1883 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1884 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1885 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1886 | cat >> confdefs.h <<EOF |
| 1887 | #define RETSIGTYPE $ac_cv_type_signal |
| 1888 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1889 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1890 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1891 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1892 | echo "configure:1893: checking for size_t" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1893 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 1894 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1895 | else |
| 1896 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1897 | #line 1898 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1898 | #include "confdefs.h" |
| 1899 | #include <sys/types.h> |
| 1900 | #if STDC_HEADERS |
| 1901 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1902 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1903 | #endif |
| 1904 | EOF |
| 1905 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1906 | 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] | 1907 | rm -rf conftest* |
| 1908 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1909 | else |
| 1910 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1911 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1912 | fi |
| 1913 | rm -f conftest* |
| 1914 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1915 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1916 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1917 | if test $ac_cv_type_size_t = no; then |
| 1918 | cat >> confdefs.h <<\EOF |
| 1919 | #define size_t unsigned |
| 1920 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1921 | |
| 1922 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1923 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1924 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1925 | echo "configure:1926: checking for uid_t in sys/types.h" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1926 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
| 1927 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1928 | else |
| 1929 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1930 | #line 1931 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1931 | #include "confdefs.h" |
| 1932 | #include <sys/types.h> |
| 1933 | EOF |
| 1934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1935 | egrep "uid_t" >/dev/null 2>&1; then |
| 1936 | rm -rf conftest* |
| 1937 | ac_cv_type_uid_t=yes |
| 1938 | else |
| 1939 | rm -rf conftest* |
| 1940 | ac_cv_type_uid_t=no |
| 1941 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1942 | rm -f conftest* |
| 1943 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1944 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1945 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1946 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1947 | if test $ac_cv_type_uid_t = no; then |
| 1948 | cat >> confdefs.h <<\EOF |
| 1949 | #define uid_t int |
| 1950 | EOF |
| 1951 | |
| 1952 | cat >> confdefs.h <<\EOF |
| 1953 | #define gid_t int |
| 1954 | EOF |
| 1955 | |
| 1956 | fi |
| 1957 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1958 | |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1959 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1960 | echo "configure:1961: checking size of int" >&5 |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1961 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 1962 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1963 | else |
| 1964 | if test "$cross_compiling" = yes; then |
| 1965 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1966 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1967 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1968 | #line 1969 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1969 | #include "confdefs.h" |
| 1970 | #include <stdio.h> |
| 1971 | main() |
| 1972 | { |
| 1973 | FILE *f=fopen("conftestval", "w"); |
| 1974 | if (!f) exit(1); |
| 1975 | fprintf(f, "%d\n", sizeof(int)); |
| 1976 | exit(0); |
| 1977 | } |
| 1978 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1979 | if { (eval echo configure:1980: \"$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] | 1980 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1981 | ac_cv_sizeof_int=`cat conftestval` |
| 1982 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1983 | echo "configure: failed program was:" >&5 |
| 1984 | cat conftest.$ac_ext >&5 |
| 1985 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1986 | ac_cv_sizeof_int=0 |
| 1987 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1988 | rm -fr conftest* |
| 1989 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1990 | |
| 1991 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1992 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 1993 | cat >> confdefs.h <<EOF |
| 1994 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 1995 | EOF |
| 1996 | |
| 1997 | |
| 1998 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 1999 | echo "configure:2000: checking size of long" >&5 |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2000 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 2001 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2002 | else |
| 2003 | if test "$cross_compiling" = yes; then |
| 2004 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2005 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2006 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2007 | #line 2008 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2008 | #include "confdefs.h" |
| 2009 | #include <stdio.h> |
| 2010 | main() |
| 2011 | { |
| 2012 | FILE *f=fopen("conftestval", "w"); |
| 2013 | if (!f) exit(1); |
| 2014 | fprintf(f, "%d\n", sizeof(long)); |
| 2015 | exit(0); |
| 2016 | } |
| 2017 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2018 | if { (eval echo configure:2019: \"$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] | 2019 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2020 | ac_cv_sizeof_long=`cat conftestval` |
| 2021 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2022 | echo "configure: failed program was:" >&5 |
| 2023 | cat conftest.$ac_ext >&5 |
| 2024 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2025 | ac_cv_sizeof_long=0 |
| 2026 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2027 | rm -fr conftest* |
| 2028 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2029 | |
| 2030 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2031 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2032 | cat >> confdefs.h <<EOF |
| 2033 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2034 | EOF |
| 2035 | |
| 2036 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2037 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2038 | echo "configure:2039: checking size of void *" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2039 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
| 2040 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2041 | else |
| 2042 | if test "$cross_compiling" = yes; then |
| 2043 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2044 | else |
| 2045 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2046 | #line 2047 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2047 | #include "confdefs.h" |
| 2048 | #include <stdio.h> |
| 2049 | main() |
| 2050 | { |
| 2051 | FILE *f=fopen("conftestval", "w"); |
| 2052 | if (!f) exit(1); |
| 2053 | fprintf(f, "%d\n", sizeof(void *)); |
| 2054 | exit(0); |
| 2055 | } |
| 2056 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2057 | if { (eval echo configure:2058: \"$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] | 2058 | then |
| 2059 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2060 | else |
| 2061 | echo "configure: failed program was:" >&5 |
| 2062 | cat conftest.$ac_ext >&5 |
| 2063 | rm -fr conftest* |
| 2064 | ac_cv_sizeof_void_p=0 |
| 2065 | fi |
| 2066 | rm -fr conftest* |
| 2067 | fi |
| 2068 | |
| 2069 | fi |
| 2070 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2071 | cat >> confdefs.h <<EOF |
| 2072 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2073 | EOF |
| 2074 | |
| 2075 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2076 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2077 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2078 | echo "configure:2079: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2079 | have_long_long=no |
| 2080 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2081 | #line 2082 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2082 | #include "confdefs.h" |
| 2083 | |
| 2084 | int main() { |
| 2085 | long long x; x = (long long)0; |
| 2086 | ; return 0; } |
| 2087 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2088 | if { (eval echo configure:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2089 | rm -rf conftest* |
| 2090 | cat >> confdefs.h <<\EOF |
| 2091 | #define HAVE_LONG_LONG 1 |
| 2092 | EOF |
| 2093 | have_long_long=yes |
| 2094 | else |
| 2095 | echo "configure: failed program was:" >&5 |
| 2096 | cat conftest.$ac_ext >&5 |
| 2097 | fi |
| 2098 | rm -f conftest* |
| 2099 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2100 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2101 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2102 | echo "configure:2103: checking size of long long" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2103 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 2104 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2105 | else |
| 2106 | if test "$cross_compiling" = yes; then |
| 2107 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2108 | else |
| 2109 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2110 | #line 2111 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2111 | #include "confdefs.h" |
| 2112 | #include <stdio.h> |
| 2113 | main() |
| 2114 | { |
| 2115 | FILE *f=fopen("conftestval", "w"); |
| 2116 | if (!f) exit(1); |
| 2117 | fprintf(f, "%d\n", sizeof(long long)); |
| 2118 | exit(0); |
| 2119 | } |
| 2120 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2121 | if { (eval echo configure:2122: \"$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] | 2122 | then |
| 2123 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2124 | else |
| 2125 | echo "configure: failed program was:" >&5 |
| 2126 | cat conftest.$ac_ext >&5 |
| 2127 | rm -fr conftest* |
| 2128 | ac_cv_sizeof_long_long=0 |
| 2129 | fi |
| 2130 | rm -fr conftest* |
| 2131 | fi |
| 2132 | |
| 2133 | fi |
| 2134 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2135 | cat >> confdefs.h <<EOF |
| 2136 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2137 | EOF |
| 2138 | |
| 2139 | |
| 2140 | fi |
| 2141 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2142 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2143 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2144 | echo "configure:2145: checking size of off_t" >&5 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2145 | if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then |
| 2146 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2147 | else |
| 2148 | if test "$cross_compiling" = yes; then |
| 2149 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2150 | else |
| 2151 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2152 | #line 2153 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2153 | #include "confdefs.h" |
| 2154 | #include <stdio.h> |
| 2155 | #include <sys/types.h> |
| 2156 | main() |
| 2157 | { |
| 2158 | FILE *f=fopen("conftestval", "w"); |
| 2159 | if (!f) exit(1); |
| 2160 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2161 | exit(0); |
| 2162 | } |
| 2163 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2164 | if { (eval echo configure:2165: \"$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] | 2165 | then |
| 2166 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2167 | else |
| 2168 | echo "configure: failed program was:" >&5 |
| 2169 | cat conftest.$ac_ext >&5 |
| 2170 | rm -fr conftest* |
| 2171 | ac_cv_sizeof_off_t=0 |
| 2172 | fi |
| 2173 | rm -fr conftest* |
| 2174 | fi |
| 2175 | |
| 2176 | |
| 2177 | fi |
| 2178 | |
| 2179 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2180 | cat >> confdefs.h <<EOF |
| 2181 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2182 | EOF |
| 2183 | |
| 2184 | |
| 2185 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2186 | echo "configure:2187: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2187 | if test "$have_long_long" = yes -a \ |
| 2188 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2189 | "$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] | 2190 | cat >> confdefs.h <<\EOF |
| 2191 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2192 | EOF |
| 2193 | |
| 2194 | echo "$ac_t""yes" 1>&6 |
| 2195 | else |
| 2196 | echo "$ac_t""no" 1>&6 |
| 2197 | fi |
| 2198 | |
| 2199 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2200 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2201 | |
| 2202 | case $ac_sys_system/$ac_sys_release in |
| 2203 | next/4*) |
| 2204 | ns_undef_sym='__environ' |
| 2205 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2206 | next/5*) |
| 2207 | ns_undef_sym='_environ' |
| 2208 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2209 | esac |
| 2210 | |
| 2211 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2212 | echo "configure:2213: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2213 | if test "$with_next_framework" |
| 2214 | then |
| 2215 | OPT="$OPT -fno-common" |
| 2216 | # -U __environ is needed since bundles don't have access |
| 2217 | # to crt0 when built but will always be linked against it |
| 2218 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2219 | cat >> confdefs.h <<\EOF |
| 2220 | #define WITH_NEXT_FRAMEWORK 1 |
| 2221 | EOF |
| 2222 | |
| 2223 | echo "$ac_t""yes" 1>&6 |
| 2224 | else |
| 2225 | echo "$ac_t""no" 1>&6 |
| 2226 | fi |
| 2227 | |
| 2228 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2229 | echo "configure:2230: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2230 | if test "$with_next_framework" -o "$with_dyld" |
| 2231 | then |
| 2232 | if test "$with_dyld" |
| 2233 | then |
| 2234 | echo "$ac_t""yes" 1>&6 |
| 2235 | else |
| 2236 | echo "$ac_t""required for framework build" 1>&6 |
| 2237 | fi |
| 2238 | cat >> confdefs.h <<\EOF |
| 2239 | #define WITH_DYLD 1 |
| 2240 | EOF |
| 2241 | |
| 2242 | ns_dyld='set' |
| 2243 | else |
| 2244 | echo "$ac_t""no" 1>&6 |
| 2245 | fi |
| 2246 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2247 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2248 | |
| 2249 | |
| 2250 | |
| 2251 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2252 | # SO is the extension of shared libraries `(including the dot!) |
| 2253 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2254 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2255 | echo "configure:2256: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2256 | if test -z "$SO" |
| 2257 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2258 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2259 | hp*|HP*) SO=.sl;; |
| 2260 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2261 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2262 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2263 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2264 | # LDSHARED is the ld *command* used to create shared library |
| 2265 | # -- "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] | 2266 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2267 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2268 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2269 | echo "configure:2270: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2270 | if test -z "$LDSHARED" |
| 2271 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2272 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 2273 | AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2274 | BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2275 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2276 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2277 | SunOS/4*) LDSHARED="ld";; |
| 2278 | SunOS/5*) LDSHARED="ld -G";; |
| 2279 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2280 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2281 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2282 | next/*) |
| 2283 | if test "$ns_dyld" |
| 2284 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind' |
| 2285 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2286 | fi |
| 2287 | if test "$with_next_framework" ; then |
| 2288 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2289 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2290 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2291 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2292 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | a8acf72 | 1999-04-27 22:06:08 +0000 | [diff] [blame] | 2293 | FreeBSD*/[34]*) LDSHARED="gcc -shared";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2294 | FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";; |
| 2295 | NetBSD*) |
| 2296 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2297 | then |
| 2298 | LDSHARED="cc -shared" |
| 2299 | else |
| 2300 | LDSHARED="ld -Bshareable" |
| 2301 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2302 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2303 | *) LDSHARED="ld";; |
| 2304 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2305 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2306 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2307 | # 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] | 2308 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2309 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2310 | echo "configure:2311: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2311 | if test -z "$CCSHARED" |
| 2312 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2313 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2314 | hp*|HP*) if test "$GCC" = yes; |
| 2315 | then CCSHARED="-fpic"; |
| 2316 | else CCSHARED="+z"; |
| 2317 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2318 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2319 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2320 | FreeBSD*|OpenBSD*) CCSHARED="-fpic";; |
| 2321 | NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2322 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2323 | IRIX*/6*) case $CC in |
| 2324 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2325 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2326 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2327 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2328 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2329 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2330 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2331 | # the python executable -- this is only needed for a few systems |
| 2332 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2333 | echo "configure:2334: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2334 | if test -z "$LINKFORSHARED" |
| 2335 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2336 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 69f6580 | 1998-03-03 21:47:00 +0000 | [diff] [blame] | 2337 | AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2338 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2339 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2340 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | a8acf72 | 1999-04-27 22:06:08 +0000 | [diff] [blame] | 2341 | FreeBSD/[34]*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2342 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2343 | # -u libsys_s pulls in all symbols in libsys |
| 2344 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2345 | # -u __dummy makes the linker aware of the objc runtime |
| 2346 | # in System.framework; otherwise, __objcInit (referenced in |
| 2347 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2348 | # loading of any modules which reference it in System.framework |
| 2349 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2350 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2351 | NetBSD*) |
| 2352 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2353 | then |
| 2354 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2355 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2356 | SunOS/5*) case $CC in |
| 2357 | *gcc*) |
| 2358 | if $CC -Xlinker -V 2>/dev/null | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2359 | then |
| 2360 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2361 | fi;; |
| 2362 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2363 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2364 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2365 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2366 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2367 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2368 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2369 | echo "configure:2370: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2370 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2371 | 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] | 2372 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2373 | else |
| 2374 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2375 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2376 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2377 | #line 2378 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2378 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2379 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2380 | /* We use char because int might match the return type of a gcc2 |
| 2381 | builtin and then its argument prototype would still apply. */ |
| 2382 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2383 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2384 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2385 | dlopen() |
| 2386 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2387 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2388 | if { (eval echo configure:2389: \"$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] | 2389 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2390 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2391 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2392 | echo "configure: failed program was:" >&5 |
| 2393 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2394 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2395 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2396 | fi |
| 2397 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2398 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2399 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2400 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2401 | 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] | 2402 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2403 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2404 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2405 | cat >> confdefs.h <<EOF |
| 2406 | #define $ac_tr_lib 1 |
| 2407 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2408 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2409 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2410 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2411 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2412 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2413 | fi |
| 2414 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2415 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2416 | echo "configure:2417: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2417 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2418 | 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] | 2419 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2420 | else |
| 2421 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2422 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2423 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2424 | #line 2425 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2425 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2426 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2427 | /* We use char because int might match the return type of a gcc2 |
| 2428 | builtin and then its argument prototype would still apply. */ |
| 2429 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2430 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2431 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2432 | shl_load() |
| 2433 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2434 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2435 | if { (eval echo configure:2436: \"$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] | 2436 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2437 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2438 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2439 | echo "configure: failed program was:" >&5 |
| 2440 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2441 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2442 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2443 | fi |
| 2444 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2445 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2446 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2447 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2448 | 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] | 2449 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2450 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2451 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2452 | cat >> confdefs.h <<EOF |
| 2453 | #define $ac_tr_lib 1 |
| 2454 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2455 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2456 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2457 | |
| 2458 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2459 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2460 | fi |
| 2461 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2462 | |
| 2463 | # checks for system dependent C++ extensions support |
| 2464 | case "$ac_sys_system" in |
| 2465 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2466 | echo "configure:2467: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2467 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2468 | #line 2469 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2469 | #include "confdefs.h" |
| 2470 | #include "/usr/lpp/xlC/include/load.h" |
| 2471 | int main() { |
| 2472 | loadAndInit("", 0, "") |
| 2473 | ; return 0; } |
| 2474 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2475 | if { (eval echo configure:2476: \"$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] | 2476 | rm -rf conftest* |
| 2477 | cat >> confdefs.h <<\EOF |
| 2478 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 2479 | EOF |
| 2480 | |
| 2481 | echo "$ac_t""yes" 1>&6 |
| 2482 | else |
| 2483 | echo "configure: failed program was:" >&5 |
| 2484 | cat conftest.$ac_ext >&5 |
| 2485 | rm -rf conftest* |
| 2486 | echo "$ac_t""no" 1>&6 |
| 2487 | fi |
| 2488 | rm -f conftest*;; |
| 2489 | *) ;; |
| 2490 | esac |
| 2491 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2492 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 2493 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2494 | # BeOS' sockets are stashed in libnet. |
| 2495 | case "$ac_sys_system" in |
| 2496 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2497 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2498 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2499 | echo "configure:2500: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2500 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2501 | 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] | 2502 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2503 | else |
| 2504 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2505 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2506 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2507 | #line 2508 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2508 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2509 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2510 | /* We use char because int might match the return type of a gcc2 |
| 2511 | builtin and then its argument prototype would still apply. */ |
| 2512 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2513 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2514 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2515 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2516 | ; return 0; } |
| 2517 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2518 | if { (eval echo configure:2519: \"$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] | 2519 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2520 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2521 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2522 | echo "configure: failed program was:" >&5 |
| 2523 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2524 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2525 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2526 | fi |
| 2527 | rm -f conftest* |
| 2528 | LIBS="$ac_save_LIBS" |
| 2529 | |
| 2530 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2531 | 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] | 2532 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2533 | LIBS="-lnsl $LIBS" |
| 2534 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2535 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2536 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2537 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2538 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2539 | echo "configure:2540: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2540 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2541 | 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] | 2542 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2543 | else |
| 2544 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2545 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2546 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2547 | #line 2548 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2548 | #include "confdefs.h" |
| 2549 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2550 | /* We use char because int might match the return type of a gcc2 |
| 2551 | builtin and then its argument prototype would still apply. */ |
| 2552 | char socket(); |
| 2553 | |
| 2554 | int main() { |
| 2555 | socket() |
| 2556 | ; return 0; } |
| 2557 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2558 | if { (eval echo configure:2559: \"$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] | 2559 | rm -rf conftest* |
| 2560 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2561 | else |
| 2562 | echo "configure: failed program was:" >&5 |
| 2563 | cat conftest.$ac_ext >&5 |
| 2564 | rm -rf conftest* |
| 2565 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2566 | fi |
| 2567 | rm -f conftest* |
| 2568 | LIBS="$ac_save_LIBS" |
| 2569 | |
| 2570 | fi |
| 2571 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2572 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2573 | LIBS="-lsocket $LIBS" |
| 2574 | else |
| 2575 | echo "$ac_t""no" 1>&6 |
| 2576 | fi |
| 2577 | # SVR4 sockets |
| 2578 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2579 | echo "configure:2580: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2580 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
| 2581 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2582 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2583 | else |
| 2584 | ac_save_LIBS="$LIBS" |
| 2585 | LIBS="-lnet $LIBS $LIBS" |
| 2586 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2587 | #line 2588 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2588 | #include "confdefs.h" |
| 2589 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2590 | /* We use char because int might match the return type of a gcc2 |
| 2591 | builtin and then its argument prototype would still apply. */ |
| 2592 | char socket(); |
| 2593 | |
| 2594 | int main() { |
| 2595 | socket() |
| 2596 | ; return 0; } |
| 2597 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2598 | if { (eval echo configure:2599: \"$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] | 2599 | rm -rf conftest* |
| 2600 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2601 | else |
| 2602 | echo "configure: failed program was:" >&5 |
| 2603 | cat conftest.$ac_ext >&5 |
| 2604 | rm -rf conftest* |
| 2605 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2606 | fi |
| 2607 | rm -f conftest* |
| 2608 | LIBS="$ac_save_LIBS" |
| 2609 | |
| 2610 | fi |
| 2611 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2612 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2613 | LIBS="-lnet $LIBS" |
| 2614 | else |
| 2615 | echo "$ac_t""no" 1>&6 |
| 2616 | fi |
| 2617 | # BeOS |
| 2618 | ;; |
| 2619 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2620 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2621 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2622 | echo "configure:2623: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2623 | # Check whether --with-libs or --without-libs was given. |
| 2624 | if test "${with_libs+set}" = set; then |
| 2625 | withval="$with_libs" |
| 2626 | |
| 2627 | echo "$ac_t""$withval" 1>&6 |
| 2628 | LIBS="$withval $LIBS" |
| 2629 | |
| 2630 | else |
| 2631 | echo "$ac_t""no" 1>&6 |
| 2632 | fi |
| 2633 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2634 | |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2635 | echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2636 | echo "configure:2637: checking for --with(out)-readline" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2637 | # Check whether --with-readline or --without-readline was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2638 | if test "${with_readline+set}" = set; then |
| 2639 | withval="$with_readline" |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2640 | echo "$ac_t""$withval" 1>&6 |
| 2641 | { 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] | 2642 | else |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2643 | echo "$ac_t""not specified." 1>&6 |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2644 | fi |
| 2645 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2646 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2647 | |
| 2648 | USE_THREAD_MODULE="#" |
| 2649 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2650 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2651 | echo "configure:2652: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2652 | |
| 2653 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 2654 | if test "${with_dec_threads+set}" = set; then |
| 2655 | withval="$with_dec_threads" |
| 2656 | echo "$ac_t""$withval" 1>&6 |
| 2657 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2658 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2659 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2660 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2661 | else |
| 2662 | echo "$ac_t""no" 1>&6 |
| 2663 | fi |
| 2664 | |
| 2665 | |
| 2666 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2667 | echo "configure:2668: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2668 | # Check whether --with-threads or --without-threads was given. |
| 2669 | if test "${with_threads+set}" = set; then |
| 2670 | withval="$with_threads" |
| 2671 | echo "$ac_t""$withval" 1>&6 |
| 2672 | if test "${with_thread+set}" != set; then |
| 2673 | with_thread="$withval"; |
| 2674 | fi |
| 2675 | else |
| 2676 | echo "$ac_t""no" 1>&6 |
| 2677 | fi |
| 2678 | |
| 2679 | |
| 2680 | echo $ac_n "checking for --with-thread""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2681 | echo "configure:2682: checking for --with-thread" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2682 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2683 | if test "${with_thread+set}" = set; then |
| 2684 | withval="$with_thread" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2685 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2686 | USE_THREAD_MODULE= |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2687 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2688 | if test -d "$withval" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2689 | then LDFLAGS="$LDFLAGS -L$withval" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2690 | fi |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 2691 | cat >> confdefs.h <<\EOF |
| 2692 | #define _REENTRANT 1 |
| 2693 | EOF |
| 2694 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2695 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2696 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2697 | echo "configure:2698: checking for mach/cthreads.h" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2698 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2699 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2700 | else |
| 2701 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2702 | #line 2703 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2703 | #include "confdefs.h" |
| 2704 | #include <mach/cthreads.h> |
| 2705 | EOF |
| 2706 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2707 | { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2708 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2709 | if test -z "$ac_err"; then |
| 2710 | rm -rf conftest* |
| 2711 | eval "ac_cv_header_$ac_safe=yes" |
| 2712 | else |
| 2713 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2714 | echo "configure: failed program was:" >&5 |
| 2715 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2716 | rm -rf conftest* |
| 2717 | eval "ac_cv_header_$ac_safe=no" |
| 2718 | fi |
| 2719 | rm -f conftest* |
| 2720 | fi |
| 2721 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2722 | echo "$ac_t""yes" 1>&6 |
| 2723 | cat >> confdefs.h <<\EOF |
| 2724 | #define WITH_THREAD 1 |
| 2725 | EOF |
| 2726 | |
| 2727 | cat >> confdefs.h <<\EOF |
| 2728 | #define C_THREADS 1 |
| 2729 | EOF |
| 2730 | |
| 2731 | LIBOBJS="$LIBOBJS thread.o" |
| 2732 | else |
| 2733 | echo "$ac_t""no" 1>&6 |
| 2734 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2735 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2736 | echo "configure:2737: checking for pthread_detach" >&5 |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2737 | 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] | 2738 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2739 | else |
| 2740 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2741 | #line 2742 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2742 | #include "confdefs.h" |
| 2743 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2744 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2745 | #include <assert.h> |
| 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. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2749 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2750 | |
| 2751 | int main() { |
| 2752 | |
| 2753 | /* The GNU C library defines this for functions which it implements |
| 2754 | to always fail with ENOSYS. Some functions are actually named |
| 2755 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2756 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2757 | choke me |
| 2758 | #else |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2759 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2760 | #endif |
| 2761 | |
| 2762 | ; return 0; } |
| 2763 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2764 | if { (eval echo configure:2765: \"$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] | 2765 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2766 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2767 | else |
| 2768 | echo "configure: failed program was:" >&5 |
| 2769 | cat conftest.$ac_ext >&5 |
| 2770 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2771 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2772 | fi |
| 2773 | rm -f conftest* |
| 2774 | fi |
| 2775 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2776 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2777 | echo "$ac_t""yes" 1>&6 |
| 2778 | cat >> confdefs.h <<\EOF |
| 2779 | #define WITH_THREAD 1 |
| 2780 | EOF |
| 2781 | |
| 2782 | cat >> confdefs.h <<\EOF |
| 2783 | #define _POSIX_THREADS 1 |
| 2784 | EOF |
| 2785 | |
| 2786 | LIBOBJS="$LIBOBJS thread.o" |
| 2787 | else |
| 2788 | echo "$ac_t""no" 1>&6 |
| 2789 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2790 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
| 2791 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2792 | echo "configure:2793: checking for kernel/OS.h" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2793 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2794 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2795 | else |
| 2796 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2797 | #line 2798 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2798 | #include "confdefs.h" |
| 2799 | #include <kernel/OS.h> |
| 2800 | EOF |
| 2801 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2802 | { (eval echo configure:2803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2803 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2804 | if test -z "$ac_err"; then |
| 2805 | rm -rf conftest* |
| 2806 | eval "ac_cv_header_$ac_safe=yes" |
| 2807 | else |
| 2808 | echo "$ac_err" >&5 |
| 2809 | echo "configure: failed program was:" >&5 |
| 2810 | cat conftest.$ac_ext >&5 |
| 2811 | rm -rf conftest* |
| 2812 | eval "ac_cv_header_$ac_safe=no" |
| 2813 | fi |
| 2814 | rm -f conftest* |
| 2815 | fi |
| 2816 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2817 | echo "$ac_t""yes" 1>&6 |
| 2818 | cat >> confdefs.h <<\EOF |
| 2819 | #define WITH_THREAD 1 |
| 2820 | EOF |
| 2821 | |
| 2822 | cat >> confdefs.h <<\EOF |
| 2823 | #define BEOS_THREADS 1 |
| 2824 | EOF |
| 2825 | |
| 2826 | LIBOBJS="$LIBOBJS thread.o" |
| 2827 | else |
| 2828 | echo "$ac_t""no" 1>&6 |
| 2829 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2830 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2831 | echo "configure:2832: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2832 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2833 | 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] | 2834 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2835 | else |
| 2836 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2837 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2838 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2839 | #line 2840 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2840 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2841 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2842 | /* We use char because int might match the return type of a gcc2 |
| 2843 | builtin and then its argument prototype would still apply. */ |
| 2844 | char pthread_create(); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2845 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2846 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2847 | pthread_create() |
| 2848 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2849 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2850 | if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2851 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2852 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2853 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2854 | echo "configure: failed program was:" >&5 |
| 2855 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2856 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2857 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2858 | fi |
| 2859 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2860 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2861 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2862 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2863 | 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] | 2864 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2865 | cat >> confdefs.h <<\EOF |
| 2866 | #define WITH_THREAD 1 |
| 2867 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2868 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2869 | cat >> confdefs.h <<\EOF |
| 2870 | #define _POSIX_THREADS 1 |
| 2871 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2872 | |
| 2873 | LIBS="$LIBS -lpthreads" |
| 2874 | LIBOBJS="$LIBOBJS thread.o" |
| 2875 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2876 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2877 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2878 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2879 | echo "configure:2880: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2880 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2881 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2882 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2883 | else |
| 2884 | ac_save_LIBS="$LIBS" |
| 2885 | LIBS="-lpthread $LIBS" |
| 2886 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2887 | #line 2888 "configure" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2888 | #include "confdefs.h" |
| 2889 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2890 | /* We use char because int might match the return type of a gcc2 |
| 2891 | builtin and then its argument prototype would still apply. */ |
| 2892 | char pthread_create(); |
| 2893 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2894 | int main() { |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2895 | pthread_create() |
| 2896 | ; return 0; } |
| 2897 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2898 | if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2899 | rm -rf conftest* |
| 2900 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2901 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2902 | echo "configure: failed program was:" >&5 |
| 2903 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2904 | rm -rf conftest* |
| 2905 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2906 | fi |
| 2907 | rm -f conftest* |
| 2908 | LIBS="$ac_save_LIBS" |
| 2909 | |
| 2910 | fi |
| 2911 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2912 | echo "$ac_t""yes" 1>&6 |
| 2913 | cat >> confdefs.h <<\EOF |
| 2914 | #define WITH_THREAD 1 |
| 2915 | EOF |
| 2916 | |
| 2917 | cat >> confdefs.h <<\EOF |
| 2918 | #define _POSIX_THREADS 1 |
| 2919 | EOF |
| 2920 | |
| 2921 | LIBS="$LIBS -lpthread" |
| 2922 | LIBOBJS="$LIBOBJS thread.o" |
| 2923 | else |
| 2924 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2925 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 2926 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2927 | echo "configure:2928: checking for pthread_create in -lc_r" >&5 |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 2928 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
| 2929 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2930 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2931 | else |
| 2932 | ac_save_LIBS="$LIBS" |
| 2933 | LIBS="-lc_r $LIBS" |
| 2934 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2935 | #line 2936 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 2936 | #include "confdefs.h" |
| 2937 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2938 | /* We use char because int might match the return type of a gcc2 |
| 2939 | builtin and then its argument prototype would still apply. */ |
| 2940 | char pthread_create(); |
| 2941 | |
| 2942 | int main() { |
| 2943 | pthread_create() |
| 2944 | ; return 0; } |
| 2945 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2946 | if { (eval echo configure:2947: \"$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] | 2947 | rm -rf conftest* |
| 2948 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2949 | else |
| 2950 | echo "configure: failed program was:" >&5 |
| 2951 | cat conftest.$ac_ext >&5 |
| 2952 | rm -rf conftest* |
| 2953 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2954 | fi |
| 2955 | rm -f conftest* |
| 2956 | LIBS="$ac_save_LIBS" |
| 2957 | |
| 2958 | fi |
| 2959 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2960 | echo "$ac_t""yes" 1>&6 |
| 2961 | cat >> confdefs.h <<\EOF |
| 2962 | #define WITH_THREAD 1 |
| 2963 | EOF |
| 2964 | |
| 2965 | cat >> confdefs.h <<\EOF |
| 2966 | #define _POSIX_THREADS 1 |
| 2967 | EOF |
| 2968 | |
| 2969 | LIBS="$LIBS -lc_r" |
| 2970 | LIBOBJS="$LIBOBJS thread.o" |
| 2971 | else |
| 2972 | echo "$ac_t""no" 1>&6 |
| 2973 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2974 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2975 | echo "configure:2976: checking for __d6_pthread_create in -lthread" >&5 |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2976 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
| 2977 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2978 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2979 | else |
| 2980 | ac_save_LIBS="$LIBS" |
| 2981 | LIBS="-lthread $LIBS" |
| 2982 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2983 | #line 2984 "configure" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2984 | #include "confdefs.h" |
| 2985 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2986 | /* We use char because int might match the return type of a gcc2 |
| 2987 | builtin and then its argument prototype would still apply. */ |
| 2988 | char __d6_pthread_create(); |
| 2989 | |
| 2990 | int main() { |
| 2991 | __d6_pthread_create() |
| 2992 | ; return 0; } |
| 2993 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 2994 | if { (eval echo configure:2995: \"$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] | 2995 | rm -rf conftest* |
| 2996 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2997 | else |
| 2998 | echo "configure: failed program was:" >&5 |
| 2999 | cat conftest.$ac_ext >&5 |
| 3000 | rm -rf conftest* |
| 3001 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3002 | fi |
| 3003 | rm -f conftest* |
| 3004 | LIBS="$ac_save_LIBS" |
| 3005 | |
| 3006 | fi |
| 3007 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3008 | echo "$ac_t""yes" 1>&6 |
| 3009 | cat >> confdefs.h <<\EOF |
| 3010 | #define WITH_THREAD 1 |
| 3011 | EOF |
| 3012 | |
| 3013 | cat >> confdefs.h <<\EOF |
| 3014 | #define _POSIX_THREADS 1 |
| 3015 | EOF |
| 3016 | |
| 3017 | LIBS="$LIBS -lthread" |
| 3018 | LIBOBJS="$LIBOBJS thread.o" |
| 3019 | else |
| 3020 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3021 | |
| 3022 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3023 | echo "configure:3024: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3024 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
| 3025 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3026 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3027 | else |
| 3028 | ac_save_LIBS="$LIBS" |
| 3029 | LIBS="-lcma $LIBS" |
| 3030 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3031 | #line 3032 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3032 | #include "confdefs.h" |
| 3033 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3034 | /* We use char because int might match the return type of a gcc2 |
| 3035 | builtin and then its argument prototype would still apply. */ |
| 3036 | char pthread_create(); |
| 3037 | |
| 3038 | int main() { |
| 3039 | pthread_create() |
| 3040 | ; return 0; } |
| 3041 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3042 | if { (eval echo configure:3043: \"$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] | 3043 | rm -rf conftest* |
| 3044 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3045 | else |
| 3046 | echo "configure: failed program was:" >&5 |
| 3047 | cat conftest.$ac_ext >&5 |
| 3048 | rm -rf conftest* |
| 3049 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3050 | fi |
| 3051 | rm -f conftest* |
| 3052 | LIBS="$ac_save_LIBS" |
| 3053 | |
| 3054 | fi |
| 3055 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3056 | echo "$ac_t""yes" 1>&6 |
| 3057 | cat >> confdefs.h <<\EOF |
| 3058 | #define WITH_THREAD 1 |
| 3059 | EOF |
| 3060 | |
| 3061 | cat >> confdefs.h <<\EOF |
| 3062 | #define _POSIX_THREADS 1 |
| 3063 | EOF |
| 3064 | |
| 3065 | LIBS="$LIBS -lcma" |
| 3066 | LIBOBJS="$LIBOBJS thread.o" |
| 3067 | else |
| 3068 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3069 | fi |
| 3070 | |
| 3071 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3072 | fi |
| 3073 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3074 | fi |
| 3075 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3076 | fi |
| 3077 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3078 | fi |
| 3079 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3080 | fi |
| 3081 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3082 | fi |
| 3083 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3084 | fi |
| 3085 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3086 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3087 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3088 | echo "configure:3089: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3089 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3090 | 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] | 3091 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3092 | else |
| 3093 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3094 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3095 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3096 | #line 3097 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3097 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3098 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3099 | /* We use char because int might match the return type of a gcc2 |
| 3100 | builtin and then its argument prototype would still apply. */ |
| 3101 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3102 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3103 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3104 | usconfig() |
| 3105 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3106 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3107 | if { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3108 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3109 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3110 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3111 | echo "configure: failed program was:" >&5 |
| 3112 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3113 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3114 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3115 | fi |
| 3116 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3117 | LIBS="$ac_save_LIBS" |
| 3118 | |
| 3119 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3120 | 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] | 3121 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3122 | cat >> confdefs.h <<\EOF |
| 3123 | #define WITH_THREAD 1 |
| 3124 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3125 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3126 | LIBS="$LIBS -lmpc" |
| 3127 | LIBOBJS="$LIBOBJS thread.o" |
| 3128 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3129 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3130 | fi |
| 3131 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3132 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3133 | echo "configure:3134: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3134 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3135 | 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] | 3136 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3137 | else |
| 3138 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3139 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3140 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3141 | #line 3142 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3142 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3143 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3144 | /* We use char because int might match the return type of a gcc2 |
| 3145 | builtin and then its argument prototype would still apply. */ |
| 3146 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3147 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3148 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3149 | thr_create() |
| 3150 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3151 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3152 | if { (eval echo configure:3153: \"$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] | 3153 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3154 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3155 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3156 | echo "configure: failed program was:" >&5 |
| 3157 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3158 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3159 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3160 | fi |
| 3161 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3162 | LIBS="$ac_save_LIBS" |
| 3163 | |
| 3164 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3165 | 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] | 3166 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3167 | cat >> confdefs.h <<\EOF |
| 3168 | #define WITH_THREAD 1 |
| 3169 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3170 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3171 | LIBS="$LIBS -lthread" |
| 3172 | LIBOBJS="$LIBOBJS thread.o" |
| 3173 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3174 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3175 | fi |
| 3176 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3177 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3178 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3179 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3180 | fi |
| 3181 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3182 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3183 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3184 | |
| 3185 | DLINCLDIR=/ |
| 3186 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3187 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3188 | echo "configure:3189: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3189 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3190 | if test "${with_sgi_dl+set}" = set; then |
| 3191 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3192 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3193 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3194 | cat >> confdefs.h <<\EOF |
| 3195 | #define WITH_SGI_DL 1 |
| 3196 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3197 | |
| 3198 | dldir=$withval |
| 3199 | if test -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3200 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3201 | 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] | 3202 | fi |
| 3203 | DLINCLDIR=${dldir} |
| 3204 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3205 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3206 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3207 | fi |
| 3208 | |
| 3209 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3210 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3211 | echo "configure:3212: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3212 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3213 | if test "${with_dl_dld+set}" = set; then |
| 3214 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3215 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3216 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3217 | cat >> confdefs.h <<\EOF |
| 3218 | #define WITH_DL_DLD 1 |
| 3219 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3220 | |
| 3221 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 3222 | dlddir=`echo "$withval" | sed 's/.*,//'` |
| 3223 | if test -d "$dldir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3224 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3225 | 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] | 3226 | fi |
| 3227 | DLINCLDIR=${dldir} |
| 3228 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3229 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3230 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3231 | fi |
| 3232 | |
| 3233 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3234 | # checks for library functions |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3235 | for ac_func in alarm chown clock confstr ctermid ctermid_r dlopen execv \ |
| 3236 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Fred Drake | f581db1 | 1999-12-14 21:11:47 +0000 | [diff] [blame] | 3237 | getgroups getlogin getpeername getpgrp getpid getpwent gettimeofday getwd \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3238 | kill link lstat mkfifo mktime nice pathconf pause plock pthread_init \ |
| 3239 | putenv readlink \ |
Guido van Rossum | 9601315 | 1997-10-08 22:47:52 +0000 | [diff] [blame] | 3240 | select setgid setlocale setuid setsid setpgid setpgrp setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3241 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 3242 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
| 3243 | truncate uname waitpid |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3244 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3245 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3246 | echo "configure:3247: checking for $ac_func" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3247 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3248 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3249 | else |
| 3250 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3251 | #line 3252 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3252 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3253 | /* System header to define __stub macros and hopefully few prototypes, |
| 3254 | which can conflict with char $ac_func(); below. */ |
| 3255 | #include <assert.h> |
| 3256 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3257 | /* We use char because int might match the return type of a gcc2 |
| 3258 | builtin and then its argument prototype would still apply. */ |
| 3259 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3260 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3261 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3262 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3263 | /* The GNU C library defines this for functions which it implements |
| 3264 | to always fail with ENOSYS. Some functions are actually named |
| 3265 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3266 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3267 | choke me |
| 3268 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3269 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3270 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3271 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3272 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3273 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3274 | if { (eval echo configure:3275: \"$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] | 3275 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3276 | eval "ac_cv_func_$ac_func=yes" |
| 3277 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3278 | echo "configure: failed program was:" >&5 |
| 3279 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3280 | rm -rf conftest* |
| 3281 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3282 | fi |
| 3283 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3284 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3285 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3286 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3287 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3288 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3289 | cat >> confdefs.h <<EOF |
| 3290 | #define $ac_tr_func 1 |
| 3291 | EOF |
| 3292 | |
| 3293 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3294 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3295 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3296 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3297 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3298 | |
| 3299 | # check for long file support functions |
| 3300 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3301 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3302 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3303 | echo "configure:3304: checking for $ac_func" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3304 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3305 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3306 | else |
| 3307 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3308 | #line 3309 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3309 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3310 | /* System header to define __stub macros and hopefully few prototypes, |
| 3311 | which can conflict with char $ac_func(); below. */ |
| 3312 | #include <assert.h> |
| 3313 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3314 | /* We use char because int might match the return type of a gcc2 |
| 3315 | builtin and then its argument prototype would still apply. */ |
| 3316 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3317 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3318 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3319 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3320 | /* The GNU C library defines this for functions which it implements |
| 3321 | to always fail with ENOSYS. Some functions are actually named |
| 3322 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3323 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3324 | choke me |
| 3325 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3326 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3327 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3328 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3329 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3330 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3331 | if { (eval echo configure:3332: \"$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] | 3332 | rm -rf conftest* |
| 3333 | eval "ac_cv_func_$ac_func=yes" |
| 3334 | else |
| 3335 | echo "configure: failed program was:" >&5 |
| 3336 | cat conftest.$ac_ext >&5 |
| 3337 | rm -rf conftest* |
| 3338 | eval "ac_cv_func_$ac_func=no" |
| 3339 | fi |
| 3340 | rm -f conftest* |
| 3341 | fi |
| 3342 | |
| 3343 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3344 | echo "$ac_t""yes" 1>&6 |
| 3345 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3346 | cat >> confdefs.h <<EOF |
| 3347 | #define $ac_tr_func 1 |
| 3348 | EOF |
| 3349 | |
| 3350 | else |
| 3351 | echo "$ac_t""no" 1>&6 |
| 3352 | fi |
| 3353 | done |
| 3354 | |
| 3355 | |
| 3356 | for ac_func in dup2 getcwd strdup strerror memmove |
| 3357 | do |
| 3358 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3359 | echo "configure:3360: checking for $ac_func" >&5 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3360 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3361 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3362 | else |
| 3363 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3364 | #line 3365 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3365 | #include "confdefs.h" |
| 3366 | /* System header to define __stub macros and hopefully few prototypes, |
| 3367 | which can conflict with char $ac_func(); below. */ |
| 3368 | #include <assert.h> |
| 3369 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3370 | /* We use char because int might match the return type of a gcc2 |
| 3371 | builtin and then its argument prototype would still apply. */ |
| 3372 | char $ac_func(); |
| 3373 | |
| 3374 | int main() { |
| 3375 | |
| 3376 | /* The GNU C library defines this for functions which it implements |
| 3377 | to always fail with ENOSYS. Some functions are actually named |
| 3378 | something starting with __ and the normal name is an alias. */ |
| 3379 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3380 | choke me |
| 3381 | #else |
| 3382 | $ac_func(); |
| 3383 | #endif |
| 3384 | |
| 3385 | ; return 0; } |
| 3386 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3387 | if { (eval echo configure:3388: \"$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] | 3388 | rm -rf conftest* |
| 3389 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3390 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3391 | echo "configure: failed program was:" >&5 |
| 3392 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3393 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3394 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3395 | fi |
| 3396 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3397 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3398 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3399 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3400 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3401 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3402 | cat >> confdefs.h <<EOF |
| 3403 | #define $ac_tr_func 1 |
| 3404 | EOF |
| 3405 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3406 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3407 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3408 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3409 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3410 | done |
| 3411 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3412 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3413 | echo $ac_n "checking for getpgrp""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3414 | echo "configure:3415: checking for getpgrp" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3415 | if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then |
| 3416 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3417 | else |
| 3418 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3419 | #line 3420 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3420 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3421 | /* System header to define __stub macros and hopefully few prototypes, |
| 3422 | which can conflict with char getpgrp(); below. */ |
| 3423 | #include <assert.h> |
| 3424 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3425 | /* We use char because int might match the return type of a gcc2 |
| 3426 | builtin and then its argument prototype would still apply. */ |
| 3427 | char getpgrp(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3428 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3429 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3430 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3431 | /* The GNU C library defines this for functions which it implements |
| 3432 | to always fail with ENOSYS. Some functions are actually named |
| 3433 | something starting with __ and the normal name is an alias. */ |
| 3434 | #if defined (__stub_getpgrp) || defined (__stub___getpgrp) |
| 3435 | choke me |
| 3436 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3437 | getpgrp(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3438 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3439 | |
| 3440 | ; return 0; } |
| 3441 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3442 | if { (eval echo configure:3443: \"$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] | 3443 | rm -rf conftest* |
| 3444 | eval "ac_cv_func_getpgrp=yes" |
| 3445 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3446 | echo "configure: failed program was:" >&5 |
| 3447 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3448 | rm -rf conftest* |
| 3449 | eval "ac_cv_func_getpgrp=no" |
| 3450 | fi |
| 3451 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3452 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3453 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3454 | if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3455 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3456 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3457 | #line 3458 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3458 | #include "confdefs.h" |
| 3459 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3460 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3461 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3462 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3463 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3464 | if { (eval echo configure:3465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3465 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3466 | cat >> confdefs.h <<\EOF |
| 3467 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3468 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3469 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3470 | else |
| 3471 | echo "configure: failed program was:" >&5 |
| 3472 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3473 | fi |
| 3474 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3475 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3476 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3477 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3478 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3479 | echo $ac_n "checking for setpgrp""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3480 | echo "configure:3481: checking for setpgrp" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3481 | if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then |
| 3482 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3483 | else |
| 3484 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3485 | #line 3486 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3486 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3487 | /* System header to define __stub macros and hopefully few prototypes, |
| 3488 | which can conflict with char setpgrp(); below. */ |
| 3489 | #include <assert.h> |
| 3490 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3491 | /* We use char because int might match the return type of a gcc2 |
| 3492 | builtin and then its argument prototype would still apply. */ |
| 3493 | char setpgrp(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3494 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3495 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3496 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3497 | /* The GNU C library defines this for functions which it implements |
| 3498 | to always fail with ENOSYS. Some functions are actually named |
| 3499 | something starting with __ and the normal name is an alias. */ |
| 3500 | #if defined (__stub_setpgrp) || defined (__stub___setpgrp) |
| 3501 | choke me |
| 3502 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3503 | setpgrp(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3504 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3505 | |
| 3506 | ; return 0; } |
| 3507 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3508 | if { (eval echo configure:3509: \"$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] | 3509 | rm -rf conftest* |
| 3510 | eval "ac_cv_func_setpgrp=yes" |
| 3511 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3512 | echo "configure: failed program was:" >&5 |
| 3513 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3514 | rm -rf conftest* |
| 3515 | eval "ac_cv_func_setpgrp=no" |
| 3516 | fi |
| 3517 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3518 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3519 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3520 | if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3521 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3522 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3523 | #line 3524 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3524 | #include "confdefs.h" |
| 3525 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3526 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3527 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3528 | ; return 0; } |
| 3529 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3530 | if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3531 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3532 | cat >> confdefs.h <<\EOF |
| 3533 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3534 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3535 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3536 | else |
| 3537 | echo "configure: failed program was:" >&5 |
| 3538 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3539 | fi |
| 3540 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3541 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3542 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3543 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3544 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3545 | echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3546 | echo "configure:3547: checking for gettimeofday" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3547 | if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
| 3548 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3549 | else |
| 3550 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3551 | #line 3552 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3552 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3553 | /* System header to define __stub macros and hopefully few prototypes, |
| 3554 | which can conflict with char gettimeofday(); below. */ |
| 3555 | #include <assert.h> |
| 3556 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3557 | /* We use char because int might match the return type of a gcc2 |
| 3558 | builtin and then its argument prototype would still apply. */ |
| 3559 | char gettimeofday(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3560 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3561 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3562 | |
| 3563 | /* The GNU C library defines this for functions which it implements |
| 3564 | to always fail with ENOSYS. Some functions are actually named |
| 3565 | something starting with __ and the normal name is an alias. */ |
| 3566 | #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
| 3567 | choke me |
| 3568 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3569 | gettimeofday(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3570 | #endif |
| 3571 | |
| 3572 | ; return 0; } |
| 3573 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3574 | if { (eval echo configure:3575: \"$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] | 3575 | rm -rf conftest* |
| 3576 | eval "ac_cv_func_gettimeofday=yes" |
| 3577 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3578 | echo "configure: failed program was:" >&5 |
| 3579 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3580 | rm -rf conftest* |
| 3581 | eval "ac_cv_func_gettimeofday=no" |
| 3582 | fi |
| 3583 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3584 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3585 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3586 | if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3587 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3588 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3589 | #line 3590 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3590 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3591 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3592 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3593 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 3594 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3595 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3596 | if { (eval echo configure:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3597 | : |
| 3598 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3599 | echo "configure: failed program was:" >&5 |
| 3600 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3601 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3602 | cat >> confdefs.h <<\EOF |
| 3603 | #define GETTIMEOFDAY_NO_TZ 1 |
| 3604 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3605 | |
| 3606 | fi |
| 3607 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3608 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3609 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3610 | fi |
| 3611 | |
| 3612 | |
| 3613 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3614 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3615 | echo "configure:3616: checking whether time.h and sys/time.h may both be included" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3616 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
| 3617 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3618 | else |
| 3619 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3620 | #line 3621 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3621 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3622 | #include <sys/types.h> |
| 3623 | #include <sys/time.h> |
| 3624 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3625 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3626 | struct tm *tp; |
| 3627 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3628 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3629 | if { (eval echo configure:3630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3630 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3631 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3632 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3633 | echo "configure: failed program was:" >&5 |
| 3634 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3635 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3636 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3637 | fi |
| 3638 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3639 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3640 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3641 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3642 | if test $ac_cv_header_time = yes; then |
| 3643 | cat >> confdefs.h <<\EOF |
| 3644 | #define TIME_WITH_SYS_TIME 1 |
| 3645 | EOF |
| 3646 | |
| 3647 | fi |
| 3648 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3649 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3650 | echo "configure:3651: checking whether struct tm is in sys/time.h or time.h" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3651 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
| 3652 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3653 | else |
| 3654 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3655 | #line 3656 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3656 | #include "confdefs.h" |
| 3657 | #include <sys/types.h> |
| 3658 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3659 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3660 | struct tm *tp; tp->tm_sec; |
| 3661 | ; return 0; } |
| 3662 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3663 | if { (eval echo configure:3664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3664 | rm -rf conftest* |
| 3665 | ac_cv_struct_tm=time.h |
| 3666 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3667 | echo "configure: failed program was:" >&5 |
| 3668 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3669 | rm -rf conftest* |
| 3670 | ac_cv_struct_tm=sys/time.h |
| 3671 | fi |
| 3672 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3673 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3674 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3675 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3676 | if test $ac_cv_struct_tm = sys/time.h; then |
| 3677 | cat >> confdefs.h <<\EOF |
| 3678 | #define TM_IN_SYS_TIME 1 |
| 3679 | EOF |
| 3680 | |
| 3681 | fi |
| 3682 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3683 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3684 | echo "configure:3685: checking for tm_zone in struct tm" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3685 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
| 3686 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3687 | else |
| 3688 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3689 | #line 3690 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3690 | #include "confdefs.h" |
| 3691 | #include <sys/types.h> |
| 3692 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3693 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3694 | struct tm tm; tm.tm_zone; |
| 3695 | ; return 0; } |
| 3696 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3697 | if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3698 | rm -rf conftest* |
| 3699 | ac_cv_struct_tm_zone=yes |
| 3700 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3701 | echo "configure: failed program was:" >&5 |
| 3702 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3703 | rm -rf conftest* |
| 3704 | ac_cv_struct_tm_zone=no |
| 3705 | fi |
| 3706 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3707 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3708 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3709 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3710 | if test "$ac_cv_struct_tm_zone" = yes; then |
| 3711 | cat >> confdefs.h <<\EOF |
| 3712 | #define HAVE_TM_ZONE 1 |
| 3713 | EOF |
| 3714 | |
| 3715 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3716 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3717 | echo "configure:3718: checking for tzname" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3718 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
| 3719 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3720 | else |
| 3721 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3722 | #line 3723 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3723 | #include "confdefs.h" |
| 3724 | #include <time.h> |
| 3725 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3726 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3727 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3728 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3729 | atoi(*tzname); |
| 3730 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3731 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3732 | if { (eval echo configure:3733: \"$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] | 3733 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3734 | ac_cv_var_tzname=yes |
| 3735 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3736 | echo "configure: failed program was:" >&5 |
| 3737 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3738 | rm -rf conftest* |
| 3739 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3740 | fi |
| 3741 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3742 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3743 | |
| 3744 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3745 | if test $ac_cv_var_tzname = yes; then |
| 3746 | cat >> confdefs.h <<\EOF |
| 3747 | #define HAVE_TZNAME 1 |
| 3748 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3749 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3750 | fi |
| 3751 | fi |
| 3752 | |
| 3753 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3754 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3755 | echo "configure:3756: checking for time.h that defines altzone" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3756 | if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then |
| 3757 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3758 | else |
| 3759 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3760 | #line 3761 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3761 | #include "confdefs.h" |
| 3762 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3763 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3764 | return altzone; |
| 3765 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3766 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3767 | if { (eval echo configure:3768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3768 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3769 | ac_cv_header_time_altzone=yes |
| 3770 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3771 | echo "configure: failed program was:" >&5 |
| 3772 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3773 | rm -rf conftest* |
| 3774 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3775 | fi |
| 3776 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3777 | fi |
| 3778 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3779 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3780 | if test $ac_cv_header_time_altzone = yes; then |
| 3781 | cat >> confdefs.h <<\EOF |
| 3782 | #define HAVE_ALTZONE 1 |
| 3783 | EOF |
| 3784 | |
| 3785 | fi |
| 3786 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3787 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3788 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3789 | echo "configure:3790: 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] | 3790 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3791 | #line 3792 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3792 | #include "confdefs.h" |
| 3793 | |
| 3794 | #include <sys/types.h> |
| 3795 | #include <sys/select.h> |
| 3796 | #include <sys/time.h> |
| 3797 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3798 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3799 | ; |
| 3800 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3801 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3802 | if { (eval echo configure:3803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3803 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3804 | cat >> confdefs.h <<\EOF |
| 3805 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 3806 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3807 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3808 | else |
| 3809 | echo "configure: failed program was:" >&5 |
| 3810 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3811 | fi |
| 3812 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3813 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3814 | |
| 3815 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3816 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3817 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3818 | echo "configure:3819: checking whether char is unsigned" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3819 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
| 3820 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3821 | else |
| 3822 | if test "$GCC" = yes; then |
| 3823 | # GCC predefines this symbol on systems where it applies. |
| 3824 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3825 | #line 3826 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3826 | #include "confdefs.h" |
| 3827 | #ifdef __CHAR_UNSIGNED__ |
| 3828 | yes |
| 3829 | #endif |
| 3830 | |
| 3831 | EOF |
| 3832 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3833 | egrep "yes" >/dev/null 2>&1; then |
| 3834 | rm -rf conftest* |
| 3835 | ac_cv_c_char_unsigned=yes |
| 3836 | else |
| 3837 | rm -rf conftest* |
| 3838 | ac_cv_c_char_unsigned=no |
| 3839 | fi |
| 3840 | rm -f conftest* |
| 3841 | |
| 3842 | else |
| 3843 | if test "$cross_compiling" = yes; then |
| 3844 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 3845 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3846 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3847 | #line 3848 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3848 | #include "confdefs.h" |
| 3849 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3850 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3851 | #define volatile |
| 3852 | #endif |
| 3853 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3854 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3855 | } |
| 3856 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3857 | if { (eval echo configure:3858: \"$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] | 3858 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3859 | ac_cv_c_char_unsigned=yes |
| 3860 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3861 | echo "configure: failed program was:" >&5 |
| 3862 | cat conftest.$ac_ext >&5 |
| 3863 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3864 | ac_cv_c_char_unsigned=no |
| 3865 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3866 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3867 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3868 | |
| 3869 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3870 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3871 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3872 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3873 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 3874 | cat >> confdefs.h <<\EOF |
| 3875 | #define __CHAR_UNSIGNED__ 1 |
| 3876 | EOF |
| 3877 | |
| 3878 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3879 | |
| 3880 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3881 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3882 | echo "configure:3883: checking for working const" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3883 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 3884 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3885 | else |
| 3886 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3887 | #line 3888 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3888 | #include "confdefs.h" |
| 3889 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3890 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3891 | |
| 3892 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3893 | typedef int charset[2]; const charset x; |
| 3894 | /* SunOS 4.1.1 cc rejects this. */ |
| 3895 | char const *const *ccp; |
| 3896 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3897 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 3898 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3899 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3900 | /* AIX XL C 1.02.0.0 rejects this. |
| 3901 | It does not let you subtract one const X* pointer from another in an arm |
| 3902 | of an if-expression whose if-part is not a constant expression */ |
| 3903 | const char *g = "string"; |
| 3904 | ccp = &g + (g ? g-g : 0); |
| 3905 | /* HPUX 7.0 cc rejects these. */ |
| 3906 | ++ccp; |
| 3907 | p = (char**) ccp; |
| 3908 | ccp = (char const *const *) p; |
| 3909 | { /* SCO 3.2v4 cc rejects this. */ |
| 3910 | char *t; |
| 3911 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 3912 | |
| 3913 | *t++ = 0; |
| 3914 | } |
| 3915 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3916 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3917 | const int *foo = &x[0]; |
| 3918 | ++foo; |
| 3919 | } |
| 3920 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 3921 | typedef const int *iptr; |
| 3922 | iptr p = 0; |
| 3923 | ++p; |
| 3924 | } |
| 3925 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 3926 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 3927 | struct s { int j; const int *ap[3]; }; |
| 3928 | struct s *b; b->j = 5; |
| 3929 | } |
| 3930 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 3931 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3932 | } |
| 3933 | |
| 3934 | ; return 0; } |
| 3935 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3936 | if { (eval echo configure:3937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3937 | rm -rf conftest* |
| 3938 | ac_cv_c_const=yes |
| 3939 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3940 | echo "configure: failed program was:" >&5 |
| 3941 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3942 | rm -rf conftest* |
| 3943 | ac_cv_c_const=no |
| 3944 | fi |
| 3945 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3946 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3947 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3948 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3949 | if test $ac_cv_c_const = no; then |
| 3950 | cat >> confdefs.h <<\EOF |
| 3951 | #define const |
| 3952 | EOF |
| 3953 | |
| 3954 | fi |
| 3955 | |
| 3956 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3957 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3958 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3959 | echo "configure:3960: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3960 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3961 | #line 3962 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3962 | #include "confdefs.h" |
| 3963 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3964 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3965 | volatile int x; x = 0; |
| 3966 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3967 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3968 | if { (eval echo configure:3969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3969 | rm -rf conftest* |
| 3970 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3971 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3972 | echo "configure: failed program was:" >&5 |
| 3973 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3974 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3975 | cat >> confdefs.h <<\EOF |
| 3976 | #define volatile |
| 3977 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3978 | |
| 3979 | fi |
| 3980 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3981 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3982 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3983 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3984 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3985 | echo "configure:3986: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3986 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3987 | #line 3988 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 3988 | #include "confdefs.h" |
| 3989 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3990 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3991 | signed char c; |
| 3992 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 3993 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 3994 | if { (eval echo configure:3995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3995 | rm -rf conftest* |
| 3996 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 3997 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3998 | echo "configure: failed program was:" >&5 |
| 3999 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4000 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4001 | cat >> confdefs.h <<\EOF |
| 4002 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4003 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4004 | |
| 4005 | fi |
| 4006 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4007 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4008 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4009 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4010 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4011 | echo "configure:4012: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4012 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4013 | #line 4014 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4014 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4015 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4016 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4017 | return foo(10); |
| 4018 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4019 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4020 | if { (eval echo configure:4021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4021 | rm -rf conftest* |
| 4022 | cat >> confdefs.h <<\EOF |
| 4023 | #define HAVE_PROTOTYPES 1 |
| 4024 | EOF |
| 4025 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4026 | else |
| 4027 | echo "configure: failed program was:" >&5 |
| 4028 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4029 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4030 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4031 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4032 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4033 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4034 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4035 | echo "configure:4036: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4036 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4037 | #line 4038 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4038 | #include "confdefs.h" |
| 4039 | |
| 4040 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4041 | int foo(int x, ...) { |
| 4042 | va_list va; |
| 4043 | va_start(va, x); |
| 4044 | va_arg(va, int); |
| 4045 | va_arg(va, char *); |
| 4046 | va_arg(va, double); |
| 4047 | return 0; |
| 4048 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4049 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4050 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4051 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4052 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4053 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4054 | if { (eval echo configure:4055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4055 | rm -rf conftest* |
| 4056 | cat >> confdefs.h <<\EOF |
| 4057 | #define HAVE_STDARG_PROTOTYPES 1 |
| 4058 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4059 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4060 | else |
| 4061 | echo "configure: failed program was:" >&5 |
| 4062 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4063 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4064 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4065 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4066 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4067 | if test "$have_prototypes" = yes; then |
| 4068 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4069 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4070 | echo "configure:4071: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4071 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4072 | #line 4073 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4073 | #include "confdefs.h" |
| 4074 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4075 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4076 | char **t;execve("@",t,t); |
| 4077 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4078 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4079 | if { (eval echo configure:4080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4080 | : |
| 4081 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4082 | echo "configure: failed program was:" >&5 |
| 4083 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4084 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4085 | cat >> confdefs.h <<\EOF |
| 4086 | #define BAD_EXEC_PROTOTYPES 1 |
| 4087 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4088 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4089 | fi |
| 4090 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4091 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4092 | fi |
| 4093 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4094 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4095 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4096 | echo "configure:4097: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4097 | if test "$cross_compiling" = yes; then |
| 4098 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4099 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4100 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4101 | #line 4102 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4102 | #include "confdefs.h" |
| 4103 | |
| 4104 | struct s { int a; int b; }; |
| 4105 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4106 | int foobar() { |
| 4107 | static int random; |
| 4108 | random = (int) &foo; |
| 4109 | return random; |
| 4110 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4111 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4112 | main() { |
| 4113 | exit(!((int)&foo == foobar())); |
| 4114 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4115 | |
| 4116 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4117 | if { (eval echo configure:4118: \"$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] | 4118 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4119 | : |
| 4120 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4121 | echo "configure: failed program was:" >&5 |
| 4122 | cat conftest.$ac_ext >&5 |
| 4123 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4124 | cat >> confdefs.h <<\EOF |
| 4125 | #define BAD_STATIC_FORWARD 1 |
| 4126 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4127 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4128 | fi |
| 4129 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4130 | fi |
| 4131 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4132 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4133 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4134 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4135 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4136 | echo "configure:4137: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4137 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4138 | #line 4139 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4139 | #include "confdefs.h" |
| 4140 | |
| 4141 | #ifdef HAVE_STDARG_PROTOTYPES |
| 4142 | #include <stdarg.h> |
| 4143 | #else |
| 4144 | #include <varargs.h> |
| 4145 | #endif |
| 4146 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4147 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4148 | va_list list1, list2; list1 = list2; |
| 4149 | ; return 0; } |
| 4150 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4151 | if { (eval echo configure:4152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4152 | : |
| 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 | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4156 | rm -rf conftest* |
| 4157 | cat >> confdefs.h <<\EOF |
| 4158 | #define VA_LIST_IS_ARRAY 1 |
| 4159 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4160 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4161 | fi |
| 4162 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4163 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4164 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4165 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 4166 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4167 | echo "configure:4168: checking for gethostbyname_r" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4168 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then |
| 4169 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4170 | else |
| 4171 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4172 | #line 4173 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4173 | #include "confdefs.h" |
| 4174 | /* System header to define __stub macros and hopefully few prototypes, |
| 4175 | which can conflict with char gethostbyname_r(); below. */ |
| 4176 | #include <assert.h> |
| 4177 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4178 | /* We use char because int might match the return type of a gcc2 |
| 4179 | builtin and then its argument prototype would still apply. */ |
| 4180 | char gethostbyname_r(); |
| 4181 | |
| 4182 | int main() { |
| 4183 | |
| 4184 | /* The GNU C library defines this for functions which it implements |
| 4185 | to always fail with ENOSYS. Some functions are actually named |
| 4186 | something starting with __ and the normal name is an alias. */ |
| 4187 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 4188 | choke me |
| 4189 | #else |
| 4190 | gethostbyname_r(); |
| 4191 | #endif |
| 4192 | |
| 4193 | ; return 0; } |
| 4194 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4195 | if { (eval echo configure:4196: \"$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] | 4196 | rm -rf conftest* |
| 4197 | eval "ac_cv_func_gethostbyname_r=yes" |
| 4198 | else |
| 4199 | echo "configure: failed program was:" >&5 |
| 4200 | cat conftest.$ac_ext >&5 |
| 4201 | rm -rf conftest* |
| 4202 | eval "ac_cv_func_gethostbyname_r=no" |
| 4203 | fi |
| 4204 | rm -f conftest* |
| 4205 | fi |
| 4206 | |
| 4207 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 4208 | echo "$ac_t""yes" 1>&6 |
| 4209 | |
| 4210 | cat >> confdefs.h <<\EOF |
| 4211 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4212 | EOF |
| 4213 | |
| 4214 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4215 | echo "configure:4216: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4216 | OLD_CFLAGS=$CFLAGS |
| 4217 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 4218 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4219 | #line 4220 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4220 | #include "confdefs.h" |
| 4221 | |
| 4222 | # include <netdb.h> |
| 4223 | |
| 4224 | int main() { |
| 4225 | |
| 4226 | char *name; |
| 4227 | struct hostent *he, *res; |
| 4228 | char buffer[2048]; |
| 4229 | int buflen = 2048; |
| 4230 | int h_errnop; |
| 4231 | |
| 4232 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 4233 | |
| 4234 | ; return 0; } |
| 4235 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4236 | if { (eval echo configure:4237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4237 | rm -rf conftest* |
| 4238 | |
| 4239 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4240 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4241 | EOF |
| 4242 | |
| 4243 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4244 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 4245 | EOF |
| 4246 | |
| 4247 | echo "$ac_t""yes" 1>&6 |
| 4248 | |
| 4249 | else |
| 4250 | echo "configure: failed program was:" >&5 |
| 4251 | cat conftest.$ac_ext >&5 |
| 4252 | rm -rf conftest* |
| 4253 | |
| 4254 | echo "$ac_t""no" 1>&6 |
| 4255 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4256 | echo "configure:4257: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4257 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4258 | #line 4259 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4259 | #include "confdefs.h" |
| 4260 | |
| 4261 | # include <netdb.h> |
| 4262 | |
| 4263 | int main() { |
| 4264 | |
| 4265 | char *name; |
| 4266 | struct hostent *he; |
| 4267 | char buffer[2048]; |
| 4268 | int buflen = 2048; |
| 4269 | int h_errnop; |
| 4270 | |
| 4271 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 4272 | |
| 4273 | ; return 0; } |
| 4274 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4275 | if { (eval echo configure:4276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4276 | rm -rf conftest* |
| 4277 | |
| 4278 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4279 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4280 | EOF |
| 4281 | |
| 4282 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4283 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 4284 | EOF |
| 4285 | |
| 4286 | echo "$ac_t""yes" 1>&6 |
| 4287 | |
| 4288 | else |
| 4289 | echo "configure: failed program was:" >&5 |
| 4290 | cat conftest.$ac_ext >&5 |
| 4291 | rm -rf conftest* |
| 4292 | |
| 4293 | echo "$ac_t""no" 1>&6 |
| 4294 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4295 | echo "configure:4296: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4296 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4297 | #line 4298 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4298 | #include "confdefs.h" |
| 4299 | |
| 4300 | # include <netdb.h> |
| 4301 | |
| 4302 | int main() { |
| 4303 | |
| 4304 | char *name; |
| 4305 | struct hostent *he; |
| 4306 | struct hostent_data data; |
| 4307 | |
| 4308 | (void) gethostbyname_r(name, he, &data); |
| 4309 | |
| 4310 | ; return 0; } |
| 4311 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4312 | if { (eval echo configure:4313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4313 | rm -rf conftest* |
| 4314 | |
| 4315 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4316 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4317 | EOF |
| 4318 | |
| 4319 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4320 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 4321 | EOF |
| 4322 | |
| 4323 | echo "$ac_t""yes" 1>&6 |
| 4324 | |
| 4325 | else |
| 4326 | echo "configure: failed program was:" >&5 |
| 4327 | cat conftest.$ac_ext >&5 |
| 4328 | rm -rf conftest* |
| 4329 | |
| 4330 | echo "$ac_t""no" 1>&6 |
| 4331 | |
| 4332 | fi |
| 4333 | rm -f conftest* |
| 4334 | |
| 4335 | fi |
| 4336 | rm -f conftest* |
| 4337 | |
| 4338 | fi |
| 4339 | rm -f conftest* |
| 4340 | CFLAGS=$OLD_CFLAGS |
| 4341 | |
| 4342 | else |
| 4343 | echo "$ac_t""no" 1>&6 |
| 4344 | |
| 4345 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4346 | echo "configure:4347: checking for gethostbyname" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4347 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
| 4348 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4349 | else |
| 4350 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4351 | #line 4352 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4352 | #include "confdefs.h" |
| 4353 | /* System header to define __stub macros and hopefully few prototypes, |
| 4354 | which can conflict with char gethostbyname(); below. */ |
| 4355 | #include <assert.h> |
| 4356 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4357 | /* We use char because int might match the return type of a gcc2 |
| 4358 | builtin and then its argument prototype would still apply. */ |
| 4359 | char gethostbyname(); |
| 4360 | |
| 4361 | int main() { |
| 4362 | |
| 4363 | /* The GNU C library defines this for functions which it implements |
| 4364 | to always fail with ENOSYS. Some functions are actually named |
| 4365 | something starting with __ and the normal name is an alias. */ |
| 4366 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 4367 | choke me |
| 4368 | #else |
| 4369 | gethostbyname(); |
| 4370 | #endif |
| 4371 | |
| 4372 | ; return 0; } |
| 4373 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4374 | if { (eval echo configure:4375: \"$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] | 4375 | rm -rf conftest* |
| 4376 | eval "ac_cv_func_gethostbyname=yes" |
| 4377 | else |
| 4378 | echo "configure: failed program was:" >&5 |
| 4379 | cat conftest.$ac_ext >&5 |
| 4380 | rm -rf conftest* |
| 4381 | eval "ac_cv_func_gethostbyname=no" |
| 4382 | fi |
| 4383 | rm -f conftest* |
| 4384 | fi |
| 4385 | |
| 4386 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
| 4387 | echo "$ac_t""yes" 1>&6 |
| 4388 | cat >> confdefs.h <<\EOF |
| 4389 | #define HAVE_GETHOSTBYNAME 1 |
| 4390 | EOF |
| 4391 | |
| 4392 | else |
| 4393 | echo "$ac_t""no" 1>&6 |
| 4394 | fi |
| 4395 | |
| 4396 | |
| 4397 | fi |
| 4398 | |
| 4399 | |
| 4400 | |
| 4401 | |
| 4402 | |
| 4403 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4404 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4405 | # checks for system services |
| 4406 | # (none yet) |
| 4407 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4408 | # Linux requires this for correct f.p. operations |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4409 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4410 | echo "configure:4411: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4411 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4412 | 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] | 4413 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4414 | else |
| 4415 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4416 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4417 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4418 | #line 4419 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4419 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4420 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4421 | /* We use char because int might match the return type of a gcc2 |
| 4422 | builtin and then its argument prototype would still apply. */ |
| 4423 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4424 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4425 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4426 | __fpu_control() |
| 4427 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4428 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4429 | if { (eval echo configure:4430: \"$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] | 4430 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4431 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4432 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4433 | echo "configure: failed program was:" >&5 |
| 4434 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4435 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4436 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4437 | fi |
| 4438 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4439 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4440 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4441 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4442 | 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] | 4443 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4444 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 4445 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4446 | cat >> confdefs.h <<EOF |
| 4447 | #define $ac_tr_lib 1 |
| 4448 | EOF |
| 4449 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4450 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4451 | |
| 4452 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4453 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4454 | fi |
| 4455 | |
| 4456 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4457 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4458 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4459 | echo "configure:4460: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4460 | # Check whether --with-fpectl or --without-fpectl was given. |
| 4461 | if test "${with_fpectl+set}" = set; then |
| 4462 | withval="$with_fpectl" |
| 4463 | |
| 4464 | if test "$withval" != no |
| 4465 | then cat >> confdefs.h <<\EOF |
| 4466 | #define WANT_SIGFPE_HANDLER 1 |
| 4467 | EOF |
| 4468 | echo "$ac_t""yes" 1>&6 |
| 4469 | else echo "$ac_t""no" 1>&6 |
| 4470 | fi |
| 4471 | fi |
| 4472 | |
| 4473 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4474 | # check for --with-libm=... |
| 4475 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4476 | case $ac_sys_system in |
| 4477 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4478 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4479 | *) LIBM=-lm |
| 4480 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4481 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4482 | echo "configure:4483: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4483 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4484 | if test "${with_libm+set}" = set; then |
| 4485 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4486 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4487 | if test "$withval" = no |
| 4488 | then LIBM= |
| 4489 | echo "$ac_t""force LIBM empty" 1>&6 |
| 4490 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4491 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4492 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4493 | 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] | 4494 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4495 | else |
| 4496 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4497 | fi |
| 4498 | |
| 4499 | |
| 4500 | # check for --with-libc=... |
| 4501 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4502 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4503 | echo "configure:4504: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4504 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4505 | if test "${with_libc+set}" = set; then |
| 4506 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4507 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4508 | if test "$withval" = no |
| 4509 | then LIBC= |
| 4510 | echo "$ac_t""force LIBC empty" 1>&6 |
| 4511 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4512 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4513 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4514 | 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] | 4515 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4516 | else |
| 4517 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4518 | fi |
| 4519 | |
| 4520 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4521 | # check for hypot() in math library |
| 4522 | LIBS_SAVE=$LIBS |
| 4523 | LIBS="$LIBS $LIBM" |
| 4524 | for ac_func in hypot |
| 4525 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4526 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4527 | echo "configure:4528: checking for $ac_func" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4528 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 4529 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4530 | else |
| 4531 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4532 | #line 4533 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4533 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4534 | /* System header to define __stub macros and hopefully few prototypes, |
| 4535 | which can conflict with char $ac_func(); below. */ |
| 4536 | #include <assert.h> |
| 4537 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4538 | /* We use char because int might match the return type of a gcc2 |
| 4539 | builtin and then its argument prototype would still apply. */ |
| 4540 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4541 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4542 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4543 | |
| 4544 | /* The GNU C library defines this for functions which it implements |
| 4545 | to always fail with ENOSYS. Some functions are actually named |
| 4546 | something starting with __ and the normal name is an alias. */ |
| 4547 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4548 | choke me |
| 4549 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4550 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4551 | #endif |
| 4552 | |
| 4553 | ; return 0; } |
| 4554 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4555 | if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4556 | rm -rf conftest* |
| 4557 | eval "ac_cv_func_$ac_func=yes" |
| 4558 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4559 | echo "configure: failed program was:" >&5 |
| 4560 | cat conftest.$ac_ext >&5 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4561 | rm -rf conftest* |
| 4562 | eval "ac_cv_func_$ac_func=no" |
| 4563 | fi |
| 4564 | rm -f conftest* |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4565 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4566 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4567 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4568 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4569 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4570 | cat >> confdefs.h <<EOF |
| 4571 | #define $ac_tr_func 1 |
| 4572 | EOF |
| 4573 | |
| 4574 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4575 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4576 | fi |
| 4577 | done |
| 4578 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4579 | for ac_func in hypot |
| 4580 | do |
| 4581 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4582 | echo "configure:4583: checking for $ac_func" >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4583 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 4584 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4585 | else |
| 4586 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4587 | #line 4588 "configure" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4588 | #include "confdefs.h" |
| 4589 | /* System header to define __stub macros and hopefully few prototypes, |
| 4590 | which can conflict with char $ac_func(); below. */ |
| 4591 | #include <assert.h> |
| 4592 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4593 | /* We use char because int might match the return type of a gcc2 |
| 4594 | builtin and then its argument prototype would still apply. */ |
| 4595 | char $ac_func(); |
| 4596 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4597 | int main() { |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4598 | |
| 4599 | /* The GNU C library defines this for functions which it implements |
| 4600 | to always fail with ENOSYS. Some functions are actually named |
| 4601 | something starting with __ and the normal name is an alias. */ |
| 4602 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4603 | choke me |
| 4604 | #else |
| 4605 | $ac_func(); |
| 4606 | #endif |
| 4607 | |
| 4608 | ; return 0; } |
| 4609 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4610 | if { (eval echo configure:4611: \"$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] | 4611 | rm -rf conftest* |
| 4612 | eval "ac_cv_func_$ac_func=yes" |
| 4613 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4614 | echo "configure: failed program was:" >&5 |
| 4615 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4616 | rm -rf conftest* |
| 4617 | eval "ac_cv_func_$ac_func=no" |
| 4618 | fi |
| 4619 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4620 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4621 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4622 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4623 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4624 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4625 | cat >> confdefs.h <<EOF |
| 4626 | #define $ac_tr_func 1 |
| 4627 | EOF |
| 4628 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4629 | else |
| 4630 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4631 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4632 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4633 | done |
| 4634 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4635 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4636 | LIBS=$LIBS_SAVE |
| 4637 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4638 | # check for getopt |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4639 | echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4640 | echo "configure:4641: checking for genuine getopt" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4641 | if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then |
| 4642 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4643 | else |
| 4644 | if test "$cross_compiling" = yes; then |
| 4645 | ac_cv_func_getopt=no |
| 4646 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4647 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4648 | #line 4649 "configure" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4649 | #include "confdefs.h" |
| 4650 | #include <stdio.h> |
| 4651 | extern int optind, opterr, getopt(); |
| 4652 | extern char* optarg; |
| 4653 | int main() { |
| 4654 | char* av[] = { "testprog", "parameter", "-fFlag", NULL }; |
| 4655 | opterr = 0; |
| 4656 | if (getopt(3, av, "f:") == 'f') { exit(1); } |
| 4657 | exit(0); |
| 4658 | } |
| 4659 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4660 | if { (eval echo configure:4661: \"$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] | 4661 | then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4662 | ac_cv_func_getopt=yes |
| 4663 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4664 | echo "configure: failed program was:" >&5 |
| 4665 | cat conftest.$ac_ext >&5 |
| 4666 | rm -fr conftest* |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4667 | ac_cv_func_getopt=no |
| 4668 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4669 | rm -fr conftest* |
| 4670 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4671 | |
| 4672 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4673 | echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4674 | test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 4675 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4676 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4677 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4678 | echo "configure:4679: checking what malloc(0) returns" >&5 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4679 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
| 4680 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4681 | else |
| 4682 | if test "$cross_compiling" = yes; then |
| 4683 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4684 | else |
| 4685 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4686 | #line 4687 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4687 | #include "confdefs.h" |
| 4688 | #include <stdio.h> |
| 4689 | #ifdef HAVE_STDLIB |
| 4690 | #include <stdlib.h> |
| 4691 | #else |
| 4692 | char *malloc(), *realloc(); |
| 4693 | int *free(); |
| 4694 | #endif |
| 4695 | main() { |
| 4696 | char *p; |
| 4697 | p = malloc(0); |
| 4698 | if (p == NULL) exit(1); |
| 4699 | p = realloc(p, 0); |
| 4700 | if (p == NULL) exit(1); |
| 4701 | free(p); |
| 4702 | exit(0); |
| 4703 | } |
| 4704 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4705 | if { (eval echo configure:4706: \"$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] | 4706 | then |
| 4707 | ac_cv_malloc_zero=nonnull |
| 4708 | else |
| 4709 | echo "configure: failed program was:" >&5 |
| 4710 | cat conftest.$ac_ext >&5 |
| 4711 | rm -fr conftest* |
| 4712 | ac_cv_malloc_zero=null |
| 4713 | fi |
| 4714 | rm -fr conftest* |
| 4715 | fi |
| 4716 | |
| 4717 | fi |
| 4718 | |
| 4719 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 4720 | if test "$ac_cv_malloc_zero" = null |
| 4721 | then |
| 4722 | cat >> confdefs.h <<\EOF |
| 4723 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 4724 | EOF |
| 4725 | |
| 4726 | fi |
| 4727 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4728 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4729 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4730 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4731 | # This file is a shell script that caches the results of configure |
| 4732 | # tests run on this system so they can be shared between configure |
| 4733 | # scripts and configure runs. It is not useful on other systems. |
| 4734 | # If it contains results you don't want to keep, you may remove or edit it. |
| 4735 | # |
| 4736 | # By default, configure uses ./config.cache as the cache file, |
| 4737 | # creating it if it does not exist already. You can give configure |
| 4738 | # the --cache-file=FILE option to use a different cache file; that is |
| 4739 | # what configure does when it calls configure scripts in |
| 4740 | # subdirectories, so they share the cache. |
| 4741 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 4742 | # config.status only pays attention to the cache file if you give it the |
| 4743 | # --recheck option to rerun configure. |
| 4744 | # |
| 4745 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4746 | # The following way of writing the cache mishandles newlines in values, |
| 4747 | # but we know of no workaround that is simple, portable, and efficient. |
| 4748 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4749 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4750 | # 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] | 4751 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4752 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4753 | *ac_space=\ *) |
| 4754 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 4755 | # turns \\\\ into \\, and sed turns \\ into \). |
| 4756 | sed -n \ |
| 4757 | -e "s/'/'\\\\''/g" \ |
| 4758 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 4759 | ;; |
| 4760 | *) |
| 4761 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4762 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 4763 | ;; |
| 4764 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4765 | if cmp -s $cache_file confcache; then |
| 4766 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4767 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4768 | if test -w $cache_file; then |
| 4769 | echo "updating cache $cache_file" |
| 4770 | cat confcache > $cache_file |
| 4771 | else |
| 4772 | echo "not updating unwritable cache $cache_file" |
| 4773 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4774 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4775 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 4776 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4777 | 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] | 4778 | |
| 4779 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4780 | # Let make expand exec_prefix. |
| 4781 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 4782 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4783 | # Any assignment to VPATH causes Sun make to only execute |
| 4784 | # the first set of double-colon rules, so remove it if not needed. |
| 4785 | # If there is a colon in the path, we need to keep it. |
| 4786 | if test "x$srcdir" = x.; then |
| 4787 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 4788 | fi |
| 4789 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4790 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4791 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4792 | DEFS=-DHAVE_CONFIG_H |
| 4793 | |
| 4794 | # Without the "./", some shells look in PATH for config.status. |
| 4795 | : ${CONFIG_STATUS=./config.status} |
| 4796 | |
| 4797 | echo creating $CONFIG_STATUS |
| 4798 | rm -f $CONFIG_STATUS |
| 4799 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4800 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4801 | # Generated automatically by configure. |
| 4802 | # Run this file to recreate the current configuration. |
| 4803 | # This directory was configured as follows, |
| 4804 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 4805 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4806 | # $0 $ac_configure_args |
| 4807 | # |
| 4808 | # Compiler output produced by configure, useful for debugging |
| 4809 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4810 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4811 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4812 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4813 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4814 | case "\$ac_option" in |
| 4815 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4816 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 4817 | 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] | 4818 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4819 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4820 | exit 0 ;; |
| 4821 | -help | --help | --hel | --he | --h) |
| 4822 | echo "\$ac_cs_usage"; exit 0 ;; |
| 4823 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4824 | esac |
| 4825 | done |
| 4826 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4827 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4828 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4829 | trap 'rm -fr `echo "Makefile \ |
| 4830 | Objects/Makefile \ |
| 4831 | Parser/Makefile \ |
| 4832 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 4833 | Modules/Makefile.pre \ |
| 4834 | Modules/Setup.thread config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4835 | EOF |
| 4836 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4837 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4838 | # Protect against being on the right side of a sed subst in config.status. |
| 4839 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 4840 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4841 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4842 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4843 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4844 | s%@CFLAGS@%$CFLAGS%g |
| 4845 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 4846 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4847 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4848 | s%@DEFS@%$DEFS%g |
| 4849 | s%@LDFLAGS@%$LDFLAGS%g |
| 4850 | s%@LIBS@%$LIBS%g |
| 4851 | s%@exec_prefix@%$exec_prefix%g |
| 4852 | s%@prefix@%$prefix%g |
| 4853 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4854 | s%@bindir@%$bindir%g |
| 4855 | s%@sbindir@%$sbindir%g |
| 4856 | s%@libexecdir@%$libexecdir%g |
| 4857 | s%@datadir@%$datadir%g |
| 4858 | s%@sysconfdir@%$sysconfdir%g |
| 4859 | s%@sharedstatedir@%$sharedstatedir%g |
| 4860 | s%@localstatedir@%$localstatedir%g |
| 4861 | s%@libdir@%$libdir%g |
| 4862 | s%@includedir@%$includedir%g |
| 4863 | s%@oldincludedir@%$oldincludedir%g |
| 4864 | s%@infodir@%$infodir%g |
| 4865 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 4866 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4867 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4868 | s%@SGI_ABI@%$SGI_ABI%g |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame^] | 4869 | s%@SET_CXX@%$SET_CXX%g |
| 4870 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4871 | s%@CC@%$CC%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 4872 | s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g |
| 4873 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 4874 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4875 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4876 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4877 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4878 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 4879 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4880 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4881 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4882 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 4883 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 4884 | s%@SO@%$SO%g |
| 4885 | s%@LDSHARED@%$LDSHARED%g |
| 4886 | s%@CCSHARED@%$CCSHARED%g |
| 4887 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 4888 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 4889 | s%@LDLAST@%$LDLAST%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4890 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4891 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4892 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 4893 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 4894 | 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] | 4895 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4896 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4897 | s%@LIBM@%$LIBM%g |
| 4898 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4899 | |
| 4900 | CEOF |
| 4901 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4902 | |
| 4903 | cat >> $CONFIG_STATUS <<\EOF |
| 4904 | |
| 4905 | # Split the substitutions into bite-sized pieces for seds with |
| 4906 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 4907 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 4908 | ac_file=1 # Number of current file. |
| 4909 | ac_beg=1 # First line for current file. |
| 4910 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 4911 | ac_more_lines=: |
| 4912 | ac_sed_cmds="" |
| 4913 | while $ac_more_lines; do |
| 4914 | if test $ac_beg -gt 1; then |
| 4915 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4916 | else |
| 4917 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4918 | fi |
| 4919 | if test ! -s conftest.s$ac_file; then |
| 4920 | ac_more_lines=false |
| 4921 | rm -f conftest.s$ac_file |
| 4922 | else |
| 4923 | if test -z "$ac_sed_cmds"; then |
| 4924 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 4925 | else |
| 4926 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 4927 | fi |
| 4928 | ac_file=`expr $ac_file + 1` |
| 4929 | ac_beg=$ac_end |
| 4930 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 4931 | fi |
| 4932 | done |
| 4933 | if test -z "$ac_sed_cmds"; then |
| 4934 | ac_sed_cmds=cat |
| 4935 | fi |
| 4936 | EOF |
| 4937 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4938 | cat >> $CONFIG_STATUS <<EOF |
| 4939 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4940 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 4941 | Objects/Makefile \ |
| 4942 | Parser/Makefile \ |
| 4943 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 4944 | Modules/Makefile.pre \ |
| 4945 | Modules/Setup.thread"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4946 | EOF |
| 4947 | cat >> $CONFIG_STATUS <<\EOF |
| 4948 | 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] | 4949 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4950 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4951 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4952 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 4953 | *) ac_file_in="${ac_file}.in" ;; |
| 4954 | esac |
| 4955 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4956 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4957 | |
| 4958 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 4959 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 4960 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 4961 | # The file is in a subdirectory. |
| 4962 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4963 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4964 | # A "../" for each directory in $ac_dir_suffix. |
| 4965 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 4966 | else |
| 4967 | ac_dir_suffix= ac_dots= |
| 4968 | fi |
| 4969 | |
| 4970 | case "$ac_given_srcdir" in |
| 4971 | .) srcdir=. |
| 4972 | if test -z "$ac_dots"; then top_srcdir=. |
| 4973 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 4974 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 4975 | *) # Relative path. |
| 4976 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 4977 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 4978 | esac |
| 4979 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4980 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4981 | echo creating "$ac_file" |
| 4982 | rm -f "$ac_file" |
| 4983 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 4984 | case "$ac_file" in |
| 4985 | *Makefile*) ac_comsub="1i\\ |
| 4986 | # $configure_input" ;; |
| 4987 | *) ac_comsub= ;; |
| 4988 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4989 | |
| 4990 | 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] | 4991 | sed -e "$ac_comsub |
| 4992 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4993 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4994 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4995 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4996 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4997 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4998 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4999 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 5000 | # 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] | 5001 | # |
| 5002 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5003 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 5004 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5005 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5006 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5007 | # 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] | 5008 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5009 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5010 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5011 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5012 | # 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] | 5013 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5014 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5015 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5016 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5017 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5018 | if test "${CONFIG_HEADERS+set}" != set; then |
| 5019 | EOF |
| 5020 | cat >> $CONFIG_STATUS <<EOF |
| 5021 | CONFIG_HEADERS="config.h" |
| 5022 | EOF |
| 5023 | cat >> $CONFIG_STATUS <<\EOF |
| 5024 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5025 | 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] | 5026 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5027 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5028 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5029 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5030 | *) ac_file_in="${ac_file}.in" ;; |
| 5031 | esac |
| 5032 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5033 | echo creating $ac_file |
| 5034 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5035 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5036 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 5037 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5038 | |
| 5039 | EOF |
| 5040 | |
| 5041 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 5042 | # 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] | 5043 | # 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] | 5044 | # Protect against being in an unquoted here document in config.status. |
| 5045 | rm -f conftest.vals |
| 5046 | cat > conftest.hdr <<\EOF |
| 5047 | s/[\\&%]/\\&/g |
| 5048 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5049 | 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] | 5050 | s%ac_d%ac_u%gp |
| 5051 | s%ac_u%ac_e%gp |
| 5052 | EOF |
| 5053 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 5054 | rm -f conftest.hdr |
| 5055 | |
| 5056 | # This sed command replaces #undef with comments. This is necessary, for |
| 5057 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 5058 | # on some systems where configure will not decide to define it. |
| 5059 | cat >> conftest.vals <<\EOF |
| 5060 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 5061 | EOF |
| 5062 | |
| 5063 | # Break up conftest.vals because some shells have a limit on |
| 5064 | # 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] | 5065 | |
| 5066 | rm -f conftest.tail |
| 5067 | while : |
| 5068 | do |
| 5069 | ac_lines=`grep -c . conftest.vals` |
| 5070 | # grep -c gives empty output for an empty file on some AIX systems. |
| 5071 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 5072 | # Write a limited-size here document to conftest.frag. |
| 5073 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 5074 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 5075 | echo 'CEOF |
| 5076 | sed -f conftest.frag conftest.in > conftest.out |
| 5077 | rm -f conftest.in |
| 5078 | mv conftest.out conftest.in |
| 5079 | ' >> $CONFIG_STATUS |
| 5080 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 5081 | rm -f conftest.vals |
| 5082 | mv conftest.tail conftest.vals |
| 5083 | done |
| 5084 | rm -f conftest.vals |
| 5085 | |
| 5086 | cat >> $CONFIG_STATUS <<\EOF |
| 5087 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5088 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5089 | cat conftest.in >> conftest.h |
| 5090 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5091 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5092 | echo "$ac_file is unchanged" |
| 5093 | rm -f conftest.h |
| 5094 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5095 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 5096 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5097 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5098 | # The file is in a subdirectory. |
| 5099 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 5100 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5101 | rm -f $ac_file |
| 5102 | mv conftest.h $ac_file |
| 5103 | fi |
| 5104 | fi; done |
| 5105 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5106 | EOF |
| 5107 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5108 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5109 | EOF |
| 5110 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5111 | |
| 5112 | exit 0 |
| 5113 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5114 | chmod +x $CONFIG_STATUS |
| 5115 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5116 | 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] | 5117 | |