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 | |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.136 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5 | # Guess values for system-dependent variables and create Makefiles. |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.13 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # Defaults: |
| 13 | ac_help= |
| 14 | ac_default_prefix=/usr/local |
| 15 | # Any additions from configure.in: |
| 16 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 17 | --with-next-archs='arch1 arch2 ..' build MAB binary" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 18 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 19 | --with-next-framework Build (OpenStep|Rhapsody|MacOSX) framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 20 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 21 | --with-dyld Use (OpenStep|Rhapsody|MacOSX) dynamic linker" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 22 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 23 | --without-gcc never use gcc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 25 | --with-cxx=<compiler> enable C++ support" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 26 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 27 | --with-libs='lib1 ...' link against additional libs" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 28 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 29 | --with(out)-readline obsolete, edit Modules/Setup instead" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 30 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 31 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 32 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 33 | --with(out)-threads[=DIRECTORY] disable/enable thread support" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 34 | ac_help="$ac_help |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 35 | --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 36 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 37 | --with(out)-cycle-gc disable/enable garbage collection" |
| 38 | ac_help="$ac_help |
| 39 | --with-wctype-functions use wctype.h functions" |
| 40 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 41 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 42 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 43 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 44 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 45 | --with-fpectl enable SIGFPE catching" |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 46 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 47 | --with-libm=STRING math library" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 48 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 49 | --with-libc=STRING C library" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 50 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 51 | # Initialize some variables set by options. |
| 52 | # The variables have the same names as the options, with |
| 53 | # dashes changed to underlines. |
| 54 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 55 | cache_file=./config.cache |
| 56 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 57 | host=NONE |
| 58 | no_create= |
| 59 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 60 | no_recursion= |
| 61 | prefix=NONE |
| 62 | program_prefix=NONE |
| 63 | program_suffix=NONE |
| 64 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 65 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 66 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 67 | srcdir= |
| 68 | target=NONE |
| 69 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 70 | x_includes=NONE |
| 71 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 72 | bindir='${exec_prefix}/bin' |
| 73 | sbindir='${exec_prefix}/sbin' |
| 74 | libexecdir='${exec_prefix}/libexec' |
| 75 | datadir='${prefix}/share' |
| 76 | sysconfdir='${prefix}/etc' |
| 77 | sharedstatedir='${prefix}/com' |
| 78 | localstatedir='${prefix}/var' |
| 79 | libdir='${exec_prefix}/lib' |
| 80 | includedir='${prefix}/include' |
| 81 | oldincludedir='/usr/include' |
| 82 | infodir='${prefix}/info' |
| 83 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 84 | |
| 85 | # Initialize some other variables. |
| 86 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 87 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 88 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 89 | # Maximum number of lines to put in a shell here document. |
| 90 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 91 | |
| 92 | ac_prev= |
| 93 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 94 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 95 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 96 | # If the previous option needs an argument, assign it. |
| 97 | if test -n "$ac_prev"; then |
| 98 | eval "$ac_prev=\$ac_option" |
| 99 | ac_prev= |
| 100 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 101 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 102 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 103 | case "$ac_option" in |
| 104 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 105 | *) ac_optarg= ;; |
| 106 | esac |
| 107 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 108 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 109 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 110 | case "$ac_option" in |
| 111 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 112 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 113 | ac_prev=bindir ;; |
| 114 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 115 | bindir="$ac_optarg" ;; |
| 116 | |
| 117 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 118 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 119 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 120 | build="$ac_optarg" ;; |
| 121 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 122 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 123 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 124 | ac_prev=cache_file ;; |
| 125 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 126 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 127 | cache_file="$ac_optarg" ;; |
| 128 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 129 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 130 | ac_prev=datadir ;; |
| 131 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 132 | | --da=*) |
| 133 | datadir="$ac_optarg" ;; |
| 134 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 135 | -disable-* | --disable-*) |
| 136 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 137 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 138 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 139 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 140 | fi |
| 141 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 142 | eval "enable_${ac_feature}=no" ;; |
| 143 | |
| 144 | -enable-* | --enable-*) |
| 145 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 146 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 147 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 148 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 149 | fi |
| 150 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 151 | case "$ac_option" in |
| 152 | *=*) ;; |
| 153 | *) ac_optarg=yes ;; |
| 154 | esac |
| 155 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 156 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 157 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 158 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 159 | | --exec | --exe | --ex) |
| 160 | ac_prev=exec_prefix ;; |
| 161 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 162 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 163 | | --exec=* | --exe=* | --ex=*) |
| 164 | exec_prefix="$ac_optarg" ;; |
| 165 | |
| 166 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 167 | # Obsolete; use --with-gas. |
| 168 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 169 | |
| 170 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 171 | # Omit some internal or obsolete options to make the list less imposing. |
| 172 | # This message is too long to be a string in the A/UX 3.1 sh. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 173 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 174 | Usage: configure [options] [host] |
| 175 | Options: [defaults in brackets after descriptions] |
| 176 | Configuration: |
| 177 | --cache-file=FILE cache test results in FILE |
| 178 | --help print this message |
| 179 | --no-create do not create output files |
| 180 | --quiet, --silent do not print \`checking...' messages |
| 181 | --version print the version of autoconf that created configure |
| 182 | Directory and file names: |
| 183 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 184 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 185 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 186 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 187 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 188 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 189 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 190 | --datadir=DIR read-only architecture-independent data in DIR |
| 191 | [PREFIX/share] |
| 192 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 193 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 194 | [PREFIX/com] |
| 195 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 196 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 197 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 198 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 199 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 200 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 201 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 202 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 203 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 204 | --program-transform-name=PROGRAM |
| 205 | run sed PROGRAM on installed program names |
| 206 | EOF |
| 207 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 208 | Host type: |
| 209 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 210 | --host=HOST configure for HOST [guessed] |
| 211 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 212 | Features and packages: |
| 213 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 214 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 215 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 216 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 217 | --x-includes=DIR X include files are in DIR |
| 218 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 219 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 220 | if test -n "$ac_help"; then |
| 221 | echo "--enable and --with options recognized:$ac_help" |
| 222 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 223 | exit 0 ;; |
| 224 | |
| 225 | -host | --host | --hos | --ho) |
| 226 | ac_prev=host ;; |
| 227 | -host=* | --host=* | --hos=* | --ho=*) |
| 228 | host="$ac_optarg" ;; |
| 229 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 230 | -includedir | --includedir | --includedi | --included | --include \ |
| 231 | | --includ | --inclu | --incl | --inc) |
| 232 | ac_prev=includedir ;; |
| 233 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 234 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 235 | includedir="$ac_optarg" ;; |
| 236 | |
| 237 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 238 | ac_prev=infodir ;; |
| 239 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 240 | infodir="$ac_optarg" ;; |
| 241 | |
| 242 | -libdir | --libdir | --libdi | --libd) |
| 243 | ac_prev=libdir ;; |
| 244 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 245 | libdir="$ac_optarg" ;; |
| 246 | |
| 247 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 248 | | --libexe | --libex | --libe) |
| 249 | ac_prev=libexecdir ;; |
| 250 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 251 | | --libexe=* | --libex=* | --libe=*) |
| 252 | libexecdir="$ac_optarg" ;; |
| 253 | |
| 254 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 255 | | --localstate | --localstat | --localsta | --localst \ |
| 256 | | --locals | --local | --loca | --loc | --lo) |
| 257 | ac_prev=localstatedir ;; |
| 258 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 259 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 260 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 261 | localstatedir="$ac_optarg" ;; |
| 262 | |
| 263 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 264 | ac_prev=mandir ;; |
| 265 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 266 | mandir="$ac_optarg" ;; |
| 267 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 268 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 269 | # Obsolete; use --without-fp. |
| 270 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 271 | |
| 272 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 273 | | --no-cr | --no-c) |
| 274 | no_create=yes ;; |
| 275 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 276 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 277 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 278 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 279 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 280 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 281 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 282 | | --oldin | --oldi | --old | --ol | --o) |
| 283 | ac_prev=oldincludedir ;; |
| 284 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 285 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 286 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 287 | oldincludedir="$ac_optarg" ;; |
| 288 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 289 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 290 | ac_prev=prefix ;; |
| 291 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 292 | prefix="$ac_optarg" ;; |
| 293 | |
| 294 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 295 | | --program-pre | --program-pr | --program-p) |
| 296 | ac_prev=program_prefix ;; |
| 297 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 298 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 299 | program_prefix="$ac_optarg" ;; |
| 300 | |
| 301 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 302 | | --program-suf | --program-su | --program-s) |
| 303 | ac_prev=program_suffix ;; |
| 304 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 305 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 306 | program_suffix="$ac_optarg" ;; |
| 307 | |
| 308 | -program-transform-name | --program-transform-name \ |
| 309 | | --program-transform-nam | --program-transform-na \ |
| 310 | | --program-transform-n | --program-transform- \ |
| 311 | | --program-transform | --program-transfor \ |
| 312 | | --program-transfo | --program-transf \ |
| 313 | | --program-trans | --program-tran \ |
| 314 | | --progr-tra | --program-tr | --program-t) |
| 315 | ac_prev=program_transform_name ;; |
| 316 | -program-transform-name=* | --program-transform-name=* \ |
| 317 | | --program-transform-nam=* | --program-transform-na=* \ |
| 318 | | --program-transform-n=* | --program-transform-=* \ |
| 319 | | --program-transform=* | --program-transfor=* \ |
| 320 | | --program-transfo=* | --program-transf=* \ |
| 321 | | --program-trans=* | --program-tran=* \ |
| 322 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 323 | program_transform_name="$ac_optarg" ;; |
| 324 | |
| 325 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 326 | | -silent | --silent | --silen | --sile | --sil) |
| 327 | silent=yes ;; |
| 328 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 329 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 330 | ac_prev=sbindir ;; |
| 331 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 332 | | --sbi=* | --sb=*) |
| 333 | sbindir="$ac_optarg" ;; |
| 334 | |
| 335 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 336 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 337 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 338 | | --sha | --sh) |
| 339 | ac_prev=sharedstatedir ;; |
| 340 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 341 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 342 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 343 | | --sha=* | --sh=*) |
| 344 | sharedstatedir="$ac_optarg" ;; |
| 345 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 346 | -site | --site | --sit) |
| 347 | ac_prev=site ;; |
| 348 | -site=* | --site=* | --sit=*) |
| 349 | site="$ac_optarg" ;; |
| 350 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 351 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 352 | ac_prev=srcdir ;; |
| 353 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 354 | srcdir="$ac_optarg" ;; |
| 355 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 356 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 357 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 358 | ac_prev=sysconfdir ;; |
| 359 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 360 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 361 | sysconfdir="$ac_optarg" ;; |
| 362 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 363 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 364 | ac_prev=target ;; |
| 365 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 366 | target="$ac_optarg" ;; |
| 367 | |
| 368 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 369 | verbose=yes ;; |
| 370 | |
| 371 | -version | --version | --versio | --versi | --vers) |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 372 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 373 | exit 0 ;; |
| 374 | |
| 375 | -with-* | --with-*) |
| 376 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 377 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 378 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 379 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 380 | fi |
| 381 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 382 | case "$ac_option" in |
| 383 | *=*) ;; |
| 384 | *) ac_optarg=yes ;; |
| 385 | esac |
| 386 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 387 | |
| 388 | -without-* | --without-*) |
| 389 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 390 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 391 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 392 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 393 | fi |
| 394 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 395 | eval "with_${ac_package}=no" ;; |
| 396 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 397 | --x) |
| 398 | # Obsolete; use --with-x. |
| 399 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 400 | |
| 401 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 402 | | --x-incl | --x-inc | --x-in | --x-i) |
| 403 | ac_prev=x_includes ;; |
| 404 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 405 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 406 | x_includes="$ac_optarg" ;; |
| 407 | |
| 408 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 409 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 410 | ac_prev=x_libraries ;; |
| 411 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 412 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 413 | x_libraries="$ac_optarg" ;; |
| 414 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 415 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 416 | ;; |
| 417 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 418 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 419 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 420 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 421 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 422 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 423 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 424 | fi |
| 425 | nonopt="$ac_option" |
| 426 | ;; |
| 427 | |
| 428 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 429 | done |
| 430 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 431 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 432 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 433 | fi |
| 434 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 435 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 436 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 437 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 438 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 439 | # 1 file creation |
| 440 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 441 | # 3 some systems may open it to /dev/tty |
| 442 | # 4 used on the Kubota Titan |
| 443 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 444 | # 5 compiler messages saved in config.log |
| 445 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 446 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 447 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 448 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 449 | fi |
| 450 | exec 5>./config.log |
| 451 | |
| 452 | echo "\ |
| 453 | This file contains any messages produced by compilers while |
| 454 | running configure, to aid debugging if configure makes a mistake. |
| 455 | " 1>&5 |
| 456 | |
| 457 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 458 | # Also quote any args containing shell metacharacters. |
| 459 | ac_configure_args= |
| 460 | for ac_arg |
| 461 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 462 | case "$ac_arg" in |
| 463 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 464 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 465 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 466 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 467 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 468 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 469 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 470 | esac |
| 471 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 472 | |
| 473 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 474 | # Only set these to C if already set. These must not be set unconditionally |
| 475 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 476 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 477 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 478 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 479 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 480 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 481 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 482 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 484 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 485 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 486 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 487 | |
| 488 | # A filename unique to this package, relative to the directory that |
| 489 | # configure is in, which we can look for to find out if srcdir is correct. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 490 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 491 | |
| 492 | # Find the source files, if location was not specified. |
| 493 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 494 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 495 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 496 | ac_prog=$0 |
| 497 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 498 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 499 | srcdir=$ac_confdir |
| 500 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 501 | srcdir=.. |
| 502 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 503 | else |
| 504 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 505 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 506 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 507 | if test "$ac_srcdir_defaulted" = yes; then |
| 508 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 509 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 510 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 511 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 512 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 513 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 514 | |
| 515 | # Prefer explicitly selected file to automatically selected ones. |
| 516 | if test -z "$CONFIG_SITE"; then |
| 517 | if test "x$prefix" != xNONE; then |
| 518 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 519 | else |
| 520 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 521 | fi |
| 522 | fi |
| 523 | for ac_site_file in $CONFIG_SITE; do |
| 524 | if test -r "$ac_site_file"; then |
| 525 | echo "loading site script $ac_site_file" |
| 526 | . "$ac_site_file" |
| 527 | fi |
| 528 | done |
| 529 | |
| 530 | if test -r "$cache_file"; then |
| 531 | echo "loading cache $cache_file" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 532 | . $cache_file |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 533 | else |
| 534 | echo "creating cache $cache_file" |
| 535 | > $cache_file |
| 536 | fi |
| 537 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 538 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 539 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 540 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 541 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 542 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 543 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 545 | ac_exeext= |
| 546 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 547 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 548 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 549 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 550 | ac_n= ac_c=' |
| 551 | ' ac_t=' ' |
| 552 | else |
| 553 | ac_n=-n ac_c= ac_t= |
| 554 | fi |
| 555 | else |
| 556 | ac_n= ac_c='\c' ac_t= |
| 557 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 558 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 559 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 560 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 561 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 562 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 563 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 564 | VERSION=2.0 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 565 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 566 | # NEXTSTEP stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 567 | if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices/software_version ; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 568 | |
| 569 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 570 | echo "configure:571: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 571 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 572 | if test "${with_next_archs+set}" = set; then |
| 573 | withval="$with_next_archs" |
| 574 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 575 | if test -n "$withval"; then |
| 576 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 577 | # GCC does not currently support multi archs on the NeXT |
| 578 | with_gcc=no |
| 579 | fi |
| 580 | echo "$ac_t""$with_next_archs" 1>&6 |
| 581 | |
| 582 | else |
| 583 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 584 | fi |
| 585 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 586 | |
| 587 | if test -z "$MACHDEP" |
| 588 | then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 589 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 590 | sed -e 's/://' -e 's/\./_/'` && \ |
| 591 | ac_sys_system=next && ac_sys_release=$4 |
| 592 | |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 593 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 594 | fi |
| 595 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 596 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 597 | # Check whether --with-next-framework or --without-next-framework was given. |
| 598 | if test "${with_next_framework+set}" = set; then |
| 599 | withval="$with_next_framework" |
| 600 | : |
| 601 | fi |
| 602 | |
| 603 | # Check whether --with-dyld or --without-dyld was given. |
| 604 | if test "${with_dyld+set}" = set; then |
| 605 | withval="$with_dyld" |
| 606 | : |
| 607 | fi |
| 608 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 609 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 610 | # Set name for machine-dependent library files |
| 611 | |
| 612 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 613 | echo "configure:614: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 614 | if test -z "$MACHDEP" |
| 615 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 616 | ac_sys_system=`uname -s` |
| 617 | if test "$ac_sys_system" = "AIX" ; then |
| 618 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 619 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 620 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 621 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 622 | ac_md_system=`echo $ac_sys_system | |
| 623 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 624 | ac_md_release=`echo $ac_sys_release | |
| 625 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 626 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 627 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 628 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 629 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 630 | esac |
| 631 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 632 | |
| 633 | # |
| 634 | # SGI compilers allow the specification of the both the ABI and the |
| 635 | # ISA on the command line. Depending on the values of these switches, |
| 636 | # different and often incompatable code will be generated. |
| 637 | # |
| 638 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 639 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 640 | # variable is also adjusted. |
| 641 | # |
| 642 | |
| 643 | if test ! -z "$SGI_ABI" |
| 644 | then |
| 645 | CC="cc $SGI_ABI" |
| 646 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 647 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 648 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 649 | echo "$ac_t""$MACHDEP" 1>&6 |
| 650 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 651 | # |
| 652 | # CCC is the command that compiles C++ programs |
| 653 | # |
| 654 | # Not all make programs have this predefined. |
| 655 | # |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 656 | #AC_SUBST(SET_CCC) |
| 657 | #AC_MSG_CHECKING(CCC) |
| 658 | #if test -z "$CCC" |
| 659 | #then |
| 660 | # case $ac_sys_system in |
| 661 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 662 | # Linux*) SET_CCC="CCC= g++";; |
| 663 | # *) SET_CCC="" |
| 664 | # esac |
| 665 | #else |
| 666 | # SET_CCC="CCC= ${CCC}" |
| 667 | #fi |
| 668 | #AC_MSG_RESULT($SET_CCC) |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 669 | |
| 670 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 671 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 672 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 673 | echo "configure:674: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 674 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 675 | if test "${with_gcc+set}" = set; then |
| 676 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 677 | |
| 678 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 679 | no) CC=cc |
| 680 | without_gcc=yes;; |
| 681 | yes) CC=gcc |
| 682 | without_gcc=no;; |
| 683 | *) CC=$withval |
| 684 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 685 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 686 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 687 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 688 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 689 | OSF1) CC=cc |
| 690 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 691 | BeOS*) |
| 692 | # Dunno if it's a good idea to get this over with all at once, or |
| 693 | # to handle it in with the other goodies. |
| 694 | MACHDEP=beos |
| 695 | |
| 696 | case $BE_HOST_CPU in |
| 697 | ppc) |
Guido van Rossum | 8137680 | 1999-04-06 15:50:51 +0000 | [diff] [blame] | 698 | CC="mwcc -I$PWD/BeOS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 699 | without_gcc=yes |
Guido van Rossum | 6b9da45 | 1999-03-24 17:48:12 +0000 | [diff] [blame] | 700 | case `uname -r` in |
| 701 | 4.0*) OPT="-DUSE_DL_EXPORT -O7 -opt schedule604 -export pragma" ;; |
| 702 | *) OPT="-DUSE_DL_EXPORT -O2 -proc 604e -export pragma" ;; |
| 703 | esac |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 704 | CCSHARED=-UUSE_DL_EXPORT |
| 705 | LDFLAGS="$LDFLAGS -nodup" |
| 706 | |
| 707 | AR="$PWD/BeOS/ar-fake" |
| 708 | RANLIB=: |
| 709 | |
| 710 | cat >> confdefs.h <<\EOF |
| 711 | #define DL_EXPORT_HEADER "dl_export.h" |
| 712 | EOF |
| 713 | |
| 714 | ;; |
| 715 | x86) |
| 716 | CC="gcc -I$PWD/BeOS" |
| 717 | without_gcc=no |
Guido van Rossum | 32000e8 | 2000-05-22 21:31:50 +0000 | [diff] [blame] | 718 | OPT="-DUSE_DL_EXPORT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 719 | CCSHARED=-UUSE_DL_EXPORT |
| 720 | |
| 721 | AR="$PWD/BeOS/ar-fake" |
| 722 | RANLIB=: |
| 723 | |
| 724 | cat >> confdefs.h <<\EOF |
| 725 | #define DL_EXPORT_HEADER "dl_export.h" |
| 726 | EOF |
| 727 | |
| 728 | ;; |
| 729 | *) |
| 730 | { echo "configure: error: Your BeOS system isn't PowerPC or x86... neat" 1>&2; exit 1; } |
| 731 | ;; |
| 732 | esac |
| 733 | ;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 734 | *) without_gcc=no;; |
| 735 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 736 | fi |
| 737 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 738 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 739 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 740 | |
| 741 | |
| 742 | MAINOBJ=python.o |
| 743 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 744 | echo "configure:745: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 745 | # Check whether --with-cxx or --without-cxx was given. |
| 746 | if test "${with_cxx+set}" = set; then |
| 747 | withval="$with_cxx" |
| 748 | |
| 749 | case $withval in |
| 750 | no) CXX= |
| 751 | with_cxx=no;; |
| 752 | *) CXX=$withval |
| 753 | MAINOBJ=ccpython.o |
| 754 | with_cxx=$withval;; |
| 755 | esac |
| 756 | else |
| 757 | |
| 758 | with_cxx=no |
| 759 | |
| 760 | fi |
| 761 | |
| 762 | echo "$ac_t""$with_cxx" 1>&6 |
| 763 | SET_CXX="CXX = $CXX" |
| 764 | |
| 765 | #AC_MSG_CHECKING(CCC) |
| 766 | #if test -z "$CCC" |
| 767 | #then |
| 768 | # case $ac_sys_system in |
| 769 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 770 | # Linux*) SET_CCC="CCC= g++";; |
| 771 | # *) SET_CCC="" |
| 772 | # esac |
| 773 | #else |
| 774 | # SET_CCC="CCC= ${CCC}" |
| 775 | #fi |
| 776 | #AC_MSG_RESULT($SET_CCC) |
| 777 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 778 | # If the user switches compilers, we can't believe the cache |
| 779 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 780 | then |
| 781 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 782 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 783 | fi |
| 784 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 785 | # Extract the first word of "gcc", so it can be a program name with args. |
| 786 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 787 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 788 | echo "configure:789: checking for $ac_word" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 789 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 790 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 791 | else |
| 792 | if test -n "$CC"; then |
| 793 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 794 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 795 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 796 | ac_dummy="$PATH" |
| 797 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 798 | test -z "$ac_dir" && ac_dir=. |
| 799 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 800 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 801 | break |
| 802 | fi |
| 803 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 804 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 805 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 806 | fi |
| 807 | CC="$ac_cv_prog_CC" |
| 808 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 809 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 810 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 811 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 812 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 813 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 814 | if test -z "$CC"; then |
| 815 | # Extract the first word of "cc", so it can be a program name with args. |
| 816 | set dummy cc; ac_word=$2 |
| 817 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 818 | echo "configure:819: checking for $ac_word" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 819 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 820 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 821 | else |
| 822 | if test -n "$CC"; then |
| 823 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 824 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 825 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 826 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 827 | ac_dummy="$PATH" |
| 828 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 829 | test -z "$ac_dir" && ac_dir=. |
| 830 | if test -f $ac_dir/$ac_word; then |
| 831 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 832 | ac_prog_rejected=yes |
| 833 | continue |
| 834 | fi |
| 835 | ac_cv_prog_CC="cc" |
| 836 | break |
| 837 | fi |
| 838 | done |
| 839 | IFS="$ac_save_ifs" |
| 840 | if test $ac_prog_rejected = yes; then |
| 841 | # We found a bogon in the path, so make sure we never use it. |
| 842 | set dummy $ac_cv_prog_CC |
| 843 | shift |
| 844 | if test $# -gt 0; then |
| 845 | # We chose a different compiler from the bogus one. |
| 846 | # However, it has the same basename, so the bogon will be chosen |
| 847 | # first if we set CC to just the basename; use the full file name. |
| 848 | shift |
| 849 | set dummy "$ac_dir/$ac_word" "$@" |
| 850 | shift |
| 851 | ac_cv_prog_CC="$@" |
| 852 | fi |
| 853 | fi |
| 854 | fi |
| 855 | fi |
| 856 | CC="$ac_cv_prog_CC" |
| 857 | if test -n "$CC"; then |
| 858 | echo "$ac_t""$CC" 1>&6 |
| 859 | else |
| 860 | echo "$ac_t""no" 1>&6 |
| 861 | fi |
| 862 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 863 | if test -z "$CC"; then |
| 864 | case "`uname -s`" in |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 865 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 866 | # Extract the first word of "cl", so it can be a program name with args. |
| 867 | set dummy cl; ac_word=$2 |
| 868 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 869 | echo "configure:870: checking for $ac_word" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 870 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 871 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 872 | else |
| 873 | if test -n "$CC"; then |
| 874 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 875 | else |
| 876 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 877 | ac_dummy="$PATH" |
| 878 | for ac_dir in $ac_dummy; do |
| 879 | test -z "$ac_dir" && ac_dir=. |
| 880 | if test -f $ac_dir/$ac_word; then |
| 881 | ac_cv_prog_CC="cl" |
| 882 | break |
| 883 | fi |
| 884 | done |
| 885 | IFS="$ac_save_ifs" |
| 886 | fi |
| 887 | fi |
| 888 | CC="$ac_cv_prog_CC" |
| 889 | if test -n "$CC"; then |
| 890 | echo "$ac_t""$CC" 1>&6 |
| 891 | else |
| 892 | echo "$ac_t""no" 1>&6 |
| 893 | fi |
| 894 | ;; |
| 895 | esac |
| 896 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 897 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 898 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 899 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 900 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 901 | echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 902 | |
| 903 | ac_ext=c |
| 904 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 905 | ac_cpp='$CPP $CPPFLAGS' |
| 906 | 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] | 907 | 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] | 908 | cross_compiling=$ac_cv_prog_cc_cross |
| 909 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 910 | cat > conftest.$ac_ext << EOF |
| 911 | |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 912 | #line 913 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 913 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 914 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 915 | main(){return(0);} |
| 916 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 917 | if { (eval echo configure:918: \"$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] | 918 | ac_cv_prog_cc_works=yes |
| 919 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 920 | if (./conftest; exit) 2>/dev/null; then |
| 921 | ac_cv_prog_cc_cross=no |
| 922 | else |
| 923 | ac_cv_prog_cc_cross=yes |
| 924 | fi |
| 925 | else |
| 926 | echo "configure: failed program was:" >&5 |
| 927 | cat conftest.$ac_ext >&5 |
| 928 | ac_cv_prog_cc_works=no |
| 929 | fi |
| 930 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 931 | ac_ext=c |
| 932 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 933 | ac_cpp='$CPP $CPPFLAGS' |
| 934 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 935 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 936 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 937 | |
| 938 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 939 | if test $ac_cv_prog_cc_works = no; then |
| 940 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 941 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 942 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 943 | echo "configure:944: 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] | 944 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 945 | cross_compiling=$ac_cv_prog_cc_cross |
| 946 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 947 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 948 | echo "configure:949: checking whether we are using GNU C" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 949 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 950 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 951 | else |
| 952 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 953 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 954 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 955 | #endif |
| 956 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 957 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:958: \"$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] | 958 | ac_cv_prog_gcc=yes |
| 959 | else |
| 960 | ac_cv_prog_gcc=no |
| 961 | fi |
| 962 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 963 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 964 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 965 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 966 | if test $ac_cv_prog_gcc = yes; then |
| 967 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 968 | else |
| 969 | GCC= |
| 970 | fi |
| 971 | |
| 972 | ac_test_CFLAGS="${CFLAGS+set}" |
| 973 | ac_save_CFLAGS="$CFLAGS" |
| 974 | CFLAGS= |
| 975 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 976 | echo "configure:977: checking whether ${CC-cc} accepts -g" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 977 | 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] | 978 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 979 | else |
| 980 | echo 'void f(){}' > conftest.c |
| 981 | 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] | 982 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 983 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 984 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 985 | fi |
| 986 | rm -f conftest* |
| 987 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 988 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 989 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 990 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 991 | if test "$ac_test_CFLAGS" = set; then |
| 992 | CFLAGS="$ac_save_CFLAGS" |
| 993 | elif test $ac_cv_prog_cc_g = yes; then |
| 994 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 995 | CFLAGS="-g -O2" |
| 996 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 997 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 998 | fi |
| 999 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1000 | if test "$GCC" = yes; then |
| 1001 | CFLAGS="-O2" |
| 1002 | else |
| 1003 | CFLAGS= |
| 1004 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1005 | fi |
| 1006 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1007 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1008 | case $MACHDEP in |
| 1009 | bsdos*) |
| 1010 | case $CC in |
| 1011 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1012 | esac;; |
| 1013 | esac |
| 1014 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1015 | case $ac_sys_system in |
| 1016 | hp*|HP*) |
| 1017 | case $CC in |
| 1018 | cc|*/cc) CC="$CC -Aa -D_HPUX_SOURCE";; |
| 1019 | esac;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1020 | BeOS*) |
| 1021 | case $CC in |
| 1022 | cc) CC=cc;; |
| 1023 | esac;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1024 | esac |
| 1025 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1026 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1027 | # name of the library into which to insert object files). On systems |
| 1028 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
| 1029 | # the Makefiles). |
| 1030 | |
| 1031 | |
| 1032 | LDLIBRARY='' |
| 1033 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1034 | # 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] | 1035 | # This is altered for AIX and BeOS in order to build the export list before |
| 1036 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1037 | |
| 1038 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1039 | echo "configure:1040: checking LINKCC" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1040 | if test -z "$LINKCC" -a ! -z "$CXX" |
| 1041 | then |
| 1042 | LINKCC="$CXX" |
| 1043 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1044 | if test -z "$LINKCC" |
| 1045 | then |
| 1046 | case $ac_sys_system in |
| 1047 | AIX*) |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 1048 | LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1049 | BeOS*) |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 1050 | LINKCC="\$(srcdir)/../BeOS/linkcc \$(LIBRARY) \$(PURIFY) \$(CC) \$(OPT)" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1051 | LDLIBRARY='libpython$(VERSION).so';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1052 | dgux*) |
| 1053 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1054 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1055 | esac |
| 1056 | fi |
| 1057 | echo "$ac_t""$LINKCC" 1>&6 |
| 1058 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1059 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1060 | echo "configure:1061: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1061 | |
| 1062 | # NeXT framework builds require that the 'ar' library be converted into |
| 1063 | # a bundle using libtool. |
| 1064 | if test "$with_next_framework" |
| 1065 | then |
| 1066 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1067 | fi |
| 1068 | |
| 1069 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 1070 | if test "$MACHDEP" = "dguxR4" |
| 1071 | then |
| 1072 | LDLIBRARY='libpython$(VERSION).so' |
| 1073 | OPT="$OPT -pic" |
| 1074 | fi |
| 1075 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1076 | |
| 1077 | # If LDLIBRARY is different from LIBRARY, emit a rule to build it. |
| 1078 | if test -z "$LDLIBRARY" |
| 1079 | then |
| 1080 | LDLIBRARY='libpython$(VERSION).a' |
| 1081 | MAKE_LDLIBRARY="true" |
| 1082 | else |
| 1083 | MAKE_LDLIBRARY='$(MAKE) $(LDLIBRARY)' |
| 1084 | fi |
| 1085 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1086 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1087 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1088 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1089 | echo "configure:1090: checking for $ac_word" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1090 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1091 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1092 | else |
| 1093 | if test -n "$RANLIB"; then |
| 1094 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1095 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1096 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1097 | ac_dummy="$PATH" |
| 1098 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1099 | test -z "$ac_dir" && ac_dir=. |
| 1100 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1101 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1102 | break |
| 1103 | fi |
| 1104 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1105 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1106 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1107 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1108 | fi |
| 1109 | RANLIB="$ac_cv_prog_RANLIB" |
| 1110 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1111 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1112 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1113 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1114 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1115 | |
| 1116 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1117 | for ac_prog in ar aal |
| 1118 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1119 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1120 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1121 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1122 | echo "configure:1123: checking for $ac_word" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1123 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1124 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1125 | else |
| 1126 | if test -n "$AR"; then |
| 1127 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1128 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1129 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1130 | ac_dummy="$PATH" |
| 1131 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1132 | test -z "$ac_dir" && ac_dir=. |
| 1133 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1134 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1135 | break |
| 1136 | fi |
| 1137 | done |
| 1138 | IFS="$ac_save_ifs" |
| 1139 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1140 | fi |
| 1141 | AR="$ac_cv_prog_AR" |
| 1142 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1143 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1144 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1145 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1146 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1147 | |
| 1148 | test -n "$AR" && break |
| 1149 | done |
| 1150 | test -n "$AR" || AR="ar" |
| 1151 | |
| 1152 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1153 | |
| 1154 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1155 | # Install just never works :-( |
| 1156 | if test -z "$INSTALL" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1157 | then |
| 1158 | INSTALL=cp |
| 1159 | INSTALL_PROGRAM=cp |
| 1160 | INSTALL_DATA=cp |
| 1161 | else |
| 1162 | INSTALL_PROGRAM="$INSTALL" |
| 1163 | INSTALL_DATA="$INSTALL -m 644" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1164 | fi |
| 1165 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1166 | # Not every filesystem supports hard links |
| 1167 | |
| 1168 | if test -z "$LN" ; then |
| 1169 | case $ac_sys_system in |
| 1170 | BeOS*) LN="ln -s";; |
| 1171 | *) LN=ln;; |
| 1172 | esac |
| 1173 | fi |
| 1174 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1175 | # Optimizer/debugger flags passed between Makefiles |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1176 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1177 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1178 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1179 | case $GCC in |
| 1180 | yes) |
| 1181 | case $ac_cv_prog_cc_g in |
| 1182 | yes) OPT="-g -O2";; |
| 1183 | *) OPT="-O2";; |
| 1184 | esac |
| 1185 | ;; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1186 | *) OPT="-O";; |
| 1187 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1188 | fi |
| 1189 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1190 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1191 | then |
| 1192 | OPT="$OPT $ac_arch_flags" |
| 1193 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1194 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1195 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1196 | echo "configure:1197: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1197 | # On Suns, sometimes $CPP names a directory. |
| 1198 | if test -n "$CPP" && test -d "$CPP"; then |
| 1199 | CPP= |
| 1200 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1201 | if test -z "$CPP"; then |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1202 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1203 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1204 | else |
| 1205 | # This must be in double quotes, not single quotes, because CPP may get |
| 1206 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1207 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1208 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1209 | # not just through cpp. |
| 1210 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1211 | #line 1212 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1212 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1213 | #include <assert.h> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1214 | Syntax Error |
| 1215 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1216 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1217 | { (eval echo configure:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1218 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1219 | if test -z "$ac_err"; then |
| 1220 | : |
| 1221 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1222 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1223 | echo "configure: failed program was:" >&5 |
| 1224 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1225 | rm -rf conftest* |
| 1226 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1227 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1228 | #line 1229 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1229 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1230 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1231 | Syntax Error |
| 1232 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1233 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1234 | { (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1235 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1236 | if test -z "$ac_err"; then |
| 1237 | : |
| 1238 | else |
| 1239 | echo "$ac_err" >&5 |
| 1240 | echo "configure: failed program was:" >&5 |
| 1241 | cat conftest.$ac_ext >&5 |
| 1242 | rm -rf conftest* |
| 1243 | CPP="${CC-cc} -nologo -E" |
| 1244 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1245 | #line 1246 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1246 | #include "confdefs.h" |
| 1247 | #include <assert.h> |
| 1248 | Syntax Error |
| 1249 | EOF |
| 1250 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1251 | { (eval echo configure:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1252 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1253 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1254 | : |
| 1255 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1256 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1257 | echo "configure: failed program was:" >&5 |
| 1258 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1259 | rm -rf conftest* |
| 1260 | CPP=/lib/cpp |
| 1261 | fi |
| 1262 | rm -f conftest* |
| 1263 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1264 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1265 | fi |
| 1266 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1267 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1268 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1269 | CPP="$ac_cv_prog_CPP" |
| 1270 | else |
| 1271 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1272 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1273 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1274 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1275 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1276 | echo "configure:1277: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1277 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1278 | #line 1279 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1279 | #include "confdefs.h" |
| 1280 | #ifdef _AIX |
| 1281 | yes |
| 1282 | #endif |
| 1283 | |
| 1284 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1286 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1287 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1288 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1289 | #define _ALL_SOURCE 1 |
| 1290 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1291 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1292 | else |
| 1293 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1294 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1295 | fi |
| 1296 | rm -f conftest* |
| 1297 | |
| 1298 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1299 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1300 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1301 | echo "configure:1302: checking for minix/config.h" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1302 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1303 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1304 | else |
| 1305 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1306 | #line 1307 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1307 | #include "confdefs.h" |
| 1308 | #include <minix/config.h> |
| 1309 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1310 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1311 | { (eval echo configure:1312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1312 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1313 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1314 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1315 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1316 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1317 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1318 | echo "configure: failed program was:" >&5 |
| 1319 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1320 | rm -rf conftest* |
| 1321 | eval "ac_cv_header_$ac_safe=no" |
| 1322 | fi |
| 1323 | rm -f conftest* |
| 1324 | fi |
| 1325 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1326 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1327 | MINIX=yes |
| 1328 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1329 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1330 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1331 | fi |
| 1332 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1333 | if test "$MINIX" = yes; then |
| 1334 | cat >> confdefs.h <<\EOF |
| 1335 | #define _POSIX_SOURCE 1 |
| 1336 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1337 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1338 | cat >> confdefs.h <<\EOF |
| 1339 | #define _POSIX_1_SOURCE 2 |
| 1340 | EOF |
| 1341 | |
| 1342 | cat >> confdefs.h <<\EOF |
| 1343 | #define _MINIX 1 |
| 1344 | EOF |
| 1345 | |
| 1346 | fi |
| 1347 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1348 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1349 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1350 | echo "configure:1351: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1351 | if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1352 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1353 | else |
| 1354 | ac_save_cc="$CC" |
| 1355 | CC="$CC -OPT:Olimit=0" |
| 1356 | if test "$cross_compiling" = yes; then |
| 1357 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1358 | else |
| 1359 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1360 | #line 1361 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1361 | #include "confdefs.h" |
| 1362 | int main() { return 0; } |
| 1363 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1364 | if { (eval echo configure:1365: \"$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] | 1365 | then |
| 1366 | ac_cv_opt_olimit_ok=yes |
| 1367 | else |
| 1368 | echo "configure: failed program was:" >&5 |
| 1369 | cat conftest.$ac_ext >&5 |
| 1370 | rm -fr conftest* |
| 1371 | ac_cv_opt_olimit_ok=no |
| 1372 | fi |
| 1373 | rm -fr conftest* |
| 1374 | fi |
| 1375 | |
| 1376 | CC="$ac_save_cc" |
| 1377 | fi |
| 1378 | |
| 1379 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1380 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 1381 | OPT="$OPT -OPT:Olimit=0" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1382 | else |
| 1383 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1384 | echo "configure:1385: checking whether $CC accepts -Olimit 1500" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1385 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1386 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1387 | else |
| 1388 | ac_save_cc="$CC" |
| 1389 | CC="$CC -Olimit 1500" |
| 1390 | if test "$cross_compiling" = yes; then |
| 1391 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1392 | else |
| 1393 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1394 | #line 1395 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1395 | #include "confdefs.h" |
| 1396 | int main() { return 0; } |
| 1397 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1398 | if { (eval echo configure:1399: \"$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] | 1399 | then |
| 1400 | ac_cv_olimit_ok=yes |
| 1401 | else |
| 1402 | echo "configure: failed program was:" >&5 |
| 1403 | cat conftest.$ac_ext >&5 |
| 1404 | rm -fr conftest* |
| 1405 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1406 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1407 | rm -fr conftest* |
| 1408 | fi |
| 1409 | |
| 1410 | CC="$ac_save_cc" |
| 1411 | fi |
| 1412 | |
| 1413 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1414 | if test $ac_cv_olimit_ok = yes; then |
| 1415 | OPT="$OPT -Olimit 1500" |
| 1416 | fi |
| 1417 | fi |
| 1418 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1419 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1420 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1421 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1422 | echo "configure:1423: checking for ANSI C header files" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1423 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1424 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1425 | else |
| 1426 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1427 | #line 1428 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1428 | #include "confdefs.h" |
| 1429 | #include <stdlib.h> |
| 1430 | #include <stdarg.h> |
| 1431 | #include <string.h> |
| 1432 | #include <float.h> |
| 1433 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1434 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1435 | { (eval echo configure:1436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1436 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1437 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1438 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1439 | ac_cv_header_stdc=yes |
| 1440 | else |
| 1441 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1442 | echo "configure: failed program was:" >&5 |
| 1443 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1444 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1445 | ac_cv_header_stdc=no |
| 1446 | fi |
| 1447 | rm -f conftest* |
| 1448 | |
| 1449 | if test $ac_cv_header_stdc = yes; then |
| 1450 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1451 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1452 | #line 1453 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1453 | #include "confdefs.h" |
| 1454 | #include <string.h> |
| 1455 | EOF |
| 1456 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1457 | egrep "memchr" >/dev/null 2>&1; then |
| 1458 | : |
| 1459 | else |
| 1460 | rm -rf conftest* |
| 1461 | ac_cv_header_stdc=no |
| 1462 | fi |
| 1463 | rm -f conftest* |
| 1464 | |
| 1465 | fi |
| 1466 | |
| 1467 | if test $ac_cv_header_stdc = yes; then |
| 1468 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1469 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1470 | #line 1471 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1471 | #include "confdefs.h" |
| 1472 | #include <stdlib.h> |
| 1473 | EOF |
| 1474 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1475 | egrep "free" >/dev/null 2>&1; then |
| 1476 | : |
| 1477 | else |
| 1478 | rm -rf conftest* |
| 1479 | ac_cv_header_stdc=no |
| 1480 | fi |
| 1481 | rm -f conftest* |
| 1482 | |
| 1483 | fi |
| 1484 | |
| 1485 | if test $ac_cv_header_stdc = yes; then |
| 1486 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1487 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1488 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1489 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1490 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1491 | #line 1492 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1492 | #include "confdefs.h" |
| 1493 | #include <ctype.h> |
| 1494 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1495 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1496 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1497 | int main () { int i; for (i = 0; i < 256; i++) |
| 1498 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1499 | exit (0); } |
| 1500 | |
| 1501 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1502 | if { (eval echo configure:1503: \"$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] | 1503 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1504 | : |
| 1505 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1506 | echo "configure: failed program was:" >&5 |
| 1507 | cat conftest.$ac_ext >&5 |
| 1508 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1509 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1510 | fi |
| 1511 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1512 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1513 | |
| 1514 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1515 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1516 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1517 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1518 | if test $ac_cv_header_stdc = yes; then |
| 1519 | cat >> confdefs.h <<\EOF |
| 1520 | #define STDC_HEADERS 1 |
| 1521 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1522 | |
| 1523 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1524 | |
Guido van Rossum | 9601315 | 1997-10-08 22:47:52 +0000 | [diff] [blame] | 1525 | 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] | 1526 | 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] | 1527 | sys/audioio.h sys/file.h sys/lock.h \ |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 1528 | sys/param.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 1529 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1530 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1531 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1532 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1533 | echo "configure:1534: checking for $ac_hdr" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1534 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1535 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1536 | else |
| 1537 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1538 | #line 1539 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1539 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1540 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1541 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1542 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1543 | { (eval echo configure:1544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1544 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1545 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1546 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1547 | eval "ac_cv_header_$ac_safe=yes" |
| 1548 | else |
| 1549 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1550 | echo "configure: failed program was:" >&5 |
| 1551 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1552 | rm -rf conftest* |
| 1553 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1554 | fi |
| 1555 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1556 | fi |
| 1557 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1558 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1559 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1560 | cat >> confdefs.h <<EOF |
| 1561 | #define $ac_tr_hdr 1 |
| 1562 | EOF |
| 1563 | |
| 1564 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1565 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1566 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1567 | done |
| 1568 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1569 | ac_header_dirent=no |
| 1570 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1571 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1572 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1573 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1574 | echo "configure:1575: checking for $ac_hdr that defines DIR" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1575 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1576 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1577 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1578 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1579 | #line 1580 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1580 | #include "confdefs.h" |
| 1581 | #include <sys/types.h> |
| 1582 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1583 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1584 | DIR *dirp = 0; |
| 1585 | ; return 0; } |
| 1586 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1587 | if { (eval echo configure:1588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1588 | rm -rf conftest* |
| 1589 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1590 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1591 | echo "configure: failed program was:" >&5 |
| 1592 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1593 | rm -rf conftest* |
| 1594 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1595 | fi |
| 1596 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1597 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1598 | 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] | 1599 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1600 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1601 | cat >> confdefs.h <<EOF |
| 1602 | #define $ac_tr_hdr 1 |
| 1603 | EOF |
| 1604 | ac_header_dirent=$ac_hdr; break |
| 1605 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1606 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1607 | fi |
| 1608 | done |
| 1609 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1610 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1611 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1612 | echo "configure:1613: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1613 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1614 | 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] | 1615 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1616 | else |
| 1617 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1618 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1619 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1620 | #line 1621 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1621 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1622 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1623 | /* We use char because int might match the return type of a gcc2 |
| 1624 | builtin and then its argument prototype would still apply. */ |
| 1625 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1626 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1627 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1628 | opendir() |
| 1629 | ; return 0; } |
| 1630 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1631 | if { (eval echo configure:1632: \"$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] | 1632 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1633 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1634 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1635 | echo "configure: failed program was:" >&5 |
| 1636 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1637 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1638 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1639 | fi |
| 1640 | rm -f conftest* |
| 1641 | LIBS="$ac_save_LIBS" |
| 1642 | |
| 1643 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1644 | 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] | 1645 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1646 | LIBS="$LIBS -ldir" |
| 1647 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1648 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1649 | fi |
| 1650 | |
| 1651 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1652 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1653 | echo "configure:1654: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1654 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1655 | 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] | 1656 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1657 | else |
| 1658 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1659 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1660 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1661 | #line 1662 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1662 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1663 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1664 | /* We use char because int might match the return type of a gcc2 |
| 1665 | builtin and then its argument prototype would still apply. */ |
| 1666 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1667 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1668 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1669 | opendir() |
| 1670 | ; return 0; } |
| 1671 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1672 | if { (eval echo configure:1673: \"$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] | 1673 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1674 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1675 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1676 | echo "configure: failed program was:" >&5 |
| 1677 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1678 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1679 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1680 | fi |
| 1681 | rm -f conftest* |
| 1682 | LIBS="$ac_save_LIBS" |
| 1683 | |
| 1684 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1685 | 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] | 1686 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1687 | LIBS="$LIBS -lx" |
| 1688 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1689 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1690 | fi |
| 1691 | |
| 1692 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1693 | |
| 1694 | |
| 1695 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1696 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1697 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1698 | echo "configure:1699: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1699 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1700 | #line 1701 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1701 | #include "confdefs.h" |
| 1702 | #include <time.h> |
| 1703 | EOF |
| 1704 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1705 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1706 | rm -rf conftest* |
| 1707 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1708 | else |
| 1709 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1710 | cat >> confdefs.h <<\EOF |
| 1711 | #define clock_t long |
| 1712 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1713 | |
| 1714 | fi |
| 1715 | rm -f conftest* |
| 1716 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1717 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1718 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1719 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1720 | cat >> confdefs.h <<\EOF |
| 1721 | #if defined(SCO_DS) |
| 1722 | #undef _OFF_T |
| 1723 | #endif |
| 1724 | EOF |
| 1725 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1726 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1727 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1728 | echo "configure:1729: checking for mode_t" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1729 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1730 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1731 | else |
| 1732 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1733 | #line 1734 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1734 | #include "confdefs.h" |
| 1735 | #include <sys/types.h> |
| 1736 | #if STDC_HEADERS |
| 1737 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1738 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1739 | #endif |
| 1740 | EOF |
| 1741 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1742 | 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] | 1743 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1744 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1745 | else |
| 1746 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1747 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1748 | fi |
| 1749 | rm -f conftest* |
| 1750 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1751 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1752 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 1753 | if test $ac_cv_type_mode_t = no; then |
| 1754 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1755 | #define mode_t int |
| 1756 | EOF |
| 1757 | |
| 1758 | fi |
| 1759 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1760 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1761 | echo "configure:1762: checking for off_t" >&5 |
| 1762 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1763 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1764 | else |
| 1765 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1766 | #line 1767 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1767 | #include "confdefs.h" |
| 1768 | #include <sys/types.h> |
| 1769 | #if STDC_HEADERS |
| 1770 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1771 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1772 | #endif |
| 1773 | EOF |
| 1774 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1775 | 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] | 1776 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1777 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1778 | else |
| 1779 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1780 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1781 | fi |
| 1782 | rm -f conftest* |
| 1783 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1784 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1785 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 1786 | if test $ac_cv_type_off_t = no; then |
| 1787 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1788 | #define off_t long |
| 1789 | EOF |
| 1790 | |
| 1791 | fi |
| 1792 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1793 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1794 | echo "configure:1795: checking for pid_t" >&5 |
| 1795 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1796 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1797 | else |
| 1798 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1799 | #line 1800 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1800 | #include "confdefs.h" |
| 1801 | #include <sys/types.h> |
| 1802 | #if STDC_HEADERS |
| 1803 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1804 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1805 | #endif |
| 1806 | EOF |
| 1807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1808 | 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] | 1809 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1810 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1811 | else |
| 1812 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1813 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1814 | fi |
| 1815 | rm -f conftest* |
| 1816 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1817 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1818 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 1819 | if test $ac_cv_type_pid_t = no; then |
| 1820 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1821 | #define pid_t int |
| 1822 | EOF |
| 1823 | |
| 1824 | fi |
| 1825 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1826 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1827 | echo "configure:1828: checking return type of signal handlers" >&5 |
| 1828 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1829 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1830 | else |
| 1831 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1832 | #line 1833 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1833 | #include "confdefs.h" |
| 1834 | #include <sys/types.h> |
| 1835 | #include <signal.h> |
| 1836 | #ifdef signal |
| 1837 | #undef signal |
| 1838 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1839 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1840 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1841 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1842 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1843 | #endif |
| 1844 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1845 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1846 | int i; |
| 1847 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1848 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1849 | if { (eval echo configure:1850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1850 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1851 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1852 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1853 | echo "configure: failed program was:" >&5 |
| 1854 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1855 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1856 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1857 | fi |
| 1858 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1859 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1860 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1861 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1862 | cat >> confdefs.h <<EOF |
| 1863 | #define RETSIGTYPE $ac_cv_type_signal |
| 1864 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1865 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1866 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1867 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1868 | echo "configure:1869: checking for size_t" >&5 |
| 1869 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1870 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1871 | else |
| 1872 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1873 | #line 1874 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1874 | #include "confdefs.h" |
| 1875 | #include <sys/types.h> |
| 1876 | #if STDC_HEADERS |
| 1877 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1878 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1879 | #endif |
| 1880 | EOF |
| 1881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1882 | 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] | 1883 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1884 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1885 | else |
| 1886 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1887 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1888 | fi |
| 1889 | rm -f conftest* |
| 1890 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1891 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1892 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 1893 | if test $ac_cv_type_size_t = no; then |
| 1894 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1895 | #define size_t unsigned |
| 1896 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1897 | |
| 1898 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1899 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1900 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1901 | echo "configure:1902: checking for uid_t in sys/types.h" >&5 |
| 1902 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1903 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1904 | else |
| 1905 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1906 | #line 1907 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1907 | #include "confdefs.h" |
| 1908 | #include <sys/types.h> |
| 1909 | EOF |
| 1910 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1911 | egrep "uid_t" >/dev/null 2>&1; then |
| 1912 | rm -rf conftest* |
| 1913 | ac_cv_type_uid_t=yes |
| 1914 | else |
| 1915 | rm -rf conftest* |
| 1916 | ac_cv_type_uid_t=no |
| 1917 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1918 | rm -f conftest* |
| 1919 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1920 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1921 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1922 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1923 | if test $ac_cv_type_uid_t = no; then |
| 1924 | cat >> confdefs.h <<\EOF |
| 1925 | #define uid_t int |
| 1926 | EOF |
| 1927 | |
| 1928 | cat >> confdefs.h <<\EOF |
| 1929 | #define gid_t int |
| 1930 | EOF |
| 1931 | |
| 1932 | fi |
| 1933 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1934 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1935 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1936 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1937 | echo "configure:1938: checking size of int" >&5 |
| 1938 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1939 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1940 | else |
| 1941 | if test "$cross_compiling" = yes; then |
| 1942 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1943 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1944 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1945 | #line 1946 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1946 | #include "confdefs.h" |
| 1947 | #include <stdio.h> |
| 1948 | main() |
| 1949 | { |
| 1950 | FILE *f=fopen("conftestval", "w"); |
| 1951 | if (!f) exit(1); |
| 1952 | fprintf(f, "%d\n", sizeof(int)); |
| 1953 | exit(0); |
| 1954 | } |
| 1955 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1956 | if { (eval echo configure:1957: \"$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] | 1957 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1958 | ac_cv_sizeof_int=`cat conftestval` |
| 1959 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1960 | echo "configure: failed program was:" >&5 |
| 1961 | cat conftest.$ac_ext >&5 |
| 1962 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1963 | ac_cv_sizeof_int=0 |
| 1964 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1965 | rm -fr conftest* |
| 1966 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1967 | |
| 1968 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1969 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 1970 | cat >> confdefs.h <<EOF |
| 1971 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 1972 | EOF |
| 1973 | |
| 1974 | |
| 1975 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1976 | echo "configure:1977: checking size of long" >&5 |
| 1977 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1978 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1979 | else |
| 1980 | if test "$cross_compiling" = yes; then |
| 1981 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1982 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1983 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1984 | #line 1985 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1985 | #include "confdefs.h" |
| 1986 | #include <stdio.h> |
| 1987 | main() |
| 1988 | { |
| 1989 | FILE *f=fopen("conftestval", "w"); |
| 1990 | if (!f) exit(1); |
| 1991 | fprintf(f, "%d\n", sizeof(long)); |
| 1992 | exit(0); |
| 1993 | } |
| 1994 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 1995 | if { (eval echo configure:1996: \"$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] | 1996 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1997 | ac_cv_sizeof_long=`cat conftestval` |
| 1998 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1999 | echo "configure: failed program was:" >&5 |
| 2000 | cat conftest.$ac_ext >&5 |
| 2001 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2002 | ac_cv_sizeof_long=0 |
| 2003 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2004 | rm -fr conftest* |
| 2005 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2006 | |
| 2007 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2008 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2009 | cat >> confdefs.h <<EOF |
| 2010 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2011 | EOF |
| 2012 | |
| 2013 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2014 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2015 | echo "configure:2016: checking size of void *" >&5 |
| 2016 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2017 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2018 | else |
| 2019 | if test "$cross_compiling" = yes; then |
| 2020 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2021 | else |
| 2022 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2023 | #line 2024 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2024 | #include "confdefs.h" |
| 2025 | #include <stdio.h> |
| 2026 | main() |
| 2027 | { |
| 2028 | FILE *f=fopen("conftestval", "w"); |
| 2029 | if (!f) exit(1); |
| 2030 | fprintf(f, "%d\n", sizeof(void *)); |
| 2031 | exit(0); |
| 2032 | } |
| 2033 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2034 | if { (eval echo configure:2035: \"$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] | 2035 | then |
| 2036 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2037 | else |
| 2038 | echo "configure: failed program was:" >&5 |
| 2039 | cat conftest.$ac_ext >&5 |
| 2040 | rm -fr conftest* |
| 2041 | ac_cv_sizeof_void_p=0 |
| 2042 | fi |
| 2043 | rm -fr conftest* |
| 2044 | fi |
| 2045 | |
| 2046 | fi |
| 2047 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2048 | cat >> confdefs.h <<EOF |
| 2049 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2050 | EOF |
| 2051 | |
| 2052 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2053 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2054 | echo "configure:2055: checking size of char" >&5 |
| 2055 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2056 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2057 | else |
| 2058 | if test "$cross_compiling" = yes; then |
| 2059 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2060 | else |
| 2061 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2062 | #line 2063 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2063 | #include "confdefs.h" |
| 2064 | #include <stdio.h> |
| 2065 | main() |
| 2066 | { |
| 2067 | FILE *f=fopen("conftestval", "w"); |
| 2068 | if (!f) exit(1); |
| 2069 | fprintf(f, "%d\n", sizeof(char)); |
| 2070 | exit(0); |
| 2071 | } |
| 2072 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2073 | if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2074 | then |
| 2075 | ac_cv_sizeof_char=`cat conftestval` |
| 2076 | else |
| 2077 | echo "configure: failed program was:" >&5 |
| 2078 | cat conftest.$ac_ext >&5 |
| 2079 | rm -fr conftest* |
| 2080 | ac_cv_sizeof_char=0 |
| 2081 | fi |
| 2082 | rm -fr conftest* |
| 2083 | fi |
| 2084 | |
| 2085 | fi |
| 2086 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2087 | cat >> confdefs.h <<EOF |
| 2088 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2089 | EOF |
| 2090 | |
| 2091 | |
| 2092 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2093 | echo "configure:2094: checking size of short" >&5 |
| 2094 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2095 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2096 | else |
| 2097 | if test "$cross_compiling" = yes; then |
| 2098 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2099 | else |
| 2100 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2101 | #line 2102 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2102 | #include "confdefs.h" |
| 2103 | #include <stdio.h> |
| 2104 | main() |
| 2105 | { |
| 2106 | FILE *f=fopen("conftestval", "w"); |
| 2107 | if (!f) exit(1); |
| 2108 | fprintf(f, "%d\n", sizeof(short)); |
| 2109 | exit(0); |
| 2110 | } |
| 2111 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2112 | if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2113 | then |
| 2114 | ac_cv_sizeof_short=`cat conftestval` |
| 2115 | else |
| 2116 | echo "configure: failed program was:" >&5 |
| 2117 | cat conftest.$ac_ext >&5 |
| 2118 | rm -fr conftest* |
| 2119 | ac_cv_sizeof_short=0 |
| 2120 | fi |
| 2121 | rm -fr conftest* |
| 2122 | fi |
| 2123 | |
| 2124 | fi |
| 2125 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2126 | cat >> confdefs.h <<EOF |
| 2127 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2128 | EOF |
| 2129 | |
| 2130 | |
| 2131 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2132 | echo "configure:2133: checking size of float" >&5 |
| 2133 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2134 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2135 | else |
| 2136 | if test "$cross_compiling" = yes; then |
| 2137 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2138 | else |
| 2139 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2140 | #line 2141 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2141 | #include "confdefs.h" |
| 2142 | #include <stdio.h> |
| 2143 | main() |
| 2144 | { |
| 2145 | FILE *f=fopen("conftestval", "w"); |
| 2146 | if (!f) exit(1); |
| 2147 | fprintf(f, "%d\n", sizeof(float)); |
| 2148 | exit(0); |
| 2149 | } |
| 2150 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2151 | if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2152 | then |
| 2153 | ac_cv_sizeof_float=`cat conftestval` |
| 2154 | else |
| 2155 | echo "configure: failed program was:" >&5 |
| 2156 | cat conftest.$ac_ext >&5 |
| 2157 | rm -fr conftest* |
| 2158 | ac_cv_sizeof_float=0 |
| 2159 | fi |
| 2160 | rm -fr conftest* |
| 2161 | fi |
| 2162 | |
| 2163 | fi |
| 2164 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2165 | cat >> confdefs.h <<EOF |
| 2166 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2167 | EOF |
| 2168 | |
| 2169 | |
| 2170 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2171 | echo "configure:2172: checking size of double" >&5 |
| 2172 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2173 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2174 | else |
| 2175 | if test "$cross_compiling" = yes; then |
| 2176 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2177 | else |
| 2178 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2179 | #line 2180 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2180 | #include "confdefs.h" |
| 2181 | #include <stdio.h> |
| 2182 | main() |
| 2183 | { |
| 2184 | FILE *f=fopen("conftestval", "w"); |
| 2185 | if (!f) exit(1); |
| 2186 | fprintf(f, "%d\n", sizeof(double)); |
| 2187 | exit(0); |
| 2188 | } |
| 2189 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2190 | if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2191 | then |
| 2192 | ac_cv_sizeof_double=`cat conftestval` |
| 2193 | else |
| 2194 | echo "configure: failed program was:" >&5 |
| 2195 | cat conftest.$ac_ext >&5 |
| 2196 | rm -fr conftest* |
| 2197 | ac_cv_sizeof_double=0 |
| 2198 | fi |
| 2199 | rm -fr conftest* |
| 2200 | fi |
| 2201 | |
| 2202 | fi |
| 2203 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2204 | cat >> confdefs.h <<EOF |
| 2205 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2206 | EOF |
| 2207 | |
| 2208 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2209 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2210 | echo "configure:2211: checking size of fpos_t" >&5 |
| 2211 | if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2212 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2213 | else |
| 2214 | if test "$cross_compiling" = yes; then |
| 2215 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2216 | else |
| 2217 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2218 | #line 2219 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2219 | #include "confdefs.h" |
| 2220 | #include <stdio.h> |
| 2221 | main() |
| 2222 | { |
| 2223 | FILE *f=fopen("conftestval", "w"); |
| 2224 | if (!f) exit(1); |
| 2225 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2226 | exit(0); |
| 2227 | } |
| 2228 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2229 | if { (eval echo configure:2230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2230 | then |
| 2231 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2232 | else |
| 2233 | echo "configure: failed program was:" >&5 |
| 2234 | cat conftest.$ac_ext >&5 |
| 2235 | rm -fr conftest* |
| 2236 | ac_cv_sizeof_fpos_t=0 |
| 2237 | fi |
| 2238 | rm -fr conftest* |
| 2239 | fi |
| 2240 | |
| 2241 | fi |
| 2242 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2243 | cat >> confdefs.h <<EOF |
| 2244 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2245 | EOF |
| 2246 | |
| 2247 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2248 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2249 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2250 | echo "configure:2251: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2251 | have_long_long=no |
| 2252 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2253 | #line 2254 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2254 | #include "confdefs.h" |
| 2255 | |
| 2256 | int main() { |
| 2257 | long long x; x = (long long)0; |
| 2258 | ; return 0; } |
| 2259 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2260 | if { (eval echo configure:2261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2261 | rm -rf conftest* |
| 2262 | cat >> confdefs.h <<\EOF |
| 2263 | #define HAVE_LONG_LONG 1 |
| 2264 | EOF |
| 2265 | have_long_long=yes |
| 2266 | else |
| 2267 | echo "configure: failed program was:" >&5 |
| 2268 | cat conftest.$ac_ext >&5 |
| 2269 | fi |
| 2270 | rm -f conftest* |
| 2271 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2272 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2273 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2274 | echo "configure:2275: checking size of long long" >&5 |
| 2275 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2276 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2277 | else |
| 2278 | if test "$cross_compiling" = yes; then |
| 2279 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2280 | else |
| 2281 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2282 | #line 2283 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2283 | #include "confdefs.h" |
| 2284 | #include <stdio.h> |
| 2285 | main() |
| 2286 | { |
| 2287 | FILE *f=fopen("conftestval", "w"); |
| 2288 | if (!f) exit(1); |
| 2289 | fprintf(f, "%d\n", sizeof(long long)); |
| 2290 | exit(0); |
| 2291 | } |
| 2292 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2293 | if { (eval echo configure:2294: \"$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] | 2294 | then |
| 2295 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2296 | else |
| 2297 | echo "configure: failed program was:" >&5 |
| 2298 | cat conftest.$ac_ext >&5 |
| 2299 | rm -fr conftest* |
| 2300 | ac_cv_sizeof_long_long=0 |
| 2301 | fi |
| 2302 | rm -fr conftest* |
| 2303 | fi |
| 2304 | |
| 2305 | fi |
| 2306 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2307 | cat >> confdefs.h <<EOF |
| 2308 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2309 | EOF |
| 2310 | |
| 2311 | |
| 2312 | fi |
| 2313 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2314 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2315 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2316 | echo "configure:2317: checking size of off_t" >&5 |
| 2317 | if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2318 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2319 | else |
| 2320 | if test "$cross_compiling" = yes; then |
| 2321 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2322 | else |
| 2323 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2324 | #line 2325 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2325 | #include "confdefs.h" |
| 2326 | #include <stdio.h> |
| 2327 | #include <sys/types.h> |
| 2328 | main() |
| 2329 | { |
| 2330 | FILE *f=fopen("conftestval", "w"); |
| 2331 | if (!f) exit(1); |
| 2332 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2333 | exit(0); |
| 2334 | } |
| 2335 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2336 | if { (eval echo configure:2337: \"$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] | 2337 | then |
| 2338 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2339 | else |
| 2340 | echo "configure: failed program was:" >&5 |
| 2341 | cat conftest.$ac_ext >&5 |
| 2342 | rm -fr conftest* |
| 2343 | ac_cv_sizeof_off_t=0 |
| 2344 | fi |
| 2345 | rm -fr conftest* |
| 2346 | fi |
| 2347 | |
| 2348 | |
| 2349 | fi |
| 2350 | |
| 2351 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2352 | cat >> confdefs.h <<EOF |
| 2353 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2354 | EOF |
| 2355 | |
| 2356 | |
| 2357 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2358 | echo "configure:2359: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2359 | if test "$have_long_long" = yes -a \ |
| 2360 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2361 | "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2362 | cat >> confdefs.h <<\EOF |
| 2363 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2364 | EOF |
| 2365 | |
| 2366 | echo "$ac_t""yes" 1>&6 |
| 2367 | else |
| 2368 | echo "$ac_t""no" 1>&6 |
| 2369 | fi |
| 2370 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2371 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2372 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2373 | echo "configure:2374: checking size of time_t" >&5 |
| 2374 | if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2375 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2376 | else |
| 2377 | if test "$cross_compiling" = yes; then |
| 2378 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2379 | else |
| 2380 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2381 | #line 2382 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2382 | #include "confdefs.h" |
| 2383 | #include <stdio.h> |
| 2384 | #include <time.h> |
| 2385 | main() |
| 2386 | { |
| 2387 | FILE *f=fopen("conftestval", "w"); |
| 2388 | if (!f) exit(1); |
| 2389 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2390 | exit(0); |
| 2391 | } |
| 2392 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2393 | if { (eval echo configure:2394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2394 | then |
| 2395 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2396 | else |
| 2397 | echo "configure: failed program was:" >&5 |
| 2398 | cat conftest.$ac_ext >&5 |
| 2399 | rm -fr conftest* |
| 2400 | ac_cv_sizeof_time_t=0 |
| 2401 | fi |
| 2402 | rm -fr conftest* |
| 2403 | fi |
| 2404 | |
| 2405 | |
| 2406 | fi |
| 2407 | |
| 2408 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2409 | cat >> confdefs.h <<EOF |
| 2410 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2411 | EOF |
| 2412 | |
| 2413 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2414 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2415 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2416 | |
| 2417 | case $ac_sys_system/$ac_sys_release in |
| 2418 | next/4*) |
| 2419 | ns_undef_sym='__environ' |
| 2420 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2421 | next/5*) |
| 2422 | ns_undef_sym='_environ' |
| 2423 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2424 | esac |
| 2425 | |
| 2426 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2427 | echo "configure:2428: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2428 | if test "$with_next_framework" |
| 2429 | then |
| 2430 | OPT="$OPT -fno-common" |
| 2431 | # -U __environ is needed since bundles don't have access |
| 2432 | # to crt0 when built but will always be linked against it |
| 2433 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2434 | cat >> confdefs.h <<\EOF |
| 2435 | #define WITH_NEXT_FRAMEWORK 1 |
| 2436 | EOF |
| 2437 | |
| 2438 | echo "$ac_t""yes" 1>&6 |
| 2439 | else |
| 2440 | echo "$ac_t""no" 1>&6 |
| 2441 | fi |
| 2442 | |
| 2443 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2444 | echo "configure:2445: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2445 | if test "$with_next_framework" -o "$with_dyld" |
| 2446 | then |
| 2447 | if test "$with_dyld" |
| 2448 | then |
| 2449 | echo "$ac_t""yes" 1>&6 |
| 2450 | else |
| 2451 | echo "$ac_t""required for framework build" 1>&6 |
| 2452 | fi |
| 2453 | cat >> confdefs.h <<\EOF |
| 2454 | #define WITH_DYLD 1 |
| 2455 | EOF |
| 2456 | |
| 2457 | ns_dyld='set' |
| 2458 | else |
| 2459 | echo "$ac_t""no" 1>&6 |
| 2460 | fi |
| 2461 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2462 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2463 | |
| 2464 | |
| 2465 | |
| 2466 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2467 | # SO is the extension of shared libraries `(including the dot!) |
| 2468 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2469 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2470 | echo "configure:2471: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2471 | if test -z "$SO" |
| 2472 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2473 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2474 | hp*|HP*) SO=.sl;; |
| 2475 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2476 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2477 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2478 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2479 | # LDSHARED is the ld *command* used to create shared library |
| 2480 | # -- "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] | 2481 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2482 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2483 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2484 | echo "configure:2485: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2485 | if test -z "$LDSHARED" |
| 2486 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2487 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 2488 | AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2489 | BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2490 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2491 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2492 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2493 | SunOS/5*) |
| 2494 | if test "$GCC" = "yes" |
| 2495 | then LDSHARED='$(CC) -G' |
| 2496 | else LDSHARED="ld -G"; |
| 2497 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2498 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2499 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2500 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2501 | next/*) |
| 2502 | if test "$ns_dyld" |
| 2503 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind' |
| 2504 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2505 | fi |
| 2506 | if test "$with_next_framework" ; then |
| 2507 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2508 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2509 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2510 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2511 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | a8acf72 | 1999-04-27 22:06:08 +0000 | [diff] [blame] | 2512 | FreeBSD*/[34]*) LDSHARED="gcc -shared";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2513 | FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";; |
| 2514 | NetBSD*) |
| 2515 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2516 | then |
| 2517 | LDSHARED="cc -shared" |
| 2518 | else |
| 2519 | LDSHARED="ld -Bshareable" |
| 2520 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2521 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2522 | *) LDSHARED="ld";; |
| 2523 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2524 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2525 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2526 | # 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] | 2527 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2528 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2529 | echo "configure:2530: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2530 | if test -z "$CCSHARED" |
| 2531 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2532 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2533 | hp*|HP*) if test "$GCC" = yes; |
| 2534 | then CCSHARED="-fpic"; |
| 2535 | else CCSHARED="+z"; |
| 2536 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2537 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2538 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2539 | FreeBSD*|OpenBSD*) CCSHARED="-fpic";; |
| 2540 | NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2541 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2542 | IRIX*/6*) case $CC in |
| 2543 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2544 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2545 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2546 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2547 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2548 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2549 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2550 | # the python executable -- this is only needed for a few systems |
| 2551 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2552 | echo "configure:2553: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2553 | if test -z "$LINKFORSHARED" |
| 2554 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2555 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 69f6580 | 1998-03-03 21:47:00 +0000 | [diff] [blame] | 2556 | AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2557 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2558 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2559 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | a8acf72 | 1999-04-27 22:06:08 +0000 | [diff] [blame] | 2560 | FreeBSD/[34]*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2561 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2562 | # -u libsys_s pulls in all symbols in libsys |
| 2563 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2564 | # -u __dummy makes the linker aware of the objc runtime |
| 2565 | # in System.framework; otherwise, __objcInit (referenced in |
| 2566 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2567 | # loading of any modules which reference it in System.framework |
| 2568 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2569 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2570 | NetBSD*) |
| 2571 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2572 | then |
| 2573 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2574 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2575 | SunOS/5*) case $CC in |
| 2576 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 2577 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2578 | then |
| 2579 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2580 | fi;; |
| 2581 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2582 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2583 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2584 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2585 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2586 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2587 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2588 | echo "configure:2589: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2589 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2590 | 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] | 2591 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2592 | else |
| 2593 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2594 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2595 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2596 | #line 2597 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2597 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2598 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2599 | /* We use char because int might match the return type of a gcc2 |
| 2600 | builtin and then its argument prototype would still apply. */ |
| 2601 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2602 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2603 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2604 | dlopen() |
| 2605 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2606 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2607 | if { (eval echo configure:2608: \"$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] | 2608 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2609 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2610 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2611 | echo "configure: failed program was:" >&5 |
| 2612 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2613 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2614 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2615 | fi |
| 2616 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2617 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2618 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2619 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2620 | 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] | 2621 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2622 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2623 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2624 | cat >> confdefs.h <<EOF |
| 2625 | #define $ac_tr_lib 1 |
| 2626 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2627 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2628 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2629 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2630 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2631 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2632 | fi |
| 2633 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2634 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2635 | echo "configure:2636: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2636 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2637 | 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] | 2638 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2639 | else |
| 2640 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2641 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2642 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2643 | #line 2644 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2644 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2645 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2646 | /* We use char because int might match the return type of a gcc2 |
| 2647 | builtin and then its argument prototype would still apply. */ |
| 2648 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2649 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2650 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2651 | shl_load() |
| 2652 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2653 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2654 | if { (eval echo configure:2655: \"$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] | 2655 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2656 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2657 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2658 | echo "configure: failed program was:" >&5 |
| 2659 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2660 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2661 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2662 | fi |
| 2663 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2664 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2665 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2666 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2667 | 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] | 2668 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2669 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2670 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2671 | cat >> confdefs.h <<EOF |
| 2672 | #define $ac_tr_lib 1 |
| 2673 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2674 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2675 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2676 | |
| 2677 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2678 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2679 | fi |
| 2680 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2681 | |
| 2682 | # checks for system dependent C++ extensions support |
| 2683 | case "$ac_sys_system" in |
| 2684 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2685 | echo "configure:2686: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2686 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2687 | #line 2688 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2688 | #include "confdefs.h" |
| 2689 | #include "/usr/lpp/xlC/include/load.h" |
| 2690 | int main() { |
| 2691 | loadAndInit("", 0, "") |
| 2692 | ; return 0; } |
| 2693 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2694 | if { (eval echo configure:2695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2695 | rm -rf conftest* |
| 2696 | cat >> confdefs.h <<\EOF |
| 2697 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 2698 | EOF |
| 2699 | |
| 2700 | echo "$ac_t""yes" 1>&6 |
| 2701 | else |
| 2702 | echo "configure: failed program was:" >&5 |
| 2703 | cat conftest.$ac_ext >&5 |
| 2704 | rm -rf conftest* |
| 2705 | echo "$ac_t""no" 1>&6 |
| 2706 | fi |
| 2707 | rm -f conftest*;; |
| 2708 | *) ;; |
| 2709 | esac |
| 2710 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2711 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 2712 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2713 | # BeOS' sockets are stashed in libnet. |
| 2714 | case "$ac_sys_system" in |
| 2715 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2716 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2717 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2718 | echo "configure:2719: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2719 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2720 | 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] | 2721 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2722 | else |
| 2723 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2724 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2725 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2726 | #line 2727 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2727 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2728 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2729 | /* We use char because int might match the return type of a gcc2 |
| 2730 | builtin and then its argument prototype would still apply. */ |
| 2731 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2732 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2733 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2734 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2735 | ; return 0; } |
| 2736 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2737 | if { (eval echo configure:2738: \"$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] | 2738 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2739 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2740 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2741 | echo "configure: failed program was:" >&5 |
| 2742 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2743 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2744 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2745 | fi |
| 2746 | rm -f conftest* |
| 2747 | LIBS="$ac_save_LIBS" |
| 2748 | |
| 2749 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2750 | 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] | 2751 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2752 | LIBS="-lnsl $LIBS" |
| 2753 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2754 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2755 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2756 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2757 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2758 | echo "configure:2759: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2759 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2760 | 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] | 2761 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2762 | else |
| 2763 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2764 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2765 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2766 | #line 2767 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2767 | #include "confdefs.h" |
| 2768 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2769 | /* We use char because int might match the return type of a gcc2 |
| 2770 | builtin and then its argument prototype would still apply. */ |
| 2771 | char socket(); |
| 2772 | |
| 2773 | int main() { |
| 2774 | socket() |
| 2775 | ; return 0; } |
| 2776 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2777 | if { (eval echo configure:2778: \"$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] | 2778 | rm -rf conftest* |
| 2779 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2780 | else |
| 2781 | echo "configure: failed program was:" >&5 |
| 2782 | cat conftest.$ac_ext >&5 |
| 2783 | rm -rf conftest* |
| 2784 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2785 | fi |
| 2786 | rm -f conftest* |
| 2787 | LIBS="$ac_save_LIBS" |
| 2788 | |
| 2789 | fi |
| 2790 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2791 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2792 | LIBS="-lsocket $LIBS" |
| 2793 | else |
| 2794 | echo "$ac_t""no" 1>&6 |
| 2795 | fi |
| 2796 | # SVR4 sockets |
| 2797 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2798 | echo "configure:2799: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2799 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2800 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2801 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2802 | else |
| 2803 | ac_save_LIBS="$LIBS" |
| 2804 | LIBS="-lnet $LIBS $LIBS" |
| 2805 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2806 | #line 2807 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2807 | #include "confdefs.h" |
| 2808 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2809 | /* We use char because int might match the return type of a gcc2 |
| 2810 | builtin and then its argument prototype would still apply. */ |
| 2811 | char socket(); |
| 2812 | |
| 2813 | int main() { |
| 2814 | socket() |
| 2815 | ; return 0; } |
| 2816 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2817 | if { (eval echo configure:2818: \"$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] | 2818 | rm -rf conftest* |
| 2819 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2820 | else |
| 2821 | echo "configure: failed program was:" >&5 |
| 2822 | cat conftest.$ac_ext >&5 |
| 2823 | rm -rf conftest* |
| 2824 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2825 | fi |
| 2826 | rm -f conftest* |
| 2827 | LIBS="$ac_save_LIBS" |
| 2828 | |
| 2829 | fi |
| 2830 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2831 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2832 | LIBS="-lnet $LIBS" |
| 2833 | else |
| 2834 | echo "$ac_t""no" 1>&6 |
| 2835 | fi |
| 2836 | # BeOS |
| 2837 | ;; |
| 2838 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2839 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2840 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2841 | echo "configure:2842: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2842 | # Check whether --with-libs or --without-libs was given. |
| 2843 | if test "${with_libs+set}" = set; then |
| 2844 | withval="$with_libs" |
| 2845 | |
| 2846 | echo "$ac_t""$withval" 1>&6 |
| 2847 | LIBS="$withval $LIBS" |
| 2848 | |
| 2849 | else |
| 2850 | echo "$ac_t""no" 1>&6 |
| 2851 | fi |
| 2852 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2853 | |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2854 | echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2855 | echo "configure:2856: checking for --with(out)-readline" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2856 | # Check whether --with-readline or --without-readline was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2857 | if test "${with_readline+set}" = set; then |
| 2858 | withval="$with_readline" |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2859 | echo "$ac_t""$withval" 1>&6 |
| 2860 | { 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] | 2861 | else |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2862 | echo "$ac_t""not specified." 1>&6 |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2863 | fi |
| 2864 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2865 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2866 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2867 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2868 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2869 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2870 | echo "configure:2871: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2871 | |
| 2872 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 2873 | if test "${with_dec_threads+set}" = set; then |
| 2874 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2875 | |
| 2876 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2877 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2878 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2879 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2880 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2881 | else |
| 2882 | echo "$ac_t""no" 1>&6 |
| 2883 | fi |
| 2884 | |
| 2885 | |
| 2886 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2887 | echo "configure:2888: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2888 | # Check whether --with-threads or --without-threads was given. |
| 2889 | if test "${with_threads+set}" = set; then |
| 2890 | withval="$with_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2891 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2892 | fi |
| 2893 | |
| 2894 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2895 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2896 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2897 | if test "${with_thread+set}" = set; then |
| 2898 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 2899 | |
| 2900 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2901 | fi |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2902 | |
| 2903 | |
| 2904 | if test -z "$with_threads" |
| 2905 | then with_threads="yes" |
| 2906 | fi |
| 2907 | echo "$ac_t""$with_threads" 1>&6 |
| 2908 | |
| 2909 | if test "$with_threads" = "no" |
| 2910 | then |
| 2911 | USE_THREAD_MODULE="#" |
| 2912 | else |
| 2913 | if test -d "$with_threads" |
| 2914 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 2915 | fi |
| 2916 | if test -d "$withval" |
| 2917 | then LDFLAGS="$LDFLAGS -L$withval" |
| 2918 | fi |
| 2919 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 2920 | #define _REENTRANT 1 |
| 2921 | EOF |
| 2922 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2923 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2924 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2925 | echo "configure:2926: checking for mach/cthreads.h" >&5 |
| 2926 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2927 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2928 | else |
| 2929 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2930 | #line 2931 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2931 | #include "confdefs.h" |
| 2932 | #include <mach/cthreads.h> |
| 2933 | EOF |
| 2934 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2935 | { (eval echo configure:2936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2936 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2937 | if test -z "$ac_err"; then |
| 2938 | rm -rf conftest* |
| 2939 | eval "ac_cv_header_$ac_safe=yes" |
| 2940 | else |
| 2941 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2942 | echo "configure: failed program was:" >&5 |
| 2943 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2944 | rm -rf conftest* |
| 2945 | eval "ac_cv_header_$ac_safe=no" |
| 2946 | fi |
| 2947 | rm -f conftest* |
| 2948 | fi |
| 2949 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2950 | echo "$ac_t""yes" 1>&6 |
| 2951 | cat >> confdefs.h <<\EOF |
| 2952 | #define WITH_THREAD 1 |
| 2953 | EOF |
| 2954 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2955 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2956 | #define C_THREADS 1 |
| 2957 | EOF |
| 2958 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2959 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2960 | else |
| 2961 | echo "$ac_t""no" 1>&6 |
| 2962 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2963 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2964 | echo "configure:2965: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 2965 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2966 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 2967 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2968 | else |
| 2969 | ac_save_LIBS="$LIBS" |
| 2970 | LIBS="-lpthread $LIBS" |
| 2971 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2972 | #line 2973 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 2973 | #include "confdefs.h" |
| 2974 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2975 | /* We use char because int might match the return type of a gcc2 |
| 2976 | builtin and then its argument prototype would still apply. */ |
| 2977 | char pthread_create(); |
| 2978 | |
| 2979 | int main() { |
| 2980 | pthread_create() |
| 2981 | ; return 0; } |
| 2982 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2983 | if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 2984 | rm -rf conftest* |
| 2985 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2986 | else |
| 2987 | echo "configure: failed program was:" >&5 |
| 2988 | cat conftest.$ac_ext >&5 |
| 2989 | rm -rf conftest* |
| 2990 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2991 | fi |
| 2992 | rm -f conftest* |
| 2993 | LIBS="$ac_save_LIBS" |
| 2994 | |
| 2995 | fi |
| 2996 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2997 | echo "$ac_t""yes" 1>&6 |
| 2998 | cat >> confdefs.h <<\EOF |
| 2999 | #define WITH_THREAD 1 |
| 3000 | EOF |
| 3001 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3002 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3003 | #define _POSIX_THREADS 1 |
| 3004 | EOF |
| 3005 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3006 | LIBS="-lpthread $LIBS" |
| 3007 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3008 | else |
| 3009 | echo "$ac_t""no" 1>&6 |
| 3010 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3011 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3012 | echo "configure:3013: checking for pthread_detach" >&5 |
| 3013 | 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] | 3014 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3015 | else |
| 3016 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3017 | #line 3018 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3018 | #include "confdefs.h" |
| 3019 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3020 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3021 | #include <assert.h> |
| 3022 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3023 | /* We use char because int might match the return type of a gcc2 |
| 3024 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3025 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3026 | |
| 3027 | int main() { |
| 3028 | |
| 3029 | /* The GNU C library defines this for functions which it implements |
| 3030 | to always fail with ENOSYS. Some functions are actually named |
| 3031 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3032 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3033 | choke me |
| 3034 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3035 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3036 | #endif |
| 3037 | |
| 3038 | ; return 0; } |
| 3039 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3040 | if { (eval echo configure:3041: \"$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] | 3041 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3042 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3043 | else |
| 3044 | echo "configure: failed program was:" >&5 |
| 3045 | cat conftest.$ac_ext >&5 |
| 3046 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3047 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3048 | fi |
| 3049 | rm -f conftest* |
| 3050 | fi |
| 3051 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3052 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3053 | echo "$ac_t""yes" 1>&6 |
| 3054 | cat >> confdefs.h <<\EOF |
| 3055 | #define WITH_THREAD 1 |
| 3056 | EOF |
| 3057 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3058 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3059 | #define _POSIX_THREADS 1 |
| 3060 | EOF |
| 3061 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3062 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3063 | else |
| 3064 | echo "$ac_t""no" 1>&6 |
| 3065 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3066 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3067 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3068 | echo "configure:3069: checking for kernel/OS.h" >&5 |
| 3069 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3070 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3071 | else |
| 3072 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3073 | #line 3074 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3074 | #include "confdefs.h" |
| 3075 | #include <kernel/OS.h> |
| 3076 | EOF |
| 3077 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3078 | { (eval echo configure:3079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3079 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3080 | if test -z "$ac_err"; then |
| 3081 | rm -rf conftest* |
| 3082 | eval "ac_cv_header_$ac_safe=yes" |
| 3083 | else |
| 3084 | echo "$ac_err" >&5 |
| 3085 | echo "configure: failed program was:" >&5 |
| 3086 | cat conftest.$ac_ext >&5 |
| 3087 | rm -rf conftest* |
| 3088 | eval "ac_cv_header_$ac_safe=no" |
| 3089 | fi |
| 3090 | rm -f conftest* |
| 3091 | fi |
| 3092 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3093 | echo "$ac_t""yes" 1>&6 |
| 3094 | cat >> confdefs.h <<\EOF |
| 3095 | #define WITH_THREAD 1 |
| 3096 | EOF |
| 3097 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3098 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3099 | #define BEOS_THREADS 1 |
| 3100 | EOF |
| 3101 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3102 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3103 | else |
| 3104 | echo "$ac_t""no" 1>&6 |
| 3105 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3106 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3107 | echo "configure:3108: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3108 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3109 | 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] | 3110 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3111 | else |
| 3112 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3113 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3114 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3115 | #line 3116 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3116 | #include "confdefs.h" |
| 3117 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3118 | /* We use char because int might match the return type of a gcc2 |
| 3119 | builtin and then its argument prototype would still apply. */ |
| 3120 | char pthread_create(); |
| 3121 | |
| 3122 | int main() { |
| 3123 | pthread_create() |
| 3124 | ; return 0; } |
| 3125 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3126 | if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3127 | rm -rf conftest* |
| 3128 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3129 | else |
| 3130 | echo "configure: failed program was:" >&5 |
| 3131 | cat conftest.$ac_ext >&5 |
| 3132 | rm -rf conftest* |
| 3133 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3134 | fi |
| 3135 | rm -f conftest* |
| 3136 | LIBS="$ac_save_LIBS" |
| 3137 | |
| 3138 | fi |
| 3139 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3140 | echo "$ac_t""yes" 1>&6 |
| 3141 | cat >> confdefs.h <<\EOF |
| 3142 | #define WITH_THREAD 1 |
| 3143 | EOF |
| 3144 | |
| 3145 | cat >> confdefs.h <<\EOF |
| 3146 | #define _POSIX_THREADS 1 |
| 3147 | EOF |
| 3148 | |
| 3149 | LIBS="$LIBS -lpthreads" |
| 3150 | LIBOBJS="$LIBOBJS thread.o" |
| 3151 | else |
| 3152 | echo "$ac_t""no" 1>&6 |
| 3153 | |
| 3154 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3155 | echo "configure:3156: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3156 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3157 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3158 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3159 | else |
| 3160 | ac_save_LIBS="$LIBS" |
| 3161 | LIBS="-lc_r $LIBS" |
| 3162 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3163 | #line 3164 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3164 | #include "confdefs.h" |
| 3165 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3166 | /* We use char because int might match the return type of a gcc2 |
| 3167 | builtin and then its argument prototype would still apply. */ |
| 3168 | char pthread_create(); |
| 3169 | |
| 3170 | int main() { |
| 3171 | pthread_create() |
| 3172 | ; return 0; } |
| 3173 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3174 | if { (eval echo configure:3175: \"$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] | 3175 | rm -rf conftest* |
| 3176 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3177 | else |
| 3178 | echo "configure: failed program was:" >&5 |
| 3179 | cat conftest.$ac_ext >&5 |
| 3180 | rm -rf conftest* |
| 3181 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3182 | fi |
| 3183 | rm -f conftest* |
| 3184 | LIBS="$ac_save_LIBS" |
| 3185 | |
| 3186 | fi |
| 3187 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3188 | echo "$ac_t""yes" 1>&6 |
| 3189 | cat >> confdefs.h <<\EOF |
| 3190 | #define WITH_THREAD 1 |
| 3191 | EOF |
| 3192 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3193 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3194 | #define _POSIX_THREADS 1 |
| 3195 | EOF |
| 3196 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3197 | LIBS="$LIBS -lc_r" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3198 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3199 | else |
| 3200 | echo "$ac_t""no" 1>&6 |
| 3201 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3202 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3203 | echo "configure:3204: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3204 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3205 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3206 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3207 | else |
| 3208 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3209 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3210 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3211 | #line 3212 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3212 | #include "confdefs.h" |
| 3213 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3214 | /* We use char because int might match the return type of a gcc2 |
| 3215 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3216 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3217 | |
| 3218 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3219 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3220 | ; return 0; } |
| 3221 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3222 | if { (eval echo configure:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3223 | rm -rf conftest* |
| 3224 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3225 | else |
| 3226 | echo "configure: failed program was:" >&5 |
| 3227 | cat conftest.$ac_ext >&5 |
| 3228 | rm -rf conftest* |
| 3229 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3230 | fi |
| 3231 | rm -f conftest* |
| 3232 | LIBS="$ac_save_LIBS" |
| 3233 | |
| 3234 | fi |
| 3235 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3236 | echo "$ac_t""yes" 1>&6 |
| 3237 | cat >> confdefs.h <<\EOF |
| 3238 | #define WITH_THREAD 1 |
| 3239 | EOF |
| 3240 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3241 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3242 | #define _POSIX_THREADS 1 |
| 3243 | EOF |
| 3244 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3245 | LIBS="$LIBS -lthread" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3246 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3247 | else |
| 3248 | echo "$ac_t""no" 1>&6 |
| 3249 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3250 | echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3251 | echo "configure:3252: checking for pth_init in -lpth" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3252 | ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3253 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3254 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3255 | else |
| 3256 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3257 | LIBS="-lpth $LIBS" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3258 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3259 | #line 3260 "configure" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3260 | #include "confdefs.h" |
| 3261 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3262 | /* We use char because int might match the return type of a gcc2 |
| 3263 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3264 | char pth_init(); |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3265 | |
| 3266 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3267 | pth_init() |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3268 | ; return 0; } |
| 3269 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3270 | if { (eval echo configure:3271: \"$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] | 3271 | rm -rf conftest* |
| 3272 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3273 | else |
| 3274 | echo "configure: failed program was:" >&5 |
| 3275 | cat conftest.$ac_ext >&5 |
| 3276 | rm -rf conftest* |
| 3277 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3278 | fi |
| 3279 | rm -f conftest* |
| 3280 | LIBS="$ac_save_LIBS" |
| 3281 | |
| 3282 | fi |
| 3283 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3284 | echo "$ac_t""yes" 1>&6 |
| 3285 | cat >> confdefs.h <<\EOF |
| 3286 | #define WITH_THREAD 1 |
| 3287 | EOF |
| 3288 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3289 | cat >> confdefs.h <<\EOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3290 | #define _GNU_PTH 1 |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3291 | EOF |
| 3292 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3293 | LIBS="-lpth $LIBS" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3294 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3295 | else |
| 3296 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3297 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3298 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3299 | echo "configure:3300: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3300 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3301 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3302 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3303 | else |
| 3304 | ac_save_LIBS="$LIBS" |
| 3305 | LIBS="-lcma $LIBS" |
| 3306 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3307 | #line 3308 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3308 | #include "confdefs.h" |
| 3309 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3310 | /* We use char because int might match the return type of a gcc2 |
| 3311 | builtin and then its argument prototype would still apply. */ |
| 3312 | char pthread_create(); |
| 3313 | |
| 3314 | int main() { |
| 3315 | pthread_create() |
| 3316 | ; return 0; } |
| 3317 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3318 | if { (eval echo configure:3319: \"$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] | 3319 | rm -rf conftest* |
| 3320 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3321 | else |
| 3322 | echo "configure: failed program was:" >&5 |
| 3323 | cat conftest.$ac_ext >&5 |
| 3324 | rm -rf conftest* |
| 3325 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3326 | fi |
| 3327 | rm -f conftest* |
| 3328 | LIBS="$ac_save_LIBS" |
| 3329 | |
| 3330 | fi |
| 3331 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3332 | echo "$ac_t""yes" 1>&6 |
| 3333 | cat >> confdefs.h <<\EOF |
| 3334 | #define WITH_THREAD 1 |
| 3335 | EOF |
| 3336 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3337 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3338 | #define _POSIX_THREADS 1 |
| 3339 | EOF |
| 3340 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3341 | LIBS="$LIBS -lcma" |
| 3342 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3343 | else |
| 3344 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3345 | fi |
| 3346 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3347 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3348 | fi |
| 3349 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3350 | fi |
| 3351 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3352 | fi |
| 3353 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3354 | fi |
| 3355 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3356 | fi |
| 3357 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3358 | fi |
| 3359 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3360 | fi |
| 3361 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3362 | fi |
| 3363 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3364 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3365 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3366 | echo "configure:3367: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3367 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3368 | 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] | 3369 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3370 | else |
| 3371 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3372 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3373 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3374 | #line 3375 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3375 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3376 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3377 | /* We use char because int might match the return type of a gcc2 |
| 3378 | builtin and then its argument prototype would still apply. */ |
| 3379 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3380 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3381 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3382 | usconfig() |
| 3383 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3384 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3385 | if { (eval echo configure:3386: \"$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] | 3386 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3387 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3388 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3389 | echo "configure: failed program was:" >&5 |
| 3390 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3391 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3392 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3393 | fi |
| 3394 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3395 | LIBS="$ac_save_LIBS" |
| 3396 | |
| 3397 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3398 | 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] | 3399 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3400 | cat >> confdefs.h <<\EOF |
| 3401 | #define WITH_THREAD 1 |
| 3402 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3403 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3404 | LIBS="$LIBS -lmpc" |
| 3405 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3406 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3407 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3408 | fi |
| 3409 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3410 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3411 | echo "configure:3412: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3412 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3413 | 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] | 3414 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3415 | else |
| 3416 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3417 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3418 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3419 | #line 3420 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3420 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3421 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3422 | /* We use char because int might match the return type of a gcc2 |
| 3423 | builtin and then its argument prototype would still apply. */ |
| 3424 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3425 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3426 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3427 | thr_create() |
| 3428 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3429 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3430 | if { (eval echo configure:3431: \"$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] | 3431 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3432 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3433 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3434 | echo "configure: failed program was:" >&5 |
| 3435 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3436 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3437 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3438 | fi |
| 3439 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3440 | LIBS="$ac_save_LIBS" |
| 3441 | |
| 3442 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3443 | 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] | 3444 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3445 | cat >> confdefs.h <<\EOF |
| 3446 | #define WITH_THREAD 1 |
| 3447 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3448 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3449 | LIBS="$LIBS -lthread" |
| 3450 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3451 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3452 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3453 | fi |
| 3454 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3455 | fi |
| 3456 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3457 | # Check for GC support |
| 3458 | |
| 3459 | USE_GC_MODULE="" |
| 3460 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3461 | echo "configure:3462: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3462 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 3463 | if test "${with_cycle_gc+set}" = set; then |
| 3464 | withval="$with_cycle_gc" |
| 3465 | : |
| 3466 | fi |
| 3467 | |
| 3468 | |
| 3469 | if test -z "$with_cycle_gc" |
| 3470 | then with_cycle_gc="yes" |
| 3471 | fi |
| 3472 | if test "$with_cycle_gc" = "no" |
| 3473 | then |
| 3474 | USE_GC_MODULE="#" |
| 3475 | else |
| 3476 | cat >> confdefs.h <<\EOF |
| 3477 | #define WITH_CYCLE_GC 1 |
| 3478 | EOF |
| 3479 | |
| 3480 | fi |
| 3481 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 3482 | |
| 3483 | # Check for --with-wctype-functions |
| 3484 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3485 | echo "configure:3486: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3486 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 3487 | if test "${with_wctype_functions+set}" = set; then |
| 3488 | withval="$with_wctype_functions" |
| 3489 | |
| 3490 | if test "$withval" != no |
| 3491 | then cat >> confdefs.h <<\EOF |
| 3492 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 3493 | EOF |
| 3494 | echo "$ac_t""yes" 1>&6 |
| 3495 | else echo "$ac_t""no" 1>&6 |
| 3496 | fi |
| 3497 | else |
| 3498 | echo "$ac_t""no" 1>&6 |
| 3499 | fi |
| 3500 | |
| 3501 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3502 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3503 | |
| 3504 | DLINCLDIR=/ |
| 3505 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3506 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3507 | echo "configure:3508: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3508 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3509 | if test "${with_sgi_dl+set}" = set; then |
| 3510 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3511 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3512 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3513 | cat >> confdefs.h <<\EOF |
| 3514 | #define WITH_SGI_DL 1 |
| 3515 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3516 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3517 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3518 | dldir=$withval |
| 3519 | if test -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3520 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3521 | 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] | 3522 | fi |
| 3523 | DLINCLDIR=${dldir} |
| 3524 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3525 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3526 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3527 | fi |
| 3528 | |
| 3529 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3530 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3531 | echo "configure:3532: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3532 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3533 | if test "${with_dl_dld+set}" = set; then |
| 3534 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3535 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3536 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3537 | cat >> confdefs.h <<\EOF |
| 3538 | #define WITH_DL_DLD 1 |
| 3539 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3540 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3541 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3542 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 3543 | dlddir=`echo "$withval" | sed 's/.*,//'` |
| 3544 | if test -d "$dldir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3545 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3546 | 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] | 3547 | fi |
| 3548 | DLINCLDIR=${dldir} |
| 3549 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3550 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3551 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3552 | fi |
| 3553 | |
| 3554 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3555 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 3556 | # platforms, such as AIX, have dlopen(), but don't want to use it. |
| 3557 | echo $ac_n "checking for dlopen""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3558 | echo "configure:3559: checking for dlopen" >&5 |
| 3559 | if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3560 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3561 | else |
| 3562 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3563 | #line 3564 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3564 | #include "confdefs.h" |
| 3565 | /* System header to define __stub macros and hopefully few prototypes, |
| 3566 | which can conflict with char dlopen(); below. */ |
| 3567 | #include <assert.h> |
| 3568 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3569 | /* We use char because int might match the return type of a gcc2 |
| 3570 | builtin and then its argument prototype would still apply. */ |
| 3571 | char dlopen(); |
| 3572 | |
| 3573 | int main() { |
| 3574 | |
| 3575 | /* The GNU C library defines this for functions which it implements |
| 3576 | to always fail with ENOSYS. Some functions are actually named |
| 3577 | something starting with __ and the normal name is an alias. */ |
| 3578 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 3579 | choke me |
| 3580 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3581 | dlopen(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3582 | #endif |
| 3583 | |
| 3584 | ; return 0; } |
| 3585 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3586 | if { (eval echo configure:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3587 | rm -rf conftest* |
| 3588 | eval "ac_cv_func_dlopen=yes" |
| 3589 | else |
| 3590 | echo "configure: failed program was:" >&5 |
| 3591 | cat conftest.$ac_ext >&5 |
| 3592 | rm -rf conftest* |
| 3593 | eval "ac_cv_func_dlopen=no" |
| 3594 | fi |
| 3595 | rm -f conftest* |
| 3596 | fi |
| 3597 | |
| 3598 | if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then |
| 3599 | echo "$ac_t""yes" 1>&6 |
| 3600 | : |
| 3601 | else |
| 3602 | echo "$ac_t""no" 1>&6 |
| 3603 | fi |
| 3604 | |
| 3605 | |
| 3606 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 3607 | # loading of modules. |
| 3608 | |
| 3609 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3610 | echo "configure:3611: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3611 | if test -z "$DYNLOADFILE" |
| 3612 | then |
| 3613 | case $ac_sys_system/$ac_sys_release in |
| 3614 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 3615 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 3616 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
| 3617 | next/*) DYNLOADFILE="dynload_next.o";; |
| 3618 | *) |
| 3619 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 3620 | # out any dynamic loading |
| 3621 | if test "$ac_cv_func_dlopen" = yes |
| 3622 | then DYNLOADFILE="dynload_shlib.o" |
| 3623 | else DYNLOADFILE="dynload_stub.o" |
| 3624 | fi |
| 3625 | ;; |
| 3626 | esac |
| 3627 | fi |
| 3628 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 3629 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 3630 | then |
| 3631 | cat >> confdefs.h <<\EOF |
| 3632 | #define HAVE_DYNAMIC_LOADING 1 |
| 3633 | EOF |
| 3634 | |
| 3635 | fi |
| 3636 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3637 | # checks for library functions |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3638 | for ac_func in alarm chown clock confstr ctermid ctermid_r dlopen execv \ |
| 3639 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Fred Drake | f581db1 | 1999-12-14 21:11:47 +0000 | [diff] [blame] | 3640 | getgroups getlogin getpeername getpgrp getpid getpwent gettimeofday getwd \ |
Andrew M. Kuchling | 22c6934 | 2000-06-18 15:07:40 +0000 | [diff] [blame] | 3641 | kill link lstat mkfifo mktime mremap \ |
| 3642 | nice pathconf pause plock pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3643 | putenv readlink \ |
Guido van Rossum | 9601315 | 1997-10-08 22:47:52 +0000 | [diff] [blame] | 3644 | select setgid setlocale setuid setsid setpgid setpgrp setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3645 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 3646 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
| 3647 | truncate uname waitpid |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3648 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3649 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3650 | echo "configure:3651: checking for $ac_func" >&5 |
| 3651 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3652 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3653 | else |
| 3654 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3655 | #line 3656 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3656 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3657 | /* System header to define __stub macros and hopefully few prototypes, |
| 3658 | which can conflict with char $ac_func(); below. */ |
| 3659 | #include <assert.h> |
| 3660 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3661 | /* We use char because int might match the return type of a gcc2 |
| 3662 | builtin and then its argument prototype would still apply. */ |
| 3663 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3664 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3665 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3666 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3667 | /* The GNU C library defines this for functions which it implements |
| 3668 | to always fail with ENOSYS. Some functions are actually named |
| 3669 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3670 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3671 | choke me |
| 3672 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3673 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3674 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3675 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3676 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3677 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3678 | if { (eval echo configure:3679: \"$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] | 3679 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3680 | eval "ac_cv_func_$ac_func=yes" |
| 3681 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3682 | echo "configure: failed program was:" >&5 |
| 3683 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3684 | rm -rf conftest* |
| 3685 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3686 | fi |
| 3687 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3688 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3689 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3690 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3691 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3692 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3693 | cat >> confdefs.h <<EOF |
| 3694 | #define $ac_tr_func 1 |
| 3695 | EOF |
| 3696 | |
| 3697 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3698 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3699 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3700 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3701 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3702 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3703 | # check for openpty and forkpty |
| 3704 | |
| 3705 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3706 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3707 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3708 | echo "configure:3709: checking for $ac_func" >&5 |
| 3709 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3710 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3711 | else |
| 3712 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3713 | #line 3714 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3714 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3715 | /* System header to define __stub macros and hopefully few prototypes, |
| 3716 | which can conflict with char $ac_func(); below. */ |
| 3717 | #include <assert.h> |
| 3718 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3719 | /* We use char because int might match the return type of a gcc2 |
| 3720 | builtin and then its argument prototype would still apply. */ |
| 3721 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3722 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3723 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3724 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3725 | /* The GNU C library defines this for functions which it implements |
| 3726 | to always fail with ENOSYS. Some functions are actually named |
| 3727 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3728 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3729 | choke me |
| 3730 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3731 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3732 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3733 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3734 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3735 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3736 | if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3737 | rm -rf conftest* |
| 3738 | eval "ac_cv_func_$ac_func=yes" |
| 3739 | else |
| 3740 | echo "configure: failed program was:" >&5 |
| 3741 | cat conftest.$ac_ext >&5 |
| 3742 | rm -rf conftest* |
| 3743 | eval "ac_cv_func_$ac_func=no" |
| 3744 | fi |
| 3745 | rm -f conftest* |
| 3746 | fi |
| 3747 | |
| 3748 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3749 | echo "$ac_t""yes" 1>&6 |
| 3750 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3751 | cat >> confdefs.h <<EOF |
| 3752 | #define $ac_tr_func 1 |
| 3753 | EOF |
| 3754 | |
| 3755 | else |
| 3756 | echo "$ac_t""no" 1>&6 |
| 3757 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3758 | echo "configure:3759: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3759 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3760 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3761 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3762 | else |
| 3763 | ac_save_LIBS="$LIBS" |
| 3764 | LIBS="-lutil $LIBS" |
| 3765 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3766 | #line 3767 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3767 | #include "confdefs.h" |
| 3768 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3769 | /* We use char because int might match the return type of a gcc2 |
| 3770 | builtin and then its argument prototype would still apply. */ |
| 3771 | char openpty(); |
| 3772 | |
| 3773 | int main() { |
| 3774 | openpty() |
| 3775 | ; return 0; } |
| 3776 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3777 | if { (eval echo configure:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3778 | rm -rf conftest* |
| 3779 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3780 | else |
| 3781 | echo "configure: failed program was:" >&5 |
| 3782 | cat conftest.$ac_ext >&5 |
| 3783 | rm -rf conftest* |
| 3784 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3785 | fi |
| 3786 | rm -f conftest* |
| 3787 | LIBS="$ac_save_LIBS" |
| 3788 | |
| 3789 | fi |
| 3790 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3791 | echo "$ac_t""yes" 1>&6 |
| 3792 | cat >> confdefs.h <<\EOF |
| 3793 | #define HAVE_OPENPTY 1 |
| 3794 | EOF |
| 3795 | LIBS="$LIBS -lutil" |
| 3796 | else |
| 3797 | echo "$ac_t""no" 1>&6 |
| 3798 | fi |
| 3799 | |
| 3800 | fi |
| 3801 | done |
| 3802 | |
| 3803 | for ac_func in forkpty |
| 3804 | do |
| 3805 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3806 | echo "configure:3807: checking for $ac_func" >&5 |
| 3807 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3808 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3809 | else |
| 3810 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3811 | #line 3812 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3812 | #include "confdefs.h" |
| 3813 | /* System header to define __stub macros and hopefully few prototypes, |
| 3814 | which can conflict with char $ac_func(); below. */ |
| 3815 | #include <assert.h> |
| 3816 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3817 | /* We use char because int might match the return type of a gcc2 |
| 3818 | builtin and then its argument prototype would still apply. */ |
| 3819 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3820 | |
| 3821 | int main() { |
| 3822 | |
| 3823 | /* The GNU C library defines this for functions which it implements |
| 3824 | to always fail with ENOSYS. Some functions are actually named |
| 3825 | something starting with __ and the normal name is an alias. */ |
| 3826 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3827 | choke me |
| 3828 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3829 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3830 | #endif |
| 3831 | |
| 3832 | ; return 0; } |
| 3833 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3834 | if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3835 | rm -rf conftest* |
| 3836 | eval "ac_cv_func_$ac_func=yes" |
| 3837 | else |
| 3838 | echo "configure: failed program was:" >&5 |
| 3839 | cat conftest.$ac_ext >&5 |
| 3840 | rm -rf conftest* |
| 3841 | eval "ac_cv_func_$ac_func=no" |
| 3842 | fi |
| 3843 | rm -f conftest* |
| 3844 | fi |
| 3845 | |
| 3846 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3847 | echo "$ac_t""yes" 1>&6 |
| 3848 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3849 | cat >> confdefs.h <<EOF |
| 3850 | #define $ac_tr_func 1 |
| 3851 | EOF |
| 3852 | |
| 3853 | else |
| 3854 | echo "$ac_t""no" 1>&6 |
| 3855 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3856 | echo "configure:3857: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3857 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3858 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3859 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3860 | else |
| 3861 | ac_save_LIBS="$LIBS" |
| 3862 | LIBS="-lutil $LIBS" |
| 3863 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3864 | #line 3865 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3865 | #include "confdefs.h" |
| 3866 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3867 | /* We use char because int might match the return type of a gcc2 |
| 3868 | builtin and then its argument prototype would still apply. */ |
| 3869 | char forkpty(); |
| 3870 | |
| 3871 | int main() { |
| 3872 | forkpty() |
| 3873 | ; return 0; } |
| 3874 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3875 | if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3876 | rm -rf conftest* |
| 3877 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3878 | else |
| 3879 | echo "configure: failed program was:" >&5 |
| 3880 | cat conftest.$ac_ext >&5 |
| 3881 | rm -rf conftest* |
| 3882 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3883 | fi |
| 3884 | rm -f conftest* |
| 3885 | LIBS="$ac_save_LIBS" |
| 3886 | |
| 3887 | fi |
| 3888 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3889 | echo "$ac_t""yes" 1>&6 |
| 3890 | cat >> confdefs.h <<\EOF |
| 3891 | #define HAVE_FORKPTY 1 |
| 3892 | EOF |
| 3893 | LIBS="$LIBS -lutil" |
| 3894 | else |
| 3895 | echo "$ac_t""no" 1>&6 |
| 3896 | fi |
| 3897 | |
| 3898 | fi |
| 3899 | done |
| 3900 | |
| 3901 | |
| 3902 | # check for long file support functions |
| 3903 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 3904 | do |
| 3905 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3906 | echo "configure:3907: checking for $ac_func" >&5 |
| 3907 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3908 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3909 | else |
| 3910 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3911 | #line 3912 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3912 | #include "confdefs.h" |
| 3913 | /* System header to define __stub macros and hopefully few prototypes, |
| 3914 | which can conflict with char $ac_func(); below. */ |
| 3915 | #include <assert.h> |
| 3916 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3917 | /* We use char because int might match the return type of a gcc2 |
| 3918 | builtin and then its argument prototype would still apply. */ |
| 3919 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3920 | |
| 3921 | int main() { |
| 3922 | |
| 3923 | /* The GNU C library defines this for functions which it implements |
| 3924 | to always fail with ENOSYS. Some functions are actually named |
| 3925 | something starting with __ and the normal name is an alias. */ |
| 3926 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3927 | choke me |
| 3928 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3929 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3930 | #endif |
| 3931 | |
| 3932 | ; return 0; } |
| 3933 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3934 | if { (eval echo configure:3935: \"$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] | 3935 | rm -rf conftest* |
| 3936 | eval "ac_cv_func_$ac_func=yes" |
| 3937 | else |
| 3938 | echo "configure: failed program was:" >&5 |
| 3939 | cat conftest.$ac_ext >&5 |
| 3940 | rm -rf conftest* |
| 3941 | eval "ac_cv_func_$ac_func=no" |
| 3942 | fi |
| 3943 | rm -f conftest* |
| 3944 | fi |
| 3945 | |
| 3946 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3947 | echo "$ac_t""yes" 1>&6 |
| 3948 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3949 | cat >> confdefs.h <<EOF |
| 3950 | #define $ac_tr_func 1 |
| 3951 | EOF |
| 3952 | |
| 3953 | else |
| 3954 | echo "$ac_t""no" 1>&6 |
| 3955 | fi |
| 3956 | done |
| 3957 | |
| 3958 | |
| 3959 | for ac_func in dup2 getcwd strdup strerror memmove |
| 3960 | do |
| 3961 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3962 | echo "configure:3963: checking for $ac_func" >&5 |
| 3963 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3964 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3965 | else |
| 3966 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3967 | #line 3968 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3968 | #include "confdefs.h" |
| 3969 | /* System header to define __stub macros and hopefully few prototypes, |
| 3970 | which can conflict with char $ac_func(); below. */ |
| 3971 | #include <assert.h> |
| 3972 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3973 | /* We use char because int might match the return type of a gcc2 |
| 3974 | builtin and then its argument prototype would still apply. */ |
| 3975 | char $ac_func(); |
| 3976 | |
| 3977 | int main() { |
| 3978 | |
| 3979 | /* The GNU C library defines this for functions which it implements |
| 3980 | to always fail with ENOSYS. Some functions are actually named |
| 3981 | something starting with __ and the normal name is an alias. */ |
| 3982 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3983 | choke me |
| 3984 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3985 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3986 | #endif |
| 3987 | |
| 3988 | ; return 0; } |
| 3989 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3990 | if { (eval echo configure:3991: \"$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] | 3991 | rm -rf conftest* |
| 3992 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3993 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3994 | echo "configure: failed program was:" >&5 |
| 3995 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3996 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3997 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3998 | fi |
| 3999 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4000 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4001 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4002 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4003 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4004 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4005 | cat >> confdefs.h <<EOF |
| 4006 | #define $ac_tr_func 1 |
| 4007 | EOF |
| 4008 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4009 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4010 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4011 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4012 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4013 | done |
| 4014 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4015 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4016 | echo $ac_n "checking for getpgrp""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4017 | echo "configure:4018: checking for getpgrp" >&5 |
| 4018 | if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4019 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4020 | else |
| 4021 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4022 | #line 4023 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4023 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4024 | /* System header to define __stub macros and hopefully few prototypes, |
| 4025 | which can conflict with char getpgrp(); below. */ |
| 4026 | #include <assert.h> |
| 4027 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4028 | /* We use char because int might match the return type of a gcc2 |
| 4029 | builtin and then its argument prototype would still apply. */ |
| 4030 | char getpgrp(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4031 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4032 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4033 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4034 | /* The GNU C library defines this for functions which it implements |
| 4035 | to always fail with ENOSYS. Some functions are actually named |
| 4036 | something starting with __ and the normal name is an alias. */ |
| 4037 | #if defined (__stub_getpgrp) || defined (__stub___getpgrp) |
| 4038 | choke me |
| 4039 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4040 | getpgrp(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4041 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4042 | |
| 4043 | ; return 0; } |
| 4044 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4045 | if { (eval echo configure:4046: \"$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] | 4046 | rm -rf conftest* |
| 4047 | eval "ac_cv_func_getpgrp=yes" |
| 4048 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4049 | echo "configure: failed program was:" >&5 |
| 4050 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4051 | rm -rf conftest* |
| 4052 | eval "ac_cv_func_getpgrp=no" |
| 4053 | fi |
| 4054 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4055 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4056 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4057 | if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4058 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4059 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4060 | #line 4061 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4061 | #include "confdefs.h" |
| 4062 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4063 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4064 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4065 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4066 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4067 | if { (eval echo configure:4068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4068 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4069 | cat >> confdefs.h <<\EOF |
| 4070 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4071 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4072 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4073 | else |
| 4074 | echo "configure: failed program was:" >&5 |
| 4075 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4076 | fi |
| 4077 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4078 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4079 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4080 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4081 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4082 | echo $ac_n "checking for setpgrp""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4083 | echo "configure:4084: checking for setpgrp" >&5 |
| 4084 | if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4085 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4086 | else |
| 4087 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4088 | #line 4089 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4089 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4090 | /* System header to define __stub macros and hopefully few prototypes, |
| 4091 | which can conflict with char setpgrp(); below. */ |
| 4092 | #include <assert.h> |
| 4093 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4094 | /* We use char because int might match the return type of a gcc2 |
| 4095 | builtin and then its argument prototype would still apply. */ |
| 4096 | char setpgrp(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4097 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4098 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4099 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4100 | /* The GNU C library defines this for functions which it implements |
| 4101 | to always fail with ENOSYS. Some functions are actually named |
| 4102 | something starting with __ and the normal name is an alias. */ |
| 4103 | #if defined (__stub_setpgrp) || defined (__stub___setpgrp) |
| 4104 | choke me |
| 4105 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4106 | setpgrp(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4107 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4108 | |
| 4109 | ; return 0; } |
| 4110 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4111 | if { (eval echo configure:4112: \"$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] | 4112 | rm -rf conftest* |
| 4113 | eval "ac_cv_func_setpgrp=yes" |
| 4114 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4115 | echo "configure: failed program was:" >&5 |
| 4116 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4117 | rm -rf conftest* |
| 4118 | eval "ac_cv_func_setpgrp=no" |
| 4119 | fi |
| 4120 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4121 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4122 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4123 | if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4124 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4125 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4126 | #line 4127 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4127 | #include "confdefs.h" |
| 4128 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4129 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4130 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4131 | ; return 0; } |
| 4132 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4133 | if { (eval echo configure:4134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4134 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4135 | cat >> confdefs.h <<\EOF |
| 4136 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4137 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4138 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4139 | else |
| 4140 | echo "configure: failed program was:" >&5 |
| 4141 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4142 | fi |
| 4143 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4144 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4145 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4146 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4147 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4148 | echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4149 | echo "configure:4150: checking for gettimeofday" >&5 |
| 4150 | if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4151 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4152 | else |
| 4153 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4154 | #line 4155 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4155 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4156 | /* System header to define __stub macros and hopefully few prototypes, |
| 4157 | which can conflict with char gettimeofday(); below. */ |
| 4158 | #include <assert.h> |
| 4159 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4160 | /* We use char because int might match the return type of a gcc2 |
| 4161 | builtin and then its argument prototype would still apply. */ |
| 4162 | char gettimeofday(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4163 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4164 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4165 | |
| 4166 | /* The GNU C library defines this for functions which it implements |
| 4167 | to always fail with ENOSYS. Some functions are actually named |
| 4168 | something starting with __ and the normal name is an alias. */ |
| 4169 | #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
| 4170 | choke me |
| 4171 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4172 | gettimeofday(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4173 | #endif |
| 4174 | |
| 4175 | ; return 0; } |
| 4176 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4177 | if { (eval echo configure:4178: \"$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] | 4178 | rm -rf conftest* |
| 4179 | eval "ac_cv_func_gettimeofday=yes" |
| 4180 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4181 | echo "configure: failed program was:" >&5 |
| 4182 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4183 | rm -rf conftest* |
| 4184 | eval "ac_cv_func_gettimeofday=no" |
| 4185 | fi |
| 4186 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4187 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4188 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4189 | if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4190 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4191 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4192 | #line 4193 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4193 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4194 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4195 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4196 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 4197 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4198 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4199 | if { (eval echo configure:4200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4200 | : |
| 4201 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4202 | echo "configure: failed program was:" >&5 |
| 4203 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4204 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4205 | cat >> confdefs.h <<\EOF |
| 4206 | #define GETTIMEOFDAY_NO_TZ 1 |
| 4207 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4208 | |
| 4209 | fi |
| 4210 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4211 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4212 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4213 | fi |
| 4214 | |
| 4215 | |
| 4216 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4217 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4218 | echo "configure:4219: checking whether time.h and sys/time.h may both be included" >&5 |
| 4219 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4220 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4221 | else |
| 4222 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4223 | #line 4224 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4224 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4225 | #include <sys/types.h> |
| 4226 | #include <sys/time.h> |
| 4227 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4228 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4229 | struct tm *tp; |
| 4230 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4231 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4232 | if { (eval echo configure:4233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4233 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4234 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4235 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4236 | echo "configure: failed program was:" >&5 |
| 4237 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4238 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4239 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4240 | fi |
| 4241 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4242 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4243 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4244 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4245 | if test $ac_cv_header_time = yes; then |
| 4246 | cat >> confdefs.h <<\EOF |
| 4247 | #define TIME_WITH_SYS_TIME 1 |
| 4248 | EOF |
| 4249 | |
| 4250 | fi |
| 4251 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4252 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4253 | echo "configure:4254: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 4254 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4255 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4256 | else |
| 4257 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4258 | #line 4259 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4259 | #include "confdefs.h" |
| 4260 | #include <sys/types.h> |
| 4261 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4262 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4263 | struct tm *tp; tp->tm_sec; |
| 4264 | ; return 0; } |
| 4265 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4266 | if { (eval echo configure:4267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4267 | rm -rf conftest* |
| 4268 | ac_cv_struct_tm=time.h |
| 4269 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4270 | echo "configure: failed program was:" >&5 |
| 4271 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4272 | rm -rf conftest* |
| 4273 | ac_cv_struct_tm=sys/time.h |
| 4274 | fi |
| 4275 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4276 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4277 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4278 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4279 | if test $ac_cv_struct_tm = sys/time.h; then |
| 4280 | cat >> confdefs.h <<\EOF |
| 4281 | #define TM_IN_SYS_TIME 1 |
| 4282 | EOF |
| 4283 | |
| 4284 | fi |
| 4285 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4286 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
| 4287 | echo "configure:4288: checking for tm_zone in struct tm" >&5 |
| 4288 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4289 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4290 | else |
| 4291 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4292 | #line 4293 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4293 | #include "confdefs.h" |
| 4294 | #include <sys/types.h> |
| 4295 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4296 | int main() { |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4297 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4298 | ; return 0; } |
| 4299 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4300 | if { (eval echo configure:4301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4301 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4302 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4303 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4304 | echo "configure: failed program was:" >&5 |
| 4305 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4306 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4307 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4308 | fi |
| 4309 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4310 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4311 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4312 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 4313 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4314 | cat >> confdefs.h <<\EOF |
| 4315 | #define HAVE_TM_ZONE 1 |
| 4316 | EOF |
| 4317 | |
| 4318 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4319 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4320 | echo "configure:4321: checking for tzname" >&5 |
| 4321 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4322 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4323 | else |
| 4324 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4325 | #line 4326 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4326 | #include "confdefs.h" |
| 4327 | #include <time.h> |
| 4328 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4329 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4330 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4331 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4332 | atoi(*tzname); |
| 4333 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4334 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4335 | if { (eval echo configure:4336: \"$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] | 4336 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4337 | ac_cv_var_tzname=yes |
| 4338 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4339 | echo "configure: failed program was:" >&5 |
| 4340 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4341 | rm -rf conftest* |
| 4342 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4343 | fi |
| 4344 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4345 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4346 | |
| 4347 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4348 | if test $ac_cv_var_tzname = yes; then |
| 4349 | cat >> confdefs.h <<\EOF |
| 4350 | #define HAVE_TZNAME 1 |
| 4351 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4352 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4353 | fi |
| 4354 | fi |
| 4355 | |
| 4356 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4357 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4358 | echo "configure:4359: checking for time.h that defines altzone" >&5 |
| 4359 | if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4360 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4361 | else |
| 4362 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4363 | #line 4364 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4364 | #include "confdefs.h" |
| 4365 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4366 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4367 | return altzone; |
| 4368 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4369 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4370 | if { (eval echo configure:4371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4371 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4372 | ac_cv_header_time_altzone=yes |
| 4373 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4374 | echo "configure: failed program was:" >&5 |
| 4375 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4376 | rm -rf conftest* |
| 4377 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4378 | fi |
| 4379 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4380 | fi |
| 4381 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4382 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4383 | if test $ac_cv_header_time_altzone = yes; then |
| 4384 | cat >> confdefs.h <<\EOF |
| 4385 | #define HAVE_ALTZONE 1 |
| 4386 | EOF |
| 4387 | |
| 4388 | fi |
| 4389 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4390 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4391 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4392 | echo "configure:4393: 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] | 4393 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4394 | #line 4395 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4395 | #include "confdefs.h" |
| 4396 | |
| 4397 | #include <sys/types.h> |
| 4398 | #include <sys/select.h> |
| 4399 | #include <sys/time.h> |
| 4400 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4401 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4402 | ; |
| 4403 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4404 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4405 | if { (eval echo configure:4406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4406 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4407 | cat >> confdefs.h <<\EOF |
| 4408 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 4409 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4410 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4411 | else |
| 4412 | echo "configure: failed program was:" >&5 |
| 4413 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4414 | fi |
| 4415 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4416 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4417 | |
| 4418 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4419 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4420 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4421 | echo "configure:4422: checking whether char is unsigned" >&5 |
| 4422 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4423 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4424 | else |
| 4425 | if test "$GCC" = yes; then |
| 4426 | # GCC predefines this symbol on systems where it applies. |
| 4427 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4428 | #line 4429 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4429 | #include "confdefs.h" |
| 4430 | #ifdef __CHAR_UNSIGNED__ |
| 4431 | yes |
| 4432 | #endif |
| 4433 | |
| 4434 | EOF |
| 4435 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4436 | egrep "yes" >/dev/null 2>&1; then |
| 4437 | rm -rf conftest* |
| 4438 | ac_cv_c_char_unsigned=yes |
| 4439 | else |
| 4440 | rm -rf conftest* |
| 4441 | ac_cv_c_char_unsigned=no |
| 4442 | fi |
| 4443 | rm -f conftest* |
| 4444 | |
| 4445 | else |
| 4446 | if test "$cross_compiling" = yes; then |
| 4447 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4448 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4449 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4450 | #line 4451 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4451 | #include "confdefs.h" |
| 4452 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4453 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4454 | #define volatile |
| 4455 | #endif |
| 4456 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4457 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4458 | } |
| 4459 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4460 | if { (eval echo configure:4461: \"$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] | 4461 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4462 | ac_cv_c_char_unsigned=yes |
| 4463 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4464 | echo "configure: failed program was:" >&5 |
| 4465 | cat conftest.$ac_ext >&5 |
| 4466 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4467 | ac_cv_c_char_unsigned=no |
| 4468 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4469 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4470 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4471 | |
| 4472 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4473 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4474 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4475 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4476 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 4477 | cat >> confdefs.h <<\EOF |
| 4478 | #define __CHAR_UNSIGNED__ 1 |
| 4479 | EOF |
| 4480 | |
| 4481 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4482 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4483 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4484 | echo "configure:4485: checking for working const" >&5 |
| 4485 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4486 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4487 | else |
| 4488 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4489 | #line 4490 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4490 | #include "confdefs.h" |
| 4491 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4492 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4493 | |
| 4494 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4495 | typedef int charset[2]; const charset x; |
| 4496 | /* SunOS 4.1.1 cc rejects this. */ |
| 4497 | char const *const *ccp; |
| 4498 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4499 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4500 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4501 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4502 | /* AIX XL C 1.02.0.0 rejects this. |
| 4503 | It does not let you subtract one const X* pointer from another in an arm |
| 4504 | of an if-expression whose if-part is not a constant expression */ |
| 4505 | const char *g = "string"; |
| 4506 | ccp = &g + (g ? g-g : 0); |
| 4507 | /* HPUX 7.0 cc rejects these. */ |
| 4508 | ++ccp; |
| 4509 | p = (char**) ccp; |
| 4510 | ccp = (char const *const *) p; |
| 4511 | { /* SCO 3.2v4 cc rejects this. */ |
| 4512 | char *t; |
| 4513 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4514 | |
| 4515 | *t++ = 0; |
| 4516 | } |
| 4517 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4518 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4519 | const int *foo = &x[0]; |
| 4520 | ++foo; |
| 4521 | } |
| 4522 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4523 | typedef const int *iptr; |
| 4524 | iptr p = 0; |
| 4525 | ++p; |
| 4526 | } |
| 4527 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4528 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4529 | struct s { int j; const int *ap[3]; }; |
| 4530 | struct s *b; b->j = 5; |
| 4531 | } |
| 4532 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4533 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4534 | } |
| 4535 | |
| 4536 | ; return 0; } |
| 4537 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4538 | if { (eval echo configure:4539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4539 | rm -rf conftest* |
| 4540 | ac_cv_c_const=yes |
| 4541 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4542 | echo "configure: failed program was:" >&5 |
| 4543 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4544 | rm -rf conftest* |
| 4545 | ac_cv_c_const=no |
| 4546 | fi |
| 4547 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4548 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4549 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4550 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4551 | if test $ac_cv_c_const = no; then |
| 4552 | cat >> confdefs.h <<\EOF |
| 4553 | #define const |
| 4554 | EOF |
| 4555 | |
| 4556 | fi |
| 4557 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4558 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4559 | echo "configure:4560: checking for inline" >&5 |
| 4560 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4561 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4562 | else |
| 4563 | ac_cv_c_inline=no |
| 4564 | for ac_kw in inline __inline__ __inline; do |
| 4565 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4566 | #line 4567 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4567 | #include "confdefs.h" |
| 4568 | |
| 4569 | int main() { |
| 4570 | } $ac_kw foo() { |
| 4571 | ; return 0; } |
| 4572 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4573 | if { (eval echo configure:4574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4574 | rm -rf conftest* |
| 4575 | ac_cv_c_inline=$ac_kw; break |
| 4576 | else |
| 4577 | echo "configure: failed program was:" >&5 |
| 4578 | cat conftest.$ac_ext >&5 |
| 4579 | fi |
| 4580 | rm -f conftest* |
| 4581 | done |
| 4582 | |
| 4583 | fi |
| 4584 | |
| 4585 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 4586 | case "$ac_cv_c_inline" in |
| 4587 | inline | yes) ;; |
| 4588 | no) cat >> confdefs.h <<\EOF |
| 4589 | #define inline |
| 4590 | EOF |
| 4591 | ;; |
| 4592 | *) cat >> confdefs.h <<EOF |
| 4593 | #define inline $ac_cv_c_inline |
| 4594 | EOF |
| 4595 | ;; |
| 4596 | esac |
| 4597 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4598 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4599 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4600 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4601 | echo "configure:4602: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4602 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4603 | #line 4604 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4604 | #include "confdefs.h" |
| 4605 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4606 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4607 | volatile int x; x = 0; |
| 4608 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4609 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4610 | if { (eval echo configure:4611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4611 | rm -rf conftest* |
| 4612 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4613 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4614 | echo "configure: failed program was:" >&5 |
| 4615 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4616 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4617 | cat >> confdefs.h <<\EOF |
| 4618 | #define volatile |
| 4619 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4620 | |
| 4621 | fi |
| 4622 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4623 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4624 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4625 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4626 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4627 | echo "configure:4628: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4628 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4629 | #line 4630 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4630 | #include "confdefs.h" |
| 4631 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4632 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4633 | signed char c; |
| 4634 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4635 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4636 | if { (eval echo configure:4637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4637 | rm -rf conftest* |
| 4638 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4639 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4640 | echo "configure: failed program was:" >&5 |
| 4641 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4642 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4643 | cat >> confdefs.h <<\EOF |
| 4644 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4645 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4646 | |
| 4647 | fi |
| 4648 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4649 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4650 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4651 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4652 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4653 | echo "configure:4654: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4654 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4655 | #line 4656 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4656 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4657 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4658 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4659 | return foo(10); |
| 4660 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4661 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4662 | if { (eval echo configure:4663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4663 | rm -rf conftest* |
| 4664 | cat >> confdefs.h <<\EOF |
| 4665 | #define HAVE_PROTOTYPES 1 |
| 4666 | EOF |
| 4667 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4668 | else |
| 4669 | echo "configure: failed program was:" >&5 |
| 4670 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4671 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4672 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4673 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4674 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4675 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4676 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4677 | echo "configure:4678: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4678 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4679 | #line 4680 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4680 | #include "confdefs.h" |
| 4681 | |
| 4682 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4683 | int foo(int x, ...) { |
| 4684 | va_list va; |
| 4685 | va_start(va, x); |
| 4686 | va_arg(va, int); |
| 4687 | va_arg(va, char *); |
| 4688 | va_arg(va, double); |
| 4689 | return 0; |
| 4690 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4691 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4692 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4693 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4694 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4695 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4696 | if { (eval echo configure:4697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4697 | rm -rf conftest* |
| 4698 | cat >> confdefs.h <<\EOF |
| 4699 | #define HAVE_STDARG_PROTOTYPES 1 |
| 4700 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4701 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4702 | else |
| 4703 | echo "configure: failed program was:" >&5 |
| 4704 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4705 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4706 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4707 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4708 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4709 | if test "$have_prototypes" = yes; then |
| 4710 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4711 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4712 | echo "configure:4713: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4713 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4714 | #line 4715 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4715 | #include "confdefs.h" |
| 4716 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4717 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4718 | char **t;execve("@",t,t); |
| 4719 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4720 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4721 | if { (eval echo configure:4722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4722 | : |
| 4723 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4724 | echo "configure: failed program was:" >&5 |
| 4725 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4726 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4727 | cat >> confdefs.h <<\EOF |
| 4728 | #define BAD_EXEC_PROTOTYPES 1 |
| 4729 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4730 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4731 | fi |
| 4732 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4733 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4734 | fi |
| 4735 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4736 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4737 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4738 | echo "configure:4739: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4739 | if test "$cross_compiling" = yes; then |
| 4740 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4741 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4742 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4743 | #line 4744 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4744 | #include "confdefs.h" |
| 4745 | |
| 4746 | struct s { int a; int b; }; |
| 4747 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4748 | int foobar() { |
| 4749 | static int random; |
| 4750 | random = (int) &foo; |
| 4751 | return random; |
| 4752 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4753 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4754 | main() { |
| 4755 | exit(!((int)&foo == foobar())); |
| 4756 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4757 | |
| 4758 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4759 | if { (eval echo configure:4760: \"$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] | 4760 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4761 | : |
| 4762 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4763 | echo "configure: failed program was:" >&5 |
| 4764 | cat conftest.$ac_ext >&5 |
| 4765 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4766 | cat >> confdefs.h <<\EOF |
| 4767 | #define BAD_STATIC_FORWARD 1 |
| 4768 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4769 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4770 | fi |
| 4771 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4772 | fi |
| 4773 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4774 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4775 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4776 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4777 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4778 | echo "configure:4779: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4779 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4780 | #line 4781 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4781 | #include "confdefs.h" |
| 4782 | |
| 4783 | #ifdef HAVE_STDARG_PROTOTYPES |
| 4784 | #include <stdarg.h> |
| 4785 | #else |
| 4786 | #include <varargs.h> |
| 4787 | #endif |
| 4788 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4789 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4790 | va_list list1, list2; list1 = list2; |
| 4791 | ; return 0; } |
| 4792 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4793 | if { (eval echo configure:4794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4794 | : |
| 4795 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4796 | echo "configure: failed program was:" >&5 |
| 4797 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4798 | rm -rf conftest* |
| 4799 | cat >> confdefs.h <<\EOF |
| 4800 | #define VA_LIST_IS_ARRAY 1 |
| 4801 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4802 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4803 | fi |
| 4804 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4805 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4806 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4807 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 4808 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4809 | echo "configure:4810: checking for gethostbyname_r" >&5 |
| 4810 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4811 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4812 | else |
| 4813 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4814 | #line 4815 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4815 | #include "confdefs.h" |
| 4816 | /* System header to define __stub macros and hopefully few prototypes, |
| 4817 | which can conflict with char gethostbyname_r(); below. */ |
| 4818 | #include <assert.h> |
| 4819 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4820 | /* We use char because int might match the return type of a gcc2 |
| 4821 | builtin and then its argument prototype would still apply. */ |
| 4822 | char gethostbyname_r(); |
| 4823 | |
| 4824 | int main() { |
| 4825 | |
| 4826 | /* The GNU C library defines this for functions which it implements |
| 4827 | to always fail with ENOSYS. Some functions are actually named |
| 4828 | something starting with __ and the normal name is an alias. */ |
| 4829 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 4830 | choke me |
| 4831 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4832 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4833 | #endif |
| 4834 | |
| 4835 | ; return 0; } |
| 4836 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4837 | if { (eval echo configure:4838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4838 | rm -rf conftest* |
| 4839 | eval "ac_cv_func_gethostbyname_r=yes" |
| 4840 | else |
| 4841 | echo "configure: failed program was:" >&5 |
| 4842 | cat conftest.$ac_ext >&5 |
| 4843 | rm -rf conftest* |
| 4844 | eval "ac_cv_func_gethostbyname_r=no" |
| 4845 | fi |
| 4846 | rm -f conftest* |
| 4847 | fi |
| 4848 | |
| 4849 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 4850 | echo "$ac_t""yes" 1>&6 |
| 4851 | |
| 4852 | cat >> confdefs.h <<\EOF |
| 4853 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4854 | EOF |
| 4855 | |
| 4856 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4857 | echo "configure:4858: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4858 | OLD_CFLAGS=$CFLAGS |
| 4859 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 4860 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4861 | #line 4862 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4862 | #include "confdefs.h" |
| 4863 | |
| 4864 | # include <netdb.h> |
| 4865 | |
| 4866 | int main() { |
| 4867 | |
| 4868 | char *name; |
| 4869 | struct hostent *he, *res; |
| 4870 | char buffer[2048]; |
| 4871 | int buflen = 2048; |
| 4872 | int h_errnop; |
| 4873 | |
| 4874 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 4875 | |
| 4876 | ; return 0; } |
| 4877 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4878 | if { (eval echo configure:4879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4879 | rm -rf conftest* |
| 4880 | |
| 4881 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4882 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4883 | EOF |
| 4884 | |
| 4885 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4886 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 4887 | EOF |
| 4888 | |
| 4889 | echo "$ac_t""yes" 1>&6 |
| 4890 | |
| 4891 | else |
| 4892 | echo "configure: failed program was:" >&5 |
| 4893 | cat conftest.$ac_ext >&5 |
| 4894 | rm -rf conftest* |
| 4895 | |
| 4896 | echo "$ac_t""no" 1>&6 |
| 4897 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4898 | echo "configure:4899: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4899 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4900 | #line 4901 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4901 | #include "confdefs.h" |
| 4902 | |
| 4903 | # include <netdb.h> |
| 4904 | |
| 4905 | int main() { |
| 4906 | |
| 4907 | char *name; |
| 4908 | struct hostent *he; |
| 4909 | char buffer[2048]; |
| 4910 | int buflen = 2048; |
| 4911 | int h_errnop; |
| 4912 | |
| 4913 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 4914 | |
| 4915 | ; return 0; } |
| 4916 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4917 | if { (eval echo configure:4918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4918 | rm -rf conftest* |
| 4919 | |
| 4920 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4921 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4922 | EOF |
| 4923 | |
| 4924 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4925 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 4926 | EOF |
| 4927 | |
| 4928 | echo "$ac_t""yes" 1>&6 |
| 4929 | |
| 4930 | else |
| 4931 | echo "configure: failed program was:" >&5 |
| 4932 | cat conftest.$ac_ext >&5 |
| 4933 | rm -rf conftest* |
| 4934 | |
| 4935 | echo "$ac_t""no" 1>&6 |
| 4936 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4937 | echo "configure:4938: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4938 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4939 | #line 4940 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4940 | #include "confdefs.h" |
| 4941 | |
| 4942 | # include <netdb.h> |
| 4943 | |
| 4944 | int main() { |
| 4945 | |
| 4946 | char *name; |
| 4947 | struct hostent *he; |
| 4948 | struct hostent_data data; |
| 4949 | |
| 4950 | (void) gethostbyname_r(name, he, &data); |
| 4951 | |
| 4952 | ; return 0; } |
| 4953 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4954 | if { (eval echo configure:4955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4955 | rm -rf conftest* |
| 4956 | |
| 4957 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4958 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4959 | EOF |
| 4960 | |
| 4961 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4962 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 4963 | EOF |
| 4964 | |
| 4965 | echo "$ac_t""yes" 1>&6 |
| 4966 | |
| 4967 | else |
| 4968 | echo "configure: failed program was:" >&5 |
| 4969 | cat conftest.$ac_ext >&5 |
| 4970 | rm -rf conftest* |
| 4971 | |
| 4972 | echo "$ac_t""no" 1>&6 |
| 4973 | |
| 4974 | fi |
| 4975 | rm -f conftest* |
| 4976 | |
| 4977 | fi |
| 4978 | rm -f conftest* |
| 4979 | |
| 4980 | fi |
| 4981 | rm -f conftest* |
| 4982 | CFLAGS=$OLD_CFLAGS |
| 4983 | |
| 4984 | else |
| 4985 | echo "$ac_t""no" 1>&6 |
| 4986 | |
| 4987 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4988 | echo "configure:4989: checking for gethostbyname" >&5 |
| 4989 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4990 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4991 | else |
| 4992 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4993 | #line 4994 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4994 | #include "confdefs.h" |
| 4995 | /* System header to define __stub macros and hopefully few prototypes, |
| 4996 | which can conflict with char gethostbyname(); below. */ |
| 4997 | #include <assert.h> |
| 4998 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4999 | /* We use char because int might match the return type of a gcc2 |
| 5000 | builtin and then its argument prototype would still apply. */ |
| 5001 | char gethostbyname(); |
| 5002 | |
| 5003 | int main() { |
| 5004 | |
| 5005 | /* The GNU C library defines this for functions which it implements |
| 5006 | to always fail with ENOSYS. Some functions are actually named |
| 5007 | something starting with __ and the normal name is an alias. */ |
| 5008 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 5009 | choke me |
| 5010 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5011 | gethostbyname(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5012 | #endif |
| 5013 | |
| 5014 | ; return 0; } |
| 5015 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5016 | if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5017 | rm -rf conftest* |
| 5018 | eval "ac_cv_func_gethostbyname=yes" |
| 5019 | else |
| 5020 | echo "configure: failed program was:" >&5 |
| 5021 | cat conftest.$ac_ext >&5 |
| 5022 | rm -rf conftest* |
| 5023 | eval "ac_cv_func_gethostbyname=no" |
| 5024 | fi |
| 5025 | rm -f conftest* |
| 5026 | fi |
| 5027 | |
| 5028 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
| 5029 | echo "$ac_t""yes" 1>&6 |
| 5030 | cat >> confdefs.h <<\EOF |
| 5031 | #define HAVE_GETHOSTBYNAME 1 |
| 5032 | EOF |
| 5033 | |
| 5034 | else |
| 5035 | echo "$ac_t""no" 1>&6 |
| 5036 | fi |
| 5037 | |
| 5038 | |
| 5039 | fi |
| 5040 | |
| 5041 | |
| 5042 | |
| 5043 | |
| 5044 | |
| 5045 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5046 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5047 | # checks for system services |
| 5048 | # (none yet) |
| 5049 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5050 | # Linux requires this for correct f.p. operations |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5051 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5052 | echo "configure:5053: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5053 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5054 | 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] | 5055 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5056 | else |
| 5057 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5058 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5059 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5060 | #line 5061 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5061 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5062 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5063 | /* We use char because int might match the return type of a gcc2 |
| 5064 | builtin and then its argument prototype would still apply. */ |
| 5065 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5066 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5067 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5068 | __fpu_control() |
| 5069 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5070 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5071 | if { (eval echo configure:5072: \"$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] | 5072 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5073 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5074 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5075 | echo "configure: failed program was:" >&5 |
| 5076 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5077 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5078 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5079 | fi |
| 5080 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5081 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5082 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5083 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5084 | 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] | 5085 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5086 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5087 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5088 | cat >> confdefs.h <<EOF |
| 5089 | #define $ac_tr_lib 1 |
| 5090 | EOF |
| 5091 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5092 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5093 | |
| 5094 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5095 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5096 | fi |
| 5097 | |
| 5098 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5099 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5100 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5101 | echo "configure:5102: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5102 | # Check whether --with-fpectl or --without-fpectl was given. |
| 5103 | if test "${with_fpectl+set}" = set; then |
| 5104 | withval="$with_fpectl" |
| 5105 | |
| 5106 | if test "$withval" != no |
| 5107 | then cat >> confdefs.h <<\EOF |
| 5108 | #define WANT_SIGFPE_HANDLER 1 |
| 5109 | EOF |
| 5110 | echo "$ac_t""yes" 1>&6 |
| 5111 | else echo "$ac_t""no" 1>&6 |
| 5112 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5113 | else |
| 5114 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5115 | fi |
| 5116 | |
| 5117 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5118 | # check for --with-libm=... |
| 5119 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5120 | case $ac_sys_system in |
| 5121 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5122 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5123 | *) LIBM=-lm |
| 5124 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5125 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5126 | echo "configure:5127: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5127 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5128 | if test "${with_libm+set}" = set; then |
| 5129 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5130 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5131 | if test "$withval" = no |
| 5132 | then LIBM= |
| 5133 | echo "$ac_t""force LIBM empty" 1>&6 |
| 5134 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5135 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5136 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5137 | 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] | 5138 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5139 | else |
| 5140 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5141 | fi |
| 5142 | |
| 5143 | |
| 5144 | # check for --with-libc=... |
| 5145 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5146 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5147 | echo "configure:5148: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5148 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5149 | if test "${with_libc+set}" = set; then |
| 5150 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5151 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5152 | if test "$withval" = no |
| 5153 | then LIBC= |
| 5154 | echo "$ac_t""force LIBC empty" 1>&6 |
| 5155 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5156 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5157 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5158 | 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] | 5159 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5160 | else |
| 5161 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5162 | fi |
| 5163 | |
| 5164 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5165 | # check for hypot() in math library |
| 5166 | LIBS_SAVE=$LIBS |
| 5167 | LIBS="$LIBS $LIBM" |
| 5168 | for ac_func in hypot |
| 5169 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5170 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5171 | echo "configure:5172: checking for $ac_func" >&5 |
| 5172 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5173 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5174 | else |
| 5175 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5176 | #line 5177 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5177 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5178 | /* System header to define __stub macros and hopefully few prototypes, |
| 5179 | which can conflict with char $ac_func(); below. */ |
| 5180 | #include <assert.h> |
| 5181 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5182 | /* We use char because int might match the return type of a gcc2 |
| 5183 | builtin and then its argument prototype would still apply. */ |
| 5184 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5185 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5186 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5187 | |
| 5188 | /* The GNU C library defines this for functions which it implements |
| 5189 | to always fail with ENOSYS. Some functions are actually named |
| 5190 | something starting with __ and the normal name is an alias. */ |
| 5191 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5192 | choke me |
| 5193 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5194 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5195 | #endif |
| 5196 | |
| 5197 | ; return 0; } |
| 5198 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5199 | if { (eval echo configure:5200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5200 | rm -rf conftest* |
| 5201 | eval "ac_cv_func_$ac_func=yes" |
| 5202 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5203 | echo "configure: failed program was:" >&5 |
| 5204 | cat conftest.$ac_ext >&5 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5205 | rm -rf conftest* |
| 5206 | eval "ac_cv_func_$ac_func=no" |
| 5207 | fi |
| 5208 | rm -f conftest* |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5209 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5210 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5211 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5212 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5213 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5214 | cat >> confdefs.h <<EOF |
| 5215 | #define $ac_tr_func 1 |
| 5216 | EOF |
| 5217 | |
| 5218 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5219 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5220 | fi |
| 5221 | done |
| 5222 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5223 | for ac_func in hypot |
| 5224 | do |
| 5225 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5226 | echo "configure:5227: checking for $ac_func" >&5 |
| 5227 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5228 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5229 | else |
| 5230 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5231 | #line 5232 "configure" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5232 | #include "confdefs.h" |
| 5233 | /* System header to define __stub macros and hopefully few prototypes, |
| 5234 | which can conflict with char $ac_func(); below. */ |
| 5235 | #include <assert.h> |
| 5236 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5237 | /* We use char because int might match the return type of a gcc2 |
| 5238 | builtin and then its argument prototype would still apply. */ |
| 5239 | char $ac_func(); |
| 5240 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5241 | int main() { |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5242 | |
| 5243 | /* The GNU C library defines this for functions which it implements |
| 5244 | to always fail with ENOSYS. Some functions are actually named |
| 5245 | something starting with __ and the normal name is an alias. */ |
| 5246 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5247 | choke me |
| 5248 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5249 | $ac_func(); |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5250 | #endif |
| 5251 | |
| 5252 | ; return 0; } |
| 5253 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5254 | if { (eval echo configure:5255: \"$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] | 5255 | rm -rf conftest* |
| 5256 | eval "ac_cv_func_$ac_func=yes" |
| 5257 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5258 | echo "configure: failed program was:" >&5 |
| 5259 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5260 | rm -rf conftest* |
| 5261 | eval "ac_cv_func_$ac_func=no" |
| 5262 | fi |
| 5263 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5264 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5265 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5266 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5267 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5268 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5269 | cat >> confdefs.h <<EOF |
| 5270 | #define $ac_tr_func 1 |
| 5271 | EOF |
| 5272 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5273 | else |
| 5274 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5275 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5276 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5277 | done |
| 5278 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5279 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5280 | LIBS=$LIBS_SAVE |
| 5281 | |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5282 | # check for rint() in math library |
| 5283 | LIBS_SAVE=$LIBS |
| 5284 | LIBS="$LIBS $LIBM" |
| 5285 | for ac_func in rint |
| 5286 | do |
| 5287 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5288 | echo "configure:5289: checking for $ac_func" >&5 |
| 5289 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5290 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5291 | else |
| 5292 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5293 | #line 5294 "configure" |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5294 | #include "confdefs.h" |
| 5295 | /* System header to define __stub macros and hopefully few prototypes, |
| 5296 | which can conflict with char $ac_func(); below. */ |
| 5297 | #include <assert.h> |
| 5298 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5299 | /* We use char because int might match the return type of a gcc2 |
| 5300 | builtin and then its argument prototype would still apply. */ |
| 5301 | char $ac_func(); |
| 5302 | |
| 5303 | int main() { |
| 5304 | |
| 5305 | /* The GNU C library defines this for functions which it implements |
| 5306 | to always fail with ENOSYS. Some functions are actually named |
| 5307 | something starting with __ and the normal name is an alias. */ |
| 5308 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5309 | choke me |
| 5310 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5311 | $ac_func(); |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5312 | #endif |
| 5313 | |
| 5314 | ; return 0; } |
| 5315 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5316 | if { (eval echo configure:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5317 | rm -rf conftest* |
| 5318 | eval "ac_cv_func_$ac_func=yes" |
| 5319 | else |
| 5320 | echo "configure: failed program was:" >&5 |
| 5321 | cat conftest.$ac_ext >&5 |
| 5322 | rm -rf conftest* |
| 5323 | eval "ac_cv_func_$ac_func=no" |
| 5324 | fi |
| 5325 | rm -f conftest* |
| 5326 | fi |
| 5327 | |
| 5328 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5329 | echo "$ac_t""yes" 1>&6 |
| 5330 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5331 | cat >> confdefs.h <<EOF |
| 5332 | #define $ac_tr_func 1 |
| 5333 | EOF |
| 5334 | |
| 5335 | else |
| 5336 | echo "$ac_t""no" 1>&6 |
| 5337 | fi |
| 5338 | done |
| 5339 | |
| 5340 | LIBS=$LIBS_SAVE |
| 5341 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5342 | # check for getopt |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5343 | echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5344 | echo "configure:5345: checking for genuine getopt" >&5 |
| 5345 | if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5346 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5347 | else |
| 5348 | if test "$cross_compiling" = yes; then |
| 5349 | ac_cv_func_getopt=no |
| 5350 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5351 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5352 | #line 5353 "configure" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5353 | #include "confdefs.h" |
| 5354 | #include <stdio.h> |
| 5355 | extern int optind, opterr, getopt(); |
| 5356 | extern char* optarg; |
| 5357 | int main() { |
| 5358 | char* av[] = { "testprog", "parameter", "-fFlag", NULL }; |
| 5359 | opterr = 0; |
| 5360 | if (getopt(3, av, "f:") == 'f') { exit(1); } |
| 5361 | exit(0); |
| 5362 | } |
| 5363 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5364 | if { (eval echo configure:5365: \"$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] | 5365 | then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5366 | ac_cv_func_getopt=yes |
| 5367 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5368 | echo "configure: failed program was:" >&5 |
| 5369 | cat conftest.$ac_ext >&5 |
| 5370 | rm -fr conftest* |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5371 | ac_cv_func_getopt=no |
| 5372 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5373 | rm -fr conftest* |
| 5374 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5375 | |
| 5376 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5377 | echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5378 | test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 5379 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5380 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5381 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5382 | echo "configure:5383: checking what malloc(0) returns" >&5 |
| 5383 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5384 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5385 | else |
| 5386 | if test "$cross_compiling" = yes; then |
| 5387 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5388 | else |
| 5389 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5390 | #line 5391 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5391 | #include "confdefs.h" |
| 5392 | #include <stdio.h> |
| 5393 | #ifdef HAVE_STDLIB |
| 5394 | #include <stdlib.h> |
| 5395 | #else |
| 5396 | char *malloc(), *realloc(); |
| 5397 | int *free(); |
| 5398 | #endif |
| 5399 | main() { |
| 5400 | char *p; |
| 5401 | p = malloc(0); |
| 5402 | if (p == NULL) exit(1); |
| 5403 | p = realloc(p, 0); |
| 5404 | if (p == NULL) exit(1); |
| 5405 | free(p); |
| 5406 | exit(0); |
| 5407 | } |
| 5408 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5409 | if { (eval echo configure:5410: \"$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] | 5410 | then |
| 5411 | ac_cv_malloc_zero=nonnull |
| 5412 | else |
| 5413 | echo "configure: failed program was:" >&5 |
| 5414 | cat conftest.$ac_ext >&5 |
| 5415 | rm -fr conftest* |
| 5416 | ac_cv_malloc_zero=null |
| 5417 | fi |
| 5418 | rm -fr conftest* |
| 5419 | fi |
| 5420 | |
| 5421 | fi |
| 5422 | |
| 5423 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 5424 | if test "$ac_cv_malloc_zero" = null |
| 5425 | then |
| 5426 | cat >> confdefs.h <<\EOF |
| 5427 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 5428 | EOF |
| 5429 | |
| 5430 | fi |
| 5431 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5432 | # check for wchar.h |
| 5433 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 5434 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5435 | echo "configure:5436: checking for wchar.h" >&5 |
| 5436 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5437 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5438 | else |
| 5439 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5440 | #line 5441 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5441 | #include "confdefs.h" |
| 5442 | #include <wchar.h> |
| 5443 | EOF |
| 5444 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5445 | { (eval echo configure:5446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5446 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5447 | if test -z "$ac_err"; then |
| 5448 | rm -rf conftest* |
| 5449 | eval "ac_cv_header_$ac_safe=yes" |
| 5450 | else |
| 5451 | echo "$ac_err" >&5 |
| 5452 | echo "configure: failed program was:" >&5 |
| 5453 | cat conftest.$ac_ext >&5 |
| 5454 | rm -rf conftest* |
| 5455 | eval "ac_cv_header_$ac_safe=no" |
| 5456 | fi |
| 5457 | rm -f conftest* |
| 5458 | fi |
| 5459 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5460 | echo "$ac_t""yes" 1>&6 |
| 5461 | cat >> confdefs.h <<\EOF |
| 5462 | #define HAVE_WCHAR_H 1 |
| 5463 | EOF |
| 5464 | wchar_h="yes" |
| 5465 | else |
| 5466 | echo "$ac_t""no" 1>&6 |
| 5467 | wchar_h="no" |
| 5468 | |
| 5469 | fi |
| 5470 | |
| 5471 | |
| 5472 | # check for usable wchar_t |
| 5473 | usable_wchar_t="unkown" |
| 5474 | echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5475 | echo "configure:5476: checking for usable wchar_t" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5476 | if test "$cross_compiling" = yes; then |
| 5477 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5478 | else |
| 5479 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5480 | #line 5481 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5481 | #include "confdefs.h" |
| 5482 | |
| 5483 | #include "wchar.h" |
| 5484 | #include "wctype.h" |
| 5485 | main() { |
| 5486 | wchar_t s; |
| 5487 | if (sizeof(s) == 2) |
| 5488 | exit(0); |
| 5489 | else |
| 5490 | exit(1); |
| 5491 | } |
| 5492 | |
| 5493 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5494 | if { (eval echo configure:5495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5495 | then |
| 5496 | cat >> confdefs.h <<\EOF |
| 5497 | #define HAVE_USABLE_WCHAR_T 1 |
| 5498 | EOF |
| 5499 | usable_wchar_t="yes" |
| 5500 | else |
| 5501 | echo "configure: failed program was:" >&5 |
| 5502 | cat conftest.$ac_ext >&5 |
| 5503 | rm -fr conftest* |
| 5504 | usable_wchar_t="no" |
| 5505 | fi |
| 5506 | rm -fr conftest* |
| 5507 | fi |
| 5508 | |
| 5509 | echo "$ac_t""$usable_wchar_t" 1>&6 |
| 5510 | |
| 5511 | # check for endianness |
| 5512 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5513 | echo "configure:5514: checking whether byte ordering is bigendian" >&5 |
| 5514 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5515 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5516 | else |
| 5517 | ac_cv_c_bigendian=unknown |
| 5518 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5519 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5520 | #line 5521 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5521 | #include "confdefs.h" |
| 5522 | #include <sys/types.h> |
| 5523 | #include <sys/param.h> |
| 5524 | int main() { |
| 5525 | |
| 5526 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5527 | bogus endian macros |
| 5528 | #endif |
| 5529 | ; return 0; } |
| 5530 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5531 | if { (eval echo configure:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5532 | rm -rf conftest* |
| 5533 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5534 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5535 | #line 5536 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5536 | #include "confdefs.h" |
| 5537 | #include <sys/types.h> |
| 5538 | #include <sys/param.h> |
| 5539 | int main() { |
| 5540 | |
| 5541 | #if BYTE_ORDER != BIG_ENDIAN |
| 5542 | not big endian |
| 5543 | #endif |
| 5544 | ; return 0; } |
| 5545 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5546 | if { (eval echo configure:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5547 | rm -rf conftest* |
| 5548 | ac_cv_c_bigendian=yes |
| 5549 | else |
| 5550 | echo "configure: failed program was:" >&5 |
| 5551 | cat conftest.$ac_ext >&5 |
| 5552 | rm -rf conftest* |
| 5553 | ac_cv_c_bigendian=no |
| 5554 | fi |
| 5555 | rm -f conftest* |
| 5556 | else |
| 5557 | echo "configure: failed program was:" >&5 |
| 5558 | cat conftest.$ac_ext >&5 |
| 5559 | fi |
| 5560 | rm -f conftest* |
| 5561 | if test $ac_cv_c_bigendian = unknown; then |
| 5562 | if test "$cross_compiling" = yes; then |
| 5563 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5564 | else |
| 5565 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5566 | #line 5567 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5567 | #include "confdefs.h" |
| 5568 | main () { |
| 5569 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5570 | union |
| 5571 | { |
| 5572 | long l; |
| 5573 | char c[sizeof (long)]; |
| 5574 | } u; |
| 5575 | u.l = 1; |
| 5576 | exit (u.c[sizeof (long) - 1] == 1); |
| 5577 | } |
| 5578 | EOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5579 | if { (eval echo configure:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5580 | then |
| 5581 | ac_cv_c_bigendian=no |
| 5582 | else |
| 5583 | echo "configure: failed program was:" >&5 |
| 5584 | cat conftest.$ac_ext >&5 |
| 5585 | rm -fr conftest* |
| 5586 | ac_cv_c_bigendian=yes |
| 5587 | fi |
| 5588 | rm -fr conftest* |
| 5589 | fi |
| 5590 | |
| 5591 | fi |
| 5592 | fi |
| 5593 | |
| 5594 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5595 | if test $ac_cv_c_bigendian = yes; then |
| 5596 | cat >> confdefs.h <<\EOF |
| 5597 | #define WORDS_BIGENDIAN 1 |
| 5598 | EOF |
| 5599 | |
| 5600 | fi |
| 5601 | |
| 5602 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5603 | # Check whether right shifting a negative integer extends the sign bit |
| 5604 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 5605 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
| 5606 | echo "configure:5607: checking whether right shift extends the sign bit" >&5 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5607 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
| 5608 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5609 | else |
| 5610 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5611 | if test "$cross_compiling" = yes; then |
| 5612 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5613 | else |
| 5614 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5615 | #line 5616 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5616 | #include "confdefs.h" |
| 5617 | |
| 5618 | int main() |
| 5619 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5620 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5621 | } |
| 5622 | |
| 5623 | EOF |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5624 | if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 5625 | then |
| 5626 | ac_cv_rshift_extends_sign=yes |
| 5627 | else |
| 5628 | echo "configure: failed program was:" >&5 |
| 5629 | cat conftest.$ac_ext >&5 |
| 5630 | rm -fr conftest* |
| 5631 | ac_cv_rshift_extends_sign=no |
| 5632 | fi |
| 5633 | rm -fr conftest* |
| 5634 | fi |
| 5635 | |
| 5636 | fi |
| 5637 | |
| 5638 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 5639 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5640 | then |
| 5641 | cat >> confdefs.h <<\EOF |
| 5642 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 5643 | EOF |
| 5644 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5645 | fi |
| 5646 | |
| 5647 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5648 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 5649 | # Add sys/socket.h to confdefs.h |
| 5650 | cat >> confdefs.h <<\EOF |
| 5651 | #ifdef HAVE_SYS_SOCKET_H |
| 5652 | #include <sys/socket.h> |
| 5653 | #endif |
| 5654 | EOF |
| 5655 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5656 | echo "configure:5657: checking for socklen_t" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5657 | if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5658 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5659 | else |
| 5660 | cat > conftest.$ac_ext <<EOF |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5661 | #line 5662 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5662 | #include "confdefs.h" |
| 5663 | #include <sys/types.h> |
| 5664 | #if STDC_HEADERS |
| 5665 | #include <stdlib.h> |
| 5666 | #include <stddef.h> |
| 5667 | #endif |
| 5668 | EOF |
| 5669 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5670 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5671 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5672 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5673 | else |
| 5674 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5675 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5676 | fi |
| 5677 | rm -f conftest* |
| 5678 | |
| 5679 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5680 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 5681 | if test $ac_cv_type_socklen_t = no; then |
| 5682 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5683 | #define socklen_t int |
| 5684 | EOF |
| 5685 | |
| 5686 | fi |
| 5687 | |
| 5688 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5689 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5690 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5691 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5692 | # This file is a shell script that caches the results of configure |
| 5693 | # tests run on this system so they can be shared between configure |
| 5694 | # scripts and configure runs. It is not useful on other systems. |
| 5695 | # If it contains results you don't want to keep, you may remove or edit it. |
| 5696 | # |
| 5697 | # By default, configure uses ./config.cache as the cache file, |
| 5698 | # creating it if it does not exist already. You can give configure |
| 5699 | # the --cache-file=FILE option to use a different cache file; that is |
| 5700 | # what configure does when it calls configure scripts in |
| 5701 | # subdirectories, so they share the cache. |
| 5702 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 5703 | # config.status only pays attention to the cache file if you give it the |
| 5704 | # --recheck option to rerun configure. |
| 5705 | # |
| 5706 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5707 | # The following way of writing the cache mishandles newlines in values, |
| 5708 | # but we know of no workaround that is simple, portable, and efficient. |
| 5709 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5710 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5711 | # 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] | 5712 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5713 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5714 | *ac_space=\ *) |
| 5715 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 5716 | # turns \\\\ into \\, and sed turns \\ into \). |
| 5717 | sed -n \ |
| 5718 | -e "s/'/'\\\\''/g" \ |
| 5719 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 5720 | ;; |
| 5721 | *) |
| 5722 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5723 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 5724 | ;; |
| 5725 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5726 | if cmp -s $cache_file confcache; then |
| 5727 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5728 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5729 | if test -w $cache_file; then |
| 5730 | echo "updating cache $cache_file" |
| 5731 | cat confcache > $cache_file |
| 5732 | else |
| 5733 | echo "not updating unwritable cache $cache_file" |
| 5734 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5735 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5736 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5737 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5738 | 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] | 5739 | |
| 5740 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5741 | # Let make expand exec_prefix. |
| 5742 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5743 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5744 | # Any assignment to VPATH causes Sun make to only execute |
| 5745 | # the first set of double-colon rules, so remove it if not needed. |
| 5746 | # If there is a colon in the path, we need to keep it. |
| 5747 | if test "x$srcdir" = x.; then |
| 5748 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 5749 | fi |
| 5750 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5751 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5752 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5753 | DEFS=-DHAVE_CONFIG_H |
| 5754 | |
| 5755 | # Without the "./", some shells look in PATH for config.status. |
| 5756 | : ${CONFIG_STATUS=./config.status} |
| 5757 | |
| 5758 | echo creating $CONFIG_STATUS |
| 5759 | rm -f $CONFIG_STATUS |
| 5760 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5761 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5762 | # Generated automatically by configure. |
| 5763 | # Run this file to recreate the current configuration. |
| 5764 | # This directory was configured as follows, |
| 5765 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 5766 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5767 | # $0 $ac_configure_args |
| 5768 | # |
| 5769 | # Compiler output produced by configure, useful for debugging |
| 5770 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5771 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5772 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5773 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5774 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5775 | case "\$ac_option" in |
| 5776 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5777 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 5778 | 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] | 5779 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5780 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5781 | exit 0 ;; |
| 5782 | -help | --help | --hel | --he | --h) |
| 5783 | echo "\$ac_cs_usage"; exit 0 ;; |
| 5784 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5785 | esac |
| 5786 | done |
| 5787 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5788 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5789 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5790 | trap 'rm -fr `echo "Makefile \ |
| 5791 | Objects/Makefile \ |
| 5792 | Parser/Makefile \ |
| 5793 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5794 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5795 | Modules/Setup.config config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5796 | EOF |
| 5797 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5798 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5799 | # Protect against being on the right side of a sed subst in config.status. |
| 5800 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 5801 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5802 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5803 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5804 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5805 | s%@CFLAGS@%$CFLAGS%g |
| 5806 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 5807 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5808 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5809 | s%@DEFS@%$DEFS%g |
| 5810 | s%@LDFLAGS@%$LDFLAGS%g |
| 5811 | s%@LIBS@%$LIBS%g |
| 5812 | s%@exec_prefix@%$exec_prefix%g |
| 5813 | s%@prefix@%$prefix%g |
| 5814 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5815 | s%@bindir@%$bindir%g |
| 5816 | s%@sbindir@%$sbindir%g |
| 5817 | s%@libexecdir@%$libexecdir%g |
| 5818 | s%@datadir@%$datadir%g |
| 5819 | s%@sysconfdir@%$sysconfdir%g |
| 5820 | s%@sharedstatedir@%$sharedstatedir%g |
| 5821 | s%@localstatedir@%$localstatedir%g |
| 5822 | s%@libdir@%$libdir%g |
| 5823 | s%@includedir@%$includedir%g |
| 5824 | s%@oldincludedir@%$oldincludedir%g |
| 5825 | s%@infodir@%$infodir%g |
| 5826 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 5827 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5828 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 5829 | s%@SGI_ABI@%$SGI_ABI%g |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 5830 | s%@SET_CXX@%$SET_CXX%g |
| 5831 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5832 | s%@CC@%$CC%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 5833 | s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g |
| 5834 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 5835 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5836 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5837 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 5838 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5839 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 5840 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5841 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 5842 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5843 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 5844 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5845 | s%@SO@%$SO%g |
| 5846 | s%@LDSHARED@%$LDSHARED%g |
| 5847 | s%@CCSHARED@%$CCSHARED%g |
| 5848 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5849 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 5850 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5851 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5852 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 5853 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5854 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5855 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 5856 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 5857 | s%@HAVE_GETHOSTBYNAME_R_3_ARG@%$HAVE_GETHOSTBYNAME_R_3_ARG%g |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5858 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5859 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5860 | s%@LIBM@%$LIBM%g |
| 5861 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5862 | |
| 5863 | CEOF |
| 5864 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5865 | |
| 5866 | cat >> $CONFIG_STATUS <<\EOF |
| 5867 | |
| 5868 | # Split the substitutions into bite-sized pieces for seds with |
| 5869 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 5870 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 5871 | ac_file=1 # Number of current file. |
| 5872 | ac_beg=1 # First line for current file. |
| 5873 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 5874 | ac_more_lines=: |
| 5875 | ac_sed_cmds="" |
| 5876 | while $ac_more_lines; do |
| 5877 | if test $ac_beg -gt 1; then |
| 5878 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5879 | else |
| 5880 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5881 | fi |
| 5882 | if test ! -s conftest.s$ac_file; then |
| 5883 | ac_more_lines=false |
| 5884 | rm -f conftest.s$ac_file |
| 5885 | else |
| 5886 | if test -z "$ac_sed_cmds"; then |
| 5887 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 5888 | else |
| 5889 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 5890 | fi |
| 5891 | ac_file=`expr $ac_file + 1` |
| 5892 | ac_beg=$ac_end |
| 5893 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 5894 | fi |
| 5895 | done |
| 5896 | if test -z "$ac_sed_cmds"; then |
| 5897 | ac_sed_cmds=cat |
| 5898 | fi |
| 5899 | EOF |
| 5900 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5901 | cat >> $CONFIG_STATUS <<EOF |
| 5902 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5903 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 5904 | Objects/Makefile \ |
| 5905 | Parser/Makefile \ |
| 5906 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5907 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5908 | Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5909 | EOF |
| 5910 | cat >> $CONFIG_STATUS <<\EOF |
| 5911 | 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] | 5912 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5913 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5914 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5915 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5916 | *) ac_file_in="${ac_file}.in" ;; |
| 5917 | esac |
| 5918 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5919 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5920 | |
| 5921 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 5922 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5923 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5924 | # The file is in a subdirectory. |
| 5925 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5926 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5927 | # A "../" for each directory in $ac_dir_suffix. |
| 5928 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 5929 | else |
| 5930 | ac_dir_suffix= ac_dots= |
| 5931 | fi |
| 5932 | |
| 5933 | case "$ac_given_srcdir" in |
| 5934 | .) srcdir=. |
| 5935 | if test -z "$ac_dots"; then top_srcdir=. |
| 5936 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 5937 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 5938 | *) # Relative path. |
| 5939 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 5940 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 5941 | esac |
| 5942 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5943 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5944 | echo creating "$ac_file" |
| 5945 | rm -f "$ac_file" |
| 5946 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 5947 | case "$ac_file" in |
| 5948 | *Makefile*) ac_comsub="1i\\ |
| 5949 | # $configure_input" ;; |
| 5950 | *) ac_comsub= ;; |
| 5951 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5952 | |
| 5953 | 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] | 5954 | sed -e "$ac_comsub |
| 5955 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5956 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5957 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5958 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5959 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5960 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5961 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5962 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 5963 | # 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] | 5964 | # |
| 5965 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5966 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 5967 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5968 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5969 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5970 | # 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] | 5971 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5972 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5973 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5974 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5975 | # 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] | 5976 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5977 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5978 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5979 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5980 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5981 | if test "${CONFIG_HEADERS+set}" != set; then |
| 5982 | EOF |
| 5983 | cat >> $CONFIG_STATUS <<EOF |
| 5984 | CONFIG_HEADERS="config.h" |
| 5985 | EOF |
| 5986 | cat >> $CONFIG_STATUS <<\EOF |
| 5987 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5988 | 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] | 5989 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5990 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5991 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5992 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5993 | *) ac_file_in="${ac_file}.in" ;; |
| 5994 | esac |
| 5995 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5996 | echo creating $ac_file |
| 5997 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5998 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5999 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6000 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6001 | |
| 6002 | EOF |
| 6003 | |
| 6004 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 6005 | # 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] | 6006 | # 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] | 6007 | # Protect against being in an unquoted here document in config.status. |
| 6008 | rm -f conftest.vals |
| 6009 | cat > conftest.hdr <<\EOF |
| 6010 | s/[\\&%]/\\&/g |
| 6011 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6012 | 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] | 6013 | s%ac_d%ac_u%gp |
| 6014 | s%ac_u%ac_e%gp |
| 6015 | EOF |
| 6016 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 6017 | rm -f conftest.hdr |
| 6018 | |
| 6019 | # This sed command replaces #undef with comments. This is necessary, for |
| 6020 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6021 | # on some systems where configure will not decide to define it. |
| 6022 | cat >> conftest.vals <<\EOF |
| 6023 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6024 | EOF |
| 6025 | |
| 6026 | # Break up conftest.vals because some shells have a limit on |
| 6027 | # 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] | 6028 | |
| 6029 | rm -f conftest.tail |
| 6030 | while : |
| 6031 | do |
| 6032 | ac_lines=`grep -c . conftest.vals` |
| 6033 | # grep -c gives empty output for an empty file on some AIX systems. |
| 6034 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6035 | # Write a limited-size here document to conftest.frag. |
| 6036 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6037 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6038 | echo 'CEOF |
| 6039 | sed -f conftest.frag conftest.in > conftest.out |
| 6040 | rm -f conftest.in |
| 6041 | mv conftest.out conftest.in |
| 6042 | ' >> $CONFIG_STATUS |
| 6043 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6044 | rm -f conftest.vals |
| 6045 | mv conftest.tail conftest.vals |
| 6046 | done |
| 6047 | rm -f conftest.vals |
| 6048 | |
| 6049 | cat >> $CONFIG_STATUS <<\EOF |
| 6050 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6051 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6052 | cat conftest.in >> conftest.h |
| 6053 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6054 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6055 | echo "$ac_file is unchanged" |
| 6056 | rm -f conftest.h |
| 6057 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6058 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6059 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6060 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6061 | # The file is in a subdirectory. |
| 6062 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6063 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6064 | rm -f $ac_file |
| 6065 | mv conftest.h $ac_file |
| 6066 | fi |
| 6067 | fi; done |
| 6068 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6069 | EOF |
| 6070 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6071 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6072 | EOF |
| 6073 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6074 | |
| 6075 | exit 0 |
| 6076 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6077 | chmod +x $CONFIG_STATUS |
| 6078 | rm -fr confdefs* $ac_clean_files |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6079 | 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] | 6080 | |