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