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 | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.97 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5 | # Guess values for system-dependent variables and create Makefiles. |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.13 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # Defaults: |
| 13 | ac_help= |
| 14 | ac_default_prefix=/usr/local |
| 15 | # Any additions from configure.in: |
| 16 | ac_help="$ac_help |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 17 | --with-next-archs='arch1 arch2 ..' build MAB binary" |
| 18 | ac_help="$ac_help |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 19 | --with-next-framework Build (OpenStep|Rhapsody|MacOS10) framework" |
| 20 | ac_help="$ac_help |
| 21 | --with-dyld Use (OpenStep|Rhapsody|MacOS10) dynamic linker" |
| 22 | ac_help="$ac_help |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23 | --without-gcc never use gcc" |
| 24 | ac_help="$ac_help |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 25 | --with-libs='lib1 ...' link against additional libs" |
| 26 | ac_help="$ac_help |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 27 | --with(out)-readline obsolete, edit Modules/Setup instead" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 28 | ac_help="$ac_help |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 29 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
| 30 | ac_help="$ac_help |
| 31 | --with-threads alias for --with-thread" |
| 32 | ac_help="$ac_help |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 33 | --with-thread[=DIRECTORY] make interpreter thread-safe" |
| 34 | ac_help="$ac_help |
| 35 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
| 36 | ac_help="$ac_help |
| 37 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
| 38 | ac_help="$ac_help |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 39 | --with-fpectl enable SIGFPE catching" |
| 40 | ac_help="$ac_help |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 41 | --with-libm=STRING math library" |
| 42 | ac_help="$ac_help |
| 43 | --with-libc=STRING C library" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 44 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 45 | # Initialize some variables set by options. |
| 46 | # The variables have the same names as the options, with |
| 47 | # dashes changed to underlines. |
| 48 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 49 | cache_file=./config.cache |
| 50 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 51 | host=NONE |
| 52 | no_create= |
| 53 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 54 | no_recursion= |
| 55 | prefix=NONE |
| 56 | program_prefix=NONE |
| 57 | program_suffix=NONE |
| 58 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 59 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 60 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 61 | srcdir= |
| 62 | target=NONE |
| 63 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 64 | x_includes=NONE |
| 65 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 66 | bindir='${exec_prefix}/bin' |
| 67 | sbindir='${exec_prefix}/sbin' |
| 68 | libexecdir='${exec_prefix}/libexec' |
| 69 | datadir='${prefix}/share' |
| 70 | sysconfdir='${prefix}/etc' |
| 71 | sharedstatedir='${prefix}/com' |
| 72 | localstatedir='${prefix}/var' |
| 73 | libdir='${exec_prefix}/lib' |
| 74 | includedir='${prefix}/include' |
| 75 | oldincludedir='/usr/include' |
| 76 | infodir='${prefix}/info' |
| 77 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 78 | |
| 79 | # Initialize some other variables. |
| 80 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 81 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 82 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 83 | # Maximum number of lines to put in a shell here document. |
| 84 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 85 | |
| 86 | ac_prev= |
| 87 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 88 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 89 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 90 | # If the previous option needs an argument, assign it. |
| 91 | if test -n "$ac_prev"; then |
| 92 | eval "$ac_prev=\$ac_option" |
| 93 | ac_prev= |
| 94 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 95 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 96 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 97 | case "$ac_option" in |
| 98 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 99 | *) ac_optarg= ;; |
| 100 | esac |
| 101 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 102 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 103 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 104 | case "$ac_option" in |
| 105 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 106 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 107 | ac_prev=bindir ;; |
| 108 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 109 | bindir="$ac_optarg" ;; |
| 110 | |
| 111 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 112 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 113 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 114 | build="$ac_optarg" ;; |
| 115 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 116 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 117 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 118 | ac_prev=cache_file ;; |
| 119 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 120 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 121 | cache_file="$ac_optarg" ;; |
| 122 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 123 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 124 | ac_prev=datadir ;; |
| 125 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 126 | | --da=*) |
| 127 | datadir="$ac_optarg" ;; |
| 128 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 129 | -disable-* | --disable-*) |
| 130 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 131 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 132 | 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] | 133 | { 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] | 134 | fi |
| 135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 136 | eval "enable_${ac_feature}=no" ;; |
| 137 | |
| 138 | -enable-* | --enable-*) |
| 139 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 140 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 141 | 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] | 142 | { 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] | 143 | fi |
| 144 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 145 | case "$ac_option" in |
| 146 | *=*) ;; |
| 147 | *) ac_optarg=yes ;; |
| 148 | esac |
| 149 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 150 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 151 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 152 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 153 | | --exec | --exe | --ex) |
| 154 | ac_prev=exec_prefix ;; |
| 155 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 156 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 157 | | --exec=* | --exe=* | --ex=*) |
| 158 | exec_prefix="$ac_optarg" ;; |
| 159 | |
| 160 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 161 | # Obsolete; use --with-gas. |
| 162 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 163 | |
| 164 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 165 | # Omit some internal or obsolete options to make the list less imposing. |
| 166 | # 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] | 167 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 168 | Usage: configure [options] [host] |
| 169 | Options: [defaults in brackets after descriptions] |
| 170 | Configuration: |
| 171 | --cache-file=FILE cache test results in FILE |
| 172 | --help print this message |
| 173 | --no-create do not create output files |
| 174 | --quiet, --silent do not print \`checking...' messages |
| 175 | --version print the version of autoconf that created configure |
| 176 | Directory and file names: |
| 177 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 178 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 179 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 180 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 181 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 182 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 183 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 184 | --datadir=DIR read-only architecture-independent data in DIR |
| 185 | [PREFIX/share] |
| 186 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 187 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 188 | [PREFIX/com] |
| 189 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 190 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 191 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 192 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 193 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 194 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 195 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 196 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 197 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 198 | --program-transform-name=PROGRAM |
| 199 | run sed PROGRAM on installed program names |
| 200 | EOF |
| 201 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 202 | Host type: |
| 203 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 204 | --host=HOST configure for HOST [guessed] |
| 205 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 206 | Features and packages: |
| 207 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 208 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 209 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 210 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 211 | --x-includes=DIR X include files are in DIR |
| 212 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 213 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 214 | if test -n "$ac_help"; then |
| 215 | echo "--enable and --with options recognized:$ac_help" |
| 216 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 217 | exit 0 ;; |
| 218 | |
| 219 | -host | --host | --hos | --ho) |
| 220 | ac_prev=host ;; |
| 221 | -host=* | --host=* | --hos=* | --ho=*) |
| 222 | host="$ac_optarg" ;; |
| 223 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 224 | -includedir | --includedir | --includedi | --included | --include \ |
| 225 | | --includ | --inclu | --incl | --inc) |
| 226 | ac_prev=includedir ;; |
| 227 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 228 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 229 | includedir="$ac_optarg" ;; |
| 230 | |
| 231 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 232 | ac_prev=infodir ;; |
| 233 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 234 | infodir="$ac_optarg" ;; |
| 235 | |
| 236 | -libdir | --libdir | --libdi | --libd) |
| 237 | ac_prev=libdir ;; |
| 238 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 239 | libdir="$ac_optarg" ;; |
| 240 | |
| 241 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 242 | | --libexe | --libex | --libe) |
| 243 | ac_prev=libexecdir ;; |
| 244 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 245 | | --libexe=* | --libex=* | --libe=*) |
| 246 | libexecdir="$ac_optarg" ;; |
| 247 | |
| 248 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 249 | | --localstate | --localstat | --localsta | --localst \ |
| 250 | | --locals | --local | --loca | --loc | --lo) |
| 251 | ac_prev=localstatedir ;; |
| 252 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 253 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 254 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 255 | localstatedir="$ac_optarg" ;; |
| 256 | |
| 257 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 258 | ac_prev=mandir ;; |
| 259 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 260 | mandir="$ac_optarg" ;; |
| 261 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 262 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 263 | # Obsolete; use --without-fp. |
| 264 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 265 | |
| 266 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 267 | | --no-cr | --no-c) |
| 268 | no_create=yes ;; |
| 269 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 270 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 271 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 272 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 273 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 274 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 275 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 276 | | --oldin | --oldi | --old | --ol | --o) |
| 277 | ac_prev=oldincludedir ;; |
| 278 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 279 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 280 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 281 | oldincludedir="$ac_optarg" ;; |
| 282 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 283 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 284 | ac_prev=prefix ;; |
| 285 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 286 | prefix="$ac_optarg" ;; |
| 287 | |
| 288 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 289 | | --program-pre | --program-pr | --program-p) |
| 290 | ac_prev=program_prefix ;; |
| 291 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 292 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 293 | program_prefix="$ac_optarg" ;; |
| 294 | |
| 295 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 296 | | --program-suf | --program-su | --program-s) |
| 297 | ac_prev=program_suffix ;; |
| 298 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 299 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 300 | program_suffix="$ac_optarg" ;; |
| 301 | |
| 302 | -program-transform-name | --program-transform-name \ |
| 303 | | --program-transform-nam | --program-transform-na \ |
| 304 | | --program-transform-n | --program-transform- \ |
| 305 | | --program-transform | --program-transfor \ |
| 306 | | --program-transfo | --program-transf \ |
| 307 | | --program-trans | --program-tran \ |
| 308 | | --progr-tra | --program-tr | --program-t) |
| 309 | ac_prev=program_transform_name ;; |
| 310 | -program-transform-name=* | --program-transform-name=* \ |
| 311 | | --program-transform-nam=* | --program-transform-na=* \ |
| 312 | | --program-transform-n=* | --program-transform-=* \ |
| 313 | | --program-transform=* | --program-transfor=* \ |
| 314 | | --program-transfo=* | --program-transf=* \ |
| 315 | | --program-trans=* | --program-tran=* \ |
| 316 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 317 | program_transform_name="$ac_optarg" ;; |
| 318 | |
| 319 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 320 | | -silent | --silent | --silen | --sile | --sil) |
| 321 | silent=yes ;; |
| 322 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 323 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 324 | ac_prev=sbindir ;; |
| 325 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 326 | | --sbi=* | --sb=*) |
| 327 | sbindir="$ac_optarg" ;; |
| 328 | |
| 329 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 330 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 331 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 332 | | --sha | --sh) |
| 333 | ac_prev=sharedstatedir ;; |
| 334 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 335 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 336 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 337 | | --sha=* | --sh=*) |
| 338 | sharedstatedir="$ac_optarg" ;; |
| 339 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 340 | -site | --site | --sit) |
| 341 | ac_prev=site ;; |
| 342 | -site=* | --site=* | --sit=*) |
| 343 | site="$ac_optarg" ;; |
| 344 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 345 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 346 | ac_prev=srcdir ;; |
| 347 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 348 | srcdir="$ac_optarg" ;; |
| 349 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 350 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 351 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 352 | ac_prev=sysconfdir ;; |
| 353 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 354 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 355 | sysconfdir="$ac_optarg" ;; |
| 356 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 357 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 358 | ac_prev=target ;; |
| 359 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 360 | target="$ac_optarg" ;; |
| 361 | |
| 362 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 363 | verbose=yes ;; |
| 364 | |
| 365 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 366 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 367 | exit 0 ;; |
| 368 | |
| 369 | -with-* | --with-*) |
| 370 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
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 | case "$ac_option" in |
| 377 | *=*) ;; |
| 378 | *) ac_optarg=yes ;; |
| 379 | esac |
| 380 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 381 | |
| 382 | -without-* | --without-*) |
| 383 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 384 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 385 | 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] | 386 | { 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] | 387 | fi |
| 388 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 389 | eval "with_${ac_package}=no" ;; |
| 390 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 391 | --x) |
| 392 | # Obsolete; use --with-x. |
| 393 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 394 | |
| 395 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 396 | | --x-incl | --x-inc | --x-in | --x-i) |
| 397 | ac_prev=x_includes ;; |
| 398 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 399 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 400 | x_includes="$ac_optarg" ;; |
| 401 | |
| 402 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 403 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 404 | ac_prev=x_libraries ;; |
| 405 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 406 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 407 | x_libraries="$ac_optarg" ;; |
| 408 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 409 | -*) { 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] | 410 | ;; |
| 411 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 412 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 413 | 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] | 414 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 415 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 416 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 417 | { 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] | 418 | fi |
| 419 | nonopt="$ac_option" |
| 420 | ;; |
| 421 | |
| 422 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 423 | done |
| 424 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 425 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 426 | { 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] | 427 | fi |
| 428 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 429 | 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] | 430 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 431 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 432 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 433 | # 1 file creation |
| 434 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 435 | # 3 some systems may open it to /dev/tty |
| 436 | # 4 used on the Kubota Titan |
| 437 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 438 | # 5 compiler messages saved in config.log |
| 439 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 440 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 441 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 442 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 443 | fi |
| 444 | exec 5>./config.log |
| 445 | |
| 446 | echo "\ |
| 447 | This file contains any messages produced by compilers while |
| 448 | running configure, to aid debugging if configure makes a mistake. |
| 449 | " 1>&5 |
| 450 | |
| 451 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 452 | # Also quote any args containing shell metacharacters. |
| 453 | ac_configure_args= |
| 454 | for ac_arg |
| 455 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 456 | case "$ac_arg" in |
| 457 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 458 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 459 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 460 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 461 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 462 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 463 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 464 | esac |
| 465 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 466 | |
| 467 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 468 | # Only set these to C if already set. These must not be set unconditionally |
| 469 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 470 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 471 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 472 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 473 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 474 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 475 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 476 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 477 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 478 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 479 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 480 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 481 | |
| 482 | # A filename unique to this package, relative to the directory that |
| 483 | # 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] | 484 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 485 | |
| 486 | # Find the source files, if location was not specified. |
| 487 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 488 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 489 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 490 | ac_prog=$0 |
| 491 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 492 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 493 | srcdir=$ac_confdir |
| 494 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 495 | srcdir=.. |
| 496 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 497 | else |
| 498 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 499 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 500 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 501 | if test "$ac_srcdir_defaulted" = yes; then |
| 502 | { 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] | 503 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 504 | { 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] | 505 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 506 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 507 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 508 | |
| 509 | # Prefer explicitly selected file to automatically selected ones. |
| 510 | if test -z "$CONFIG_SITE"; then |
| 511 | if test "x$prefix" != xNONE; then |
| 512 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 513 | else |
| 514 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 515 | fi |
| 516 | fi |
| 517 | for ac_site_file in $CONFIG_SITE; do |
| 518 | if test -r "$ac_site_file"; then |
| 519 | echo "loading site script $ac_site_file" |
| 520 | . "$ac_site_file" |
| 521 | fi |
| 522 | done |
| 523 | |
| 524 | if test -r "$cache_file"; then |
| 525 | echo "loading cache $cache_file" |
| 526 | . $cache_file |
| 527 | else |
| 528 | echo "creating cache $cache_file" |
| 529 | > $cache_file |
| 530 | fi |
| 531 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 532 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 533 | # 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] | 534 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 535 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 536 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 537 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 538 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 539 | ac_exeext= |
| 540 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 541 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 542 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 543 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 544 | ac_n= ac_c=' |
| 545 | ' ac_t=' ' |
| 546 | else |
| 547 | ac_n=-n ac_c= ac_t= |
| 548 | fi |
| 549 | else |
| 550 | ac_n= ac_c='\c' ac_t= |
| 551 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 552 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 553 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 554 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 555 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 556 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 557 | |
| 558 | VERSION=1.5 |
| 559 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 560 | # NEXTSTEP stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 561 | if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices/software_version ; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 562 | |
| 563 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 564 | echo "configure:565: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 565 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 566 | if test "${with_next_archs+set}" = set; then |
| 567 | withval="$with_next_archs" |
| 568 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 569 | if test -n "$withval"; then |
| 570 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 571 | # GCC does not currently support multi archs on the NeXT |
| 572 | with_gcc=no |
| 573 | fi |
| 574 | echo "$ac_t""$with_next_archs" 1>&6 |
| 575 | |
| 576 | else |
| 577 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 578 | fi |
| 579 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 580 | |
| 581 | if test -z "$MACHDEP" |
| 582 | then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 583 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 584 | sed -e 's/://' -e 's/\./_/'` && \ |
| 585 | ac_sys_system=next && ac_sys_release=$4 |
| 586 | |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 587 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 588 | fi |
| 589 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 590 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 591 | # Check whether --with-next-framework or --without-next-framework was given. |
| 592 | if test "${with_next_framework+set}" = set; then |
| 593 | withval="$with_next_framework" |
| 594 | : |
| 595 | fi |
| 596 | |
| 597 | # Check whether --with-dyld or --without-dyld was given. |
| 598 | if test "${with_dyld+set}" = set; then |
| 599 | withval="$with_dyld" |
| 600 | : |
| 601 | fi |
| 602 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 603 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 604 | # Set name for machine-dependent library files |
| 605 | |
| 606 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 607 | echo "configure:608: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 608 | if test -z "$MACHDEP" |
| 609 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 610 | ac_sys_system=`uname -s` |
| 611 | if test "$ac_sys_system" = "AIX" ; then |
| 612 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 613 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 614 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 615 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 616 | ac_md_system=`echo $ac_sys_system | |
| 617 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 618 | ac_md_release=`echo $ac_sys_release | |
| 619 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 620 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 621 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 622 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 623 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 624 | esac |
| 625 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 626 | |
| 627 | # |
| 628 | # SGI compilers allow the specification of the both the ABI and the |
| 629 | # ISA on the command line. Depending on the values of these switches, |
| 630 | # different and often incompatable code will be generated. |
| 631 | # |
| 632 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 633 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 634 | # variable is also adjusted. |
| 635 | # |
| 636 | |
| 637 | if test ! -z "$SGI_ABI" |
| 638 | then |
| 639 | CC="cc $SGI_ABI" |
| 640 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 641 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 642 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 643 | echo "$ac_t""$MACHDEP" 1>&6 |
| 644 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 645 | # |
| 646 | # CCC is the command that compiles C++ programs |
| 647 | # |
| 648 | # Not all make programs have this predefined. |
| 649 | # |
| 650 | |
| 651 | echo $ac_n "checking CCC""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 652 | echo "configure:653: checking CCC" >&5 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 653 | if test -z "$CCC" |
| 654 | then |
| 655 | case $ac_sys_system in |
| 656 | IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 657 | Linux*) SET_CCC="CCC= g++";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 658 | *) SET_CCC="" |
| 659 | esac |
| 660 | else |
| 661 | SET_CCC="CCC= ${CCC}" |
| 662 | fi |
| 663 | echo "$ac_t""$SET_CCC" 1>&6 |
| 664 | |
| 665 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 666 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 667 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 668 | echo "configure:669: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 669 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 670 | if test "${with_gcc+set}" = set; then |
| 671 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 672 | |
| 673 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 674 | no) CC=cc |
| 675 | without_gcc=yes;; |
| 676 | yes) CC=gcc |
| 677 | without_gcc=no;; |
| 678 | *) CC=$withval |
| 679 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 680 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 681 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 682 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 683 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 684 | OSF1) CC=cc |
| 685 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 686 | BeOS*) |
| 687 | # Dunno if it's a good idea to get this over with all at once, or |
| 688 | # to handle it in with the other goodies. |
| 689 | MACHDEP=beos |
| 690 | |
| 691 | case $BE_HOST_CPU in |
| 692 | ppc) |
| 693 | CC="mwcc -I$PWD/BeOS" |
| 694 | without_gcc=yes |
| 695 | OPT="-DUSE_DL_EXPORT -O7 -opt schedule604" |
| 696 | CCSHARED=-UUSE_DL_EXPORT |
| 697 | LDFLAGS="$LDFLAGS -nodup" |
| 698 | |
| 699 | AR="$PWD/BeOS/ar-fake" |
| 700 | RANLIB=: |
| 701 | |
| 702 | cat >> confdefs.h <<\EOF |
| 703 | #define DL_EXPORT_HEADER "dl_export.h" |
| 704 | EOF |
| 705 | |
| 706 | ;; |
| 707 | x86) |
| 708 | CC="gcc -I$PWD/BeOS" |
| 709 | without_gcc=no |
| 710 | OPT="-DUSE_DL_EXPORT -O3 -mpentiumpro" |
| 711 | CCSHARED=-UUSE_DL_EXPORT |
| 712 | |
| 713 | AR="$PWD/BeOS/ar-fake" |
| 714 | RANLIB=: |
| 715 | |
| 716 | cat >> confdefs.h <<\EOF |
| 717 | #define DL_EXPORT_HEADER "dl_export.h" |
| 718 | EOF |
| 719 | |
| 720 | ;; |
| 721 | *) |
| 722 | { echo "configure: error: Your BeOS system isn't PowerPC or x86... neat" 1>&2; exit 1; } |
| 723 | ;; |
| 724 | esac |
| 725 | ;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 726 | *) without_gcc=no;; |
| 727 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 728 | fi |
| 729 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 730 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 731 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 732 | # If the user switches compilers, we can't believe the cache |
| 733 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 734 | then |
| 735 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 736 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 737 | fi |
| 738 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 739 | # Extract the first word of "gcc", so it can be a program name with args. |
| 740 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 741 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 742 | echo "configure:743: checking for $ac_word" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 743 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 744 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 745 | else |
| 746 | if test -n "$CC"; then |
| 747 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 748 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 749 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 750 | ac_dummy="$PATH" |
| 751 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 752 | test -z "$ac_dir" && ac_dir=. |
| 753 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 754 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 755 | break |
| 756 | fi |
| 757 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 758 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 759 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 760 | fi |
| 761 | CC="$ac_cv_prog_CC" |
| 762 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 763 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 764 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 765 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 766 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 767 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 768 | if test -z "$CC"; then |
| 769 | # Extract the first word of "cc", so it can be a program name with args. |
| 770 | set dummy cc; ac_word=$2 |
| 771 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 772 | echo "configure:773: checking for $ac_word" >&5 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 773 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 774 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 775 | else |
| 776 | if test -n "$CC"; then |
| 777 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 778 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 779 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 780 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 781 | ac_dummy="$PATH" |
| 782 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 783 | test -z "$ac_dir" && ac_dir=. |
| 784 | if test -f $ac_dir/$ac_word; then |
| 785 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 786 | ac_prog_rejected=yes |
| 787 | continue |
| 788 | fi |
| 789 | ac_cv_prog_CC="cc" |
| 790 | break |
| 791 | fi |
| 792 | done |
| 793 | IFS="$ac_save_ifs" |
| 794 | if test $ac_prog_rejected = yes; then |
| 795 | # We found a bogon in the path, so make sure we never use it. |
| 796 | set dummy $ac_cv_prog_CC |
| 797 | shift |
| 798 | if test $# -gt 0; then |
| 799 | # We chose a different compiler from the bogus one. |
| 800 | # However, it has the same basename, so the bogon will be chosen |
| 801 | # first if we set CC to just the basename; use the full file name. |
| 802 | shift |
| 803 | set dummy "$ac_dir/$ac_word" "$@" |
| 804 | shift |
| 805 | ac_cv_prog_CC="$@" |
| 806 | fi |
| 807 | fi |
| 808 | fi |
| 809 | fi |
| 810 | CC="$ac_cv_prog_CC" |
| 811 | if test -n "$CC"; then |
| 812 | echo "$ac_t""$CC" 1>&6 |
| 813 | else |
| 814 | echo "$ac_t""no" 1>&6 |
| 815 | fi |
| 816 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 817 | if test -z "$CC"; then |
| 818 | case "`uname -s`" in |
| 819 | *win32* | *WIN32*) |
| 820 | # Extract the first word of "cl", so it can be a program name with args. |
| 821 | set dummy cl; ac_word=$2 |
| 822 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 823 | echo "configure:824: checking for $ac_word" >&5 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 824 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 825 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 826 | else |
| 827 | if test -n "$CC"; then |
| 828 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 829 | else |
| 830 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 831 | ac_dummy="$PATH" |
| 832 | for ac_dir in $ac_dummy; do |
| 833 | test -z "$ac_dir" && ac_dir=. |
| 834 | if test -f $ac_dir/$ac_word; then |
| 835 | ac_cv_prog_CC="cl" |
| 836 | break |
| 837 | fi |
| 838 | done |
| 839 | IFS="$ac_save_ifs" |
| 840 | fi |
| 841 | fi |
| 842 | CC="$ac_cv_prog_CC" |
| 843 | if test -n "$CC"; then |
| 844 | echo "$ac_t""$CC" 1>&6 |
| 845 | else |
| 846 | echo "$ac_t""no" 1>&6 |
| 847 | fi |
| 848 | ;; |
| 849 | esac |
| 850 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 851 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 852 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 853 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 854 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 855 | echo "configure:856: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 856 | |
| 857 | ac_ext=c |
| 858 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 859 | ac_cpp='$CPP $CPPFLAGS' |
| 860 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 861 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 862 | cross_compiling=$ac_cv_prog_cc_cross |
| 863 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 864 | cat > conftest.$ac_ext << EOF |
| 865 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 866 | #line 867 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 867 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 868 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 869 | main(){return(0);} |
| 870 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 871 | if { (eval echo configure:872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 872 | ac_cv_prog_cc_works=yes |
| 873 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 874 | if (./conftest; exit) 2>/dev/null; then |
| 875 | ac_cv_prog_cc_cross=no |
| 876 | else |
| 877 | ac_cv_prog_cc_cross=yes |
| 878 | fi |
| 879 | else |
| 880 | echo "configure: failed program was:" >&5 |
| 881 | cat conftest.$ac_ext >&5 |
| 882 | ac_cv_prog_cc_works=no |
| 883 | fi |
| 884 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 885 | ac_ext=c |
| 886 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 887 | ac_cpp='$CPP $CPPFLAGS' |
| 888 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 889 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 890 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 891 | |
| 892 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 893 | if test $ac_cv_prog_cc_works = no; then |
| 894 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 895 | fi |
| 896 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 897 | echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 898 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 899 | cross_compiling=$ac_cv_prog_cc_cross |
| 900 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 901 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 902 | echo "configure:903: checking whether we are using GNU C" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 903 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 904 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 905 | else |
| 906 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 907 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 908 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 909 | #endif |
| 910 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 911 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:912: \"$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] | 912 | ac_cv_prog_gcc=yes |
| 913 | else |
| 914 | ac_cv_prog_gcc=no |
| 915 | fi |
| 916 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 917 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 918 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 919 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 920 | if test $ac_cv_prog_gcc = yes; then |
| 921 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 922 | else |
| 923 | GCC= |
| 924 | fi |
| 925 | |
| 926 | ac_test_CFLAGS="${CFLAGS+set}" |
| 927 | ac_save_CFLAGS="$CFLAGS" |
| 928 | CFLAGS= |
| 929 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 930 | echo "configure:931: checking whether ${CC-cc} accepts -g" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 931 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 932 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 933 | else |
| 934 | echo 'void f(){}' > conftest.c |
| 935 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 936 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 937 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 938 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 939 | fi |
| 940 | rm -f conftest* |
| 941 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 942 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 943 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 944 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 945 | if test "$ac_test_CFLAGS" = set; then |
| 946 | CFLAGS="$ac_save_CFLAGS" |
| 947 | elif test $ac_cv_prog_cc_g = yes; then |
| 948 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 949 | CFLAGS="-g -O2" |
| 950 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 951 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 952 | fi |
| 953 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 954 | if test "$GCC" = yes; then |
| 955 | CFLAGS="-O2" |
| 956 | else |
| 957 | CFLAGS= |
| 958 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 959 | fi |
| 960 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 961 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 962 | case $MACHDEP in |
| 963 | bsdos*) |
| 964 | case $CC in |
| 965 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 966 | esac;; |
| 967 | esac |
| 968 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 969 | case $ac_sys_system in |
| 970 | hp*|HP*) |
| 971 | case $CC in |
| 972 | cc|*/cc) CC="$CC -Aa -D_HPUX_SOURCE";; |
| 973 | esac;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 974 | BeOS*) |
| 975 | case $CC in |
| 976 | cc) CC=cc;; |
| 977 | esac;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 978 | esac |
| 979 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 980 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 981 | # name of the library into which to insert object files). On systems |
| 982 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
| 983 | # the Makefiles). |
| 984 | |
| 985 | |
| 986 | LDLIBRARY='' |
| 987 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 988 | # LINKCC is the command that links the python executable -- default is $(CC). |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 989 | # This is altered for AIX and BeOS in order to build the export list before |
| 990 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 991 | |
| 992 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 993 | echo "configure:994: checking LINKCC" >&5 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 994 | if test -z "$LINKCC" |
| 995 | then |
| 996 | case $ac_sys_system in |
| 997 | AIX*) |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 998 | LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 999 | BeOS*) |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 1000 | LINKCC="\$(srcdir)/../BeOS/linkcc \$(LIBRARY) \$(PURIFY) \$(CC) \$(OPT)" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1001 | LDLIBRARY='libpython$(VERSION).so';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1002 | dgux*) |
| 1003 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1004 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1005 | esac |
| 1006 | fi |
| 1007 | echo "$ac_t""$LINKCC" 1>&6 |
| 1008 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1009 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
| 1010 | echo "configure:1011: checking LDLIBRARY" >&5 |
| 1011 | |
| 1012 | # NeXT framework builds require that the 'ar' library be converted into |
| 1013 | # a bundle using libtool. |
| 1014 | if test "$with_next_framework" |
| 1015 | then |
| 1016 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1017 | fi |
| 1018 | |
| 1019 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 1020 | if test "$MACHDEP" = "dguxR4" |
| 1021 | then |
| 1022 | LDLIBRARY='libpython$(VERSION).so' |
| 1023 | OPT="$OPT -pic" |
| 1024 | fi |
| 1025 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1026 | |
| 1027 | # If LDLIBRARY is different from LIBRARY, emit a rule to build it. |
| 1028 | if test -z "$LDLIBRARY" |
| 1029 | then |
| 1030 | LDLIBRARY='libpython$(VERSION).a' |
| 1031 | MAKE_LDLIBRARY="true" |
| 1032 | else |
| 1033 | MAKE_LDLIBRARY='$(MAKE) $(LDLIBRARY)' |
| 1034 | fi |
| 1035 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1036 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1037 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1038 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1039 | echo "configure:1040: checking for $ac_word" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1040 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1041 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1042 | else |
| 1043 | if test -n "$RANLIB"; then |
| 1044 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1045 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1046 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1047 | ac_dummy="$PATH" |
| 1048 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1049 | test -z "$ac_dir" && ac_dir=. |
| 1050 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1051 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1052 | break |
| 1053 | fi |
| 1054 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1055 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1056 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1057 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1058 | fi |
| 1059 | RANLIB="$ac_cv_prog_RANLIB" |
| 1060 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1061 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1062 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1063 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1064 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1065 | |
| 1066 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1067 | for ac_prog in ar aal |
| 1068 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1069 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1070 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1071 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1072 | echo "configure:1073: checking for $ac_word" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1073 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 1074 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1075 | else |
| 1076 | if test -n "$AR"; then |
| 1077 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1078 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1079 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1080 | ac_dummy="$PATH" |
| 1081 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1082 | test -z "$ac_dir" && ac_dir=. |
| 1083 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1084 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1085 | break |
| 1086 | fi |
| 1087 | done |
| 1088 | IFS="$ac_save_ifs" |
| 1089 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1090 | fi |
| 1091 | AR="$ac_cv_prog_AR" |
| 1092 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1093 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1094 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1095 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1096 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1097 | |
| 1098 | test -n "$AR" && break |
| 1099 | done |
| 1100 | test -n "$AR" || AR="ar" |
| 1101 | |
| 1102 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1103 | |
| 1104 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1105 | # Install just never works :-( |
| 1106 | if test -z "$INSTALL" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1107 | then |
| 1108 | INSTALL=cp |
| 1109 | INSTALL_PROGRAM=cp |
| 1110 | INSTALL_DATA=cp |
| 1111 | else |
| 1112 | INSTALL_PROGRAM="$INSTALL" |
| 1113 | INSTALL_DATA="$INSTALL -m 644" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1114 | fi |
| 1115 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1116 | # Not every filesystem supports hard links |
| 1117 | |
| 1118 | if test -z "$LN" ; then |
| 1119 | case $ac_sys_system in |
| 1120 | BeOS*) LN="ln -s";; |
| 1121 | *) LN=ln;; |
| 1122 | esac |
| 1123 | fi |
| 1124 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1125 | # Optimizer/debugger flags passed between Makefiles |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1126 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1127 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1128 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1129 | case $GCC in |
| 1130 | yes) |
| 1131 | case $ac_cv_prog_cc_g in |
| 1132 | yes) OPT="-g -O2";; |
| 1133 | *) OPT="-O2";; |
| 1134 | esac |
| 1135 | ;; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1136 | *) OPT="-O";; |
| 1137 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1138 | fi |
| 1139 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1140 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1141 | then |
| 1142 | OPT="$OPT $ac_arch_flags" |
| 1143 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1144 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1145 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1146 | echo "configure:1147: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1147 | # On Suns, sometimes $CPP names a directory. |
| 1148 | if test -n "$CPP" && test -d "$CPP"; then |
| 1149 | CPP= |
| 1150 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1151 | if test -z "$CPP"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1152 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1153 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1154 | else |
| 1155 | # This must be in double quotes, not single quotes, because CPP may get |
| 1156 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1157 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1158 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1159 | # not just through cpp. |
| 1160 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1161 | #line 1162 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1162 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1163 | #include <assert.h> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1164 | Syntax Error |
| 1165 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1166 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1167 | { (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1168 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1169 | if test -z "$ac_err"; then |
| 1170 | : |
| 1171 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1172 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1173 | echo "configure: failed program was:" >&5 |
| 1174 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1175 | rm -rf conftest* |
| 1176 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1177 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1178 | #line 1179 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1179 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1180 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1181 | Syntax Error |
| 1182 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1183 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1184 | { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1185 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1186 | if test -z "$ac_err"; then |
| 1187 | : |
| 1188 | else |
| 1189 | echo "$ac_err" >&5 |
| 1190 | echo "configure: failed program was:" >&5 |
| 1191 | cat conftest.$ac_ext >&5 |
| 1192 | rm -rf conftest* |
| 1193 | CPP="${CC-cc} -nologo -E" |
| 1194 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1195 | #line 1196 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1196 | #include "confdefs.h" |
| 1197 | #include <assert.h> |
| 1198 | Syntax Error |
| 1199 | EOF |
| 1200 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1201 | { (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1202 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1203 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1204 | : |
| 1205 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1206 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1207 | echo "configure: failed program was:" >&5 |
| 1208 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1209 | rm -rf conftest* |
| 1210 | CPP=/lib/cpp |
| 1211 | fi |
| 1212 | rm -f conftest* |
| 1213 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1214 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1215 | fi |
| 1216 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1217 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1218 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1219 | CPP="$ac_cv_prog_CPP" |
| 1220 | else |
| 1221 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1222 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1223 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1224 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1225 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1226 | echo "configure:1227: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1227 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1228 | #line 1229 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1229 | #include "confdefs.h" |
| 1230 | #ifdef _AIX |
| 1231 | yes |
| 1232 | #endif |
| 1233 | |
| 1234 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1235 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1236 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1237 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1238 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1239 | #define _ALL_SOURCE 1 |
| 1240 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1241 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1242 | else |
| 1243 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1244 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1245 | fi |
| 1246 | rm -f conftest* |
| 1247 | |
| 1248 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1249 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1250 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1251 | echo "configure:1252: checking for minix/config.h" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1252 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1253 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1254 | else |
| 1255 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1256 | #line 1257 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1257 | #include "confdefs.h" |
| 1258 | #include <minix/config.h> |
| 1259 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1260 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1261 | { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1262 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1263 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1264 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1265 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1266 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1267 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1268 | echo "configure: failed program was:" >&5 |
| 1269 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1270 | rm -rf conftest* |
| 1271 | eval "ac_cv_header_$ac_safe=no" |
| 1272 | fi |
| 1273 | rm -f conftest* |
| 1274 | fi |
| 1275 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1276 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1277 | MINIX=yes |
| 1278 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1279 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1280 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1281 | fi |
| 1282 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1283 | if test "$MINIX" = yes; then |
| 1284 | cat >> confdefs.h <<\EOF |
| 1285 | #define _POSIX_SOURCE 1 |
| 1286 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1287 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1288 | cat >> confdefs.h <<\EOF |
| 1289 | #define _POSIX_1_SOURCE 2 |
| 1290 | EOF |
| 1291 | |
| 1292 | cat >> confdefs.h <<\EOF |
| 1293 | #define _MINIX 1 |
| 1294 | EOF |
| 1295 | |
| 1296 | fi |
| 1297 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1298 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1299 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1300 | echo "configure:1301: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1301 | if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then |
| 1302 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1303 | else |
| 1304 | ac_save_cc="$CC" |
| 1305 | CC="$CC -OPT:Olimit=0" |
| 1306 | if test "$cross_compiling" = yes; then |
| 1307 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1308 | else |
| 1309 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1310 | #line 1311 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1311 | #include "confdefs.h" |
| 1312 | int main() { return 0; } |
| 1313 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1314 | if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1315 | then |
| 1316 | ac_cv_opt_olimit_ok=yes |
| 1317 | else |
| 1318 | echo "configure: failed program was:" >&5 |
| 1319 | cat conftest.$ac_ext >&5 |
| 1320 | rm -fr conftest* |
| 1321 | ac_cv_opt_olimit_ok=no |
| 1322 | fi |
| 1323 | rm -fr conftest* |
| 1324 | fi |
| 1325 | |
| 1326 | CC="$ac_save_cc" |
| 1327 | fi |
| 1328 | |
| 1329 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1330 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 1331 | OPT="$OPT -OPT:Olimit=0" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1332 | else |
| 1333 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1334 | echo "configure:1335: checking whether $CC accepts -Olimit 1500" >&5 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1335 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
| 1336 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1337 | else |
| 1338 | ac_save_cc="$CC" |
| 1339 | CC="$CC -Olimit 1500" |
| 1340 | if test "$cross_compiling" = yes; then |
| 1341 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1342 | else |
| 1343 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1344 | #line 1345 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1345 | #include "confdefs.h" |
| 1346 | int main() { return 0; } |
| 1347 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1348 | if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1349 | then |
| 1350 | ac_cv_olimit_ok=yes |
| 1351 | else |
| 1352 | echo "configure: failed program was:" >&5 |
| 1353 | cat conftest.$ac_ext >&5 |
| 1354 | rm -fr conftest* |
| 1355 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1356 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1357 | rm -fr conftest* |
| 1358 | fi |
| 1359 | |
| 1360 | CC="$ac_save_cc" |
| 1361 | fi |
| 1362 | |
| 1363 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1364 | if test $ac_cv_olimit_ok = yes; then |
| 1365 | OPT="$OPT -Olimit 1500" |
| 1366 | fi |
| 1367 | fi |
| 1368 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1369 | # check for ANSI or K&R ("traditional") preprocessor |
| 1370 | echo $ac_n "checking for C preprocessor type""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1371 | echo "configure:1372: checking for C preprocessor type" >&5 |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1372 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1373 | #line 1374 "configure" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1374 | #include "confdefs.h" |
| 1375 | |
| 1376 | #define spam(name, doc) {#name, &name, #name "() -- " doc} |
| 1377 | int foo; |
| 1378 | struct {char *name; int *addr; char *doc;} desc = spam(foo, "something"); |
| 1379 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1380 | int main() { |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1381 | ; |
| 1382 | ; return 0; } |
| 1383 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1384 | if { (eval echo configure:1385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1385 | rm -rf conftest* |
| 1386 | cpp_type=ansi |
| 1387 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1388 | echo "configure: failed program was:" >&5 |
| 1389 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1390 | rm -rf conftest* |
| 1391 | cat >> confdefs.h <<\EOF |
| 1392 | #define HAVE_OLD_CPP 1 |
| 1393 | EOF |
| 1394 | cpp_type=traditional |
| 1395 | fi |
| 1396 | rm -f conftest* |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1397 | echo "$ac_t""$cpp_type" 1>&6 |
| 1398 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1399 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1400 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1401 | echo "configure:1402: checking for ANSI C header files" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1402 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1403 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1404 | else |
| 1405 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1406 | #line 1407 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1407 | #include "confdefs.h" |
| 1408 | #include <stdlib.h> |
| 1409 | #include <stdarg.h> |
| 1410 | #include <string.h> |
| 1411 | #include <float.h> |
| 1412 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1413 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1414 | { (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1415 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1416 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1417 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1418 | ac_cv_header_stdc=yes |
| 1419 | else |
| 1420 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1421 | echo "configure: failed program was:" >&5 |
| 1422 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1423 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1424 | ac_cv_header_stdc=no |
| 1425 | fi |
| 1426 | rm -f conftest* |
| 1427 | |
| 1428 | if test $ac_cv_header_stdc = yes; then |
| 1429 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1430 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1431 | #line 1432 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1432 | #include "confdefs.h" |
| 1433 | #include <string.h> |
| 1434 | EOF |
| 1435 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1436 | egrep "memchr" >/dev/null 2>&1; then |
| 1437 | : |
| 1438 | else |
| 1439 | rm -rf conftest* |
| 1440 | ac_cv_header_stdc=no |
| 1441 | fi |
| 1442 | rm -f conftest* |
| 1443 | |
| 1444 | fi |
| 1445 | |
| 1446 | if test $ac_cv_header_stdc = yes; then |
| 1447 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1448 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1449 | #line 1450 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1450 | #include "confdefs.h" |
| 1451 | #include <stdlib.h> |
| 1452 | EOF |
| 1453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1454 | egrep "free" >/dev/null 2>&1; then |
| 1455 | : |
| 1456 | else |
| 1457 | rm -rf conftest* |
| 1458 | ac_cv_header_stdc=no |
| 1459 | fi |
| 1460 | rm -f conftest* |
| 1461 | |
| 1462 | fi |
| 1463 | |
| 1464 | if test $ac_cv_header_stdc = yes; then |
| 1465 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1466 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1467 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1468 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1469 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1470 | #line 1471 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1471 | #include "confdefs.h" |
| 1472 | #include <ctype.h> |
| 1473 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1474 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1475 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1476 | int main () { int i; for (i = 0; i < 256; i++) |
| 1477 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1478 | exit (0); } |
| 1479 | |
| 1480 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1481 | if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1482 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1483 | : |
| 1484 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1485 | echo "configure: failed program was:" >&5 |
| 1486 | cat conftest.$ac_ext >&5 |
| 1487 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1488 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1489 | fi |
| 1490 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1491 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1492 | |
| 1493 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1494 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1495 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1496 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1497 | if test $ac_cv_header_stdc = yes; then |
| 1498 | cat >> confdefs.h <<\EOF |
| 1499 | #define STDC_HEADERS 1 |
| 1500 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1501 | |
| 1502 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1503 | |
Guido van Rossum | 9601315 | 1997-10-08 22:47:52 +0000 | [diff] [blame] | 1504 | for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h pthread.h \ |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 1505 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \ |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1506 | sys/audioio.h sys/file.h sys/lock.h \ |
| 1507 | 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] | 1508 | sys/un.h sys/utsname.h sys/wait.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1509 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1510 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1511 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1512 | echo "configure:1513: checking for $ac_hdr" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1513 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1514 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1515 | else |
| 1516 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1517 | #line 1518 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1518 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1519 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1520 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1521 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1522 | { (eval echo configure:1523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1523 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1524 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1525 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1526 | eval "ac_cv_header_$ac_safe=yes" |
| 1527 | else |
| 1528 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1529 | echo "configure: failed program was:" >&5 |
| 1530 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1531 | rm -rf conftest* |
| 1532 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1533 | fi |
| 1534 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1535 | fi |
| 1536 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1537 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1538 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1539 | cat >> confdefs.h <<EOF |
| 1540 | #define $ac_tr_hdr 1 |
| 1541 | EOF |
| 1542 | |
| 1543 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1544 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1545 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1546 | done |
| 1547 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1548 | ac_header_dirent=no |
| 1549 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1550 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1551 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1552 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1553 | echo "configure:1554: checking for $ac_hdr that defines DIR" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1554 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
| 1555 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1556 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1557 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1558 | #line 1559 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1559 | #include "confdefs.h" |
| 1560 | #include <sys/types.h> |
| 1561 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1562 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1563 | DIR *dirp = 0; |
| 1564 | ; return 0; } |
| 1565 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1566 | if { (eval echo configure:1567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1567 | rm -rf conftest* |
| 1568 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1569 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1570 | echo "configure: failed program was:" >&5 |
| 1571 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1572 | rm -rf conftest* |
| 1573 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1574 | fi |
| 1575 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1576 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1577 | 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] | 1578 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1579 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1580 | cat >> confdefs.h <<EOF |
| 1581 | #define $ac_tr_hdr 1 |
| 1582 | EOF |
| 1583 | ac_header_dirent=$ac_hdr; break |
| 1584 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1585 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1586 | fi |
| 1587 | done |
| 1588 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1589 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1590 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1591 | echo "configure:1592: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1592 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1593 | 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] | 1594 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1595 | else |
| 1596 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1597 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1598 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1599 | #line 1600 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1600 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1601 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1602 | /* We use char because int might match the return type of a gcc2 |
| 1603 | builtin and then its argument prototype would still apply. */ |
| 1604 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1605 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1606 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1607 | opendir() |
| 1608 | ; return 0; } |
| 1609 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1610 | if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1611 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1612 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1613 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1614 | echo "configure: failed program was:" >&5 |
| 1615 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1616 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1617 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1618 | fi |
| 1619 | rm -f conftest* |
| 1620 | LIBS="$ac_save_LIBS" |
| 1621 | |
| 1622 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1623 | 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] | 1624 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1625 | LIBS="$LIBS -ldir" |
| 1626 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1627 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1628 | fi |
| 1629 | |
| 1630 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1631 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1632 | echo "configure:1633: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1633 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1634 | 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] | 1635 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1636 | else |
| 1637 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1638 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1639 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1640 | #line 1641 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1641 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1642 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1643 | /* We use char because int might match the return type of a gcc2 |
| 1644 | builtin and then its argument prototype would still apply. */ |
| 1645 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1646 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1647 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1648 | opendir() |
| 1649 | ; return 0; } |
| 1650 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1651 | if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1652 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1653 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1654 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1655 | echo "configure: failed program was:" >&5 |
| 1656 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1657 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1658 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1659 | fi |
| 1660 | rm -f conftest* |
| 1661 | LIBS="$ac_save_LIBS" |
| 1662 | |
| 1663 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1664 | 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] | 1665 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1666 | LIBS="$LIBS -lx" |
| 1667 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1668 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1669 | fi |
| 1670 | |
| 1671 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1672 | |
| 1673 | |
| 1674 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1675 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1676 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1677 | echo "configure:1678: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1678 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1679 | #line 1680 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1680 | #include "confdefs.h" |
| 1681 | #include <time.h> |
| 1682 | EOF |
| 1683 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1684 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1685 | rm -rf conftest* |
| 1686 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1687 | else |
| 1688 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1689 | cat >> confdefs.h <<\EOF |
| 1690 | #define clock_t long |
| 1691 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1692 | |
| 1693 | fi |
| 1694 | rm -f conftest* |
| 1695 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1696 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1697 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1698 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1699 | cat >> confdefs.h <<\EOF |
| 1700 | #if defined(SCO_DS) |
| 1701 | #undef _OFF_T |
| 1702 | #endif |
| 1703 | EOF |
| 1704 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1705 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1706 | echo "configure:1707: checking for mode_t" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1707 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
| 1708 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1709 | else |
| 1710 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1711 | #line 1712 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1712 | #include "confdefs.h" |
| 1713 | #include <sys/types.h> |
| 1714 | #if STDC_HEADERS |
| 1715 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1716 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1717 | #endif |
| 1718 | EOF |
| 1719 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1720 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1721 | rm -rf conftest* |
| 1722 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1723 | else |
| 1724 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1725 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1726 | fi |
| 1727 | rm -f conftest* |
| 1728 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1729 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1730 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1731 | if test $ac_cv_type_mode_t = no; then |
| 1732 | cat >> confdefs.h <<\EOF |
| 1733 | #define mode_t int |
| 1734 | EOF |
| 1735 | |
| 1736 | fi |
| 1737 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1738 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1739 | echo "configure:1740: checking for off_t" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1740 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 1741 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1742 | else |
| 1743 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1744 | #line 1745 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1745 | #include "confdefs.h" |
| 1746 | #include <sys/types.h> |
| 1747 | #if STDC_HEADERS |
| 1748 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1749 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1750 | #endif |
| 1751 | EOF |
| 1752 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1753 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1754 | rm -rf conftest* |
| 1755 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1756 | else |
| 1757 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1758 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1759 | fi |
| 1760 | rm -f conftest* |
| 1761 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1762 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1763 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1764 | if test $ac_cv_type_off_t = no; then |
| 1765 | cat >> confdefs.h <<\EOF |
| 1766 | #define off_t long |
| 1767 | EOF |
| 1768 | |
| 1769 | fi |
| 1770 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1771 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1772 | echo "configure:1773: checking for pid_t" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1773 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
| 1774 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1775 | else |
| 1776 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1777 | #line 1778 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1778 | #include "confdefs.h" |
| 1779 | #include <sys/types.h> |
| 1780 | #if STDC_HEADERS |
| 1781 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1782 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1783 | #endif |
| 1784 | EOF |
| 1785 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1786 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1787 | rm -rf conftest* |
| 1788 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1789 | else |
| 1790 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1791 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1792 | fi |
| 1793 | rm -f conftest* |
| 1794 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1795 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1796 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1797 | if test $ac_cv_type_pid_t = no; then |
| 1798 | cat >> confdefs.h <<\EOF |
| 1799 | #define pid_t int |
| 1800 | EOF |
| 1801 | |
| 1802 | fi |
| 1803 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1804 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1805 | echo "configure:1806: checking return type of signal handlers" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1806 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
| 1807 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1808 | else |
| 1809 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1810 | #line 1811 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1811 | #include "confdefs.h" |
| 1812 | #include <sys/types.h> |
| 1813 | #include <signal.h> |
| 1814 | #ifdef signal |
| 1815 | #undef signal |
| 1816 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1817 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1818 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1819 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1820 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1821 | #endif |
| 1822 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1823 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1824 | int i; |
| 1825 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1826 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1827 | if { (eval echo configure:1828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1828 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1829 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1830 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1831 | echo "configure: failed program was:" >&5 |
| 1832 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1833 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1834 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1835 | fi |
| 1836 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1837 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1838 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1839 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1840 | cat >> confdefs.h <<EOF |
| 1841 | #define RETSIGTYPE $ac_cv_type_signal |
| 1842 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1843 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1844 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1845 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1846 | echo "configure:1847: checking for size_t" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1847 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 1848 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1849 | else |
| 1850 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1851 | #line 1852 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1852 | #include "confdefs.h" |
| 1853 | #include <sys/types.h> |
| 1854 | #if STDC_HEADERS |
| 1855 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1856 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1857 | #endif |
| 1858 | EOF |
| 1859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1860 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1861 | rm -rf conftest* |
| 1862 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1863 | else |
| 1864 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1865 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1866 | fi |
| 1867 | rm -f conftest* |
| 1868 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1869 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1870 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1871 | if test $ac_cv_type_size_t = no; then |
| 1872 | cat >> confdefs.h <<\EOF |
| 1873 | #define size_t unsigned |
| 1874 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1875 | |
| 1876 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1877 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1878 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1879 | echo "configure:1880: checking for uid_t in sys/types.h" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1880 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
| 1881 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1882 | else |
| 1883 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1884 | #line 1885 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1885 | #include "confdefs.h" |
| 1886 | #include <sys/types.h> |
| 1887 | EOF |
| 1888 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1889 | egrep "uid_t" >/dev/null 2>&1; then |
| 1890 | rm -rf conftest* |
| 1891 | ac_cv_type_uid_t=yes |
| 1892 | else |
| 1893 | rm -rf conftest* |
| 1894 | ac_cv_type_uid_t=no |
| 1895 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1896 | rm -f conftest* |
| 1897 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1898 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1899 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1900 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1901 | if test $ac_cv_type_uid_t = no; then |
| 1902 | cat >> confdefs.h <<\EOF |
| 1903 | #define uid_t int |
| 1904 | EOF |
| 1905 | |
| 1906 | cat >> confdefs.h <<\EOF |
| 1907 | #define gid_t int |
| 1908 | EOF |
| 1909 | |
| 1910 | fi |
| 1911 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1912 | |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1913 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1914 | echo "configure:1915: checking size of int" >&5 |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1915 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 1916 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1917 | else |
| 1918 | if test "$cross_compiling" = yes; then |
| 1919 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1920 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1921 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1922 | #line 1923 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1923 | #include "confdefs.h" |
| 1924 | #include <stdio.h> |
| 1925 | main() |
| 1926 | { |
| 1927 | FILE *f=fopen("conftestval", "w"); |
| 1928 | if (!f) exit(1); |
| 1929 | fprintf(f, "%d\n", sizeof(int)); |
| 1930 | exit(0); |
| 1931 | } |
| 1932 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1933 | if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1934 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1935 | ac_cv_sizeof_int=`cat conftestval` |
| 1936 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1937 | echo "configure: failed program was:" >&5 |
| 1938 | cat conftest.$ac_ext >&5 |
| 1939 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1940 | ac_cv_sizeof_int=0 |
| 1941 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1942 | rm -fr conftest* |
| 1943 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1944 | |
| 1945 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1946 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 1947 | cat >> confdefs.h <<EOF |
| 1948 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 1949 | EOF |
| 1950 | |
| 1951 | |
| 1952 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1953 | echo "configure:1954: checking size of long" >&5 |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1954 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 1955 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1956 | else |
| 1957 | if test "$cross_compiling" = yes; then |
| 1958 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1959 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1960 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1961 | #line 1962 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1962 | #include "confdefs.h" |
| 1963 | #include <stdio.h> |
| 1964 | main() |
| 1965 | { |
| 1966 | FILE *f=fopen("conftestval", "w"); |
| 1967 | if (!f) exit(1); |
| 1968 | fprintf(f, "%d\n", sizeof(long)); |
| 1969 | exit(0); |
| 1970 | } |
| 1971 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1972 | if { (eval echo configure:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1973 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1974 | ac_cv_sizeof_long=`cat conftestval` |
| 1975 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1976 | echo "configure: failed program was:" >&5 |
| 1977 | cat conftest.$ac_ext >&5 |
| 1978 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1979 | ac_cv_sizeof_long=0 |
| 1980 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1981 | rm -fr conftest* |
| 1982 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1983 | |
| 1984 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1985 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 1986 | cat >> confdefs.h <<EOF |
| 1987 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 1988 | EOF |
| 1989 | |
| 1990 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 1991 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1992 | echo "configure:1993: checking size of void *" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 1993 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
| 1994 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1995 | else |
| 1996 | if test "$cross_compiling" = yes; then |
| 1997 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1998 | else |
| 1999 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2000 | #line 2001 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2001 | #include "confdefs.h" |
| 2002 | #include <stdio.h> |
| 2003 | main() |
| 2004 | { |
| 2005 | FILE *f=fopen("conftestval", "w"); |
| 2006 | if (!f) exit(1); |
| 2007 | fprintf(f, "%d\n", sizeof(void *)); |
| 2008 | exit(0); |
| 2009 | } |
| 2010 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2011 | if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2012 | then |
| 2013 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2014 | else |
| 2015 | echo "configure: failed program was:" >&5 |
| 2016 | cat conftest.$ac_ext >&5 |
| 2017 | rm -fr conftest* |
| 2018 | ac_cv_sizeof_void_p=0 |
| 2019 | fi |
| 2020 | rm -fr conftest* |
| 2021 | fi |
| 2022 | |
| 2023 | fi |
| 2024 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2025 | cat >> confdefs.h <<EOF |
| 2026 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2027 | EOF |
| 2028 | |
| 2029 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2030 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2031 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2032 | echo "configure:2033: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2033 | have_long_long=no |
| 2034 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2035 | #line 2036 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2036 | #include "confdefs.h" |
| 2037 | |
| 2038 | int main() { |
| 2039 | long long x; x = (long long)0; |
| 2040 | ; return 0; } |
| 2041 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2042 | if { (eval echo configure:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2043 | rm -rf conftest* |
| 2044 | cat >> confdefs.h <<\EOF |
| 2045 | #define HAVE_LONG_LONG 1 |
| 2046 | EOF |
| 2047 | have_long_long=yes |
| 2048 | else |
| 2049 | echo "configure: failed program was:" >&5 |
| 2050 | cat conftest.$ac_ext >&5 |
| 2051 | fi |
| 2052 | rm -f conftest* |
| 2053 | echo "$ac_t""$have_long_long" 1>&6 |
| 2054 | if test $have_long_long = yes ; then |
| 2055 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2056 | echo "configure:2057: checking size of long long" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2057 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 2058 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2059 | else |
| 2060 | if test "$cross_compiling" = yes; then |
| 2061 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2062 | else |
| 2063 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2064 | #line 2065 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2065 | #include "confdefs.h" |
| 2066 | #include <stdio.h> |
| 2067 | main() |
| 2068 | { |
| 2069 | FILE *f=fopen("conftestval", "w"); |
| 2070 | if (!f) exit(1); |
| 2071 | fprintf(f, "%d\n", sizeof(long long)); |
| 2072 | exit(0); |
| 2073 | } |
| 2074 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2075 | if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2076 | then |
| 2077 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2078 | else |
| 2079 | echo "configure: failed program was:" >&5 |
| 2080 | cat conftest.$ac_ext >&5 |
| 2081 | rm -fr conftest* |
| 2082 | ac_cv_sizeof_long_long=0 |
| 2083 | fi |
| 2084 | rm -fr conftest* |
| 2085 | fi |
| 2086 | |
| 2087 | fi |
| 2088 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2089 | cat >> confdefs.h <<EOF |
| 2090 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2091 | EOF |
| 2092 | |
| 2093 | |
| 2094 | fi |
| 2095 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2096 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2097 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2098 | echo "configure:2099: checking size of off_t" >&5 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2099 | if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then |
| 2100 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2101 | else |
| 2102 | if test "$cross_compiling" = yes; then |
| 2103 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2104 | else |
| 2105 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2106 | #line 2107 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2107 | #include "confdefs.h" |
| 2108 | #include <stdio.h> |
| 2109 | #include <sys/types.h> |
| 2110 | main() |
| 2111 | { |
| 2112 | FILE *f=fopen("conftestval", "w"); |
| 2113 | if (!f) exit(1); |
| 2114 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2115 | exit(0); |
| 2116 | } |
| 2117 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2118 | if { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2119 | then |
| 2120 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2121 | else |
| 2122 | echo "configure: failed program was:" >&5 |
| 2123 | cat conftest.$ac_ext >&5 |
| 2124 | rm -fr conftest* |
| 2125 | ac_cv_sizeof_off_t=0 |
| 2126 | fi |
| 2127 | rm -fr conftest* |
| 2128 | fi |
| 2129 | |
| 2130 | |
| 2131 | fi |
| 2132 | |
| 2133 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2134 | cat >> confdefs.h <<EOF |
| 2135 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2136 | EOF |
| 2137 | |
| 2138 | |
| 2139 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2140 | echo "configure:2141: checking whether to enable large file support" >&5 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2141 | if test $have_long_long = yes -a \ |
| 2142 | $ac_cv_sizeof_off_t -gt $ac_cv_sizeof_long -a \ |
| 2143 | $ac_cv_sizeof_long_long -ge $ac_cv_sizeof_off_t; then |
| 2144 | cat >> confdefs.h <<\EOF |
| 2145 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2146 | EOF |
| 2147 | |
| 2148 | echo "$ac_t""yes" 1>&6 |
| 2149 | else |
| 2150 | echo "$ac_t""no" 1>&6 |
| 2151 | fi |
| 2152 | |
| 2153 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2154 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2155 | |
| 2156 | case $ac_sys_system/$ac_sys_release in |
| 2157 | next/4*) |
| 2158 | ns_undef_sym='__environ' |
| 2159 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2160 | next/5*) |
| 2161 | ns_undef_sym='_environ' |
| 2162 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2163 | esac |
| 2164 | |
| 2165 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
| 2166 | echo "configure:2167: checking for --with-next-framework" >&5 |
| 2167 | if test "$with_next_framework" |
| 2168 | then |
| 2169 | OPT="$OPT -fno-common" |
| 2170 | # -U __environ is needed since bundles don't have access |
| 2171 | # to crt0 when built but will always be linked against it |
| 2172 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2173 | cat >> confdefs.h <<\EOF |
| 2174 | #define WITH_NEXT_FRAMEWORK 1 |
| 2175 | EOF |
| 2176 | |
| 2177 | echo "$ac_t""yes" 1>&6 |
| 2178 | else |
| 2179 | echo "$ac_t""no" 1>&6 |
| 2180 | fi |
| 2181 | |
| 2182 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
| 2183 | echo "configure:2184: checking for --with-dyld" >&5 |
| 2184 | if test "$with_next_framework" -o "$with_dyld" |
| 2185 | then |
| 2186 | if test "$with_dyld" |
| 2187 | then |
| 2188 | echo "$ac_t""yes" 1>&6 |
| 2189 | else |
| 2190 | echo "$ac_t""required for framework build" 1>&6 |
| 2191 | fi |
| 2192 | cat >> confdefs.h <<\EOF |
| 2193 | #define WITH_DYLD 1 |
| 2194 | EOF |
| 2195 | |
| 2196 | ns_dyld='set' |
| 2197 | else |
| 2198 | echo "$ac_t""no" 1>&6 |
| 2199 | fi |
| 2200 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2201 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2202 | |
| 2203 | |
| 2204 | |
| 2205 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2206 | # SO is the extension of shared libraries `(including the dot!) |
| 2207 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2208 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2209 | echo "configure:2210: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2210 | if test -z "$SO" |
| 2211 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2212 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2213 | hp*|HP*) SO=.sl;; |
| 2214 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2215 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2216 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2217 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2218 | # LDSHARED is the ld *command* used to create shared library |
| 2219 | # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2220 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2221 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2222 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2223 | echo "configure:2224: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2224 | if test -z "$LDSHARED" |
| 2225 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2226 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 2227 | AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2228 | BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2229 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2230 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2231 | SunOS/4*) LDSHARED="ld";; |
| 2232 | SunOS/5*) LDSHARED="ld -G";; |
| 2233 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2234 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2235 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2236 | next/*) |
| 2237 | if test "$ns_dyld" |
| 2238 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind' |
| 2239 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2240 | fi |
| 2241 | if test "$with_next_framework" ; then |
| 2242 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2243 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2244 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2245 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2246 | FreeBSD*/3*) LDSHARED="gcc -shared";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2247 | FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";; |
| 2248 | NetBSD*) |
| 2249 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2250 | then |
| 2251 | LDSHARED="cc -shared" |
| 2252 | else |
| 2253 | LDSHARED="ld -Bshareable" |
| 2254 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2255 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2256 | *) LDSHARED="ld";; |
| 2257 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2258 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2259 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2260 | # CCSHARED are the C *flags* used to create objects to go into a shared |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2261 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2262 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2263 | echo "configure:2264: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2264 | if test -z "$CCSHARED" |
| 2265 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2266 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2267 | hp*|HP*) if test "$GCC" = yes; |
| 2268 | then CCSHARED="-fpic"; |
| 2269 | else CCSHARED="+z"; |
| 2270 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2271 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2272 | FreeBSD*|OpenBSD*) CCSHARED="-fpic";; |
| 2273 | NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2274 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2275 | IRIX*/6*) case $CC in |
| 2276 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2277 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2278 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2279 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2280 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2281 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2282 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2283 | # the python executable -- this is only needed for a few systems |
| 2284 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2285 | echo "configure:2286: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2286 | if test -z "$LINKFORSHARED" |
| 2287 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2288 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 69f6580 | 1998-03-03 21:47:00 +0000 | [diff] [blame] | 2289 | AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2290 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2291 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2292 | FreeBSD/3*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2293 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2294 | # -u libsys_s pulls in all symbols in libsys |
| 2295 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2296 | # -u __dummy makes the linker aware of the objc runtime |
| 2297 | # in System.framework; otherwise, __objcInit (referenced in |
| 2298 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2299 | # loading of any modules which reference it in System.framework |
| 2300 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2301 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2302 | NetBSD*) |
| 2303 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2304 | then |
| 2305 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2306 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2307 | SunOS/5*) case $CC in |
| 2308 | *gcc*) |
| 2309 | if $CC -Xlinker -V 2>/dev/null | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2310 | then |
| 2311 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2312 | fi;; |
| 2313 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2314 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2315 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2316 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2317 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2318 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2319 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2320 | echo "configure:2321: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2321 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2322 | 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] | 2323 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2324 | else |
| 2325 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2326 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2327 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2328 | #line 2329 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2329 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2330 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2331 | /* We use char because int might match the return type of a gcc2 |
| 2332 | builtin and then its argument prototype would still apply. */ |
| 2333 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2334 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2335 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2336 | dlopen() |
| 2337 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2338 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2339 | if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2340 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2341 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2342 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2343 | echo "configure: failed program was:" >&5 |
| 2344 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2345 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2346 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2347 | fi |
| 2348 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2349 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2350 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2351 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2352 | 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] | 2353 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2354 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2355 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2356 | cat >> confdefs.h <<EOF |
| 2357 | #define $ac_tr_lib 1 |
| 2358 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2359 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2360 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2361 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2362 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2363 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2364 | fi |
| 2365 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2366 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2367 | echo "configure:2368: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2368 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2369 | 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] | 2370 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2371 | else |
| 2372 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2373 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2374 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2375 | #line 2376 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2376 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2377 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2378 | /* We use char because int might match the return type of a gcc2 |
| 2379 | builtin and then its argument prototype would still apply. */ |
| 2380 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2381 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2382 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2383 | shl_load() |
| 2384 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2385 | EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2386 | if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2387 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2388 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2389 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2390 | echo "configure: failed program was:" >&5 |
| 2391 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2392 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2393 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2394 | fi |
| 2395 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2396 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2397 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2398 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2399 | 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] | 2400 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2401 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2402 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2403 | cat >> confdefs.h <<EOF |
| 2404 | #define $ac_tr_lib 1 |
| 2405 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2406 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2407 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2408 | |
| 2409 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2410 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2411 | fi |
| 2412 | # Dynamic linking for HP-UX |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2413 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 2414 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2415 | # BeOS' sockets are stashed in libnet. |
| 2416 | case "$ac_sys_system" in |
| 2417 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2418 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2419 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2420 | echo "configure:2421: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2421 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2422 | 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] | 2423 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2424 | else |
| 2425 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2426 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2427 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2428 | #line 2429 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2429 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2430 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2431 | /* We use char because int might match the return type of a gcc2 |
| 2432 | builtin and then its argument prototype would still apply. */ |
| 2433 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2434 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2435 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2436 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2437 | ; return 0; } |
| 2438 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2439 | if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2440 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2441 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2442 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2443 | echo "configure: failed program was:" >&5 |
| 2444 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2445 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2446 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2447 | fi |
| 2448 | rm -f conftest* |
| 2449 | LIBS="$ac_save_LIBS" |
| 2450 | |
| 2451 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2452 | 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] | 2453 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2454 | LIBS="-lnsl $LIBS" |
| 2455 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2456 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2457 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2458 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2459 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2460 | echo "configure:2461: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2461 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2462 | 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] | 2463 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2464 | else |
| 2465 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2466 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2467 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2468 | #line 2469 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2469 | #include "confdefs.h" |
| 2470 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2471 | /* We use char because int might match the return type of a gcc2 |
| 2472 | builtin and then its argument prototype would still apply. */ |
| 2473 | char socket(); |
| 2474 | |
| 2475 | int main() { |
| 2476 | socket() |
| 2477 | ; return 0; } |
| 2478 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2479 | if { (eval echo configure:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2480 | rm -rf conftest* |
| 2481 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2482 | else |
| 2483 | echo "configure: failed program was:" >&5 |
| 2484 | cat conftest.$ac_ext >&5 |
| 2485 | rm -rf conftest* |
| 2486 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2487 | fi |
| 2488 | rm -f conftest* |
| 2489 | LIBS="$ac_save_LIBS" |
| 2490 | |
| 2491 | fi |
| 2492 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2493 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2494 | LIBS="-lsocket $LIBS" |
| 2495 | else |
| 2496 | echo "$ac_t""no" 1>&6 |
| 2497 | fi |
| 2498 | # SVR4 sockets |
| 2499 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2500 | echo "configure:2501: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2501 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
| 2502 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2503 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2504 | else |
| 2505 | ac_save_LIBS="$LIBS" |
| 2506 | LIBS="-lnet $LIBS $LIBS" |
| 2507 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2508 | #line 2509 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2509 | #include "confdefs.h" |
| 2510 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2511 | /* We use char because int might match the return type of a gcc2 |
| 2512 | builtin and then its argument prototype would still apply. */ |
| 2513 | char socket(); |
| 2514 | |
| 2515 | int main() { |
| 2516 | socket() |
| 2517 | ; return 0; } |
| 2518 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2519 | if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2520 | rm -rf conftest* |
| 2521 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2522 | else |
| 2523 | echo "configure: failed program was:" >&5 |
| 2524 | cat conftest.$ac_ext >&5 |
| 2525 | rm -rf conftest* |
| 2526 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2527 | fi |
| 2528 | rm -f conftest* |
| 2529 | LIBS="$ac_save_LIBS" |
| 2530 | |
| 2531 | fi |
| 2532 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2533 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2534 | LIBS="-lnet $LIBS" |
| 2535 | else |
| 2536 | echo "$ac_t""no" 1>&6 |
| 2537 | fi |
| 2538 | # BeOS |
| 2539 | ;; |
| 2540 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2541 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2542 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2543 | echo "configure:2544: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2544 | # Check whether --with-libs or --without-libs was given. |
| 2545 | if test "${with_libs+set}" = set; then |
| 2546 | withval="$with_libs" |
| 2547 | |
| 2548 | echo "$ac_t""$withval" 1>&6 |
| 2549 | LIBS="$withval $LIBS" |
| 2550 | |
| 2551 | else |
| 2552 | echo "$ac_t""no" 1>&6 |
| 2553 | fi |
| 2554 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2555 | |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2556 | echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2557 | echo "configure:2558: checking for --with(out)-readline" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2558 | # Check whether --with-readline or --without-readline was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2559 | if test "${with_readline+set}" = set; then |
| 2560 | withval="$with_readline" |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2561 | echo "$ac_t""$withval" 1>&6 |
| 2562 | { echo "configure: error: --with(out)-readline is obsolete" 1>&2; exit 1; } |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2563 | else |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2564 | echo "$ac_t""not specified." 1>&6 |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2565 | fi |
| 2566 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2567 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2568 | |
| 2569 | USE_THREAD_MODULE="#" |
| 2570 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2571 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2572 | echo "configure:2573: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2573 | |
| 2574 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 2575 | if test "${with_dec_threads+set}" = set; then |
| 2576 | withval="$with_dec_threads" |
| 2577 | echo "$ac_t""$withval" 1>&6 |
| 2578 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2579 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2580 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2581 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2582 | else |
| 2583 | echo "$ac_t""no" 1>&6 |
| 2584 | fi |
| 2585 | |
| 2586 | |
| 2587 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2588 | echo "configure:2589: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2589 | # Check whether --with-threads or --without-threads was given. |
| 2590 | if test "${with_threads+set}" = set; then |
| 2591 | withval="$with_threads" |
| 2592 | echo "$ac_t""$withval" 1>&6 |
| 2593 | if test "${with_thread+set}" != set; then |
| 2594 | with_thread="$withval"; |
| 2595 | fi |
| 2596 | else |
| 2597 | echo "$ac_t""no" 1>&6 |
| 2598 | fi |
| 2599 | |
| 2600 | |
| 2601 | echo $ac_n "checking for --with-thread""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2602 | echo "configure:2603: checking for --with-thread" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2603 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2604 | if test "${with_thread+set}" = set; then |
| 2605 | withval="$with_thread" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2606 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2607 | USE_THREAD_MODULE= |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2608 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2609 | if test -d "$withval" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2610 | then LDFLAGS="$LDFLAGS -L$withval" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2611 | fi |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 2612 | cat >> confdefs.h <<\EOF |
| 2613 | #define _REENTRANT 1 |
| 2614 | EOF |
| 2615 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2616 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2617 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2618 | echo "configure:2619: checking for mach/cthreads.h" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2619 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2620 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2621 | else |
| 2622 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2623 | #line 2624 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2624 | #include "confdefs.h" |
| 2625 | #include <mach/cthreads.h> |
| 2626 | EOF |
| 2627 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2628 | { (eval echo configure:2629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2629 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2630 | if test -z "$ac_err"; then |
| 2631 | rm -rf conftest* |
| 2632 | eval "ac_cv_header_$ac_safe=yes" |
| 2633 | else |
| 2634 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2635 | echo "configure: failed program was:" >&5 |
| 2636 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2637 | rm -rf conftest* |
| 2638 | eval "ac_cv_header_$ac_safe=no" |
| 2639 | fi |
| 2640 | rm -f conftest* |
| 2641 | fi |
| 2642 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2643 | echo "$ac_t""yes" 1>&6 |
| 2644 | cat >> confdefs.h <<\EOF |
| 2645 | #define WITH_THREAD 1 |
| 2646 | EOF |
| 2647 | |
| 2648 | cat >> confdefs.h <<\EOF |
| 2649 | #define C_THREADS 1 |
| 2650 | EOF |
| 2651 | |
| 2652 | LIBOBJS="$LIBOBJS thread.o" |
| 2653 | else |
| 2654 | echo "$ac_t""no" 1>&6 |
| 2655 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2656 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2657 | echo "configure:2658: checking for pthread_detach" >&5 |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2658 | if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2659 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2660 | else |
| 2661 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2662 | #line 2663 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2663 | #include "confdefs.h" |
| 2664 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2665 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2666 | #include <assert.h> |
| 2667 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2668 | /* We use char because int might match the return type of a gcc2 |
| 2669 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2670 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2671 | |
| 2672 | int main() { |
| 2673 | |
| 2674 | /* The GNU C library defines this for functions which it implements |
| 2675 | to always fail with ENOSYS. Some functions are actually named |
| 2676 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2677 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2678 | choke me |
| 2679 | #else |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2680 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2681 | #endif |
| 2682 | |
| 2683 | ; return 0; } |
| 2684 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2685 | if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2686 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2687 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2688 | else |
| 2689 | echo "configure: failed program was:" >&5 |
| 2690 | cat conftest.$ac_ext >&5 |
| 2691 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2692 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2693 | fi |
| 2694 | rm -f conftest* |
| 2695 | fi |
| 2696 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2697 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2698 | echo "$ac_t""yes" 1>&6 |
| 2699 | cat >> confdefs.h <<\EOF |
| 2700 | #define WITH_THREAD 1 |
| 2701 | EOF |
| 2702 | |
| 2703 | cat >> confdefs.h <<\EOF |
| 2704 | #define _POSIX_THREADS 1 |
| 2705 | EOF |
| 2706 | |
| 2707 | LIBOBJS="$LIBOBJS thread.o" |
| 2708 | else |
| 2709 | echo "$ac_t""no" 1>&6 |
| 2710 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2711 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
| 2712 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2713 | echo "configure:2714: checking for kernel/OS.h" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2714 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2715 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2716 | else |
| 2717 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2718 | #line 2719 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2719 | #include "confdefs.h" |
| 2720 | #include <kernel/OS.h> |
| 2721 | EOF |
| 2722 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2723 | { (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2724 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2725 | if test -z "$ac_err"; then |
| 2726 | rm -rf conftest* |
| 2727 | eval "ac_cv_header_$ac_safe=yes" |
| 2728 | else |
| 2729 | echo "$ac_err" >&5 |
| 2730 | echo "configure: failed program was:" >&5 |
| 2731 | cat conftest.$ac_ext >&5 |
| 2732 | rm -rf conftest* |
| 2733 | eval "ac_cv_header_$ac_safe=no" |
| 2734 | fi |
| 2735 | rm -f conftest* |
| 2736 | fi |
| 2737 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2738 | echo "$ac_t""yes" 1>&6 |
| 2739 | cat >> confdefs.h <<\EOF |
| 2740 | #define WITH_THREAD 1 |
| 2741 | EOF |
| 2742 | |
| 2743 | cat >> confdefs.h <<\EOF |
| 2744 | #define BEOS_THREADS 1 |
| 2745 | EOF |
| 2746 | |
| 2747 | LIBOBJS="$LIBOBJS thread.o" |
| 2748 | else |
| 2749 | echo "$ac_t""no" 1>&6 |
| 2750 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2751 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2752 | echo "configure:2753: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2753 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2754 | 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] | 2755 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2756 | else |
| 2757 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2758 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2759 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2760 | #line 2761 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2761 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2762 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2763 | /* We use char because int might match the return type of a gcc2 |
| 2764 | builtin and then its argument prototype would still apply. */ |
| 2765 | char pthread_create(); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2766 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2767 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2768 | pthread_create() |
| 2769 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2770 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2771 | if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2772 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2773 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2774 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2775 | echo "configure: failed program was:" >&5 |
| 2776 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2777 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2778 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2779 | fi |
| 2780 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2781 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2782 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2783 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2784 | 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] | 2785 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2786 | cat >> confdefs.h <<\EOF |
| 2787 | #define WITH_THREAD 1 |
| 2788 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2789 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2790 | cat >> confdefs.h <<\EOF |
| 2791 | #define _POSIX_THREADS 1 |
| 2792 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2793 | |
| 2794 | LIBS="$LIBS -lpthreads" |
| 2795 | LIBOBJS="$LIBOBJS thread.o" |
| 2796 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2797 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2798 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2799 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2800 | echo "configure:2801: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2801 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2802 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2803 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2804 | else |
| 2805 | ac_save_LIBS="$LIBS" |
| 2806 | LIBS="-lpthread $LIBS" |
| 2807 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2808 | #line 2809 "configure" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2809 | #include "confdefs.h" |
| 2810 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2811 | /* We use char because int might match the return type of a gcc2 |
| 2812 | builtin and then its argument prototype would still apply. */ |
| 2813 | char pthread_create(); |
| 2814 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2815 | int main() { |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2816 | pthread_create() |
| 2817 | ; return 0; } |
| 2818 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2819 | if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2820 | rm -rf conftest* |
| 2821 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2822 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2823 | echo "configure: failed program was:" >&5 |
| 2824 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2825 | rm -rf conftest* |
| 2826 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2827 | fi |
| 2828 | rm -f conftest* |
| 2829 | LIBS="$ac_save_LIBS" |
| 2830 | |
| 2831 | fi |
| 2832 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2833 | echo "$ac_t""yes" 1>&6 |
| 2834 | cat >> confdefs.h <<\EOF |
| 2835 | #define WITH_THREAD 1 |
| 2836 | EOF |
| 2837 | |
| 2838 | cat >> confdefs.h <<\EOF |
| 2839 | #define _POSIX_THREADS 1 |
| 2840 | EOF |
| 2841 | |
| 2842 | LIBS="$LIBS -lpthread" |
| 2843 | LIBOBJS="$LIBOBJS thread.o" |
| 2844 | else |
| 2845 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2846 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 2847 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2848 | echo "configure:2849: checking for pthread_create in -lc_r" >&5 |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 2849 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
| 2850 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2851 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2852 | else |
| 2853 | ac_save_LIBS="$LIBS" |
| 2854 | LIBS="-lc_r $LIBS" |
| 2855 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2856 | #line 2857 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 2857 | #include "confdefs.h" |
| 2858 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2859 | /* We use char because int might match the return type of a gcc2 |
| 2860 | builtin and then its argument prototype would still apply. */ |
| 2861 | char pthread_create(); |
| 2862 | |
| 2863 | int main() { |
| 2864 | pthread_create() |
| 2865 | ; return 0; } |
| 2866 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2867 | if { (eval echo configure:2868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 2868 | rm -rf conftest* |
| 2869 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2870 | else |
| 2871 | echo "configure: failed program was:" >&5 |
| 2872 | cat conftest.$ac_ext >&5 |
| 2873 | rm -rf conftest* |
| 2874 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2875 | fi |
| 2876 | rm -f conftest* |
| 2877 | LIBS="$ac_save_LIBS" |
| 2878 | |
| 2879 | fi |
| 2880 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2881 | echo "$ac_t""yes" 1>&6 |
| 2882 | cat >> confdefs.h <<\EOF |
| 2883 | #define WITH_THREAD 1 |
| 2884 | EOF |
| 2885 | |
| 2886 | cat >> confdefs.h <<\EOF |
| 2887 | #define _POSIX_THREADS 1 |
| 2888 | EOF |
| 2889 | |
| 2890 | LIBS="$LIBS -lc_r" |
| 2891 | LIBOBJS="$LIBOBJS thread.o" |
| 2892 | else |
| 2893 | echo "$ac_t""no" 1>&6 |
| 2894 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2895 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2896 | echo "configure:2897: checking for __d6_pthread_create in -lthread" >&5 |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2897 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
| 2898 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2899 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2900 | else |
| 2901 | ac_save_LIBS="$LIBS" |
| 2902 | LIBS="-lthread $LIBS" |
| 2903 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2904 | #line 2905 "configure" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2905 | #include "confdefs.h" |
| 2906 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2907 | /* We use char because int might match the return type of a gcc2 |
| 2908 | builtin and then its argument prototype would still apply. */ |
| 2909 | char __d6_pthread_create(); |
| 2910 | |
| 2911 | int main() { |
| 2912 | __d6_pthread_create() |
| 2913 | ; return 0; } |
| 2914 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2915 | if { (eval echo configure:2916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2916 | rm -rf conftest* |
| 2917 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2918 | else |
| 2919 | echo "configure: failed program was:" >&5 |
| 2920 | cat conftest.$ac_ext >&5 |
| 2921 | rm -rf conftest* |
| 2922 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2923 | fi |
| 2924 | rm -f conftest* |
| 2925 | LIBS="$ac_save_LIBS" |
| 2926 | |
| 2927 | fi |
| 2928 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2929 | echo "$ac_t""yes" 1>&6 |
| 2930 | cat >> confdefs.h <<\EOF |
| 2931 | #define WITH_THREAD 1 |
| 2932 | EOF |
| 2933 | |
| 2934 | cat >> confdefs.h <<\EOF |
| 2935 | #define _POSIX_THREADS 1 |
| 2936 | EOF |
| 2937 | |
| 2938 | LIBS="$LIBS -lthread" |
| 2939 | LIBOBJS="$LIBOBJS thread.o" |
| 2940 | else |
| 2941 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2942 | |
| 2943 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2944 | echo "configure:2945: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2945 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
| 2946 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2947 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2948 | else |
| 2949 | ac_save_LIBS="$LIBS" |
| 2950 | LIBS="-lcma $LIBS" |
| 2951 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2952 | #line 2953 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2953 | #include "confdefs.h" |
| 2954 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2955 | /* We use char because int might match the return type of a gcc2 |
| 2956 | builtin and then its argument prototype would still apply. */ |
| 2957 | char pthread_create(); |
| 2958 | |
| 2959 | int main() { |
| 2960 | pthread_create() |
| 2961 | ; return 0; } |
| 2962 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 2963 | if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2964 | rm -rf conftest* |
| 2965 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2966 | else |
| 2967 | echo "configure: failed program was:" >&5 |
| 2968 | cat conftest.$ac_ext >&5 |
| 2969 | rm -rf conftest* |
| 2970 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2971 | fi |
| 2972 | rm -f conftest* |
| 2973 | LIBS="$ac_save_LIBS" |
| 2974 | |
| 2975 | fi |
| 2976 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2977 | echo "$ac_t""yes" 1>&6 |
| 2978 | cat >> confdefs.h <<\EOF |
| 2979 | #define WITH_THREAD 1 |
| 2980 | EOF |
| 2981 | |
| 2982 | cat >> confdefs.h <<\EOF |
| 2983 | #define _POSIX_THREADS 1 |
| 2984 | EOF |
| 2985 | |
| 2986 | LIBS="$LIBS -lcma" |
| 2987 | LIBOBJS="$LIBOBJS thread.o" |
| 2988 | else |
| 2989 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2990 | fi |
| 2991 | |
| 2992 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2993 | fi |
| 2994 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2995 | fi |
| 2996 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2997 | fi |
| 2998 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 2999 | fi |
| 3000 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3001 | fi |
| 3002 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3003 | fi |
| 3004 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3005 | fi |
| 3006 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3007 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3008 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3009 | echo "configure:3010: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3010 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3011 | 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] | 3012 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3013 | else |
| 3014 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3015 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3016 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3017 | #line 3018 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3018 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3019 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3020 | /* We use char because int might match the return type of a gcc2 |
| 3021 | builtin and then its argument prototype would still apply. */ |
| 3022 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3023 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3024 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3025 | usconfig() |
| 3026 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3027 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3028 | if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3029 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3030 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3031 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3032 | echo "configure: failed program was:" >&5 |
| 3033 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3034 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3035 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3036 | fi |
| 3037 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3038 | LIBS="$ac_save_LIBS" |
| 3039 | |
| 3040 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3041 | 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] | 3042 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3043 | cat >> confdefs.h <<\EOF |
| 3044 | #define WITH_THREAD 1 |
| 3045 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3046 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3047 | LIBS="$LIBS -lmpc" |
| 3048 | LIBOBJS="$LIBOBJS thread.o" |
| 3049 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3050 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3051 | fi |
| 3052 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3053 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3054 | echo "configure:3055: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3055 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3056 | 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] | 3057 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3058 | else |
| 3059 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3060 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3061 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3062 | #line 3063 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3063 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3064 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3065 | /* We use char because int might match the return type of a gcc2 |
| 3066 | builtin and then its argument prototype would still apply. */ |
| 3067 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3068 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3069 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3070 | thr_create() |
| 3071 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3072 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3073 | if { (eval echo configure:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3074 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3075 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3076 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3077 | echo "configure: failed program was:" >&5 |
| 3078 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3079 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3080 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3081 | fi |
| 3082 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3083 | LIBS="$ac_save_LIBS" |
| 3084 | |
| 3085 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3086 | 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] | 3087 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3088 | cat >> confdefs.h <<\EOF |
| 3089 | #define WITH_THREAD 1 |
| 3090 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3091 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3092 | LIBS="$LIBS -lthread" |
| 3093 | LIBOBJS="$LIBOBJS thread.o" |
| 3094 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3095 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3096 | fi |
| 3097 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3098 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3099 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3100 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3101 | fi |
| 3102 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3103 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3104 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3105 | |
| 3106 | DLINCLDIR=/ |
| 3107 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3108 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3109 | echo "configure:3110: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3110 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3111 | if test "${with_sgi_dl+set}" = set; then |
| 3112 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3113 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3114 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3115 | cat >> confdefs.h <<\EOF |
| 3116 | #define WITH_SGI_DL 1 |
| 3117 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3118 | |
| 3119 | dldir=$withval |
| 3120 | if test -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3121 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3122 | 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] | 3123 | fi |
| 3124 | DLINCLDIR=${dldir} |
| 3125 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3126 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3127 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3128 | fi |
| 3129 | |
| 3130 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3131 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3132 | echo "configure:3133: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3133 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3134 | if test "${with_dl_dld+set}" = set; then |
| 3135 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3136 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3137 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3138 | cat >> confdefs.h <<\EOF |
| 3139 | #define WITH_DL_DLD 1 |
| 3140 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3141 | |
| 3142 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 3143 | dlddir=`echo "$withval" | sed 's/.*,//'` |
| 3144 | if test -d "$dldir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3145 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3146 | 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] | 3147 | fi |
| 3148 | DLINCLDIR=${dldir} |
| 3149 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3150 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3151 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3152 | fi |
| 3153 | |
| 3154 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3155 | # checks for library functions |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3156 | for ac_func in alarm chown clock dlopen execv flock fork \ |
| 3157 | fsync fdatasync ftime ftruncate \ |
Guido van Rossum | 1171ee6 | 1997-08-22 20:42:00 +0000 | [diff] [blame] | 3158 | gethostname_r getpeername getpgrp getpid getpwent gettimeofday getwd \ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3159 | kill link lstat mkfifo mktime nice pause plock pthread_init putenv readlink \ |
Guido van Rossum | 9601315 | 1997-10-08 22:47:52 +0000 | [diff] [blame] | 3160 | select setgid setlocale setuid setsid setpgid setpgrp setvbuf \ |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 3161 | sigaction siginterrupt sigrelse strftime strptime symlink \ |
Guido van Rossum | 08d6be4 | 1998-06-11 15:19:05 +0000 | [diff] [blame] | 3162 | tcgetpgrp tcsetpgrp timegm times truncate uname waitpid |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3163 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3164 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3165 | echo "configure:3166: checking for $ac_func" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3166 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3167 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3168 | else |
| 3169 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3170 | #line 3171 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3171 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3172 | /* System header to define __stub macros and hopefully few prototypes, |
| 3173 | which can conflict with char $ac_func(); below. */ |
| 3174 | #include <assert.h> |
| 3175 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3176 | /* We use char because int might match the return type of a gcc2 |
| 3177 | builtin and then its argument prototype would still apply. */ |
| 3178 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3179 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3180 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3181 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3182 | /* The GNU C library defines this for functions which it implements |
| 3183 | to always fail with ENOSYS. Some functions are actually named |
| 3184 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3185 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3186 | choke me |
| 3187 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3188 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3189 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3190 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3191 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3192 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3193 | if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3194 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3195 | eval "ac_cv_func_$ac_func=yes" |
| 3196 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3197 | echo "configure: failed program was:" >&5 |
| 3198 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3199 | rm -rf conftest* |
| 3200 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3201 | fi |
| 3202 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3203 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3204 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3205 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3206 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3207 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3208 | cat >> confdefs.h <<EOF |
| 3209 | #define $ac_tr_func 1 |
| 3210 | EOF |
| 3211 | |
| 3212 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3213 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3214 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3215 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3216 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3217 | |
| 3218 | # check for long file support functions |
| 3219 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3220 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3221 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3222 | echo "configure:3223: checking for $ac_func" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3223 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3224 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3225 | else |
| 3226 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3227 | #line 3228 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3228 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3229 | /* System header to define __stub macros and hopefully few prototypes, |
| 3230 | which can conflict with char $ac_func(); below. */ |
| 3231 | #include <assert.h> |
| 3232 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3233 | /* We use char because int might match the return type of a gcc2 |
| 3234 | builtin and then its argument prototype would still apply. */ |
| 3235 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3236 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3237 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3238 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3239 | /* The GNU C library defines this for functions which it implements |
| 3240 | to always fail with ENOSYS. Some functions are actually named |
| 3241 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3242 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3243 | choke me |
| 3244 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3245 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3246 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3247 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3248 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3249 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3250 | if { (eval echo configure:3251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3251 | rm -rf conftest* |
| 3252 | eval "ac_cv_func_$ac_func=yes" |
| 3253 | else |
| 3254 | echo "configure: failed program was:" >&5 |
| 3255 | cat conftest.$ac_ext >&5 |
| 3256 | rm -rf conftest* |
| 3257 | eval "ac_cv_func_$ac_func=no" |
| 3258 | fi |
| 3259 | rm -f conftest* |
| 3260 | fi |
| 3261 | |
| 3262 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3263 | echo "$ac_t""yes" 1>&6 |
| 3264 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3265 | cat >> confdefs.h <<EOF |
| 3266 | #define $ac_tr_func 1 |
| 3267 | EOF |
| 3268 | |
| 3269 | else |
| 3270 | echo "$ac_t""no" 1>&6 |
| 3271 | fi |
| 3272 | done |
| 3273 | |
| 3274 | |
| 3275 | for ac_func in dup2 getcwd strdup strerror memmove |
| 3276 | do |
| 3277 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3278 | echo "configure:3279: checking for $ac_func" >&5 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3279 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3280 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3281 | else |
| 3282 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3283 | #line 3284 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3284 | #include "confdefs.h" |
| 3285 | /* System header to define __stub macros and hopefully few prototypes, |
| 3286 | which can conflict with char $ac_func(); below. */ |
| 3287 | #include <assert.h> |
| 3288 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3289 | /* We use char because int might match the return type of a gcc2 |
| 3290 | builtin and then its argument prototype would still apply. */ |
| 3291 | char $ac_func(); |
| 3292 | |
| 3293 | int main() { |
| 3294 | |
| 3295 | /* The GNU C library defines this for functions which it implements |
| 3296 | to always fail with ENOSYS. Some functions are actually named |
| 3297 | something starting with __ and the normal name is an alias. */ |
| 3298 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3299 | choke me |
| 3300 | #else |
| 3301 | $ac_func(); |
| 3302 | #endif |
| 3303 | |
| 3304 | ; return 0; } |
| 3305 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3306 | if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3307 | rm -rf conftest* |
| 3308 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3309 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3310 | echo "configure: failed program was:" >&5 |
| 3311 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3312 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3313 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3314 | fi |
| 3315 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3316 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3317 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3318 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3319 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3320 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3321 | cat >> confdefs.h <<EOF |
| 3322 | #define $ac_tr_func 1 |
| 3323 | EOF |
| 3324 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3325 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3326 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3327 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3328 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3329 | done |
| 3330 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3331 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3332 | echo $ac_n "checking for getpgrp""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3333 | echo "configure:3334: checking for getpgrp" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3334 | if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then |
| 3335 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3336 | else |
| 3337 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3338 | #line 3339 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3339 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3340 | /* System header to define __stub macros and hopefully few prototypes, |
| 3341 | which can conflict with char getpgrp(); below. */ |
| 3342 | #include <assert.h> |
| 3343 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3344 | /* We use char because int might match the return type of a gcc2 |
| 3345 | builtin and then its argument prototype would still apply. */ |
| 3346 | char getpgrp(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3347 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3348 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3349 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3350 | /* The GNU C library defines this for functions which it implements |
| 3351 | to always fail with ENOSYS. Some functions are actually named |
| 3352 | something starting with __ and the normal name is an alias. */ |
| 3353 | #if defined (__stub_getpgrp) || defined (__stub___getpgrp) |
| 3354 | choke me |
| 3355 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3356 | getpgrp(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3357 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3358 | |
| 3359 | ; return 0; } |
| 3360 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3361 | if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3362 | rm -rf conftest* |
| 3363 | eval "ac_cv_func_getpgrp=yes" |
| 3364 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3365 | echo "configure: failed program was:" >&5 |
| 3366 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3367 | rm -rf conftest* |
| 3368 | eval "ac_cv_func_getpgrp=no" |
| 3369 | fi |
| 3370 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3371 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3372 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3373 | if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3374 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3375 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3376 | #line 3377 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3377 | #include "confdefs.h" |
| 3378 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3379 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3380 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3381 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3382 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3383 | if { (eval echo configure:3384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3384 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3385 | cat >> confdefs.h <<\EOF |
| 3386 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3387 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3388 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3389 | else |
| 3390 | echo "configure: failed program was:" >&5 |
| 3391 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3392 | fi |
| 3393 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3394 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3395 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3396 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3397 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3398 | echo $ac_n "checking for setpgrp""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3399 | echo "configure:3400: checking for setpgrp" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3400 | if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then |
| 3401 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3402 | else |
| 3403 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3404 | #line 3405 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3405 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3406 | /* System header to define __stub macros and hopefully few prototypes, |
| 3407 | which can conflict with char setpgrp(); below. */ |
| 3408 | #include <assert.h> |
| 3409 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3410 | /* We use char because int might match the return type of a gcc2 |
| 3411 | builtin and then its argument prototype would still apply. */ |
| 3412 | char setpgrp(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3413 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3414 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3415 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3416 | /* The GNU C library defines this for functions which it implements |
| 3417 | to always fail with ENOSYS. Some functions are actually named |
| 3418 | something starting with __ and the normal name is an alias. */ |
| 3419 | #if defined (__stub_setpgrp) || defined (__stub___setpgrp) |
| 3420 | choke me |
| 3421 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3422 | setpgrp(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3423 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3424 | |
| 3425 | ; return 0; } |
| 3426 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3427 | if { (eval echo configure:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3428 | rm -rf conftest* |
| 3429 | eval "ac_cv_func_setpgrp=yes" |
| 3430 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3431 | echo "configure: failed program was:" >&5 |
| 3432 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3433 | rm -rf conftest* |
| 3434 | eval "ac_cv_func_setpgrp=no" |
| 3435 | fi |
| 3436 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3437 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3438 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3439 | if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3440 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3441 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3442 | #line 3443 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3443 | #include "confdefs.h" |
| 3444 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3445 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3446 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3447 | ; return 0; } |
| 3448 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3449 | if { (eval echo configure:3450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3450 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3451 | cat >> confdefs.h <<\EOF |
| 3452 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3453 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3454 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3455 | else |
| 3456 | echo "configure: failed program was:" >&5 |
| 3457 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3458 | fi |
| 3459 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3460 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3461 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3462 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3463 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3464 | echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3465 | echo "configure:3466: checking for gettimeofday" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3466 | if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
| 3467 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3468 | else |
| 3469 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3470 | #line 3471 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3471 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3472 | /* System header to define __stub macros and hopefully few prototypes, |
| 3473 | which can conflict with char gettimeofday(); below. */ |
| 3474 | #include <assert.h> |
| 3475 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3476 | /* We use char because int might match the return type of a gcc2 |
| 3477 | builtin and then its argument prototype would still apply. */ |
| 3478 | char gettimeofday(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3479 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3480 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3481 | |
| 3482 | /* The GNU C library defines this for functions which it implements |
| 3483 | to always fail with ENOSYS. Some functions are actually named |
| 3484 | something starting with __ and the normal name is an alias. */ |
| 3485 | #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
| 3486 | choke me |
| 3487 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3488 | gettimeofday(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3489 | #endif |
| 3490 | |
| 3491 | ; return 0; } |
| 3492 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3493 | if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3494 | rm -rf conftest* |
| 3495 | eval "ac_cv_func_gettimeofday=yes" |
| 3496 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3497 | echo "configure: failed program was:" >&5 |
| 3498 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3499 | rm -rf conftest* |
| 3500 | eval "ac_cv_func_gettimeofday=no" |
| 3501 | fi |
| 3502 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3503 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3504 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3505 | if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3506 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3507 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3508 | #line 3509 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3509 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3510 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3511 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3512 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 3513 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3514 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3515 | if { (eval echo configure:3516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3516 | : |
| 3517 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3518 | echo "configure: failed program was:" >&5 |
| 3519 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3520 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3521 | cat >> confdefs.h <<\EOF |
| 3522 | #define GETTIMEOFDAY_NO_TZ 1 |
| 3523 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3524 | |
| 3525 | fi |
| 3526 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3527 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3528 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3529 | fi |
| 3530 | |
| 3531 | |
| 3532 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3533 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3534 | echo "configure:3535: checking whether time.h and sys/time.h may both be included" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3535 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
| 3536 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3537 | else |
| 3538 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3539 | #line 3540 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3540 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3541 | #include <sys/types.h> |
| 3542 | #include <sys/time.h> |
| 3543 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3544 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3545 | struct tm *tp; |
| 3546 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3547 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3548 | if { (eval echo configure:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3549 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3550 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3551 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3552 | echo "configure: failed program was:" >&5 |
| 3553 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3554 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3555 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3556 | fi |
| 3557 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3558 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3559 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3560 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3561 | if test $ac_cv_header_time = yes; then |
| 3562 | cat >> confdefs.h <<\EOF |
| 3563 | #define TIME_WITH_SYS_TIME 1 |
| 3564 | EOF |
| 3565 | |
| 3566 | fi |
| 3567 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3568 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3569 | echo "configure:3570: checking whether struct tm is in sys/time.h or time.h" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3570 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
| 3571 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3572 | else |
| 3573 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3574 | #line 3575 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3575 | #include "confdefs.h" |
| 3576 | #include <sys/types.h> |
| 3577 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3578 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3579 | struct tm *tp; tp->tm_sec; |
| 3580 | ; return 0; } |
| 3581 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3582 | if { (eval echo configure:3583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3583 | rm -rf conftest* |
| 3584 | ac_cv_struct_tm=time.h |
| 3585 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3586 | echo "configure: failed program was:" >&5 |
| 3587 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3588 | rm -rf conftest* |
| 3589 | ac_cv_struct_tm=sys/time.h |
| 3590 | fi |
| 3591 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3592 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3593 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3594 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3595 | if test $ac_cv_struct_tm = sys/time.h; then |
| 3596 | cat >> confdefs.h <<\EOF |
| 3597 | #define TM_IN_SYS_TIME 1 |
| 3598 | EOF |
| 3599 | |
| 3600 | fi |
| 3601 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3602 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3603 | echo "configure:3604: checking for tm_zone in struct tm" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3604 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
| 3605 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3606 | else |
| 3607 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3608 | #line 3609 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3609 | #include "confdefs.h" |
| 3610 | #include <sys/types.h> |
| 3611 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3612 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3613 | struct tm tm; tm.tm_zone; |
| 3614 | ; return 0; } |
| 3615 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3616 | if { (eval echo configure:3617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3617 | rm -rf conftest* |
| 3618 | ac_cv_struct_tm_zone=yes |
| 3619 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3620 | echo "configure: failed program was:" >&5 |
| 3621 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3622 | rm -rf conftest* |
| 3623 | ac_cv_struct_tm_zone=no |
| 3624 | fi |
| 3625 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3626 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3627 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3628 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3629 | if test "$ac_cv_struct_tm_zone" = yes; then |
| 3630 | cat >> confdefs.h <<\EOF |
| 3631 | #define HAVE_TM_ZONE 1 |
| 3632 | EOF |
| 3633 | |
| 3634 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3635 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3636 | echo "configure:3637: checking for tzname" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3637 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
| 3638 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3639 | else |
| 3640 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3641 | #line 3642 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3642 | #include "confdefs.h" |
| 3643 | #include <time.h> |
| 3644 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3645 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3646 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3647 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3648 | atoi(*tzname); |
| 3649 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3650 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3651 | if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3652 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3653 | ac_cv_var_tzname=yes |
| 3654 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3655 | echo "configure: failed program was:" >&5 |
| 3656 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3657 | rm -rf conftest* |
| 3658 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3659 | fi |
| 3660 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3661 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3662 | |
| 3663 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3664 | if test $ac_cv_var_tzname = yes; then |
| 3665 | cat >> confdefs.h <<\EOF |
| 3666 | #define HAVE_TZNAME 1 |
| 3667 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3668 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3669 | fi |
| 3670 | fi |
| 3671 | |
| 3672 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3673 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3674 | echo "configure:3675: checking for time.h that defines altzone" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3675 | if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then |
| 3676 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3677 | else |
| 3678 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3679 | #line 3680 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3680 | #include "confdefs.h" |
| 3681 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3682 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3683 | return altzone; |
| 3684 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3685 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3686 | if { (eval echo configure:3687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3687 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3688 | ac_cv_header_time_altzone=yes |
| 3689 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3690 | echo "configure: failed program was:" >&5 |
| 3691 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3692 | rm -rf conftest* |
| 3693 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3694 | fi |
| 3695 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3696 | fi |
| 3697 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3698 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3699 | if test $ac_cv_header_time_altzone = yes; then |
| 3700 | cat >> confdefs.h <<\EOF |
| 3701 | #define HAVE_ALTZONE 1 |
| 3702 | EOF |
| 3703 | |
| 3704 | fi |
| 3705 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3706 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3707 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3708 | echo "configure:3709: checking whether sys/select.h and sys/time.h may both be included" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3709 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3710 | #line 3711 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3711 | #include "confdefs.h" |
| 3712 | |
| 3713 | #include <sys/types.h> |
| 3714 | #include <sys/select.h> |
| 3715 | #include <sys/time.h> |
| 3716 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3717 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3718 | ; |
| 3719 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3720 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3721 | if { (eval echo configure:3722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3722 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3723 | cat >> confdefs.h <<\EOF |
| 3724 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 3725 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3726 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3727 | else |
| 3728 | echo "configure: failed program was:" >&5 |
| 3729 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3730 | fi |
| 3731 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3732 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3733 | |
| 3734 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3735 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3736 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3737 | echo "configure:3738: checking whether char is unsigned" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3738 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
| 3739 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3740 | else |
| 3741 | if test "$GCC" = yes; then |
| 3742 | # GCC predefines this symbol on systems where it applies. |
| 3743 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3744 | #line 3745 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3745 | #include "confdefs.h" |
| 3746 | #ifdef __CHAR_UNSIGNED__ |
| 3747 | yes |
| 3748 | #endif |
| 3749 | |
| 3750 | EOF |
| 3751 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3752 | egrep "yes" >/dev/null 2>&1; then |
| 3753 | rm -rf conftest* |
| 3754 | ac_cv_c_char_unsigned=yes |
| 3755 | else |
| 3756 | rm -rf conftest* |
| 3757 | ac_cv_c_char_unsigned=no |
| 3758 | fi |
| 3759 | rm -f conftest* |
| 3760 | |
| 3761 | else |
| 3762 | if test "$cross_compiling" = yes; then |
| 3763 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 3764 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3765 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3766 | #line 3767 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3767 | #include "confdefs.h" |
| 3768 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3769 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3770 | #define volatile |
| 3771 | #endif |
| 3772 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3773 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3774 | } |
| 3775 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3776 | if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3777 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3778 | ac_cv_c_char_unsigned=yes |
| 3779 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3780 | echo "configure: failed program was:" >&5 |
| 3781 | cat conftest.$ac_ext >&5 |
| 3782 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3783 | ac_cv_c_char_unsigned=no |
| 3784 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3785 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3786 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3787 | |
| 3788 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3789 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3790 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3791 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3792 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 3793 | cat >> confdefs.h <<\EOF |
| 3794 | #define __CHAR_UNSIGNED__ 1 |
| 3795 | EOF |
| 3796 | |
| 3797 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3798 | |
| 3799 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3800 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3801 | echo "configure:3802: checking for working const" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3802 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 3803 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3804 | else |
| 3805 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3806 | #line 3807 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3807 | #include "confdefs.h" |
| 3808 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3809 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3810 | |
| 3811 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3812 | typedef int charset[2]; const charset x; |
| 3813 | /* SunOS 4.1.1 cc rejects this. */ |
| 3814 | char const *const *ccp; |
| 3815 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3816 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 3817 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3818 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3819 | /* AIX XL C 1.02.0.0 rejects this. |
| 3820 | It does not let you subtract one const X* pointer from another in an arm |
| 3821 | of an if-expression whose if-part is not a constant expression */ |
| 3822 | const char *g = "string"; |
| 3823 | ccp = &g + (g ? g-g : 0); |
| 3824 | /* HPUX 7.0 cc rejects these. */ |
| 3825 | ++ccp; |
| 3826 | p = (char**) ccp; |
| 3827 | ccp = (char const *const *) p; |
| 3828 | { /* SCO 3.2v4 cc rejects this. */ |
| 3829 | char *t; |
| 3830 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 3831 | |
| 3832 | *t++ = 0; |
| 3833 | } |
| 3834 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3835 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3836 | const int *foo = &x[0]; |
| 3837 | ++foo; |
| 3838 | } |
| 3839 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 3840 | typedef const int *iptr; |
| 3841 | iptr p = 0; |
| 3842 | ++p; |
| 3843 | } |
| 3844 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 3845 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 3846 | struct s { int j; const int *ap[3]; }; |
| 3847 | struct s *b; b->j = 5; |
| 3848 | } |
| 3849 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 3850 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3851 | } |
| 3852 | |
| 3853 | ; return 0; } |
| 3854 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3855 | if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3856 | rm -rf conftest* |
| 3857 | ac_cv_c_const=yes |
| 3858 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3859 | echo "configure: failed program was:" >&5 |
| 3860 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3861 | rm -rf conftest* |
| 3862 | ac_cv_c_const=no |
| 3863 | fi |
| 3864 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3865 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3866 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3867 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3868 | if test $ac_cv_c_const = no; then |
| 3869 | cat >> confdefs.h <<\EOF |
| 3870 | #define const |
| 3871 | EOF |
| 3872 | |
| 3873 | fi |
| 3874 | |
| 3875 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3876 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3877 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3878 | echo "configure:3879: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3879 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3880 | #line 3881 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3881 | #include "confdefs.h" |
| 3882 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3883 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3884 | volatile int x; x = 0; |
| 3885 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3886 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3887 | if { (eval echo configure:3888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3888 | rm -rf conftest* |
| 3889 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3890 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3891 | echo "configure: failed program was:" >&5 |
| 3892 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3893 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3894 | cat >> confdefs.h <<\EOF |
| 3895 | #define volatile |
| 3896 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3897 | |
| 3898 | fi |
| 3899 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3900 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3901 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3902 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3903 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3904 | echo "configure:3905: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3905 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3906 | #line 3907 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 3907 | #include "confdefs.h" |
| 3908 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3909 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3910 | signed char c; |
| 3911 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 3912 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3913 | if { (eval echo configure:3914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3914 | rm -rf conftest* |
| 3915 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 3916 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3917 | echo "configure: failed program was:" >&5 |
| 3918 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 3919 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3920 | cat >> confdefs.h <<\EOF |
| 3921 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3922 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3923 | |
| 3924 | fi |
| 3925 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3926 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3927 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3928 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3929 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3930 | echo "configure:3931: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3931 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3932 | #line 3933 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3933 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3934 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3935 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3936 | return foo(10); |
| 3937 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3938 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3939 | if { (eval echo configure:3940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3940 | rm -rf conftest* |
| 3941 | cat >> confdefs.h <<\EOF |
| 3942 | #define HAVE_PROTOTYPES 1 |
| 3943 | EOF |
| 3944 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3945 | else |
| 3946 | echo "configure: failed program was:" >&5 |
| 3947 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3948 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3949 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3950 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3951 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3952 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3953 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3954 | echo "configure:3955: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3955 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3956 | #line 3957 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3957 | #include "confdefs.h" |
| 3958 | |
| 3959 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 3960 | int foo(int x, ...) { |
| 3961 | va_list va; |
| 3962 | va_start(va, x); |
| 3963 | va_arg(va, int); |
| 3964 | va_arg(va, char *); |
| 3965 | va_arg(va, double); |
| 3966 | return 0; |
| 3967 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3968 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3969 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 3970 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3971 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3972 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3973 | if { (eval echo configure:3974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3974 | rm -rf conftest* |
| 3975 | cat >> confdefs.h <<\EOF |
| 3976 | #define HAVE_STDARG_PROTOTYPES 1 |
| 3977 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3978 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3979 | else |
| 3980 | echo "configure: failed program was:" >&5 |
| 3981 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3982 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3983 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3984 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3985 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3986 | if test "$have_prototypes" = yes; then |
| 3987 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3988 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3989 | echo "configure:3990: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3990 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3991 | #line 3992 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3992 | #include "confdefs.h" |
| 3993 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3994 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3995 | char **t;execve("@",t,t); |
| 3996 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3997 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 3998 | if { (eval echo configure:3999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3999 | : |
| 4000 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4001 | echo "configure: failed program was:" >&5 |
| 4002 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4003 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4004 | cat >> confdefs.h <<\EOF |
| 4005 | #define BAD_EXEC_PROTOTYPES 1 |
| 4006 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4007 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4008 | fi |
| 4009 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4010 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4011 | fi |
| 4012 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4013 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4014 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4015 | echo "configure:4016: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4016 | if test "$cross_compiling" = yes; then |
| 4017 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4018 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4019 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4020 | #line 4021 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4021 | #include "confdefs.h" |
| 4022 | |
| 4023 | struct s { int a; int b; }; |
| 4024 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4025 | int foobar() { |
| 4026 | static int random; |
| 4027 | random = (int) &foo; |
| 4028 | return random; |
| 4029 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4030 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4031 | main() { |
| 4032 | exit(!((int)&foo == foobar())); |
| 4033 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4034 | |
| 4035 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4036 | if { (eval echo configure:4037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4037 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4038 | : |
| 4039 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4040 | echo "configure: failed program was:" >&5 |
| 4041 | cat conftest.$ac_ext >&5 |
| 4042 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4043 | cat >> confdefs.h <<\EOF |
| 4044 | #define BAD_STATIC_FORWARD 1 |
| 4045 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4046 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4047 | fi |
| 4048 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4049 | fi |
| 4050 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4051 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4052 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4053 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4054 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4055 | echo "configure:4056: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4056 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4057 | #line 4058 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4058 | #include "confdefs.h" |
| 4059 | |
| 4060 | #ifdef HAVE_STDARG_PROTOTYPES |
| 4061 | #include <stdarg.h> |
| 4062 | #else |
| 4063 | #include <varargs.h> |
| 4064 | #endif |
| 4065 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4066 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4067 | va_list list1, list2; list1 = list2; |
| 4068 | ; return 0; } |
| 4069 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4070 | if { (eval echo configure:4071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4071 | : |
| 4072 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4073 | echo "configure: failed program was:" >&5 |
| 4074 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4075 | rm -rf conftest* |
| 4076 | cat >> confdefs.h <<\EOF |
| 4077 | #define VA_LIST_IS_ARRAY 1 |
| 4078 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4079 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4080 | fi |
| 4081 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4082 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4083 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4084 | # checks for system services |
| 4085 | # (none yet) |
| 4086 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4087 | # Linux requires this for correct f.p. operations |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4088 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4089 | echo "configure:4090: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4090 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4091 | 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] | 4092 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4093 | else |
| 4094 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4095 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4096 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4097 | #line 4098 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4098 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4099 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4100 | /* We use char because int might match the return type of a gcc2 |
| 4101 | builtin and then its argument prototype would still apply. */ |
| 4102 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4103 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4104 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4105 | __fpu_control() |
| 4106 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4107 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4108 | if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4109 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4110 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4111 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4112 | echo "configure: failed program was:" >&5 |
| 4113 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4114 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4115 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4116 | fi |
| 4117 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4118 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4119 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4120 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4121 | 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] | 4122 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4123 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 4124 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4125 | cat >> confdefs.h <<EOF |
| 4126 | #define $ac_tr_lib 1 |
| 4127 | EOF |
| 4128 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4129 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4130 | |
| 4131 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4132 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4133 | fi |
| 4134 | |
| 4135 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4136 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4137 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4138 | echo "configure:4139: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4139 | # Check whether --with-fpectl or --without-fpectl was given. |
| 4140 | if test "${with_fpectl+set}" = set; then |
| 4141 | withval="$with_fpectl" |
| 4142 | |
| 4143 | if test "$withval" != no |
| 4144 | then cat >> confdefs.h <<\EOF |
| 4145 | #define WANT_SIGFPE_HANDLER 1 |
| 4146 | EOF |
| 4147 | echo "$ac_t""yes" 1>&6 |
| 4148 | else echo "$ac_t""no" 1>&6 |
| 4149 | fi |
| 4150 | fi |
| 4151 | |
| 4152 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4153 | # check for --with-libm=... |
| 4154 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4155 | case $ac_sys_system in |
| 4156 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4157 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4158 | *) LIBM=-lm |
| 4159 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4160 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4161 | echo "configure:4162: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4162 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4163 | if test "${with_libm+set}" = set; then |
| 4164 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4165 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4166 | if test "$withval" = no |
| 4167 | then LIBM= |
| 4168 | echo "$ac_t""force LIBM empty" 1>&6 |
| 4169 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4170 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4171 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4172 | 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] | 4173 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4174 | else |
| 4175 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4176 | fi |
| 4177 | |
| 4178 | |
| 4179 | # check for --with-libc=... |
| 4180 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4181 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4182 | echo "configure:4183: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4183 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4184 | if test "${with_libc+set}" = set; then |
| 4185 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4186 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4187 | if test "$withval" = no |
| 4188 | then LIBC= |
| 4189 | echo "$ac_t""force LIBC empty" 1>&6 |
| 4190 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4191 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4192 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4193 | 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] | 4194 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4195 | else |
| 4196 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4197 | fi |
| 4198 | |
| 4199 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4200 | # check for hypot() in math library |
| 4201 | LIBS_SAVE=$LIBS |
| 4202 | LIBS="$LIBS $LIBM" |
| 4203 | for ac_func in hypot |
| 4204 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4205 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4206 | echo "configure:4207: checking for $ac_func" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4207 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 4208 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4209 | else |
| 4210 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4211 | #line 4212 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4212 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4213 | /* System header to define __stub macros and hopefully few prototypes, |
| 4214 | which can conflict with char $ac_func(); below. */ |
| 4215 | #include <assert.h> |
| 4216 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4217 | /* We use char because int might match the return type of a gcc2 |
| 4218 | builtin and then its argument prototype would still apply. */ |
| 4219 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4220 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4221 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4222 | |
| 4223 | /* The GNU C library defines this for functions which it implements |
| 4224 | to always fail with ENOSYS. Some functions are actually named |
| 4225 | something starting with __ and the normal name is an alias. */ |
| 4226 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4227 | choke me |
| 4228 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4229 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4230 | #endif |
| 4231 | |
| 4232 | ; return 0; } |
| 4233 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4234 | if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4235 | rm -rf conftest* |
| 4236 | eval "ac_cv_func_$ac_func=yes" |
| 4237 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4238 | echo "configure: failed program was:" >&5 |
| 4239 | cat conftest.$ac_ext >&5 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4240 | rm -rf conftest* |
| 4241 | eval "ac_cv_func_$ac_func=no" |
| 4242 | fi |
| 4243 | rm -f conftest* |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4244 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4245 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4246 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4247 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4248 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4249 | cat >> confdefs.h <<EOF |
| 4250 | #define $ac_tr_func 1 |
| 4251 | EOF |
| 4252 | |
| 4253 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4254 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4255 | fi |
| 4256 | done |
| 4257 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4258 | for ac_func in hypot |
| 4259 | do |
| 4260 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4261 | echo "configure:4262: checking for $ac_func" >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4262 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 4263 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4264 | else |
| 4265 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4266 | #line 4267 "configure" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4267 | #include "confdefs.h" |
| 4268 | /* System header to define __stub macros and hopefully few prototypes, |
| 4269 | which can conflict with char $ac_func(); below. */ |
| 4270 | #include <assert.h> |
| 4271 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4272 | /* We use char because int might match the return type of a gcc2 |
| 4273 | builtin and then its argument prototype would still apply. */ |
| 4274 | char $ac_func(); |
| 4275 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4276 | int main() { |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4277 | |
| 4278 | /* The GNU C library defines this for functions which it implements |
| 4279 | to always fail with ENOSYS. Some functions are actually named |
| 4280 | something starting with __ and the normal name is an alias. */ |
| 4281 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4282 | choke me |
| 4283 | #else |
| 4284 | $ac_func(); |
| 4285 | #endif |
| 4286 | |
| 4287 | ; return 0; } |
| 4288 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4289 | if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4290 | rm -rf conftest* |
| 4291 | eval "ac_cv_func_$ac_func=yes" |
| 4292 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4293 | echo "configure: failed program was:" >&5 |
| 4294 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4295 | rm -rf conftest* |
| 4296 | eval "ac_cv_func_$ac_func=no" |
| 4297 | fi |
| 4298 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4299 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4300 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4301 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4302 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4303 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4304 | cat >> confdefs.h <<EOF |
| 4305 | #define $ac_tr_func 1 |
| 4306 | EOF |
| 4307 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4308 | else |
| 4309 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4310 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4311 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4312 | done |
| 4313 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4314 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4315 | LIBS=$LIBS_SAVE |
| 4316 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4317 | # check for getopt |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4318 | echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4319 | echo "configure:4320: checking for genuine getopt" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4320 | if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then |
| 4321 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4322 | else |
| 4323 | if test "$cross_compiling" = yes; then |
| 4324 | ac_cv_func_getopt=no |
| 4325 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4326 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4327 | #line 4328 "configure" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4328 | #include "confdefs.h" |
| 4329 | #include <stdio.h> |
| 4330 | extern int optind, opterr, getopt(); |
| 4331 | extern char* optarg; |
| 4332 | int main() { |
| 4333 | char* av[] = { "testprog", "parameter", "-fFlag", NULL }; |
| 4334 | opterr = 0; |
| 4335 | if (getopt(3, av, "f:") == 'f') { exit(1); } |
| 4336 | exit(0); |
| 4337 | } |
| 4338 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4339 | if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4340 | then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4341 | ac_cv_func_getopt=yes |
| 4342 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4343 | echo "configure: failed program was:" >&5 |
| 4344 | cat conftest.$ac_ext >&5 |
| 4345 | rm -fr conftest* |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4346 | ac_cv_func_getopt=no |
| 4347 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4348 | rm -fr conftest* |
| 4349 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4350 | |
| 4351 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4352 | echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4353 | test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 4354 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4355 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4356 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4357 | echo "configure:4358: checking what malloc(0) returns" >&5 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4358 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
| 4359 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4360 | else |
| 4361 | if test "$cross_compiling" = yes; then |
| 4362 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4363 | else |
| 4364 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4365 | #line 4366 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4366 | #include "confdefs.h" |
| 4367 | #include <stdio.h> |
| 4368 | #ifdef HAVE_STDLIB |
| 4369 | #include <stdlib.h> |
| 4370 | #else |
| 4371 | char *malloc(), *realloc(); |
| 4372 | int *free(); |
| 4373 | #endif |
| 4374 | main() { |
| 4375 | char *p; |
| 4376 | p = malloc(0); |
| 4377 | if (p == NULL) exit(1); |
| 4378 | p = realloc(p, 0); |
| 4379 | if (p == NULL) exit(1); |
| 4380 | free(p); |
| 4381 | exit(0); |
| 4382 | } |
| 4383 | EOF |
Guido van Rossum | 79e8f1b | 1999-02-23 18:07:51 +0000 | [diff] [blame] | 4384 | if { (eval echo configure:4385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4385 | then |
| 4386 | ac_cv_malloc_zero=nonnull |
| 4387 | else |
| 4388 | echo "configure: failed program was:" >&5 |
| 4389 | cat conftest.$ac_ext >&5 |
| 4390 | rm -fr conftest* |
| 4391 | ac_cv_malloc_zero=null |
| 4392 | fi |
| 4393 | rm -fr conftest* |
| 4394 | fi |
| 4395 | |
| 4396 | fi |
| 4397 | |
| 4398 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 4399 | if test "$ac_cv_malloc_zero" = null |
| 4400 | then |
| 4401 | cat >> confdefs.h <<\EOF |
| 4402 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 4403 | EOF |
| 4404 | |
| 4405 | fi |
| 4406 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4407 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4408 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4409 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4410 | # This file is a shell script that caches the results of configure |
| 4411 | # tests run on this system so they can be shared between configure |
| 4412 | # scripts and configure runs. It is not useful on other systems. |
| 4413 | # If it contains results you don't want to keep, you may remove or edit it. |
| 4414 | # |
| 4415 | # By default, configure uses ./config.cache as the cache file, |
| 4416 | # creating it if it does not exist already. You can give configure |
| 4417 | # the --cache-file=FILE option to use a different cache file; that is |
| 4418 | # what configure does when it calls configure scripts in |
| 4419 | # subdirectories, so they share the cache. |
| 4420 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 4421 | # config.status only pays attention to the cache file if you give it the |
| 4422 | # --recheck option to rerun configure. |
| 4423 | # |
| 4424 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4425 | # The following way of writing the cache mishandles newlines in values, |
| 4426 | # but we know of no workaround that is simple, portable, and efficient. |
| 4427 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4428 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4429 | # 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] | 4430 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4431 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4432 | *ac_space=\ *) |
| 4433 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 4434 | # turns \\\\ into \\, and sed turns \\ into \). |
| 4435 | sed -n \ |
| 4436 | -e "s/'/'\\\\''/g" \ |
| 4437 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 4438 | ;; |
| 4439 | *) |
| 4440 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4441 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 4442 | ;; |
| 4443 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4444 | if cmp -s $cache_file confcache; then |
| 4445 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4446 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4447 | if test -w $cache_file; then |
| 4448 | echo "updating cache $cache_file" |
| 4449 | cat confcache > $cache_file |
| 4450 | else |
| 4451 | echo "not updating unwritable cache $cache_file" |
| 4452 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4453 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4454 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 4455 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4456 | 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] | 4457 | |
| 4458 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4459 | # Let make expand exec_prefix. |
| 4460 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 4461 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4462 | # Any assignment to VPATH causes Sun make to only execute |
| 4463 | # the first set of double-colon rules, so remove it if not needed. |
| 4464 | # If there is a colon in the path, we need to keep it. |
| 4465 | if test "x$srcdir" = x.; then |
| 4466 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 4467 | fi |
| 4468 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4469 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4470 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4471 | DEFS=-DHAVE_CONFIG_H |
| 4472 | |
| 4473 | # Without the "./", some shells look in PATH for config.status. |
| 4474 | : ${CONFIG_STATUS=./config.status} |
| 4475 | |
| 4476 | echo creating $CONFIG_STATUS |
| 4477 | rm -f $CONFIG_STATUS |
| 4478 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4479 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4480 | # Generated automatically by configure. |
| 4481 | # Run this file to recreate the current configuration. |
| 4482 | # This directory was configured as follows, |
| 4483 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 4484 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4485 | # $0 $ac_configure_args |
| 4486 | # |
| 4487 | # Compiler output produced by configure, useful for debugging |
| 4488 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4489 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4490 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4491 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4492 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4493 | case "\$ac_option" in |
| 4494 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4495 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 4496 | 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] | 4497 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4498 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4499 | exit 0 ;; |
| 4500 | -help | --help | --hel | --he | --h) |
| 4501 | echo "\$ac_cs_usage"; exit 0 ;; |
| 4502 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4503 | esac |
| 4504 | done |
| 4505 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4506 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4507 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4508 | trap 'rm -fr `echo "Makefile \ |
| 4509 | Objects/Makefile \ |
| 4510 | Parser/Makefile \ |
| 4511 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 4512 | Modules/Makefile.pre \ |
| 4513 | Modules/Setup.thread config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4514 | EOF |
| 4515 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4516 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4517 | # Protect against being on the right side of a sed subst in config.status. |
| 4518 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 4519 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4520 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4521 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4522 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4523 | s%@CFLAGS@%$CFLAGS%g |
| 4524 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 4525 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4526 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4527 | s%@DEFS@%$DEFS%g |
| 4528 | s%@LDFLAGS@%$LDFLAGS%g |
| 4529 | s%@LIBS@%$LIBS%g |
| 4530 | s%@exec_prefix@%$exec_prefix%g |
| 4531 | s%@prefix@%$prefix%g |
| 4532 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4533 | s%@bindir@%$bindir%g |
| 4534 | s%@sbindir@%$sbindir%g |
| 4535 | s%@libexecdir@%$libexecdir%g |
| 4536 | s%@datadir@%$datadir%g |
| 4537 | s%@sysconfdir@%$sysconfdir%g |
| 4538 | s%@sharedstatedir@%$sharedstatedir%g |
| 4539 | s%@localstatedir@%$localstatedir%g |
| 4540 | s%@libdir@%$libdir%g |
| 4541 | s%@includedir@%$includedir%g |
| 4542 | s%@oldincludedir@%$oldincludedir%g |
| 4543 | s%@infodir@%$infodir%g |
| 4544 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 4545 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4546 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4547 | s%@SGI_ABI@%$SGI_ABI%g |
| 4548 | s%@SET_CCC@%$SET_CCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4549 | s%@CC@%$CC%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 4550 | s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g |
| 4551 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 4552 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4553 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4554 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4555 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4556 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 4557 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4558 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4559 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4560 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 4561 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 4562 | s%@SO@%$SO%g |
| 4563 | s%@LDSHARED@%$LDSHARED%g |
| 4564 | s%@CCSHARED@%$CCSHARED%g |
| 4565 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 4566 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 4567 | s%@LDLAST@%$LDLAST%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4568 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4569 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4570 | s%@LIBM@%$LIBM%g |
| 4571 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4572 | |
| 4573 | CEOF |
| 4574 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4575 | |
| 4576 | cat >> $CONFIG_STATUS <<\EOF |
| 4577 | |
| 4578 | # Split the substitutions into bite-sized pieces for seds with |
| 4579 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 4580 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 4581 | ac_file=1 # Number of current file. |
| 4582 | ac_beg=1 # First line for current file. |
| 4583 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 4584 | ac_more_lines=: |
| 4585 | ac_sed_cmds="" |
| 4586 | while $ac_more_lines; do |
| 4587 | if test $ac_beg -gt 1; then |
| 4588 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4589 | else |
| 4590 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4591 | fi |
| 4592 | if test ! -s conftest.s$ac_file; then |
| 4593 | ac_more_lines=false |
| 4594 | rm -f conftest.s$ac_file |
| 4595 | else |
| 4596 | if test -z "$ac_sed_cmds"; then |
| 4597 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 4598 | else |
| 4599 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 4600 | fi |
| 4601 | ac_file=`expr $ac_file + 1` |
| 4602 | ac_beg=$ac_end |
| 4603 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 4604 | fi |
| 4605 | done |
| 4606 | if test -z "$ac_sed_cmds"; then |
| 4607 | ac_sed_cmds=cat |
| 4608 | fi |
| 4609 | EOF |
| 4610 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4611 | cat >> $CONFIG_STATUS <<EOF |
| 4612 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4613 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 4614 | Objects/Makefile \ |
| 4615 | Parser/Makefile \ |
| 4616 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 4617 | Modules/Makefile.pre \ |
| 4618 | Modules/Setup.thread"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4619 | EOF |
| 4620 | cat >> $CONFIG_STATUS <<\EOF |
| 4621 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4622 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4623 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4624 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4625 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 4626 | *) ac_file_in="${ac_file}.in" ;; |
| 4627 | esac |
| 4628 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4629 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4630 | |
| 4631 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 4632 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 4633 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 4634 | # The file is in a subdirectory. |
| 4635 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4636 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4637 | # A "../" for each directory in $ac_dir_suffix. |
| 4638 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 4639 | else |
| 4640 | ac_dir_suffix= ac_dots= |
| 4641 | fi |
| 4642 | |
| 4643 | case "$ac_given_srcdir" in |
| 4644 | .) srcdir=. |
| 4645 | if test -z "$ac_dots"; then top_srcdir=. |
| 4646 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 4647 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 4648 | *) # Relative path. |
| 4649 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 4650 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 4651 | esac |
| 4652 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4653 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4654 | echo creating "$ac_file" |
| 4655 | rm -f "$ac_file" |
| 4656 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 4657 | case "$ac_file" in |
| 4658 | *Makefile*) ac_comsub="1i\\ |
| 4659 | # $configure_input" ;; |
| 4660 | *) ac_comsub= ;; |
| 4661 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4662 | |
| 4663 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4664 | sed -e "$ac_comsub |
| 4665 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4666 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4667 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4668 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4669 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4670 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4671 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4672 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 4673 | # 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] | 4674 | # |
| 4675 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4676 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 4677 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4678 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4679 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4680 | # 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] | 4681 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 4682 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4683 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4684 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4685 | # 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] | 4686 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 4687 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4688 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4689 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4690 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4691 | if test "${CONFIG_HEADERS+set}" != set; then |
| 4692 | EOF |
| 4693 | cat >> $CONFIG_STATUS <<EOF |
| 4694 | CONFIG_HEADERS="config.h" |
| 4695 | EOF |
| 4696 | cat >> $CONFIG_STATUS <<\EOF |
| 4697 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4698 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4699 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4700 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4701 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4702 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 4703 | *) ac_file_in="${ac_file}.in" ;; |
| 4704 | esac |
| 4705 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4706 | echo creating $ac_file |
| 4707 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4708 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4709 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 4710 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4711 | |
| 4712 | EOF |
| 4713 | |
| 4714 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 4715 | # 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] | 4716 | # 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] | 4717 | # Protect against being in an unquoted here document in config.status. |
| 4718 | rm -f conftest.vals |
| 4719 | cat > conftest.hdr <<\EOF |
| 4720 | s/[\\&%]/\\&/g |
| 4721 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4722 | 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] | 4723 | s%ac_d%ac_u%gp |
| 4724 | s%ac_u%ac_e%gp |
| 4725 | EOF |
| 4726 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 4727 | rm -f conftest.hdr |
| 4728 | |
| 4729 | # This sed command replaces #undef with comments. This is necessary, for |
| 4730 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 4731 | # on some systems where configure will not decide to define it. |
| 4732 | cat >> conftest.vals <<\EOF |
| 4733 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 4734 | EOF |
| 4735 | |
| 4736 | # Break up conftest.vals because some shells have a limit on |
| 4737 | # the size of here documents, and old seds have small limits too. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4738 | |
| 4739 | rm -f conftest.tail |
| 4740 | while : |
| 4741 | do |
| 4742 | ac_lines=`grep -c . conftest.vals` |
| 4743 | # grep -c gives empty output for an empty file on some AIX systems. |
| 4744 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 4745 | # Write a limited-size here document to conftest.frag. |
| 4746 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 4747 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 4748 | echo 'CEOF |
| 4749 | sed -f conftest.frag conftest.in > conftest.out |
| 4750 | rm -f conftest.in |
| 4751 | mv conftest.out conftest.in |
| 4752 | ' >> $CONFIG_STATUS |
| 4753 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 4754 | rm -f conftest.vals |
| 4755 | mv conftest.tail conftest.vals |
| 4756 | done |
| 4757 | rm -f conftest.vals |
| 4758 | |
| 4759 | cat >> $CONFIG_STATUS <<\EOF |
| 4760 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4761 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4762 | cat conftest.in >> conftest.h |
| 4763 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4764 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4765 | echo "$ac_file is unchanged" |
| 4766 | rm -f conftest.h |
| 4767 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4768 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 4769 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 4770 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 4771 | # The file is in a subdirectory. |
| 4772 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 4773 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4774 | rm -f $ac_file |
| 4775 | mv conftest.h $ac_file |
| 4776 | fi |
| 4777 | fi; done |
| 4778 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4779 | EOF |
| 4780 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4781 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4782 | EOF |
| 4783 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4784 | |
| 4785 | exit 0 |
| 4786 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4787 | chmod +x $CONFIG_STATUS |
| 4788 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4789 | 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] | 4790 | |