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 | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3 | # From configure.in Revision: 1.42 |
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 | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.10 |
| 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 | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19 | --without-gcc never use gcc" |
| 20 | ac_help="$ac_help |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 21 | --with-libs='lib1 ...' link against additional libs" |
| 22 | ac_help="$ac_help |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 23 | --with-readline=DIRECTORY search GNU readline library in DIRECTORY |
| 24 | --without-readline do not use GNU readline library" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 25 | ac_help="$ac_help |
| 26 | --with-thread[=DIRECTORY] make interpreter thread-safe" |
| 27 | ac_help="$ac_help |
| 28 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
| 29 | ac_help="$ac_help |
| 30 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
| 31 | ac_help="$ac_help |
| 32 | --with-libm=STRING math library" |
| 33 | ac_help="$ac_help |
| 34 | --with-libc=STRING C library" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 35 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 36 | # Initialize some variables set by options. |
| 37 | # The variables have the same names as the options, with |
| 38 | # dashes changed to underlines. |
| 39 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 40 | cache_file=./config.cache |
| 41 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 42 | host=NONE |
| 43 | no_create= |
| 44 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 45 | no_recursion= |
| 46 | prefix=NONE |
| 47 | program_prefix=NONE |
| 48 | program_suffix=NONE |
| 49 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 50 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 51 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 52 | srcdir= |
| 53 | target=NONE |
| 54 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 55 | x_includes=NONE |
| 56 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 57 | bindir='${exec_prefix}/bin' |
| 58 | sbindir='${exec_prefix}/sbin' |
| 59 | libexecdir='${exec_prefix}/libexec' |
| 60 | datadir='${prefix}/share' |
| 61 | sysconfdir='${prefix}/etc' |
| 62 | sharedstatedir='${prefix}/com' |
| 63 | localstatedir='${prefix}/var' |
| 64 | libdir='${exec_prefix}/lib' |
| 65 | includedir='${prefix}/include' |
| 66 | oldincludedir='/usr/include' |
| 67 | infodir='${prefix}/info' |
| 68 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 69 | |
| 70 | # Initialize some other variables. |
| 71 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 72 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 73 | |
| 74 | ac_prev= |
| 75 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 76 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 77 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 78 | # If the previous option needs an argument, assign it. |
| 79 | if test -n "$ac_prev"; then |
| 80 | eval "$ac_prev=\$ac_option" |
| 81 | ac_prev= |
| 82 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 83 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 84 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 85 | case "$ac_option" in |
| 86 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 87 | *) ac_optarg= ;; |
| 88 | esac |
| 89 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 90 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 91 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 92 | case "$ac_option" in |
| 93 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 94 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 95 | ac_prev=bindir ;; |
| 96 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 97 | bindir="$ac_optarg" ;; |
| 98 | |
| 99 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 100 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 101 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 102 | build="$ac_optarg" ;; |
| 103 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 104 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 105 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 106 | ac_prev=cache_file ;; |
| 107 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 108 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 109 | cache_file="$ac_optarg" ;; |
| 110 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 111 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 112 | ac_prev=datadir ;; |
| 113 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 114 | | --da=*) |
| 115 | datadir="$ac_optarg" ;; |
| 116 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 117 | -disable-* | --disable-*) |
| 118 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 119 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 120 | 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] | 121 | { 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] | 122 | fi |
| 123 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 124 | eval "enable_${ac_feature}=no" ;; |
| 125 | |
| 126 | -enable-* | --enable-*) |
| 127 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 128 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 129 | 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] | 130 | { 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] | 131 | fi |
| 132 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 133 | case "$ac_option" in |
| 134 | *=*) ;; |
| 135 | *) ac_optarg=yes ;; |
| 136 | esac |
| 137 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 138 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 139 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 140 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 141 | | --exec | --exe | --ex) |
| 142 | ac_prev=exec_prefix ;; |
| 143 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 144 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 145 | | --exec=* | --exe=* | --ex=*) |
| 146 | exec_prefix="$ac_optarg" ;; |
| 147 | |
| 148 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 149 | # Obsolete; use --with-gas. |
| 150 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 151 | |
| 152 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 153 | # Omit some internal or obsolete options to make the list less imposing. |
| 154 | # 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] | 155 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 156 | Usage: configure [options] [host] |
| 157 | Options: [defaults in brackets after descriptions] |
| 158 | Configuration: |
| 159 | --cache-file=FILE cache test results in FILE |
| 160 | --help print this message |
| 161 | --no-create do not create output files |
| 162 | --quiet, --silent do not print \`checking...' messages |
| 163 | --version print the version of autoconf that created configure |
| 164 | Directory and file names: |
| 165 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 166 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 167 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 168 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 169 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 170 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 171 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 172 | --datadir=DIR read-only architecture-independent data in DIR |
| 173 | [PREFIX/share] |
| 174 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 175 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 176 | [PREFIX/com] |
| 177 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 178 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 179 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 180 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 181 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 182 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 183 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 184 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 185 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 186 | --program-transform-name=PROGRAM |
| 187 | run sed PROGRAM on installed program names |
| 188 | EOF |
| 189 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 190 | Host type: |
| 191 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 192 | --host=HOST configure for HOST [guessed] |
| 193 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 194 | Features and packages: |
| 195 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 196 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 197 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 198 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 199 | --x-includes=DIR X include files are in DIR |
| 200 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 201 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 202 | if test -n "$ac_help"; then |
| 203 | echo "--enable and --with options recognized:$ac_help" |
| 204 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 205 | exit 0 ;; |
| 206 | |
| 207 | -host | --host | --hos | --ho) |
| 208 | ac_prev=host ;; |
| 209 | -host=* | --host=* | --hos=* | --ho=*) |
| 210 | host="$ac_optarg" ;; |
| 211 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 212 | -includedir | --includedir | --includedi | --included | --include \ |
| 213 | | --includ | --inclu | --incl | --inc) |
| 214 | ac_prev=includedir ;; |
| 215 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 216 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 217 | includedir="$ac_optarg" ;; |
| 218 | |
| 219 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 220 | ac_prev=infodir ;; |
| 221 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 222 | infodir="$ac_optarg" ;; |
| 223 | |
| 224 | -libdir | --libdir | --libdi | --libd) |
| 225 | ac_prev=libdir ;; |
| 226 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 227 | libdir="$ac_optarg" ;; |
| 228 | |
| 229 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 230 | | --libexe | --libex | --libe) |
| 231 | ac_prev=libexecdir ;; |
| 232 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 233 | | --libexe=* | --libex=* | --libe=*) |
| 234 | libexecdir="$ac_optarg" ;; |
| 235 | |
| 236 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 237 | | --localstate | --localstat | --localsta | --localst \ |
| 238 | | --locals | --local | --loca | --loc | --lo) |
| 239 | ac_prev=localstatedir ;; |
| 240 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 241 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 242 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 243 | localstatedir="$ac_optarg" ;; |
| 244 | |
| 245 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 246 | ac_prev=mandir ;; |
| 247 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 248 | mandir="$ac_optarg" ;; |
| 249 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 250 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 251 | # Obsolete; use --without-fp. |
| 252 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 253 | |
| 254 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 255 | | --no-cr | --no-c) |
| 256 | no_create=yes ;; |
| 257 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 258 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 259 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 260 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 261 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 262 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 263 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 264 | | --oldin | --oldi | --old | --ol | --o) |
| 265 | ac_prev=oldincludedir ;; |
| 266 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 267 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 268 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 269 | oldincludedir="$ac_optarg" ;; |
| 270 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 271 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 272 | ac_prev=prefix ;; |
| 273 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 274 | prefix="$ac_optarg" ;; |
| 275 | |
| 276 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 277 | | --program-pre | --program-pr | --program-p) |
| 278 | ac_prev=program_prefix ;; |
| 279 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 280 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 281 | program_prefix="$ac_optarg" ;; |
| 282 | |
| 283 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 284 | | --program-suf | --program-su | --program-s) |
| 285 | ac_prev=program_suffix ;; |
| 286 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 287 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 288 | program_suffix="$ac_optarg" ;; |
| 289 | |
| 290 | -program-transform-name | --program-transform-name \ |
| 291 | | --program-transform-nam | --program-transform-na \ |
| 292 | | --program-transform-n | --program-transform- \ |
| 293 | | --program-transform | --program-transfor \ |
| 294 | | --program-transfo | --program-transf \ |
| 295 | | --program-trans | --program-tran \ |
| 296 | | --progr-tra | --program-tr | --program-t) |
| 297 | ac_prev=program_transform_name ;; |
| 298 | -program-transform-name=* | --program-transform-name=* \ |
| 299 | | --program-transform-nam=* | --program-transform-na=* \ |
| 300 | | --program-transform-n=* | --program-transform-=* \ |
| 301 | | --program-transform=* | --program-transfor=* \ |
| 302 | | --program-transfo=* | --program-transf=* \ |
| 303 | | --program-trans=* | --program-tran=* \ |
| 304 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 305 | program_transform_name="$ac_optarg" ;; |
| 306 | |
| 307 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 308 | | -silent | --silent | --silen | --sile | --sil) |
| 309 | silent=yes ;; |
| 310 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 311 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 312 | ac_prev=sbindir ;; |
| 313 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 314 | | --sbi=* | --sb=*) |
| 315 | sbindir="$ac_optarg" ;; |
| 316 | |
| 317 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 318 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 319 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 320 | | --sha | --sh) |
| 321 | ac_prev=sharedstatedir ;; |
| 322 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 323 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 324 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 325 | | --sha=* | --sh=*) |
| 326 | sharedstatedir="$ac_optarg" ;; |
| 327 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 328 | -site | --site | --sit) |
| 329 | ac_prev=site ;; |
| 330 | -site=* | --site=* | --sit=*) |
| 331 | site="$ac_optarg" ;; |
| 332 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 333 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 334 | ac_prev=srcdir ;; |
| 335 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 336 | srcdir="$ac_optarg" ;; |
| 337 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 338 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 339 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 340 | ac_prev=sysconfdir ;; |
| 341 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 342 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 343 | sysconfdir="$ac_optarg" ;; |
| 344 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 345 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 346 | ac_prev=target ;; |
| 347 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 348 | target="$ac_optarg" ;; |
| 349 | |
| 350 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 351 | verbose=yes ;; |
| 352 | |
| 353 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 354 | echo "configure generated by autoconf version 2.10" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 355 | exit 0 ;; |
| 356 | |
| 357 | -with-* | --with-*) |
| 358 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 359 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 360 | 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] | 361 | { 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] | 362 | fi |
| 363 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 364 | case "$ac_option" in |
| 365 | *=*) ;; |
| 366 | *) ac_optarg=yes ;; |
| 367 | esac |
| 368 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 369 | |
| 370 | -without-* | --without-*) |
| 371 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 372 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 373 | 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] | 374 | { 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] | 375 | fi |
| 376 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 377 | eval "with_${ac_package}=no" ;; |
| 378 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 379 | --x) |
| 380 | # Obsolete; use --with-x. |
| 381 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 382 | |
| 383 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 384 | | --x-incl | --x-inc | --x-in | --x-i) |
| 385 | ac_prev=x_includes ;; |
| 386 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 387 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 388 | x_includes="$ac_optarg" ;; |
| 389 | |
| 390 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 391 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 392 | ac_prev=x_libraries ;; |
| 393 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 394 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 395 | x_libraries="$ac_optarg" ;; |
| 396 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 397 | -*) { 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] | 398 | ;; |
| 399 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 400 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 401 | 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] | 402 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 403 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 404 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 405 | { 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] | 406 | fi |
| 407 | nonopt="$ac_option" |
| 408 | ;; |
| 409 | |
| 410 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 411 | done |
| 412 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 413 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 414 | { 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] | 415 | fi |
| 416 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 417 | 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] | 418 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 419 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 420 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 421 | # 1 file creation |
| 422 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 423 | # 3 some systems may open it to /dev/tty |
| 424 | # 4 used on the Kubota Titan |
| 425 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 426 | # 5 compiler messages saved in config.log |
| 427 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 428 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 429 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 430 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 431 | fi |
| 432 | exec 5>./config.log |
| 433 | |
| 434 | echo "\ |
| 435 | This file contains any messages produced by compilers while |
| 436 | running configure, to aid debugging if configure makes a mistake. |
| 437 | " 1>&5 |
| 438 | |
| 439 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 440 | # Also quote any args containing shell metacharacters. |
| 441 | ac_configure_args= |
| 442 | for ac_arg |
| 443 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 444 | case "$ac_arg" in |
| 445 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 446 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 447 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 448 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 449 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 450 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 451 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 452 | esac |
| 453 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 454 | |
| 455 | # NLS nuisances. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 456 | # Only set LANG and LC_ALL to C if already set. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 457 | # These must not be set unconditionally because not all systems understand |
| 458 | # e.g. LANG=C (notably SCO). |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 459 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 460 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 461 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 462 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 463 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 464 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 465 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 466 | |
| 467 | # A filename unique to this package, relative to the directory that |
| 468 | # 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] | 469 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 470 | |
| 471 | # Find the source files, if location was not specified. |
| 472 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 473 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 474 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 475 | ac_prog=$0 |
| 476 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 477 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 478 | srcdir=$ac_confdir |
| 479 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 480 | srcdir=.. |
| 481 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 482 | else |
| 483 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 484 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 485 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 486 | if test "$ac_srcdir_defaulted" = yes; then |
| 487 | { 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] | 488 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 489 | { 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] | 490 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 491 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 492 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 493 | |
| 494 | # Prefer explicitly selected file to automatically selected ones. |
| 495 | if test -z "$CONFIG_SITE"; then |
| 496 | if test "x$prefix" != xNONE; then |
| 497 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 498 | else |
| 499 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 500 | fi |
| 501 | fi |
| 502 | for ac_site_file in $CONFIG_SITE; do |
| 503 | if test -r "$ac_site_file"; then |
| 504 | echo "loading site script $ac_site_file" |
| 505 | . "$ac_site_file" |
| 506 | fi |
| 507 | done |
| 508 | |
| 509 | if test -r "$cache_file"; then |
| 510 | echo "loading cache $cache_file" |
| 511 | . $cache_file |
| 512 | else |
| 513 | echo "creating cache $cache_file" |
| 514 | > $cache_file |
| 515 | fi |
| 516 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 517 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 518 | # 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] | 519 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 520 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 521 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 522 | |
| 523 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 524 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 525 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 526 | ac_n= ac_c=' |
| 527 | ' ac_t=' ' |
| 528 | else |
| 529 | ac_n=-n ac_c= ac_t= |
| 530 | fi |
| 531 | else |
| 532 | ac_n= ac_c='\c' ac_t= |
| 533 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 534 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 535 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 536 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 537 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 538 | # NEXTSTEP stuff |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 539 | if test -f /usr/lib/NextStep/software_version; then |
| 540 | |
| 541 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
| 542 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 543 | if test "${with_next_archs+set}" = set; then |
| 544 | withval="$with_next_archs" |
| 545 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 546 | if test -n "$withval"; then |
| 547 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 548 | # GCC does not currently support multi archs on the NeXT |
| 549 | with_gcc=no |
| 550 | fi |
| 551 | echo "$ac_t""$with_next_archs" 1>&6 |
| 552 | |
| 553 | else |
| 554 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 555 | fi |
| 556 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 557 | |
| 558 | if test -z "$MACHDEP" |
| 559 | then |
| 560 | set X `hostinfo | grep 'NeXT Mach.*:' | \ |
| 561 | sed -e 's/://' -e 's/\./_/'` && \ |
| 562 | ac_sys_system=next && ac_sys_release=$4 |
| 563 | |
| 564 | MACHDEP="$ac_sys_system$ac_sys_release" |
| 565 | fi |
| 566 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 567 | |
| 568 | # Set name for machine-dependent library files |
| 569 | |
| 570 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
| 571 | if test -z "$MACHDEP" |
| 572 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 573 | ac_sys_system=`uname -s` |
| 574 | if test "$ac_sys_system" = "AIX" ; then |
| 575 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 576 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 577 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 578 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 579 | ac_md_system=`echo $ac_sys_system | |
| 580 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 581 | ac_md_release=`echo $ac_sys_release | |
| 582 | tr -d '/ ' | sed 's/\..*//'` |
| 583 | MACHDEP="$ac_md_system$ac_md_release" |
| 584 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 585 | case MACHDEP in |
| 586 | '') MACHDEP=unknown;; |
| 587 | esac |
| 588 | fi |
| 589 | echo "$ac_t""$MACHDEP" 1>&6 |
| 590 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 591 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 592 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 593 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 594 | if test "${with_gcc+set}" = set; then |
| 595 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 596 | |
| 597 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 598 | no) CC=cc |
| 599 | without_gcc=yes;; |
| 600 | yes) CC=gcc |
| 601 | without_gcc=no;; |
| 602 | *) CC=$withval |
| 603 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 604 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 605 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 606 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 607 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 608 | OSF1) CC=cc |
| 609 | without_gcc=;; |
| 610 | *) without_gcc=no;; |
| 611 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 612 | fi |
| 613 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 614 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 615 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 616 | # If the user switches compilers, we can't believe the cache |
| 617 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 618 | then |
| 619 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 620 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 621 | fi |
| 622 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 623 | # Extract the first word of "gcc", so it can be a program name with args. |
| 624 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 625 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 626 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 627 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 628 | else |
| 629 | if test -n "$CC"; then |
| 630 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 631 | else |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 632 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 633 | for ac_dir in $PATH; do |
| 634 | test -z "$ac_dir" && ac_dir=. |
| 635 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 636 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 637 | break |
| 638 | fi |
| 639 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 640 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 641 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 642 | fi |
| 643 | CC="$ac_cv_prog_CC" |
| 644 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 645 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 646 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 647 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 648 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 649 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 650 | if test -z "$CC"; then |
| 651 | # Extract the first word of "cc", so it can be a program name with args. |
| 652 | set dummy cc; ac_word=$2 |
| 653 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 654 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 655 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 656 | else |
| 657 | if test -n "$CC"; then |
| 658 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 659 | else |
| 660 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 661 | ac_prog_rejected=no |
| 662 | for ac_dir in $PATH; do |
| 663 | test -z "$ac_dir" && ac_dir=. |
| 664 | if test -f $ac_dir/$ac_word; then |
| 665 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 666 | ac_prog_rejected=yes |
| 667 | continue |
| 668 | fi |
| 669 | ac_cv_prog_CC="cc" |
| 670 | break |
| 671 | fi |
| 672 | done |
| 673 | IFS="$ac_save_ifs" |
| 674 | if test $ac_prog_rejected = yes; then |
| 675 | # We found a bogon in the path, so make sure we never use it. |
| 676 | set dummy $ac_cv_prog_CC |
| 677 | shift |
| 678 | if test $# -gt 0; then |
| 679 | # We chose a different compiler from the bogus one. |
| 680 | # However, it has the same basename, so the bogon will be chosen |
| 681 | # first if we set CC to just the basename; use the full file name. |
| 682 | shift |
| 683 | set dummy "$ac_dir/$ac_word" "$@" |
| 684 | shift |
| 685 | ac_cv_prog_CC="$@" |
| 686 | fi |
| 687 | fi |
| 688 | fi |
| 689 | fi |
| 690 | CC="$ac_cv_prog_CC" |
| 691 | if test -n "$CC"; then |
| 692 | echo "$ac_t""$CC" 1>&6 |
| 693 | else |
| 694 | echo "$ac_t""no" 1>&6 |
| 695 | fi |
| 696 | |
| 697 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 698 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 699 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 700 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 701 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 702 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 703 | else |
| 704 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 705 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 706 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 707 | #endif |
| 708 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 709 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:710: \"$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] | 710 | ac_cv_prog_gcc=yes |
| 711 | else |
| 712 | ac_cv_prog_gcc=no |
| 713 | fi |
| 714 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 715 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 716 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 717 | if test $ac_cv_prog_gcc = yes; then |
| 718 | GCC=yes |
| 719 | if test "${CFLAGS+set}" != set; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 720 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 721 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then |
| 722 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 723 | else |
| 724 | echo 'void f(){}' > conftest.c |
| 725 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 726 | ac_cv_prog_gcc_g=yes |
| 727 | else |
| 728 | ac_cv_prog_gcc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 729 | fi |
| 730 | rm -f conftest* |
| 731 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 732 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 733 | |
| 734 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 735 | if test $ac_cv_prog_gcc_g = yes; then |
| 736 | CFLAGS="-g -O" |
| 737 | else |
| 738 | CFLAGS="-O" |
| 739 | fi |
| 740 | fi |
| 741 | else |
| 742 | GCC= |
| 743 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
| 744 | fi |
| 745 | |
| 746 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 747 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 748 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 749 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 750 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 751 | else |
| 752 | if test -n "$RANLIB"; then |
| 753 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 754 | else |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 755 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 756 | for ac_dir in $PATH; do |
| 757 | test -z "$ac_dir" && ac_dir=. |
| 758 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 759 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 760 | break |
| 761 | fi |
| 762 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 763 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 764 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 765 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 766 | fi |
| 767 | RANLIB="$ac_cv_prog_RANLIB" |
| 768 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 769 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 770 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 771 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 772 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 773 | |
| 774 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 775 | for ac_prog in ar aal |
| 776 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 777 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 778 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 779 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 780 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 781 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 782 | else |
| 783 | if test -n "$AR"; then |
| 784 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 785 | else |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 786 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 787 | for ac_dir in $PATH; do |
| 788 | test -z "$ac_dir" && ac_dir=. |
| 789 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 790 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 791 | break |
| 792 | fi |
| 793 | done |
| 794 | IFS="$ac_save_ifs" |
| 795 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 796 | fi |
| 797 | AR="$ac_cv_prog_AR" |
| 798 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 799 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 800 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 801 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 802 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | |
| 804 | test -n "$AR" && break |
| 805 | done |
| 806 | test -n "$AR" || AR="ar" |
| 807 | |
| 808 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 809 | |
| 810 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 811 | # Install just never works :-( |
| 812 | if test -z "$INSTALL" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 813 | then |
| 814 | INSTALL=cp |
| 815 | INSTALL_PROGRAM=cp |
| 816 | INSTALL_DATA=cp |
| 817 | else |
| 818 | INSTALL_PROGRAM="$INSTALL" |
| 819 | INSTALL_DATA="$INSTALL -m 644" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 820 | fi |
| 821 | |
| 822 | # Optimizer/debugger flags passed between Makefiles |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 823 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 824 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 825 | then |
| 826 | case $ac_sys_system in |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 827 | *) OPT="-O";; |
| 828 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 829 | fi |
| 830 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 831 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 832 | then |
| 833 | OPT="$OPT $ac_arch_flags" |
| 834 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 835 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 836 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 837 | # On Suns, sometimes $CPP names a directory. |
| 838 | if test -n "$CPP" && test -d "$CPP"; then |
| 839 | CPP= |
| 840 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 841 | if test -z "$CPP"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 842 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 843 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 844 | else |
| 845 | # This must be in double quotes, not single quotes, because CPP may get |
| 846 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 847 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 848 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 849 | # not just through cpp. |
| 850 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 851 | #line 852 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 852 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 853 | #include <assert.h> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 854 | Syntax Error |
| 855 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 856 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 857 | { (eval echo configure:858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 858 | ac_err=`grep -v '^ *+' conftest.out` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 859 | if test -z "$ac_err"; then |
| 860 | : |
| 861 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 862 | echo "$ac_err" >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 863 | rm -rf conftest* |
| 864 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 865 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 866 | #line 867 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 867 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 868 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 869 | Syntax Error |
| 870 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 871 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 872 | { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 873 | ac_err=`grep -v '^ *+' conftest.out` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 874 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 875 | : |
| 876 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 877 | echo "$ac_err" >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 878 | rm -rf conftest* |
| 879 | CPP=/lib/cpp |
| 880 | fi |
| 881 | rm -f conftest* |
| 882 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 883 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 884 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 885 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 886 | CPP="$ac_cv_prog_CPP" |
| 887 | else |
| 888 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 889 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 890 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 891 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 892 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 893 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 894 | #line 895 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 895 | #include "confdefs.h" |
| 896 | #ifdef _AIX |
| 897 | yes |
| 898 | #endif |
| 899 | |
| 900 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 901 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 902 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 903 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 904 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 905 | #define _ALL_SOURCE 1 |
| 906 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 907 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 908 | else |
| 909 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 910 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 911 | fi |
| 912 | rm -f conftest* |
| 913 | |
| 914 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 915 | ac_safe=`echo "minix/config.h" | tr './\055' '___'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 916 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
| 917 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 918 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 919 | else |
| 920 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 921 | #line 922 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 922 | #include "confdefs.h" |
| 923 | #include <minix/config.h> |
| 924 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 925 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 926 | { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 927 | ac_err=`grep -v '^ *+' conftest.out` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 928 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 929 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 930 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 931 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 932 | echo "$ac_err" >&5 |
| 933 | rm -rf conftest* |
| 934 | eval "ac_cv_header_$ac_safe=no" |
| 935 | fi |
| 936 | rm -f conftest* |
| 937 | fi |
| 938 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 939 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 940 | MINIX=yes |
| 941 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 942 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 943 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 944 | fi |
| 945 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 946 | if test "$MINIX" = yes; then |
| 947 | cat >> confdefs.h <<\EOF |
| 948 | #define _POSIX_SOURCE 1 |
| 949 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 950 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 951 | cat >> confdefs.h <<\EOF |
| 952 | #define _POSIX_1_SOURCE 2 |
| 953 | EOF |
| 954 | |
| 955 | cat >> confdefs.h <<\EOF |
| 956 | #define _MINIX 1 |
| 957 | EOF |
| 958 | |
| 959 | fi |
| 960 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 961 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 962 | # check for ANSI or K&R ("traditional") preprocessor |
| 963 | echo $ac_n "checking for C preprocessor type""... $ac_c" 1>&6 |
| 964 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 965 | #line 966 "configure" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 966 | #include "confdefs.h" |
| 967 | |
| 968 | #define spam(name, doc) {#name, &name, #name "() -- " doc} |
| 969 | int foo; |
| 970 | struct {char *name; int *addr; char *doc;} desc = spam(foo, "something"); |
| 971 | |
| 972 | int main() { return 0; } |
| 973 | int t() { |
| 974 | ; |
| 975 | ; return 0; } |
| 976 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 977 | if { (eval echo configure:978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 978 | rm -rf conftest* |
| 979 | cpp_type=ansi |
| 980 | else |
| 981 | rm -rf conftest* |
| 982 | cat >> confdefs.h <<\EOF |
| 983 | #define HAVE_OLD_CPP 1 |
| 984 | EOF |
| 985 | cpp_type=traditional |
| 986 | fi |
| 987 | rm -f conftest* |
| 988 | |
| 989 | echo "$ac_t""$cpp_type" 1>&6 |
| 990 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 991 | # checks for header files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 992 | # If we cannot run a trivial program, we must be cross compiling. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 993 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 |
| 994 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then |
| 995 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 996 | else |
| 997 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 998 | ac_cv_c_cross=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 999 | else |
| 1000 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1001 | #line 1002 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1002 | #include "confdefs.h" |
| 1003 | main(){return(0);} |
| 1004 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1005 | { (eval echo configure:1006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1006 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 1007 | ac_cv_c_cross=no |
| 1008 | else |
| 1009 | ac_cv_c_cross=yes |
| 1010 | fi |
| 1011 | fi |
| 1012 | rm -fr conftest* |
| 1013 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1014 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1015 | echo "$ac_t""$ac_cv_c_cross" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1016 | cross_compiling=$ac_cv_c_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1017 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1018 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 1019 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1020 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1021 | else |
| 1022 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1023 | #line 1024 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1024 | #include "confdefs.h" |
| 1025 | #include <stdlib.h> |
| 1026 | #include <stdarg.h> |
| 1027 | #include <string.h> |
| 1028 | #include <float.h> |
| 1029 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1030 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1031 | { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1032 | ac_err=`grep -v '^ *+' conftest.out` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1033 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1034 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1035 | ac_cv_header_stdc=yes |
| 1036 | else |
| 1037 | echo "$ac_err" >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1038 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1039 | ac_cv_header_stdc=no |
| 1040 | fi |
| 1041 | rm -f conftest* |
| 1042 | |
| 1043 | if test $ac_cv_header_stdc = yes; then |
| 1044 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1045 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1046 | #line 1047 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1047 | #include "confdefs.h" |
| 1048 | #include <string.h> |
| 1049 | EOF |
| 1050 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1051 | egrep "memchr" >/dev/null 2>&1; then |
| 1052 | : |
| 1053 | else |
| 1054 | rm -rf conftest* |
| 1055 | ac_cv_header_stdc=no |
| 1056 | fi |
| 1057 | rm -f conftest* |
| 1058 | |
| 1059 | fi |
| 1060 | |
| 1061 | if test $ac_cv_header_stdc = yes; then |
| 1062 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1063 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1064 | #line 1065 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1065 | #include "confdefs.h" |
| 1066 | #include <stdlib.h> |
| 1067 | EOF |
| 1068 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1069 | egrep "free" >/dev/null 2>&1; then |
| 1070 | : |
| 1071 | else |
| 1072 | rm -rf conftest* |
| 1073 | ac_cv_header_stdc=no |
| 1074 | fi |
| 1075 | rm -f conftest* |
| 1076 | |
| 1077 | fi |
| 1078 | |
| 1079 | if test $ac_cv_header_stdc = yes; then |
| 1080 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1081 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1082 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1083 | else |
| 1084 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1085 | #line 1086 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1086 | #include "confdefs.h" |
| 1087 | #include <ctype.h> |
| 1088 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1089 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1090 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1091 | int main () { int i; for (i = 0; i < 256; i++) |
| 1092 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1093 | exit (0); } |
| 1094 | |
| 1095 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1096 | { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1097 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1098 | : |
| 1099 | else |
| 1100 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1101 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1102 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1103 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1104 | fi |
| 1105 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1106 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1107 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1108 | if test $ac_cv_header_stdc = yes; then |
| 1109 | cat >> confdefs.h <<\EOF |
| 1110 | #define STDC_HEADERS 1 |
| 1111 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1112 | |
| 1113 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1114 | |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 1115 | for ac_hdr in dlfcn.h fcntl.h limits.h ncurses.h \ |
| 1116 | 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] | 1117 | sys/audioio.h sys/file.h sys/lock.h \ |
| 1118 | 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] | 1119 | sys/un.h sys/utsname.h sys/wait.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1120 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1121 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1122 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1123 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1124 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1125 | else |
| 1126 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1127 | #line 1128 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1128 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1129 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1130 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1131 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1132 | { (eval echo configure:1133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1133 | ac_err=`grep -v '^ *+' conftest.out` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1134 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1135 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1136 | eval "ac_cv_header_$ac_safe=yes" |
| 1137 | else |
| 1138 | echo "$ac_err" >&5 |
| 1139 | rm -rf conftest* |
| 1140 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1141 | fi |
| 1142 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1143 | fi |
| 1144 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1145 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1146 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1147 | cat >> confdefs.h <<EOF |
| 1148 | #define $ac_tr_hdr 1 |
| 1149 | EOF |
| 1150 | |
| 1151 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1152 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1153 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1154 | done |
| 1155 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1156 | ac_header_dirent=no |
| 1157 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1158 | do |
| 1159 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1160 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
| 1161 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
| 1162 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1163 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1164 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1165 | #line 1166 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1166 | #include "confdefs.h" |
| 1167 | #include <sys/types.h> |
| 1168 | #include <$ac_hdr> |
| 1169 | int main() { return 0; } |
| 1170 | int t() { |
| 1171 | DIR *dirp = 0; |
| 1172 | ; return 0; } |
| 1173 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1174 | if { (eval echo configure:1175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1175 | rm -rf conftest* |
| 1176 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1177 | else |
| 1178 | rm -rf conftest* |
| 1179 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1180 | fi |
| 1181 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1182 | |
| 1183 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1184 | 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] | 1185 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1186 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1187 | cat >> confdefs.h <<EOF |
| 1188 | #define $ac_tr_hdr 1 |
| 1189 | EOF |
| 1190 | ac_header_dirent=$ac_hdr; break |
| 1191 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1192 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1193 | fi |
| 1194 | done |
| 1195 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1196 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1197 | echo $ac_n "checking for -ldir""... $ac_c" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1198 | ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'` |
| 1199 | 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] | 1200 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1201 | else |
| 1202 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1203 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1204 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1205 | #line 1206 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1206 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1207 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1208 | /* We use char because int might match the return type of a gcc2 |
| 1209 | builtin and then its argument prototype would still apply. */ |
| 1210 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1211 | |
| 1212 | int main() { return 0; } |
| 1213 | int t() { |
| 1214 | opendir() |
| 1215 | ; return 0; } |
| 1216 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1217 | if { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1218 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1219 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1220 | else |
| 1221 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1222 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1223 | fi |
| 1224 | rm -f conftest* |
| 1225 | LIBS="$ac_save_LIBS" |
| 1226 | |
| 1227 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1228 | 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] | 1229 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1230 | LIBS="$LIBS -ldir" |
| 1231 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1232 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1233 | fi |
| 1234 | |
| 1235 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1236 | echo $ac_n "checking for -lx""... $ac_c" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1237 | ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'` |
| 1238 | 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] | 1239 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1240 | else |
| 1241 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1242 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1243 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1244 | #line 1245 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1245 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1246 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1247 | /* We use char because int might match the return type of a gcc2 |
| 1248 | builtin and then its argument prototype would still apply. */ |
| 1249 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1250 | |
| 1251 | int main() { return 0; } |
| 1252 | int t() { |
| 1253 | opendir() |
| 1254 | ; return 0; } |
| 1255 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1256 | if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1257 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1258 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1259 | else |
| 1260 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1261 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1262 | fi |
| 1263 | rm -f conftest* |
| 1264 | LIBS="$ac_save_LIBS" |
| 1265 | |
| 1266 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1267 | 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] | 1268 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1269 | LIBS="$LIBS -lx" |
| 1270 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1271 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1272 | fi |
| 1273 | |
| 1274 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1275 | |
| 1276 | |
| 1277 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1278 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1279 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1280 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1281 | #line 1282 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1282 | #include "confdefs.h" |
| 1283 | #include <time.h> |
| 1284 | EOF |
| 1285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1286 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1287 | rm -rf conftest* |
| 1288 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1289 | else |
| 1290 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1291 | cat >> confdefs.h <<\EOF |
| 1292 | #define clock_t long |
| 1293 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1294 | |
| 1295 | fi |
| 1296 | rm -f conftest* |
| 1297 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1298 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1299 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1300 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1301 | cat >> confdefs.h <<\EOF |
| 1302 | #if defined(SCO_DS) |
| 1303 | #undef _OFF_T |
| 1304 | #endif |
| 1305 | EOF |
| 1306 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1307 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
| 1308 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
| 1309 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1310 | else |
| 1311 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1312 | #line 1313 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1313 | #include "confdefs.h" |
| 1314 | #include <sys/types.h> |
| 1315 | #if STDC_HEADERS |
| 1316 | #include <stdlib.h> |
| 1317 | #endif |
| 1318 | EOF |
| 1319 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1320 | egrep "mode_t" >/dev/null 2>&1; then |
| 1321 | rm -rf conftest* |
| 1322 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1323 | else |
| 1324 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1325 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1326 | fi |
| 1327 | rm -f conftest* |
| 1328 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1329 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1330 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1331 | if test $ac_cv_type_mode_t = no; then |
| 1332 | cat >> confdefs.h <<\EOF |
| 1333 | #define mode_t int |
| 1334 | EOF |
| 1335 | |
| 1336 | fi |
| 1337 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1338 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
| 1339 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 1340 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1341 | else |
| 1342 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1343 | #line 1344 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1344 | #include "confdefs.h" |
| 1345 | #include <sys/types.h> |
| 1346 | #if STDC_HEADERS |
| 1347 | #include <stdlib.h> |
| 1348 | #endif |
| 1349 | EOF |
| 1350 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1351 | egrep "off_t" >/dev/null 2>&1; then |
| 1352 | rm -rf conftest* |
| 1353 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1354 | else |
| 1355 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1356 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1357 | fi |
| 1358 | rm -f conftest* |
| 1359 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1360 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1361 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1362 | if test $ac_cv_type_off_t = no; then |
| 1363 | cat >> confdefs.h <<\EOF |
| 1364 | #define off_t long |
| 1365 | EOF |
| 1366 | |
| 1367 | fi |
| 1368 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1369 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
| 1370 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
| 1371 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1372 | else |
| 1373 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1374 | #line 1375 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1375 | #include "confdefs.h" |
| 1376 | #include <sys/types.h> |
| 1377 | #if STDC_HEADERS |
| 1378 | #include <stdlib.h> |
| 1379 | #endif |
| 1380 | EOF |
| 1381 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1382 | egrep "pid_t" >/dev/null 2>&1; then |
| 1383 | rm -rf conftest* |
| 1384 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1385 | else |
| 1386 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1387 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1388 | fi |
| 1389 | rm -f conftest* |
| 1390 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1391 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1392 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1393 | if test $ac_cv_type_pid_t = no; then |
| 1394 | cat >> confdefs.h <<\EOF |
| 1395 | #define pid_t int |
| 1396 | EOF |
| 1397 | |
| 1398 | fi |
| 1399 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1400 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
| 1401 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
| 1402 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1403 | else |
| 1404 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1405 | #line 1406 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1406 | #include "confdefs.h" |
| 1407 | #include <sys/types.h> |
| 1408 | #include <signal.h> |
| 1409 | #ifdef signal |
| 1410 | #undef signal |
| 1411 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1412 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1413 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1414 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1415 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1416 | #endif |
| 1417 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1418 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1419 | int t() { |
| 1420 | int i; |
| 1421 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1422 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1423 | if { (eval echo configure:1424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1424 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1425 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1426 | else |
| 1427 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1428 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1429 | fi |
| 1430 | rm -f conftest* |
| 1431 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1432 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1433 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1434 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1435 | cat >> confdefs.h <<EOF |
| 1436 | #define RETSIGTYPE $ac_cv_type_signal |
| 1437 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1438 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1439 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1440 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 1441 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 1442 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1443 | else |
| 1444 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1445 | #line 1446 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1446 | #include "confdefs.h" |
| 1447 | #include <sys/types.h> |
| 1448 | #if STDC_HEADERS |
| 1449 | #include <stdlib.h> |
| 1450 | #endif |
| 1451 | EOF |
| 1452 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1453 | egrep "size_t" >/dev/null 2>&1; then |
| 1454 | rm -rf conftest* |
| 1455 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1456 | else |
| 1457 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1458 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1459 | fi |
| 1460 | rm -f conftest* |
| 1461 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1462 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1463 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1464 | if test $ac_cv_type_size_t = no; then |
| 1465 | cat >> confdefs.h <<\EOF |
| 1466 | #define size_t unsigned |
| 1467 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1468 | |
| 1469 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1470 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1471 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
| 1472 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
| 1473 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1474 | else |
| 1475 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1476 | #line 1477 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1477 | #include "confdefs.h" |
| 1478 | #include <sys/types.h> |
| 1479 | EOF |
| 1480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1481 | egrep "uid_t" >/dev/null 2>&1; then |
| 1482 | rm -rf conftest* |
| 1483 | ac_cv_type_uid_t=yes |
| 1484 | else |
| 1485 | rm -rf conftest* |
| 1486 | ac_cv_type_uid_t=no |
| 1487 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1488 | rm -f conftest* |
| 1489 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1490 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1491 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1492 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1493 | if test $ac_cv_type_uid_t = no; then |
| 1494 | cat >> confdefs.h <<\EOF |
| 1495 | #define uid_t int |
| 1496 | EOF |
| 1497 | |
| 1498 | cat >> confdefs.h <<\EOF |
| 1499 | #define gid_t int |
| 1500 | EOF |
| 1501 | |
| 1502 | fi |
| 1503 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1504 | |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1505 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
| 1506 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 1507 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1508 | else |
| 1509 | if test "$cross_compiling" = yes; then |
| 1510 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1511 | else |
| 1512 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1513 | #line 1514 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1514 | #include "confdefs.h" |
| 1515 | #include <stdio.h> |
| 1516 | main() |
| 1517 | { |
| 1518 | FILE *f=fopen("conftestval", "w"); |
| 1519 | if (!f) exit(1); |
| 1520 | fprintf(f, "%d\n", sizeof(int)); |
| 1521 | exit(0); |
| 1522 | } |
| 1523 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1524 | { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1525 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 1526 | ac_cv_sizeof_int=`cat conftestval` |
| 1527 | else |
| 1528 | ac_cv_sizeof_int=0 |
| 1529 | fi |
| 1530 | fi |
| 1531 | rm -fr conftest* |
| 1532 | fi |
| 1533 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 1534 | cat >> confdefs.h <<EOF |
| 1535 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 1536 | EOF |
| 1537 | |
| 1538 | |
| 1539 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
| 1540 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 1541 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1542 | else |
| 1543 | if test "$cross_compiling" = yes; then |
| 1544 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1545 | else |
| 1546 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1547 | #line 1548 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1548 | #include "confdefs.h" |
| 1549 | #include <stdio.h> |
| 1550 | main() |
| 1551 | { |
| 1552 | FILE *f=fopen("conftestval", "w"); |
| 1553 | if (!f) exit(1); |
| 1554 | fprintf(f, "%d\n", sizeof(long)); |
| 1555 | exit(0); |
| 1556 | } |
| 1557 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1558 | { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1559 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 1560 | ac_cv_sizeof_long=`cat conftestval` |
| 1561 | else |
| 1562 | ac_cv_sizeof_long=0 |
| 1563 | fi |
| 1564 | fi |
| 1565 | rm -fr conftest* |
| 1566 | fi |
| 1567 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 1568 | cat >> confdefs.h <<EOF |
| 1569 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 1570 | EOF |
| 1571 | |
| 1572 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1573 | |
| 1574 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1575 | |
| 1576 | |
| 1577 | |
| 1578 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1579 | # SO is the extension of shared libraries `(including the dot!) |
| 1580 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1581 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1582 | if test -z "$SO" |
| 1583 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1584 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1585 | hp*|HP*) SO=.sl;; |
| 1586 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1587 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1588 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1589 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1590 | # LDSHARED is the ld *command* used to create shared library |
| 1591 | # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1592 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1593 | if test -z "$LDSHARED" |
| 1594 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1595 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1596 | AIX*) LDSHARED="ld_so_aix \$(CC)";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1597 | IRIX*) LDSHARED="ld -shared";; |
| 1598 | SunOS/4*) LDSHARED="ld";; |
| 1599 | SunOS/5*) LDSHARED="ld -G";; |
| 1600 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1601 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 1602 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1603 | next/*) LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 1604 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1605 | FreeBSD*) LDSHARED="ld -Bshareable";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1606 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1607 | *) LDSHARED="ld";; |
| 1608 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1609 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1610 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1611 | # CCSHARED are the C *flags* used to create objects to go into a shared |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1612 | # library -- this is only needed for a few systems |
| 1613 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1614 | if test -z "$CCSHARED" |
| 1615 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1616 | case $ac_sys_system in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 1617 | hp*|HP*) if test "$GCC" = yes; |
| 1618 | then CCSHARED="-fpic"; |
| 1619 | else CCSHARED="+z"; |
| 1620 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1621 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1622 | FreeBSD*) CCSHARED="-fpic";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1623 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1624 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1625 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1626 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1627 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1628 | # the python executable -- this is only needed for a few systems |
| 1629 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1630 | if test -z "$LINKFORSHARED" |
| 1631 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1632 | case $ac_sys_system in |
Guido van Rossum | 6c31a14 | 1996-12-10 17:19:28 +0000 | [diff] [blame] | 1633 | AIX*) LINKFORSHARED="-Wl,-bE:python.exp -lld";; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1634 | hp*|HP*) |
| 1635 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/sharedmodules";; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1636 | Linux*) LINKFORSHARED="-rdynamic";; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1637 | next) LINKFORSHARED="-u libsys_s";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1638 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1639 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1640 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1641 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1642 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1643 | # checks for libraries |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1644 | echo $ac_n "checking for -ldl""... $ac_c" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1645 | ac_lib_var=`echo dl'_'dlopen | tr './+\055' '__p_'` |
| 1646 | 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] | 1647 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1648 | else |
| 1649 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1650 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1651 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1652 | #line 1653 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1653 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1654 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1655 | /* We use char because int might match the return type of a gcc2 |
| 1656 | builtin and then its argument prototype would still apply. */ |
| 1657 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1658 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1659 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1660 | int t() { |
| 1661 | dlopen() |
| 1662 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1663 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1664 | if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1665 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1666 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1667 | else |
| 1668 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1669 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1670 | fi |
| 1671 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1672 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1673 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1674 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1675 | 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] | 1676 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1677 | ac_tr_lib=HAVE_LIB`echo dl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1678 | cat >> confdefs.h <<EOF |
| 1679 | #define $ac_tr_lib 1 |
| 1680 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1681 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1682 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1683 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1684 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1685 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1686 | fi |
| 1687 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1688 | echo $ac_n "checking for -ldld""... $ac_c" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1689 | ac_lib_var=`echo dld'_'shl_load | tr './+\055' '__p_'` |
| 1690 | 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] | 1691 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1692 | else |
| 1693 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1694 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1695 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1696 | #line 1697 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1697 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1698 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1699 | /* We use char because int might match the return type of a gcc2 |
| 1700 | builtin and then its argument prototype would still apply. */ |
| 1701 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1702 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1703 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1704 | int t() { |
| 1705 | shl_load() |
| 1706 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1707 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1708 | if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1709 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1710 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1711 | else |
| 1712 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1713 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1714 | fi |
| 1715 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1716 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1717 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1718 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1719 | 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] | 1720 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1721 | ac_tr_lib=HAVE_LIB`echo dld | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1722 | cat >> confdefs.h <<EOF |
| 1723 | #define $ac_tr_lib 1 |
| 1724 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1725 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1726 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1727 | |
| 1728 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1729 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1730 | fi |
| 1731 | # Dynamic linking for HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1732 | echo $ac_n "checking for -lsun""... $ac_c" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1733 | ac_lib_var=`echo sun'_'getpwnam | tr './+\055' '__p_'` |
| 1734 | 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] | 1735 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1736 | else |
| 1737 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1738 | LIBS="-lsun $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1739 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1740 | #line 1741 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1741 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1742 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1743 | /* We use char because int might match the return type of a gcc2 |
| 1744 | builtin and then its argument prototype would still apply. */ |
| 1745 | char getpwnam(); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1746 | |
| 1747 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1748 | int t() { |
| 1749 | getpwnam() |
| 1750 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1751 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1752 | if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1753 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1754 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1755 | else |
| 1756 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1757 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1758 | fi |
| 1759 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1760 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1761 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1762 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1763 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1764 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1765 | ac_tr_lib=HAVE_LIB`echo sun | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1766 | cat >> confdefs.h <<EOF |
| 1767 | #define $ac_tr_lib 1 |
| 1768 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1769 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1770 | LIBS="-lsun $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1771 | |
| 1772 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1773 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1774 | fi |
| 1775 | # NIS (== YP) interface for IRIX 4 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1776 | # The following three (nsl,inet,socket) are needed on Sequent; |
| 1777 | # the order of checking must be this. Most SVR4 platforms will |
| 1778 | # need -lsocket and -lnsl. However on SGI IRIX 5, these exist but |
| 1779 | # broken. I see no elegant solution (probably CHECK_LIB should be |
| 1780 | # fixed to only add the library if the given entry point is not |
| 1781 | # satisfied without it). |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 1782 | if test "$ac_sys_system" != IRIX |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1783 | then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1784 | echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1785 | ac_lib_var=`echo nsl'_'t_open | tr './+\055' '__p_'` |
| 1786 | 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] | 1787 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1788 | else |
| 1789 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1790 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1791 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1792 | #line 1793 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1793 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1794 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1795 | /* We use char because int might match the return type of a gcc2 |
| 1796 | builtin and then its argument prototype would still apply. */ |
| 1797 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1798 | |
| 1799 | int main() { return 0; } |
| 1800 | int t() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 1801 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1802 | ; return 0; } |
| 1803 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1804 | if { (eval echo configure:1805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1805 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1806 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1807 | else |
| 1808 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1809 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1810 | fi |
| 1811 | rm -f conftest* |
| 1812 | LIBS="$ac_save_LIBS" |
| 1813 | |
| 1814 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1815 | 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] | 1816 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1817 | LIBS="-lnsl $LIBS" |
| 1818 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1819 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1820 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 1821 | # SVR4 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1822 | echo $ac_n "checking for -linet""... $ac_c" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1823 | ac_lib_var=`echo inet'_'gethostbyname | tr './+\055' '__p_'` |
| 1824 | 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] | 1825 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1826 | else |
| 1827 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1828 | LIBS="-linet -lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1829 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1830 | #line 1831 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1831 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1832 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1833 | /* We use char because int might match the return type of a gcc2 |
| 1834 | builtin and then its argument prototype would still apply. */ |
| 1835 | char gethostbyname(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1836 | |
| 1837 | int main() { return 0; } |
| 1838 | int t() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 1839 | gethostbyname() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1840 | ; return 0; } |
| 1841 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1842 | if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1843 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1844 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1845 | else |
| 1846 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1847 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1848 | fi |
| 1849 | rm -f conftest* |
| 1850 | LIBS="$ac_save_LIBS" |
| 1851 | |
| 1852 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1853 | 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] | 1854 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1855 | LIBS="-linet $LIBS" |
| 1856 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1857 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1858 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 1859 | # Sequent |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1860 | echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1861 | ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'` |
| 1862 | 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] | 1863 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1864 | else |
| 1865 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1866 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1867 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1868 | #line 1869 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1869 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1870 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1871 | /* We use char because int might match the return type of a gcc2 |
| 1872 | builtin and then its argument prototype would still apply. */ |
| 1873 | char socket(); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1874 | |
| 1875 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1876 | int t() { |
| 1877 | socket() |
| 1878 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1879 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1880 | if { (eval echo configure:1881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1881 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1882 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1883 | else |
| 1884 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1885 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1886 | fi |
| 1887 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1888 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1889 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1890 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1891 | 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] | 1892 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1893 | LIBS="-lsocket $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1894 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1895 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1896 | fi |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1897 | # SVR4 sockets |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1898 | fi |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1899 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
| 1900 | # Check whether --with-libs or --without-libs was given. |
| 1901 | if test "${with_libs+set}" = set; then |
| 1902 | withval="$with_libs" |
| 1903 | |
| 1904 | echo "$ac_t""$withval" 1>&6 |
| 1905 | LIBS="$withval $LIBS" |
| 1906 | |
| 1907 | else |
| 1908 | echo "$ac_t""no" 1>&6 |
| 1909 | fi |
| 1910 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1911 | |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1912 | echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6 |
| 1913 | use_readline="yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1914 | # Check whether --with-readline or --without-readline was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1915 | if test "${with_readline+set}" = set; then |
| 1916 | withval="$with_readline" |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1917 | echo "$ac_t""$withval" 1>&6; use_readline="$withval" |
| 1918 | else |
| 1919 | echo "$ac_t""(default) yes" 1>&6 |
| 1920 | fi |
| 1921 | |
| 1922 | if test "$use_readline" != "no" |
| 1923 | then |
| 1924 | if test "$use_readline" != "yes" |
| 1925 | then add_ldflags="-L$use_readline" |
| 1926 | else add_ldflags="" |
| 1927 | fi |
| 1928 | # See where the termcap interface could be hiding... |
| 1929 | echo $ac_n "checking for readline and termcap libraries""... $ac_c" 1>&6 |
| 1930 | if eval "test \"`echo '$''{'ac_cv_readline_termcap'+set}'`\" = set"; then |
| 1931 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1932 | else |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1933 | |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1934 | echo "$ac_t""have to find out" 1>&6 |
| 1935 | save_libs="$LIBS" |
| 1936 | save_ldflags="$LDFLAGS" |
| 1937 | LDFLAGS="$save_ldflags $add_ldflags" |
| 1938 | rl="-lreadline" |
| 1939 | first="" |
| 1940 | # Hack for SGI IRIX 5.x. |
| 1941 | # Both termcap and gl have an entry point clear(). |
| 1942 | # When linking with both shared libraries, we're in trouble. |
| 1943 | # We don't need the one in termcap. |
| 1944 | # By forcing a static link for termcap, we avoid |
| 1945 | # linking its clear() entry point. |
| 1946 | if test -f /usr/lib/libgl.so -a -f /usr/lib/libtermcap.a |
| 1947 | then first="/usr/lib/libtermcap.a" |
| 1948 | fi |
| 1949 | for add_lib in \ |
| 1950 | "$first" "-ltermcap" "-ltermlib" "-lcurses" "-lncurses" |
| 1951 | do |
| 1952 | echo $ac_n "checking for $rl $add_lib""... $ac_c" 1>&6 |
| 1953 | LIBS="$save_libs $rl $add_lib" |
| 1954 | cat > conftest.$ac_ext <<EOF |
| 1955 | #line 1956 "configure" |
| 1956 | #include "confdefs.h" |
| 1957 | extern char *readline(); |
| 1958 | int main() { return 0; } |
| 1959 | int t() { |
| 1960 | char *line=readline(); |
| 1961 | ; return 0; } |
| 1962 | EOF |
| 1963 | if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
| 1964 | rm -rf conftest* |
| 1965 | echo "$ac_t""yes" 1>&6; |
| 1966 | ac_cv_readline_termcap="$rl $add_lib" |
| 1967 | else |
| 1968 | rm -rf conftest* |
| 1969 | echo "$ac_t""no" 1>&6 |
| 1970 | fi |
| 1971 | rm -f conftest* |
| 1972 | |
| 1973 | if test "$ac_cv_readline_termcap" != "" |
| 1974 | then break |
| 1975 | fi |
| 1976 | done |
| 1977 | LIBS="$save_libs" |
| 1978 | LDFLAGS="$save_ldflags" |
| 1979 | echo $ac_n "checking result from check for readline and termcap""... $ac_c" 1>&6 |
| 1980 | |
| 1981 | fi |
| 1982 | |
| 1983 | if test "$ac_cv_readline_termcap" = "" |
| 1984 | then |
| 1985 | echo "$ac_t""no" 1>&6 |
| 1986 | echo "configure: warning: cannot link with GNU readline -- see config.log" 1>&2 |
| 1987 | else |
| 1988 | echo "$ac_t""$ac_cv_readline_termcap" 1>&6 |
| 1989 | LIBS="$LIBS $ac_cv_readline_termcap" |
| 1990 | LDFLAGS="$LDFLAGS $add_ldflags" |
| 1991 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1992 | #define WITH_READLINE 1 |
| 1993 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1994 | |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 1995 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1996 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1997 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1998 | echo $ac_n "checking for --with-thread""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1999 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2000 | if test "${with_thread+set}" = set; then |
| 2001 | withval="$with_thread" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2002 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2003 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2004 | if test -d "$withval" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2005 | then LDFLAGS="$LDFLAGS -L$withval" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2006 | fi |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 2007 | cat >> confdefs.h <<\EOF |
| 2008 | #define _REENTRANT 1 |
| 2009 | EOF |
| 2010 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2011 | ac_safe=`echo "mach/cthreads.h" | tr './\055' '___'` |
| 2012 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
| 2013 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2014 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2015 | else |
| 2016 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2017 | #line 2018 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2018 | #include "confdefs.h" |
| 2019 | #include <mach/cthreads.h> |
| 2020 | EOF |
| 2021 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2022 | { (eval echo configure:2023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2023 | ac_err=`grep -v '^ *+' conftest.out` |
| 2024 | if test -z "$ac_err"; then |
| 2025 | rm -rf conftest* |
| 2026 | eval "ac_cv_header_$ac_safe=yes" |
| 2027 | else |
| 2028 | echo "$ac_err" >&5 |
| 2029 | rm -rf conftest* |
| 2030 | eval "ac_cv_header_$ac_safe=no" |
| 2031 | fi |
| 2032 | rm -f conftest* |
| 2033 | fi |
| 2034 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2035 | echo "$ac_t""yes" 1>&6 |
| 2036 | cat >> confdefs.h <<\EOF |
| 2037 | #define WITH_THREAD 1 |
| 2038 | EOF |
| 2039 | |
| 2040 | cat >> confdefs.h <<\EOF |
| 2041 | #define C_THREADS 1 |
| 2042 | EOF |
| 2043 | |
| 2044 | LIBOBJS="$LIBOBJS thread.o" |
| 2045 | else |
| 2046 | echo "$ac_t""no" 1>&6 |
| 2047 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2048 | echo $ac_n "checking for -lpthreads""... $ac_c" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2049 | ac_lib_var=`echo pthreads'_'pthread_create | tr './+\055' '__p_'` |
| 2050 | 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] | 2051 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2052 | else |
| 2053 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2054 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2055 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2056 | #line 2057 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2057 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2058 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2059 | /* We use char because int might match the return type of a gcc2 |
| 2060 | builtin and then its argument prototype would still apply. */ |
| 2061 | char pthread_create(); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2062 | |
| 2063 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2064 | int t() { |
| 2065 | pthread_create() |
| 2066 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2067 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2068 | if { (eval echo configure:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2069 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2070 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2071 | else |
| 2072 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2073 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2074 | fi |
| 2075 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2076 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2077 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2078 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2079 | 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] | 2080 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2081 | cat >> confdefs.h <<\EOF |
| 2082 | #define WITH_THREAD 1 |
| 2083 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2084 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2085 | cat >> confdefs.h <<\EOF |
| 2086 | #define _POSIX_THREADS 1 |
| 2087 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2088 | |
| 2089 | LIBS="$LIBS -lpthreads" |
| 2090 | LIBOBJS="$LIBOBJS thread.o" |
| 2091 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2092 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2093 | |
| 2094 | echo $ac_n "checking for -lpthread""... $ac_c" 1>&6 |
| 2095 | ac_lib_var=`echo pthread'_'pthread_create | tr './+\055' '__p_'` |
| 2096 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2097 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2098 | else |
| 2099 | ac_save_LIBS="$LIBS" |
| 2100 | LIBS="-lpthread $LIBS" |
| 2101 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2102 | #line 2103 "configure" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2103 | #include "confdefs.h" |
| 2104 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2105 | /* We use char because int might match the return type of a gcc2 |
| 2106 | builtin and then its argument prototype would still apply. */ |
| 2107 | char pthread_create(); |
| 2108 | |
| 2109 | int main() { return 0; } |
| 2110 | int t() { |
| 2111 | pthread_create() |
| 2112 | ; return 0; } |
| 2113 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2114 | if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2115 | rm -rf conftest* |
| 2116 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2117 | else |
| 2118 | rm -rf conftest* |
| 2119 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2120 | fi |
| 2121 | rm -f conftest* |
| 2122 | LIBS="$ac_save_LIBS" |
| 2123 | |
| 2124 | fi |
| 2125 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2126 | echo "$ac_t""yes" 1>&6 |
| 2127 | cat >> confdefs.h <<\EOF |
| 2128 | #define WITH_THREAD 1 |
| 2129 | EOF |
| 2130 | |
| 2131 | cat >> confdefs.h <<\EOF |
| 2132 | #define _POSIX_THREADS 1 |
| 2133 | EOF |
| 2134 | |
| 2135 | LIBS="$LIBS -lpthread" |
| 2136 | LIBOBJS="$LIBOBJS thread.o" |
| 2137 | else |
| 2138 | echo "$ac_t""no" 1>&6 |
| 2139 | fi |
| 2140 | |
| 2141 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2142 | fi |
| 2143 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2144 | fi |
| 2145 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2146 | echo $ac_n "checking for -lmpc""... $ac_c" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2147 | ac_lib_var=`echo mpc'_'usconfig | tr './+\055' '__p_'` |
| 2148 | 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] | 2149 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2150 | else |
| 2151 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2152 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2153 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2154 | #line 2155 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2155 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2156 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2157 | /* We use char because int might match the return type of a gcc2 |
| 2158 | builtin and then its argument prototype would still apply. */ |
| 2159 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2160 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2161 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2162 | int t() { |
| 2163 | usconfig() |
| 2164 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2165 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2166 | if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2167 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2168 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2169 | else |
| 2170 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2171 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2172 | fi |
| 2173 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2174 | LIBS="$ac_save_LIBS" |
| 2175 | |
| 2176 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2177 | 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] | 2178 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2179 | cat >> confdefs.h <<\EOF |
| 2180 | #define WITH_THREAD 1 |
| 2181 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2182 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2183 | LIBS="$LIBS -lmpc" |
| 2184 | LIBOBJS="$LIBOBJS thread.o" |
| 2185 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2186 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2187 | fi |
| 2188 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2189 | echo $ac_n "checking for -lthread""... $ac_c" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2190 | ac_lib_var=`echo thread'_'thr_create | tr './+\055' '__p_'` |
| 2191 | 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] | 2192 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2193 | else |
| 2194 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2195 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2196 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2197 | #line 2198 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2198 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2199 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2200 | /* We use char because int might match the return type of a gcc2 |
| 2201 | builtin and then its argument prototype would still apply. */ |
| 2202 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2203 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2204 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2205 | int t() { |
| 2206 | thr_create() |
| 2207 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2208 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2209 | if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2210 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2211 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2212 | else |
| 2213 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2214 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2215 | fi |
| 2216 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2217 | LIBS="$ac_save_LIBS" |
| 2218 | |
| 2219 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2220 | 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] | 2221 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2222 | cat >> confdefs.h <<\EOF |
| 2223 | #define WITH_THREAD 1 |
| 2224 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2225 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2226 | LIBS="$LIBS -lthread" |
| 2227 | LIBOBJS="$LIBOBJS thread.o" |
| 2228 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2229 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2230 | fi |
| 2231 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2232 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2233 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2234 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2235 | fi |
| 2236 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2237 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2238 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2239 | |
| 2240 | DLINCLDIR=/ |
| 2241 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2242 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2243 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2244 | if test "${with_sgi_dl+set}" = set; then |
| 2245 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2246 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2247 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2248 | cat >> confdefs.h <<\EOF |
| 2249 | #define WITH_SGI_DL 1 |
| 2250 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2251 | |
| 2252 | dldir=$withval |
| 2253 | if test -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2254 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2255 | 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] | 2256 | fi |
| 2257 | DLINCLDIR=${dldir} |
| 2258 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2259 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2260 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2261 | fi |
| 2262 | |
| 2263 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2264 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2265 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2266 | if test "${with_dl_dld+set}" = set; then |
| 2267 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2268 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2269 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2270 | cat >> confdefs.h <<\EOF |
| 2271 | #define WITH_DL_DLD 1 |
| 2272 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2273 | |
| 2274 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 2275 | dlddir=`echo "$withval" | sed 's/.*,//'` |
| 2276 | if test -d "$dldir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2277 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2278 | 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] | 2279 | fi |
| 2280 | DLINCLDIR=${dldir} |
| 2281 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2282 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2283 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2284 | fi |
| 2285 | |
| 2286 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2287 | # checks for library functions |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2288 | for ac_func in chown clock dlopen flock ftime ftruncate \ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2289 | gethostname_r getpeername getpgrp getpid gettimeofday getwd \ |
Guido van Rossum | 57d0915 | 1996-07-24 02:42:38 +0000 | [diff] [blame] | 2290 | link lstat mkfifo nice plock putenv readlink \ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2291 | select setgid setuid setsid setpgid setpgrp setvbuf \ |
| 2292 | sigaction siginterrupt sigrelse strftime symlink \ |
| 2293 | tcgetpgrp tcsetpgrp times truncate uname waitpid |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2294 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2295 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2296 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2297 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2298 | else |
| 2299 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2300 | #line 2301 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2301 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2302 | /* System header to define __stub macros and hopefully few prototypes, |
| 2303 | which can conflict with char $ac_func(); below. */ |
| 2304 | #include <assert.h> |
| 2305 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2306 | /* We use char because int might match the return type of a gcc2 |
| 2307 | builtin and then its argument prototype would still apply. */ |
| 2308 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2309 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2310 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2311 | int t() { |
| 2312 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2313 | /* The GNU C library defines this for functions which it implements |
| 2314 | to always fail with ENOSYS. Some functions are actually named |
| 2315 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2316 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2317 | choke me |
| 2318 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2319 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2320 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2321 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2322 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2323 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2324 | if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2325 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2326 | eval "ac_cv_func_$ac_func=yes" |
| 2327 | else |
| 2328 | rm -rf conftest* |
| 2329 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2330 | fi |
| 2331 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2332 | |
| 2333 | fi |
| 2334 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2335 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2336 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2337 | cat >> confdefs.h <<EOF |
| 2338 | #define $ac_tr_func 1 |
| 2339 | EOF |
| 2340 | |
| 2341 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2342 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2343 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2344 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2345 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 2346 | for ac_func in dup2 getcwd strdup strerror memmove |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2347 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2348 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2349 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2350 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2351 | else |
| 2352 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2353 | #line 2354 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2354 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2355 | /* System header to define __stub macros and hopefully few prototypes, |
| 2356 | which can conflict with char $ac_func(); below. */ |
| 2357 | #include <assert.h> |
| 2358 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2359 | /* We use char because int might match the return type of a gcc2 |
| 2360 | builtin and then its argument prototype would still apply. */ |
| 2361 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2362 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2363 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2364 | int t() { |
| 2365 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2366 | /* The GNU C library defines this for functions which it implements |
| 2367 | to always fail with ENOSYS. Some functions are actually named |
| 2368 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2369 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2370 | choke me |
| 2371 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2372 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2373 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2374 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2375 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2376 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2377 | if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2378 | rm -rf conftest* |
| 2379 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2380 | else |
| 2381 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2382 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2383 | fi |
| 2384 | rm -f conftest* |
| 2385 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2386 | fi |
| 2387 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2388 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2389 | : |
| 2390 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2391 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2392 | LIBOBJS="$LIBOBJS ${ac_func}.o" |
| 2393 | fi |
| 2394 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2395 | done |
| 2396 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2397 | echo $ac_n "checking for getpgrp""... $ac_c" 1>&6 |
| 2398 | if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then |
| 2399 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2400 | else |
| 2401 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2402 | #line 2403 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2403 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2404 | /* System header to define __stub macros and hopefully few prototypes, |
| 2405 | which can conflict with char getpgrp(); below. */ |
| 2406 | #include <assert.h> |
| 2407 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2408 | /* We use char because int might match the return type of a gcc2 |
| 2409 | builtin and then its argument prototype would still apply. */ |
| 2410 | char getpgrp(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2411 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2412 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2413 | int t() { |
| 2414 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2415 | /* The GNU C library defines this for functions which it implements |
| 2416 | to always fail with ENOSYS. Some functions are actually named |
| 2417 | something starting with __ and the normal name is an alias. */ |
| 2418 | #if defined (__stub_getpgrp) || defined (__stub___getpgrp) |
| 2419 | choke me |
| 2420 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2421 | getpgrp(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2422 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2423 | |
| 2424 | ; return 0; } |
| 2425 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2426 | if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2427 | rm -rf conftest* |
| 2428 | eval "ac_cv_func_getpgrp=yes" |
| 2429 | else |
| 2430 | rm -rf conftest* |
| 2431 | eval "ac_cv_func_getpgrp=no" |
| 2432 | fi |
| 2433 | rm -f conftest* |
| 2434 | |
| 2435 | fi |
| 2436 | if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2437 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2438 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2439 | #line 2440 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2440 | #include "confdefs.h" |
| 2441 | #include <unistd.h> |
| 2442 | int main() { return 0; } |
| 2443 | int t() { |
| 2444 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2445 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2446 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2447 | if { (eval echo configure:2448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2448 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2449 | cat >> confdefs.h <<\EOF |
| 2450 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2451 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2452 | |
| 2453 | fi |
| 2454 | rm -f conftest* |
| 2455 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2456 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2457 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2458 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2459 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2460 | echo $ac_n "checking for setpgrp""... $ac_c" 1>&6 |
| 2461 | if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then |
| 2462 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2463 | else |
| 2464 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2465 | #line 2466 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2466 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2467 | /* System header to define __stub macros and hopefully few prototypes, |
| 2468 | which can conflict with char setpgrp(); below. */ |
| 2469 | #include <assert.h> |
| 2470 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2471 | /* We use char because int might match the return type of a gcc2 |
| 2472 | builtin and then its argument prototype would still apply. */ |
| 2473 | char setpgrp(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2474 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2475 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2476 | int t() { |
| 2477 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2478 | /* The GNU C library defines this for functions which it implements |
| 2479 | to always fail with ENOSYS. Some functions are actually named |
| 2480 | something starting with __ and the normal name is an alias. */ |
| 2481 | #if defined (__stub_setpgrp) || defined (__stub___setpgrp) |
| 2482 | choke me |
| 2483 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2484 | setpgrp(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2485 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2486 | |
| 2487 | ; return 0; } |
| 2488 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2489 | if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2490 | rm -rf conftest* |
| 2491 | eval "ac_cv_func_setpgrp=yes" |
| 2492 | else |
| 2493 | rm -rf conftest* |
| 2494 | eval "ac_cv_func_setpgrp=no" |
| 2495 | fi |
| 2496 | rm -f conftest* |
| 2497 | |
| 2498 | fi |
| 2499 | if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2500 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2501 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2502 | #line 2503 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2503 | #include "confdefs.h" |
| 2504 | #include <unistd.h> |
| 2505 | int main() { return 0; } |
| 2506 | int t() { |
| 2507 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2508 | ; return 0; } |
| 2509 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2510 | if { (eval echo configure:2511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2511 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2512 | cat >> confdefs.h <<\EOF |
| 2513 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2514 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2515 | |
| 2516 | fi |
| 2517 | rm -f conftest* |
| 2518 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2519 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2520 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2521 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2522 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2523 | echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
| 2524 | if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
| 2525 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2526 | else |
| 2527 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2528 | #line 2529 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2529 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2530 | /* System header to define __stub macros and hopefully few prototypes, |
| 2531 | which can conflict with char gettimeofday(); below. */ |
| 2532 | #include <assert.h> |
| 2533 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2534 | /* We use char because int might match the return type of a gcc2 |
| 2535 | builtin and then its argument prototype would still apply. */ |
| 2536 | char gettimeofday(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2537 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2538 | int main() { return 0; } |
| 2539 | int t() { |
| 2540 | |
| 2541 | /* The GNU C library defines this for functions which it implements |
| 2542 | to always fail with ENOSYS. Some functions are actually named |
| 2543 | something starting with __ and the normal name is an alias. */ |
| 2544 | #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
| 2545 | choke me |
| 2546 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2547 | gettimeofday(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2548 | #endif |
| 2549 | |
| 2550 | ; return 0; } |
| 2551 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2552 | if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2553 | rm -rf conftest* |
| 2554 | eval "ac_cv_func_gettimeofday=yes" |
| 2555 | else |
| 2556 | rm -rf conftest* |
| 2557 | eval "ac_cv_func_gettimeofday=no" |
| 2558 | fi |
| 2559 | rm -f conftest* |
| 2560 | |
| 2561 | fi |
| 2562 | if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2563 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2564 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2565 | #line 2566 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2566 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2567 | #include <sys/time.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2568 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2569 | int t() { |
| 2570 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 2571 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2572 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2573 | if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2574 | : |
| 2575 | else |
| 2576 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2577 | cat >> confdefs.h <<\EOF |
| 2578 | #define GETTIMEOFDAY_NO_TZ 1 |
| 2579 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2580 | |
| 2581 | fi |
| 2582 | rm -f conftest* |
| 2583 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2584 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2585 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2586 | fi |
| 2587 | |
| 2588 | |
| 2589 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2590 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
| 2591 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
| 2592 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2593 | else |
| 2594 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2595 | #line 2596 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2596 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2597 | #include <sys/types.h> |
| 2598 | #include <sys/time.h> |
| 2599 | #include <time.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2600 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2601 | int t() { |
| 2602 | struct tm *tp; |
| 2603 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2604 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2605 | if { (eval echo configure:2606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2606 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2607 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2608 | else |
| 2609 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2610 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2611 | fi |
| 2612 | rm -f conftest* |
| 2613 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2614 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2615 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2616 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2617 | if test $ac_cv_header_time = yes; then |
| 2618 | cat >> confdefs.h <<\EOF |
| 2619 | #define TIME_WITH_SYS_TIME 1 |
| 2620 | EOF |
| 2621 | |
| 2622 | fi |
| 2623 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2624 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
| 2625 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
| 2626 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2627 | else |
| 2628 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2629 | #line 2630 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2630 | #include "confdefs.h" |
| 2631 | #include <sys/types.h> |
| 2632 | #include <time.h> |
| 2633 | int main() { return 0; } |
| 2634 | int t() { |
| 2635 | struct tm *tp; tp->tm_sec; |
| 2636 | ; return 0; } |
| 2637 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2638 | if { (eval echo configure:2639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2639 | rm -rf conftest* |
| 2640 | ac_cv_struct_tm=time.h |
| 2641 | else |
| 2642 | rm -rf conftest* |
| 2643 | ac_cv_struct_tm=sys/time.h |
| 2644 | fi |
| 2645 | rm -f conftest* |
| 2646 | |
| 2647 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2648 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2649 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2650 | if test $ac_cv_struct_tm = sys/time.h; then |
| 2651 | cat >> confdefs.h <<\EOF |
| 2652 | #define TM_IN_SYS_TIME 1 |
| 2653 | EOF |
| 2654 | |
| 2655 | fi |
| 2656 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2657 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
| 2658 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
| 2659 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2660 | else |
| 2661 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2662 | #line 2663 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2663 | #include "confdefs.h" |
| 2664 | #include <sys/types.h> |
| 2665 | #include <$ac_cv_struct_tm> |
| 2666 | int main() { return 0; } |
| 2667 | int t() { |
| 2668 | struct tm tm; tm.tm_zone; |
| 2669 | ; return 0; } |
| 2670 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2671 | if { (eval echo configure:2672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2672 | rm -rf conftest* |
| 2673 | ac_cv_struct_tm_zone=yes |
| 2674 | else |
| 2675 | rm -rf conftest* |
| 2676 | ac_cv_struct_tm_zone=no |
| 2677 | fi |
| 2678 | rm -f conftest* |
| 2679 | |
| 2680 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2681 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2682 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2683 | if test "$ac_cv_struct_tm_zone" = yes; then |
| 2684 | cat >> confdefs.h <<\EOF |
| 2685 | #define HAVE_TM_ZONE 1 |
| 2686 | EOF |
| 2687 | |
| 2688 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2689 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
| 2690 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
| 2691 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2692 | else |
| 2693 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2694 | #line 2695 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2695 | #include "confdefs.h" |
| 2696 | #include <time.h> |
| 2697 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2698 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2699 | #endif |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2700 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2701 | int t() { |
| 2702 | atoi(*tzname); |
| 2703 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2704 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2705 | if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2706 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2707 | ac_cv_var_tzname=yes |
| 2708 | else |
| 2709 | rm -rf conftest* |
| 2710 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2711 | fi |
| 2712 | rm -f conftest* |
| 2713 | |
| 2714 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2715 | |
| 2716 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2717 | if test $ac_cv_var_tzname = yes; then |
| 2718 | cat >> confdefs.h <<\EOF |
| 2719 | #define HAVE_TZNAME 1 |
| 2720 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2721 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2722 | fi |
| 2723 | fi |
| 2724 | |
| 2725 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2726 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
| 2727 | if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then |
| 2728 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2729 | else |
| 2730 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2731 | #line 2732 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2732 | #include "confdefs.h" |
| 2733 | #include <time.h> |
| 2734 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2735 | int t() { |
| 2736 | return altzone; |
| 2737 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2738 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2739 | if { (eval echo configure:2740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2740 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2741 | ac_cv_header_time_altzone=yes |
| 2742 | else |
| 2743 | rm -rf conftest* |
| 2744 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2745 | fi |
| 2746 | rm -f conftest* |
| 2747 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2748 | fi |
| 2749 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2750 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2751 | if test $ac_cv_header_time_altzone = yes; then |
| 2752 | cat >> confdefs.h <<\EOF |
| 2753 | #define HAVE_ALTZONE 1 |
| 2754 | EOF |
| 2755 | |
| 2756 | fi |
| 2757 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2758 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2759 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2760 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2761 | #line 2762 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2762 | #include "confdefs.h" |
| 2763 | |
| 2764 | #include <sys/types.h> |
| 2765 | #include <sys/select.h> |
| 2766 | #include <sys/time.h> |
| 2767 | |
| 2768 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2769 | int t() { |
| 2770 | ; |
| 2771 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2772 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2773 | if { (eval echo configure:2774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2774 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2775 | cat >> confdefs.h <<\EOF |
| 2776 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 2777 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2778 | was_it_defined=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2779 | fi |
| 2780 | rm -f conftest* |
| 2781 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2782 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2783 | |
| 2784 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2785 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2786 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
| 2787 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
| 2788 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2789 | else |
| 2790 | if test "$GCC" = yes; then |
| 2791 | # GCC predefines this symbol on systems where it applies. |
| 2792 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2793 | #line 2794 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2794 | #include "confdefs.h" |
| 2795 | #ifdef __CHAR_UNSIGNED__ |
| 2796 | yes |
| 2797 | #endif |
| 2798 | |
| 2799 | EOF |
| 2800 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2801 | egrep "yes" >/dev/null 2>&1; then |
| 2802 | rm -rf conftest* |
| 2803 | ac_cv_c_char_unsigned=yes |
| 2804 | else |
| 2805 | rm -rf conftest* |
| 2806 | ac_cv_c_char_unsigned=no |
| 2807 | fi |
| 2808 | rm -f conftest* |
| 2809 | |
| 2810 | else |
| 2811 | if test "$cross_compiling" = yes; then |
| 2812 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2813 | else |
| 2814 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2815 | #line 2816 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2816 | #include "confdefs.h" |
| 2817 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2818 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2819 | #define volatile |
| 2820 | #endif |
| 2821 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2822 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2823 | } |
| 2824 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2825 | { (eval echo configure:2826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2826 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2827 | ac_cv_c_char_unsigned=yes |
| 2828 | else |
| 2829 | ac_cv_c_char_unsigned=no |
| 2830 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2831 | fi |
| 2832 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2833 | fi |
| 2834 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2835 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2836 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2837 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 2838 | cat >> confdefs.h <<\EOF |
| 2839 | #define __CHAR_UNSIGNED__ 1 |
| 2840 | EOF |
| 2841 | |
| 2842 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2843 | |
| 2844 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2845 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 2846 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 2847 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2848 | else |
| 2849 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2850 | #line 2851 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2851 | #include "confdefs.h" |
| 2852 | |
| 2853 | int main() { return 0; } |
| 2854 | int t() { |
| 2855 | |
| 2856 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2857 | typedef int charset[2]; const charset x; |
| 2858 | /* SunOS 4.1.1 cc rejects this. */ |
| 2859 | char const *const *ccp; |
| 2860 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2861 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 2862 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2863 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2864 | /* AIX XL C 1.02.0.0 rejects this. |
| 2865 | It does not let you subtract one const X* pointer from another in an arm |
| 2866 | of an if-expression whose if-part is not a constant expression */ |
| 2867 | const char *g = "string"; |
| 2868 | ccp = &g + (g ? g-g : 0); |
| 2869 | /* HPUX 7.0 cc rejects these. */ |
| 2870 | ++ccp; |
| 2871 | p = (char**) ccp; |
| 2872 | ccp = (char const *const *) p; |
| 2873 | { /* SCO 3.2v4 cc rejects this. */ |
| 2874 | char *t; |
| 2875 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 2876 | |
| 2877 | *t++ = 0; |
| 2878 | } |
| 2879 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2880 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2881 | const int *foo = &x[0]; |
| 2882 | ++foo; |
| 2883 | } |
| 2884 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 2885 | typedef const int *iptr; |
| 2886 | iptr p = 0; |
| 2887 | ++p; |
| 2888 | } |
| 2889 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 2890 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 2891 | struct s { int j; const int *ap[3]; }; |
| 2892 | struct s *b; b->j = 5; |
| 2893 | } |
| 2894 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 2895 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2896 | } |
| 2897 | |
| 2898 | ; return 0; } |
| 2899 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2900 | if { (eval echo configure:2901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2901 | rm -rf conftest* |
| 2902 | ac_cv_c_const=yes |
| 2903 | else |
| 2904 | rm -rf conftest* |
| 2905 | ac_cv_c_const=no |
| 2906 | fi |
| 2907 | rm -f conftest* |
| 2908 | |
| 2909 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2910 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2911 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2912 | if test $ac_cv_c_const = no; then |
| 2913 | cat >> confdefs.h <<\EOF |
| 2914 | #define const |
| 2915 | EOF |
| 2916 | |
| 2917 | fi |
| 2918 | |
| 2919 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2920 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2921 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2922 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2923 | #line 2924 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2924 | #include "confdefs.h" |
| 2925 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2926 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2927 | int t() { |
| 2928 | volatile int x; x = 0; |
| 2929 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2930 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2931 | if { (eval echo configure:2932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2932 | rm -rf conftest* |
| 2933 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2934 | else |
| 2935 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2936 | cat >> confdefs.h <<\EOF |
| 2937 | #define volatile |
| 2938 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2939 | |
| 2940 | fi |
| 2941 | rm -f conftest* |
| 2942 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2943 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2944 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2945 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2946 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2947 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2948 | #line 2949 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 2949 | #include "confdefs.h" |
| 2950 | |
| 2951 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2952 | int t() { |
| 2953 | signed char c; |
| 2954 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 2955 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2956 | if { (eval echo configure:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2957 | rm -rf conftest* |
| 2958 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 2959 | else |
| 2960 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2961 | cat >> confdefs.h <<\EOF |
| 2962 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2963 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2964 | |
| 2965 | fi |
| 2966 | rm -f conftest* |
| 2967 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2968 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2969 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2970 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2971 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2972 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2973 | #line 2974 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2974 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2975 | int foo(int x) { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2976 | int main() { return 0; } |
| 2977 | int t() { |
| 2978 | return foo(10); |
| 2979 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2980 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2981 | if { (eval echo configure:2982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2982 | rm -rf conftest* |
| 2983 | cat >> confdefs.h <<\EOF |
| 2984 | #define HAVE_PROTOTYPES 1 |
| 2985 | EOF |
| 2986 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2987 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2988 | rm -f conftest* |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2989 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2990 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2991 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2992 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2993 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2994 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 2995 | #line 2996 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2996 | #include "confdefs.h" |
| 2997 | |
| 2998 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 2999 | int foo(int x, ...) { |
| 3000 | va_list va; |
| 3001 | va_start(va, x); |
| 3002 | va_arg(va, int); |
| 3003 | va_arg(va, char *); |
| 3004 | va_arg(va, double); |
| 3005 | return 0; |
| 3006 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3007 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3008 | int main() { return 0; } |
| 3009 | int t() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 3010 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3011 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3012 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3013 | if { (eval echo configure:3014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3014 | rm -rf conftest* |
| 3015 | cat >> confdefs.h <<\EOF |
| 3016 | #define HAVE_STDARG_PROTOTYPES 1 |
| 3017 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3018 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3019 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3020 | rm -f conftest* |
| 3021 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3022 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3023 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3024 | if test "$have_prototypes" = yes; then |
| 3025 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3026 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3027 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3028 | #line 3029 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3029 | #include "confdefs.h" |
| 3030 | #include <unistd.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3031 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3032 | int t() { |
| 3033 | char **t;execve("@",t,t); |
| 3034 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3035 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3036 | if { (eval echo configure:3037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3037 | : |
| 3038 | else |
| 3039 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3040 | cat >> confdefs.h <<\EOF |
| 3041 | #define BAD_EXEC_PROTOTYPES 1 |
| 3042 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3043 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3044 | fi |
| 3045 | rm -f conftest* |
| 3046 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3047 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3048 | fi |
| 3049 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3050 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3051 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3052 | if test "$cross_compiling" = yes; then |
| 3053 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 3054 | else |
| 3055 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3056 | #line 3057 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3057 | #include "confdefs.h" |
| 3058 | |
| 3059 | struct s { int a; int b; }; |
| 3060 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3061 | int foobar() { |
| 3062 | static int random; |
| 3063 | random = (int) &foo; |
| 3064 | return random; |
| 3065 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3066 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3067 | main() { |
| 3068 | exit(!((int)&foo == foobar())); |
| 3069 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3070 | |
| 3071 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3072 | { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3073 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 3074 | : |
| 3075 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3076 | cat >> confdefs.h <<\EOF |
| 3077 | #define BAD_STATIC_FORWARD 1 |
| 3078 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3079 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3080 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3081 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3082 | rm -fr conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3083 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3084 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3085 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3086 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3087 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3088 | #line 3089 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3089 | #include "confdefs.h" |
| 3090 | |
| 3091 | #ifdef HAVE_STDARG_PROTOTYPES |
| 3092 | #include <stdarg.h> |
| 3093 | #else |
| 3094 | #include <varargs.h> |
| 3095 | #endif |
| 3096 | |
| 3097 | int main() { return 0; } |
| 3098 | int t() { |
| 3099 | va_list list1, list2; list1 = list2; |
| 3100 | ; return 0; } |
| 3101 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3102 | if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3103 | : |
| 3104 | else |
| 3105 | rm -rf conftest* |
| 3106 | cat >> confdefs.h <<\EOF |
| 3107 | #define VA_LIST_IS_ARRAY 1 |
| 3108 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3109 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3110 | fi |
| 3111 | rm -f conftest* |
| 3112 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3113 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3114 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3115 | # checks for system services |
| 3116 | # (none yet) |
| 3117 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3118 | # Linux requires this for correct f.p. operations |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3119 | echo $ac_n "checking for -lieee""... $ac_c" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3120 | ac_lib_var=`echo ieee'_'__fpu_control | tr './+\055' '__p_'` |
| 3121 | 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] | 3122 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3123 | else |
| 3124 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3125 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3126 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3127 | #line 3128 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3128 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3129 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3130 | /* We use char because int might match the return type of a gcc2 |
| 3131 | builtin and then its argument prototype would still apply. */ |
| 3132 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3133 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3134 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3135 | int t() { |
| 3136 | __fpu_control() |
| 3137 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3138 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3139 | if { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3140 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3141 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3142 | else |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3143 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3144 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3145 | fi |
| 3146 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3147 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3148 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3149 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3150 | 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] | 3151 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3152 | ac_tr_lib=HAVE_LIB`echo ieee | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3153 | cat >> confdefs.h <<EOF |
| 3154 | #define $ac_tr_lib 1 |
| 3155 | EOF |
| 3156 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3157 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3158 | |
| 3159 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3160 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3161 | fi |
| 3162 | |
| 3163 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3164 | # check for --with-libm=... |
| 3165 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3166 | case $ac_sys_system in |
| 3167 | next) ;; |
| 3168 | *) LIBM=-lm |
| 3169 | esac |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3170 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3171 | if test "${with_libm+set}" = set; then |
| 3172 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3173 | |
| 3174 | if test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3175 | then LIBM=$withval |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3176 | 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] | 3177 | fi |
| 3178 | fi |
| 3179 | |
| 3180 | |
| 3181 | # check for --with-libc=... |
| 3182 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3183 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3184 | if test "${with_libc+set}" = set; then |
| 3185 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3186 | |
| 3187 | if test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3188 | then LIBC=$withval |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3189 | 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] | 3190 | fi |
| 3191 | fi |
| 3192 | |
| 3193 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 3194 | # check for hypot() in math library |
| 3195 | LIBS_SAVE=$LIBS |
| 3196 | LIBS="$LIBS $LIBM" |
| 3197 | for ac_func in hypot |
| 3198 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3199 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 3200 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3201 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 3202 | else |
| 3203 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3204 | #line 3205 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 3205 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3206 | /* System header to define __stub macros and hopefully few prototypes, |
| 3207 | which can conflict with char $ac_func(); below. */ |
| 3208 | #include <assert.h> |
| 3209 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3210 | /* We use char because int might match the return type of a gcc2 |
| 3211 | builtin and then its argument prototype would still apply. */ |
| 3212 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3213 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 3214 | int main() { return 0; } |
| 3215 | int t() { |
| 3216 | |
| 3217 | /* The GNU C library defines this for functions which it implements |
| 3218 | to always fail with ENOSYS. Some functions are actually named |
| 3219 | something starting with __ and the normal name is an alias. */ |
| 3220 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3221 | choke me |
| 3222 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3223 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 3224 | #endif |
| 3225 | |
| 3226 | ; return 0; } |
| 3227 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3228 | if { (eval echo configure:3229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 3229 | rm -rf conftest* |
| 3230 | eval "ac_cv_func_$ac_func=yes" |
| 3231 | else |
| 3232 | rm -rf conftest* |
| 3233 | eval "ac_cv_func_$ac_func=no" |
| 3234 | fi |
| 3235 | rm -f conftest* |
| 3236 | |
| 3237 | fi |
| 3238 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3239 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3240 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 3241 | cat >> confdefs.h <<EOF |
| 3242 | #define $ac_tr_func 1 |
| 3243 | EOF |
| 3244 | |
| 3245 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3246 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 3247 | fi |
| 3248 | done |
| 3249 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 3250 | for ac_func in hypot |
| 3251 | do |
| 3252 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 3253 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3254 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3255 | else |
| 3256 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3257 | #line 3258 "configure" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 3258 | #include "confdefs.h" |
| 3259 | /* System header to define __stub macros and hopefully few prototypes, |
| 3260 | which can conflict with char $ac_func(); below. */ |
| 3261 | #include <assert.h> |
| 3262 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3263 | /* We use char because int might match the return type of a gcc2 |
| 3264 | builtin and then its argument prototype would still apply. */ |
| 3265 | char $ac_func(); |
| 3266 | |
| 3267 | int main() { return 0; } |
| 3268 | int t() { |
| 3269 | |
| 3270 | /* The GNU C library defines this for functions which it implements |
| 3271 | to always fail with ENOSYS. Some functions are actually named |
| 3272 | something starting with __ and the normal name is an alias. */ |
| 3273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3274 | choke me |
| 3275 | #else |
| 3276 | $ac_func(); |
| 3277 | #endif |
| 3278 | |
| 3279 | ; return 0; } |
| 3280 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3281 | if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 3282 | rm -rf conftest* |
| 3283 | eval "ac_cv_func_$ac_func=yes" |
| 3284 | else |
| 3285 | rm -rf conftest* |
| 3286 | eval "ac_cv_func_$ac_func=no" |
| 3287 | fi |
| 3288 | rm -f conftest* |
| 3289 | |
| 3290 | fi |
| 3291 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3292 | echo "$ac_t""yes" 1>&6 |
| 3293 | : |
| 3294 | else |
| 3295 | echo "$ac_t""no" 1>&6 |
| 3296 | LIBOBJS="$LIBOBJS ${ac_func}.o" |
| 3297 | fi |
| 3298 | |
| 3299 | done |
| 3300 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 3301 | LIBS=$LIBS_SAVE |
| 3302 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3303 | # check for getopt |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3304 | echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
| 3305 | if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then |
| 3306 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3307 | else |
| 3308 | if test "$cross_compiling" = yes; then |
| 3309 | ac_cv_func_getopt=no |
| 3310 | else |
| 3311 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3312 | #line 3313 "configure" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3313 | #include "confdefs.h" |
| 3314 | #include <stdio.h> |
| 3315 | extern int optind, opterr, getopt(); |
| 3316 | extern char* optarg; |
| 3317 | int main() { |
| 3318 | char* av[] = { "testprog", "parameter", "-fFlag", NULL }; |
| 3319 | opterr = 0; |
| 3320 | if (getopt(3, av, "f:") == 'f') { exit(1); } |
| 3321 | exit(0); |
| 3322 | } |
| 3323 | EOF |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame^] | 3324 | { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3325 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 3326 | ac_cv_func_getopt=yes |
| 3327 | else |
| 3328 | ac_cv_func_getopt=no |
| 3329 | fi |
| 3330 | fi |
| 3331 | rm -fr conftest* |
| 3332 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3333 | echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3334 | test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 3335 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3336 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3337 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3338 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3339 | # This file is a shell script that caches the results of configure |
| 3340 | # tests run on this system so they can be shared between configure |
| 3341 | # scripts and configure runs. It is not useful on other systems. |
| 3342 | # If it contains results you don't want to keep, you may remove or edit it. |
| 3343 | # |
| 3344 | # By default, configure uses ./config.cache as the cache file, |
| 3345 | # creating it if it does not exist already. You can give configure |
| 3346 | # the --cache-file=FILE option to use a different cache file; that is |
| 3347 | # what configure does when it calls configure scripts in |
| 3348 | # subdirectories, so they share the cache. |
| 3349 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 3350 | # config.status only pays attention to the cache file if you give it the |
| 3351 | # --recheck option to rerun configure. |
| 3352 | # |
| 3353 | EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3354 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 3355 | # 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] | 3356 | (set) 2>&1 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3357 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ |
| 3358 | >> confcache |
| 3359 | if cmp -s $cache_file confcache; then |
| 3360 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3361 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3362 | if test -w $cache_file; then |
| 3363 | echo "updating cache $cache_file" |
| 3364 | cat confcache > $cache_file |
| 3365 | else |
| 3366 | echo "not updating unwritable cache $cache_file" |
| 3367 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3368 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3369 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3370 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3371 | 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] | 3372 | |
| 3373 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 3374 | # Let make expand exec_prefix. |
| 3375 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3376 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3377 | # Any assignment to VPATH causes Sun make to only execute |
| 3378 | # the first set of double-colon rules, so remove it if not needed. |
| 3379 | # If there is a colon in the path, we need to keep it. |
| 3380 | if test "x$srcdir" = x.; then |
| 3381 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 3382 | fi |
| 3383 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3384 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3385 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3386 | DEFS=-DHAVE_CONFIG_H |
| 3387 | |
| 3388 | # Without the "./", some shells look in PATH for config.status. |
| 3389 | : ${CONFIG_STATUS=./config.status} |
| 3390 | |
| 3391 | echo creating $CONFIG_STATUS |
| 3392 | rm -f $CONFIG_STATUS |
| 3393 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3394 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3395 | # Generated automatically by configure. |
| 3396 | # Run this file to recreate the current configuration. |
| 3397 | # This directory was configured as follows, |
| 3398 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 3399 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3400 | # $0 $ac_configure_args |
| 3401 | # |
| 3402 | # Compiler output produced by configure, useful for debugging |
| 3403 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3404 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3405 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3406 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3407 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3408 | case "\$ac_option" in |
| 3409 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3410 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 3411 | 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] | 3412 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3413 | echo "$CONFIG_STATUS generated by autoconf version 2.10" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3414 | exit 0 ;; |
| 3415 | -help | --help | --hel | --he | --h) |
| 3416 | echo "\$ac_cs_usage"; exit 0 ;; |
| 3417 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3418 | esac |
| 3419 | done |
| 3420 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3421 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3422 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3423 | trap 'rm -fr `echo "Makefile \ |
| 3424 | Objects/Makefile \ |
| 3425 | Parser/Makefile \ |
| 3426 | Python/Makefile \ |
| 3427 | Modules/Makefile.pre config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3428 | EOF |
| 3429 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3430 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3431 | # Protect against being on the right side of a sed subst in config.status. |
| 3432 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 3433 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3434 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3435 | $extrasub |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3436 | s%@CFLAGS@%$CFLAGS%g |
| 3437 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 3438 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 3439 | s%@DEFS@%$DEFS%g |
| 3440 | s%@LDFLAGS@%$LDFLAGS%g |
| 3441 | s%@LIBS@%$LIBS%g |
| 3442 | s%@exec_prefix@%$exec_prefix%g |
| 3443 | s%@prefix@%$prefix%g |
| 3444 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3445 | s%@bindir@%$bindir%g |
| 3446 | s%@sbindir@%$sbindir%g |
| 3447 | s%@libexecdir@%$libexecdir%g |
| 3448 | s%@datadir@%$datadir%g |
| 3449 | s%@sysconfdir@%$sysconfdir%g |
| 3450 | s%@sharedstatedir@%$sharedstatedir%g |
| 3451 | s%@localstatedir@%$localstatedir%g |
| 3452 | s%@libdir@%$libdir%g |
| 3453 | s%@includedir@%$includedir%g |
| 3454 | s%@oldincludedir@%$oldincludedir%g |
| 3455 | s%@infodir@%$infodir%g |
| 3456 | s%@mandir@%$mandir%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3457 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3458 | s%@CC@%$CC%g |
| 3459 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3460 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3461 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3462 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 3463 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3464 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3465 | s%@CPP@%$CPP%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3466 | s%@SO@%$SO%g |
| 3467 | s%@LDSHARED@%$LDSHARED%g |
| 3468 | s%@CCSHARED@%$CCSHARED%g |
| 3469 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3470 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3471 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3472 | s%@LIBM@%$LIBM%g |
| 3473 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3474 | |
| 3475 | CEOF |
| 3476 | EOF |
| 3477 | cat >> $CONFIG_STATUS <<EOF |
| 3478 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3479 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 3480 | Objects/Makefile \ |
| 3481 | Parser/Makefile \ |
| 3482 | Python/Makefile \ |
| 3483 | Modules/Makefile.pre"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3484 | EOF |
| 3485 | cat >> $CONFIG_STATUS <<\EOF |
| 3486 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 3487 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
| 3488 | case "$ac_file" in |
| 3489 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
| 3490 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 3491 | *) ac_file_in="${ac_file}.in" ;; |
| 3492 | esac |
| 3493 | |
| 3494 | # Adjust relative srcdir, etc. for subdirectories. |
| 3495 | |
| 3496 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 3497 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 3498 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 3499 | # The file is in a subdirectory. |
| 3500 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3501 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3502 | # A "../" for each directory in $ac_dir_suffix. |
| 3503 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 3504 | else |
| 3505 | ac_dir_suffix= ac_dots= |
| 3506 | fi |
| 3507 | |
| 3508 | case "$ac_given_srcdir" in |
| 3509 | .) srcdir=. |
| 3510 | if test -z "$ac_dots"; then top_srcdir=. |
| 3511 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 3512 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 3513 | *) # Relative path. |
| 3514 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 3515 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 3516 | esac |
| 3517 | |
| 3518 | echo creating "$ac_file" |
| 3519 | rm -f "$ac_file" |
| 3520 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 3521 | case "$ac_file" in |
| 3522 | *Makefile*) ac_comsub="1i\\ |
| 3523 | # $configure_input" ;; |
| 3524 | *) ac_comsub= ;; |
| 3525 | esac |
| 3526 | sed -e "$ac_comsub |
| 3527 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3528 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3529 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3530 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3531 | fi; done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3532 | rm -f conftest.subs |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3533 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3534 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 3535 | # 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] | 3536 | # |
| 3537 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3538 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 3539 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3540 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3541 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3542 | # 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] | 3543 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 3544 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3545 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3546 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3547 | # 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] | 3548 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 3549 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3550 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3551 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3552 | |
| 3553 | CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3554 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 3555 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
| 3556 | case "$ac_file" in |
| 3557 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
| 3558 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 3559 | *) ac_file_in="${ac_file}.in" ;; |
| 3560 | esac |
| 3561 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3562 | echo creating $ac_file |
| 3563 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3564 | rm -f conftest.frag conftest.in conftest.out |
| 3565 | cp $ac_given_srcdir/$ac_file_in conftest.in |
| 3566 | |
| 3567 | EOF |
| 3568 | |
| 3569 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 3570 | # 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] | 3571 | # 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] | 3572 | # Protect against being in an unquoted here document in config.status. |
| 3573 | rm -f conftest.vals |
| 3574 | cat > conftest.hdr <<\EOF |
| 3575 | s/[\\&%]/\\&/g |
| 3576 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3577 | 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] | 3578 | s%ac_d%ac_u%gp |
| 3579 | s%ac_u%ac_e%gp |
| 3580 | EOF |
| 3581 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 3582 | rm -f conftest.hdr |
| 3583 | |
| 3584 | # This sed command replaces #undef with comments. This is necessary, for |
| 3585 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 3586 | # on some systems where configure will not decide to define it. |
| 3587 | cat >> conftest.vals <<\EOF |
| 3588 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 3589 | EOF |
| 3590 | |
| 3591 | # Break up conftest.vals because some shells have a limit on |
| 3592 | # the size of here documents, and old seds have small limits too. |
| 3593 | # Maximum number of lines to put in a single here document. |
| 3594 | ac_max_here_lines=12 |
| 3595 | |
| 3596 | rm -f conftest.tail |
| 3597 | while : |
| 3598 | do |
| 3599 | ac_lines=`grep -c . conftest.vals` |
| 3600 | # grep -c gives empty output for an empty file on some AIX systems. |
| 3601 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 3602 | # Write a limited-size here document to conftest.frag. |
| 3603 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 3604 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 3605 | echo 'CEOF |
| 3606 | sed -f conftest.frag conftest.in > conftest.out |
| 3607 | rm -f conftest.in |
| 3608 | mv conftest.out conftest.in |
| 3609 | ' >> $CONFIG_STATUS |
| 3610 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 3611 | rm -f conftest.vals |
| 3612 | mv conftest.tail conftest.vals |
| 3613 | done |
| 3614 | rm -f conftest.vals |
| 3615 | |
| 3616 | cat >> $CONFIG_STATUS <<\EOF |
| 3617 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3618 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3619 | cat conftest.in >> conftest.h |
| 3620 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3621 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3622 | echo "$ac_file is unchanged" |
| 3623 | rm -f conftest.h |
| 3624 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3625 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 3626 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 3627 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 3628 | # The file is in a subdirectory. |
| 3629 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 3630 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3631 | rm -f $ac_file |
| 3632 | mv conftest.h $ac_file |
| 3633 | fi |
| 3634 | fi; done |
| 3635 | |
| 3636 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3637 | |
| 3638 | exit 0 |
| 3639 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3640 | chmod +x $CONFIG_STATUS |
| 3641 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3642 | 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] | 3643 | |