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 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.140 |
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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 | 57c9a66 | 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 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2797 | ;; |
| 2798 | esac |
| 2799 | case "$ac_sys_system" in |
| 2800 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2801 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2802 | echo "configure:2803: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2803 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2804 | 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] | 2805 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2806 | else |
| 2807 | ac_save_LIBS="$LIBS" |
| 2808 | LIBS="-lnet $LIBS $LIBS" |
| 2809 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2810 | #line 2811 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2811 | #include "confdefs.h" |
| 2812 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2813 | /* We use char because int might match the return type of a gcc2 |
| 2814 | builtin and then its argument prototype would still apply. */ |
| 2815 | char socket(); |
| 2816 | |
| 2817 | int main() { |
| 2818 | socket() |
| 2819 | ; return 0; } |
| 2820 | EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2821 | if { (eval echo configure:2822: \"$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] | 2822 | rm -rf conftest* |
| 2823 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2824 | else |
| 2825 | echo "configure: failed program was:" >&5 |
| 2826 | cat conftest.$ac_ext >&5 |
| 2827 | rm -rf conftest* |
| 2828 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2829 | fi |
| 2830 | rm -f conftest* |
| 2831 | LIBS="$ac_save_LIBS" |
| 2832 | |
| 2833 | fi |
| 2834 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2835 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2836 | LIBS="-lnet $LIBS" |
| 2837 | else |
| 2838 | echo "$ac_t""no" 1>&6 |
| 2839 | fi |
| 2840 | # BeOS |
| 2841 | ;; |
| 2842 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2843 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2844 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2845 | echo "configure:2846: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2846 | # Check whether --with-libs or --without-libs was given. |
| 2847 | if test "${with_libs+set}" = set; then |
| 2848 | withval="$with_libs" |
| 2849 | |
| 2850 | echo "$ac_t""$withval" 1>&6 |
| 2851 | LIBS="$withval $LIBS" |
| 2852 | |
| 2853 | else |
| 2854 | echo "$ac_t""no" 1>&6 |
| 2855 | fi |
| 2856 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2857 | |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2858 | echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2859 | echo "configure:2860: checking for --with(out)-readline" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2860 | # Check whether --with-readline or --without-readline was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2861 | if test "${with_readline+set}" = set; then |
| 2862 | withval="$with_readline" |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2863 | echo "$ac_t""$withval" 1>&6 |
| 2864 | { 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] | 2865 | else |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2866 | echo "$ac_t""not specified." 1>&6 |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2867 | fi |
| 2868 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2869 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2870 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2871 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2872 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2873 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2874 | echo "configure:2875: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2875 | |
| 2876 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 2877 | if test "${with_dec_threads+set}" = set; then |
| 2878 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2879 | |
| 2880 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2881 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2882 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2883 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2884 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2885 | else |
| 2886 | echo "$ac_t""no" 1>&6 |
| 2887 | fi |
| 2888 | |
| 2889 | |
| 2890 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2891 | echo "configure:2892: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2892 | # Check whether --with-threads or --without-threads was given. |
| 2893 | if test "${with_threads+set}" = set; then |
| 2894 | withval="$with_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2895 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2896 | fi |
| 2897 | |
| 2898 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2899 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2900 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2901 | if test "${with_thread+set}" = set; then |
| 2902 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 2903 | |
| 2904 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2905 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2906 | |
| 2907 | |
| 2908 | if test -z "$with_threads" |
| 2909 | then with_threads="yes" |
| 2910 | fi |
| 2911 | echo "$ac_t""$with_threads" 1>&6 |
| 2912 | |
| 2913 | if test "$with_threads" = "no" |
| 2914 | then |
| 2915 | USE_THREAD_MODULE="#" |
| 2916 | else |
| 2917 | if test -d "$with_threads" |
| 2918 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 2919 | fi |
| 2920 | if test -d "$withval" |
| 2921 | then LDFLAGS="$LDFLAGS -L$withval" |
| 2922 | fi |
| 2923 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 2924 | #define _REENTRANT 1 |
| 2925 | EOF |
| 2926 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2927 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2928 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2929 | echo "configure:2930: checking for mach/cthreads.h" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2930 | 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] | 2931 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2932 | else |
| 2933 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2934 | #line 2935 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2935 | #include "confdefs.h" |
| 2936 | #include <mach/cthreads.h> |
| 2937 | EOF |
| 2938 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2939 | { (eval echo configure:2940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2940 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2941 | if test -z "$ac_err"; then |
| 2942 | rm -rf conftest* |
| 2943 | eval "ac_cv_header_$ac_safe=yes" |
| 2944 | else |
| 2945 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2946 | echo "configure: failed program was:" >&5 |
| 2947 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2948 | rm -rf conftest* |
| 2949 | eval "ac_cv_header_$ac_safe=no" |
| 2950 | fi |
| 2951 | rm -f conftest* |
| 2952 | fi |
| 2953 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2954 | echo "$ac_t""yes" 1>&6 |
| 2955 | cat >> confdefs.h <<\EOF |
| 2956 | #define WITH_THREAD 1 |
| 2957 | EOF |
| 2958 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2959 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2960 | #define C_THREADS 1 |
| 2961 | EOF |
| 2962 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2963 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2964 | else |
| 2965 | echo "$ac_t""no" 1>&6 |
| 2966 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2967 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2968 | echo "configure:2969: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 2969 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 2970 | 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] | 2971 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2972 | else |
| 2973 | ac_save_LIBS="$LIBS" |
| 2974 | LIBS="-lpthread $LIBS" |
| 2975 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2976 | #line 2977 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 2977 | #include "confdefs.h" |
| 2978 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2979 | /* We use char because int might match the return type of a gcc2 |
| 2980 | builtin and then its argument prototype would still apply. */ |
| 2981 | char pthread_create(); |
| 2982 | |
| 2983 | int main() { |
| 2984 | pthread_create() |
| 2985 | ; return 0; } |
| 2986 | EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2987 | if { (eval echo configure:2988: \"$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] | 2988 | rm -rf conftest* |
| 2989 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2990 | else |
| 2991 | echo "configure: failed program was:" >&5 |
| 2992 | cat conftest.$ac_ext >&5 |
| 2993 | rm -rf conftest* |
| 2994 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2995 | fi |
| 2996 | rm -f conftest* |
| 2997 | LIBS="$ac_save_LIBS" |
| 2998 | |
| 2999 | fi |
| 3000 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3001 | echo "$ac_t""yes" 1>&6 |
| 3002 | cat >> confdefs.h <<\EOF |
| 3003 | #define WITH_THREAD 1 |
| 3004 | EOF |
| 3005 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3006 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3007 | #define _POSIX_THREADS 1 |
| 3008 | EOF |
| 3009 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3010 | LIBS="-lpthread $LIBS" |
| 3011 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3012 | else |
| 3013 | echo "$ac_t""no" 1>&6 |
| 3014 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3015 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3016 | echo "configure:3017: checking for pthread_detach" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3017 | 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] | 3018 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3019 | else |
| 3020 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3021 | #line 3022 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3022 | #include "confdefs.h" |
| 3023 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3024 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3025 | #include <assert.h> |
| 3026 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3027 | /* We use char because int might match the return type of a gcc2 |
| 3028 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3029 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3030 | |
| 3031 | int main() { |
| 3032 | |
| 3033 | /* The GNU C library defines this for functions which it implements |
| 3034 | to always fail with ENOSYS. Some functions are actually named |
| 3035 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3036 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3037 | choke me |
| 3038 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3039 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3040 | #endif |
| 3041 | |
| 3042 | ; return 0; } |
| 3043 | EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3044 | if { (eval echo configure:3045: \"$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] | 3045 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3046 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3047 | else |
| 3048 | echo "configure: failed program was:" >&5 |
| 3049 | cat conftest.$ac_ext >&5 |
| 3050 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3051 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3052 | fi |
| 3053 | rm -f conftest* |
| 3054 | fi |
| 3055 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3056 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3057 | echo "$ac_t""yes" 1>&6 |
| 3058 | cat >> confdefs.h <<\EOF |
| 3059 | #define WITH_THREAD 1 |
| 3060 | EOF |
| 3061 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3062 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3063 | #define _POSIX_THREADS 1 |
| 3064 | EOF |
| 3065 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3066 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3067 | else |
| 3068 | echo "$ac_t""no" 1>&6 |
| 3069 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3070 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3071 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3072 | echo "configure:3073: checking for kernel/OS.h" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3073 | 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] | 3074 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3075 | else |
| 3076 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3077 | #line 3078 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3078 | #include "confdefs.h" |
| 3079 | #include <kernel/OS.h> |
| 3080 | EOF |
| 3081 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3082 | { (eval echo configure:3083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3083 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3084 | if test -z "$ac_err"; then |
| 3085 | rm -rf conftest* |
| 3086 | eval "ac_cv_header_$ac_safe=yes" |
| 3087 | else |
| 3088 | echo "$ac_err" >&5 |
| 3089 | echo "configure: failed program was:" >&5 |
| 3090 | cat conftest.$ac_ext >&5 |
| 3091 | rm -rf conftest* |
| 3092 | eval "ac_cv_header_$ac_safe=no" |
| 3093 | fi |
| 3094 | rm -f conftest* |
| 3095 | fi |
| 3096 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3097 | echo "$ac_t""yes" 1>&6 |
| 3098 | cat >> confdefs.h <<\EOF |
| 3099 | #define WITH_THREAD 1 |
| 3100 | EOF |
| 3101 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3102 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3103 | #define BEOS_THREADS 1 |
| 3104 | EOF |
| 3105 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3106 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3107 | else |
| 3108 | echo "$ac_t""no" 1>&6 |
| 3109 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3110 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3111 | echo "configure:3112: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3112 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3113 | 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] | 3114 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3115 | else |
| 3116 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3117 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3118 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3119 | #line 3120 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3120 | #include "confdefs.h" |
| 3121 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3122 | /* We use char because int might match the return type of a gcc2 |
| 3123 | builtin and then its argument prototype would still apply. */ |
| 3124 | char pthread_create(); |
| 3125 | |
| 3126 | int main() { |
| 3127 | pthread_create() |
| 3128 | ; return 0; } |
| 3129 | EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3130 | if { (eval echo configure:3131: \"$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] | 3131 | rm -rf conftest* |
| 3132 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3133 | else |
| 3134 | echo "configure: failed program was:" >&5 |
| 3135 | cat conftest.$ac_ext >&5 |
| 3136 | rm -rf conftest* |
| 3137 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3138 | fi |
| 3139 | rm -f conftest* |
| 3140 | LIBS="$ac_save_LIBS" |
| 3141 | |
| 3142 | fi |
| 3143 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3144 | echo "$ac_t""yes" 1>&6 |
| 3145 | cat >> confdefs.h <<\EOF |
| 3146 | #define WITH_THREAD 1 |
| 3147 | EOF |
| 3148 | |
| 3149 | cat >> confdefs.h <<\EOF |
| 3150 | #define _POSIX_THREADS 1 |
| 3151 | EOF |
| 3152 | |
| 3153 | LIBS="$LIBS -lpthreads" |
| 3154 | LIBOBJS="$LIBOBJS thread.o" |
| 3155 | else |
| 3156 | echo "$ac_t""no" 1>&6 |
| 3157 | |
| 3158 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3159 | echo "configure:3160: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3160 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3161 | 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] | 3162 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3163 | else |
| 3164 | ac_save_LIBS="$LIBS" |
| 3165 | LIBS="-lc_r $LIBS" |
| 3166 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3167 | #line 3168 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3168 | #include "confdefs.h" |
| 3169 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3170 | /* We use char because int might match the return type of a gcc2 |
| 3171 | builtin and then its argument prototype would still apply. */ |
| 3172 | char pthread_create(); |
| 3173 | |
| 3174 | int main() { |
| 3175 | pthread_create() |
| 3176 | ; return 0; } |
| 3177 | EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3178 | if { (eval echo configure:3179: \"$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] | 3179 | rm -rf conftest* |
| 3180 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3181 | else |
| 3182 | echo "configure: failed program was:" >&5 |
| 3183 | cat conftest.$ac_ext >&5 |
| 3184 | rm -rf conftest* |
| 3185 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3186 | fi |
| 3187 | rm -f conftest* |
| 3188 | LIBS="$ac_save_LIBS" |
| 3189 | |
| 3190 | fi |
| 3191 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3192 | echo "$ac_t""yes" 1>&6 |
| 3193 | cat >> confdefs.h <<\EOF |
| 3194 | #define WITH_THREAD 1 |
| 3195 | EOF |
| 3196 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3197 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3198 | #define _POSIX_THREADS 1 |
| 3199 | EOF |
| 3200 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3201 | LIBS="$LIBS -lc_r" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3202 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3203 | else |
| 3204 | echo "$ac_t""no" 1>&6 |
| 3205 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3206 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3207 | echo "configure:3208: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3208 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3209 | 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] | 3210 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3211 | else |
| 3212 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3213 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3214 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3215 | #line 3216 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3216 | #include "confdefs.h" |
| 3217 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3218 | /* We use char because int might match the return type of a gcc2 |
| 3219 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3220 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3221 | |
| 3222 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3223 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3224 | ; return 0; } |
| 3225 | EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3226 | if { (eval echo configure:3227: \"$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] | 3227 | rm -rf conftest* |
| 3228 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3229 | else |
| 3230 | echo "configure: failed program was:" >&5 |
| 3231 | cat conftest.$ac_ext >&5 |
| 3232 | rm -rf conftest* |
| 3233 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3234 | fi |
| 3235 | rm -f conftest* |
| 3236 | LIBS="$ac_save_LIBS" |
| 3237 | |
| 3238 | fi |
| 3239 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3240 | echo "$ac_t""yes" 1>&6 |
| 3241 | cat >> confdefs.h <<\EOF |
| 3242 | #define WITH_THREAD 1 |
| 3243 | EOF |
| 3244 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3245 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3246 | #define _POSIX_THREADS 1 |
| 3247 | EOF |
| 3248 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3249 | LIBS="$LIBS -lthread" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3250 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3251 | else |
| 3252 | echo "$ac_t""no" 1>&6 |
| 3253 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3254 | echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3255 | echo "configure:3256: checking for pth_init in -lpth" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3256 | ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3257 | 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] | 3258 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3259 | else |
| 3260 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3261 | LIBS="-lpth $LIBS" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3262 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3263 | #line 3264 "configure" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3264 | #include "confdefs.h" |
| 3265 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3266 | /* We use char because int might match the return type of a gcc2 |
| 3267 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3268 | char pth_init(); |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3269 | |
| 3270 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3271 | pth_init() |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3272 | ; return 0; } |
| 3273 | EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3274 | if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3275 | rm -rf conftest* |
| 3276 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3277 | else |
| 3278 | echo "configure: failed program was:" >&5 |
| 3279 | cat conftest.$ac_ext >&5 |
| 3280 | rm -rf conftest* |
| 3281 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3282 | fi |
| 3283 | rm -f conftest* |
| 3284 | LIBS="$ac_save_LIBS" |
| 3285 | |
| 3286 | fi |
| 3287 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3288 | echo "$ac_t""yes" 1>&6 |
| 3289 | cat >> confdefs.h <<\EOF |
| 3290 | #define WITH_THREAD 1 |
| 3291 | EOF |
| 3292 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3293 | cat >> confdefs.h <<\EOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3294 | #define _GNU_PTH 1 |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3295 | EOF |
| 3296 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3297 | LIBS="-lpth $LIBS" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3298 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3299 | else |
| 3300 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3301 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3302 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3303 | echo "configure:3304: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3304 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3305 | 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] | 3306 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3307 | else |
| 3308 | ac_save_LIBS="$LIBS" |
| 3309 | LIBS="-lcma $LIBS" |
| 3310 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3311 | #line 3312 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3312 | #include "confdefs.h" |
| 3313 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3314 | /* We use char because int might match the return type of a gcc2 |
| 3315 | builtin and then its argument prototype would still apply. */ |
| 3316 | char pthread_create(); |
| 3317 | |
| 3318 | int main() { |
| 3319 | pthread_create() |
| 3320 | ; return 0; } |
| 3321 | EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3322 | if { (eval echo configure:3323: \"$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] | 3323 | rm -rf conftest* |
| 3324 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3325 | else |
| 3326 | echo "configure: failed program was:" >&5 |
| 3327 | cat conftest.$ac_ext >&5 |
| 3328 | rm -rf conftest* |
| 3329 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3330 | fi |
| 3331 | rm -f conftest* |
| 3332 | LIBS="$ac_save_LIBS" |
| 3333 | |
| 3334 | fi |
| 3335 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3336 | echo "$ac_t""yes" 1>&6 |
| 3337 | cat >> confdefs.h <<\EOF |
| 3338 | #define WITH_THREAD 1 |
| 3339 | EOF |
| 3340 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3341 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3342 | #define _POSIX_THREADS 1 |
| 3343 | EOF |
| 3344 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3345 | LIBS="$LIBS -lcma" |
| 3346 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3347 | else |
| 3348 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3349 | fi |
| 3350 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3351 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3352 | fi |
| 3353 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3354 | fi |
| 3355 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3356 | fi |
| 3357 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3358 | fi |
| 3359 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3360 | fi |
| 3361 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3362 | fi |
| 3363 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3364 | fi |
| 3365 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3366 | fi |
| 3367 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3368 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3369 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3370 | echo "configure:3371: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3371 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3372 | 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] | 3373 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3374 | else |
| 3375 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3376 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3377 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3378 | #line 3379 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3379 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3380 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3381 | /* We use char because int might match the return type of a gcc2 |
| 3382 | builtin and then its argument prototype would still apply. */ |
| 3383 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3384 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3385 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3386 | usconfig() |
| 3387 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3388 | EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3389 | if { (eval echo configure:3390: \"$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] | 3390 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3391 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3392 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3393 | echo "configure: failed program was:" >&5 |
| 3394 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3395 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3396 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3397 | fi |
| 3398 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3399 | LIBS="$ac_save_LIBS" |
| 3400 | |
| 3401 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3402 | 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] | 3403 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3404 | cat >> confdefs.h <<\EOF |
| 3405 | #define WITH_THREAD 1 |
| 3406 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3407 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3408 | LIBS="$LIBS -lmpc" |
| 3409 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3410 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3411 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3412 | fi |
| 3413 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3414 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3415 | echo "configure:3416: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3416 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3417 | 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] | 3418 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3419 | else |
| 3420 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3421 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3422 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3423 | #line 3424 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3424 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3425 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3426 | /* We use char because int might match the return type of a gcc2 |
| 3427 | builtin and then its argument prototype would still apply. */ |
| 3428 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3429 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3430 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3431 | thr_create() |
| 3432 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3433 | EOF |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3434 | if { (eval echo configure:3435: \"$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] | 3435 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3436 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3437 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3438 | echo "configure: failed program was:" >&5 |
| 3439 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3440 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3441 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3442 | fi |
| 3443 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3444 | LIBS="$ac_save_LIBS" |
| 3445 | |
| 3446 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3447 | 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] | 3448 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3449 | cat >> confdefs.h <<\EOF |
| 3450 | #define WITH_THREAD 1 |
| 3451 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3452 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3453 | LIBS="$LIBS -lthread" |
| 3454 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3455 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3456 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3457 | fi |
| 3458 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3459 | fi |
| 3460 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3461 | # Check for GC support |
| 3462 | |
| 3463 | USE_GC_MODULE="" |
| 3464 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3465 | echo "configure:3466: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3466 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 3467 | if test "${with_cycle_gc+set}" = set; then |
| 3468 | withval="$with_cycle_gc" |
| 3469 | : |
| 3470 | fi |
| 3471 | |
| 3472 | |
| 3473 | if test -z "$with_cycle_gc" |
| 3474 | then with_cycle_gc="yes" |
| 3475 | fi |
| 3476 | if test "$with_cycle_gc" = "no" |
| 3477 | then |
| 3478 | USE_GC_MODULE="#" |
| 3479 | else |
| 3480 | cat >> confdefs.h <<\EOF |
| 3481 | #define WITH_CYCLE_GC 1 |
| 3482 | EOF |
| 3483 | |
| 3484 | fi |
| 3485 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 3486 | |
| 3487 | # Check for --with-wctype-functions |
| 3488 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3489 | echo "configure:3490: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3490 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 3491 | if test "${with_wctype_functions+set}" = set; then |
| 3492 | withval="$with_wctype_functions" |
| 3493 | |
| 3494 | if test "$withval" != no |
| 3495 | then cat >> confdefs.h <<\EOF |
| 3496 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 3497 | EOF |
| 3498 | echo "$ac_t""yes" 1>&6 |
| 3499 | else echo "$ac_t""no" 1>&6 |
| 3500 | fi |
| 3501 | else |
| 3502 | echo "$ac_t""no" 1>&6 |
| 3503 | fi |
| 3504 | |
| 3505 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3506 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3507 | |
| 3508 | DLINCLDIR=/ |
| 3509 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3510 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3511 | echo "configure:3512: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3512 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3513 | if test "${with_sgi_dl+set}" = set; then |
| 3514 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3515 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3516 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3517 | cat >> confdefs.h <<\EOF |
| 3518 | #define WITH_SGI_DL 1 |
| 3519 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3520 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3521 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3522 | dldir=$withval |
| 3523 | if test -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3524 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3525 | 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] | 3526 | fi |
| 3527 | DLINCLDIR=${dldir} |
| 3528 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3529 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3530 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3531 | fi |
| 3532 | |
| 3533 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3534 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3535 | echo "configure:3536: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3536 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3537 | if test "${with_dl_dld+set}" = set; then |
| 3538 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3539 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3540 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3541 | cat >> confdefs.h <<\EOF |
| 3542 | #define WITH_DL_DLD 1 |
| 3543 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3544 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3545 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3546 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 3547 | dlddir=`echo "$withval" | sed 's/.*,//'` |
| 3548 | if test -d "$dldir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3549 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3550 | 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] | 3551 | fi |
| 3552 | DLINCLDIR=${dldir} |
| 3553 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3554 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3555 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3556 | fi |
| 3557 | |
| 3558 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3559 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 3560 | # platforms, such as AIX, have dlopen(), but don't want to use it. |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3561 | for ac_func in dlopen |
| 3562 | do |
| 3563 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 3564 | echo "configure:3565: checking for $ac_func" >&5 |
| 3565 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3566 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3567 | else |
| 3568 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3569 | #line 3570 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3570 | #include "confdefs.h" |
| 3571 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3572 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3573 | #include <assert.h> |
| 3574 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3575 | /* We use char because int might match the return type of a gcc2 |
| 3576 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3577 | char $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3578 | |
| 3579 | int main() { |
| 3580 | |
| 3581 | /* The GNU C library defines this for functions which it implements |
| 3582 | to always fail with ENOSYS. Some functions are actually named |
| 3583 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3584 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3585 | choke me |
| 3586 | #else |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3587 | $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3588 | #endif |
| 3589 | |
| 3590 | ; return 0; } |
| 3591 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3592 | if { (eval echo configure:3593: \"$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] | 3593 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3594 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3595 | else |
| 3596 | echo "configure: failed program was:" >&5 |
| 3597 | cat conftest.$ac_ext >&5 |
| 3598 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3599 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3600 | fi |
| 3601 | rm -f conftest* |
| 3602 | fi |
| 3603 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3604 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3605 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3606 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3607 | cat >> confdefs.h <<EOF |
| 3608 | #define $ac_tr_func 1 |
| 3609 | EOF |
| 3610 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3611 | else |
| 3612 | echo "$ac_t""no" 1>&6 |
| 3613 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3614 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3615 | |
| 3616 | |
| 3617 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 3618 | # loading of modules. |
| 3619 | |
| 3620 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3621 | echo "configure:3622: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3622 | if test -z "$DYNLOADFILE" |
| 3623 | then |
| 3624 | case $ac_sys_system/$ac_sys_release in |
| 3625 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 3626 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 3627 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
| 3628 | next/*) DYNLOADFILE="dynload_next.o";; |
| 3629 | *) |
| 3630 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 3631 | # out any dynamic loading |
| 3632 | if test "$ac_cv_func_dlopen" = yes |
| 3633 | then DYNLOADFILE="dynload_shlib.o" |
| 3634 | else DYNLOADFILE="dynload_stub.o" |
| 3635 | fi |
| 3636 | ;; |
| 3637 | esac |
| 3638 | fi |
| 3639 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 3640 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 3641 | then |
| 3642 | cat >> confdefs.h <<\EOF |
| 3643 | #define HAVE_DYNAMIC_LOADING 1 |
| 3644 | EOF |
| 3645 | |
| 3646 | fi |
| 3647 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3648 | # checks for library functions |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3649 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3650 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3651 | getgroups getlogin getpeername getpid getpwent getwd \ |
Andrew M. Kuchling | 22c6934 | 2000-06-18 15:07:40 +0000 | [diff] [blame] | 3652 | kill link lstat mkfifo mktime mremap \ |
| 3653 | nice pathconf pause plock pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3654 | putenv readlink \ |
Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 3655 | select setegid seteuid setgid \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3656 | setlocale setregid setreuid setsid setpgid setuid setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3657 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 3658 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | 70c21a1 | 2000-07-14 14:28:33 +0000 | [diff] [blame] | 3659 | truncate uname waitpid _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3660 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3661 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3662 | echo "configure:3663: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3663 | 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] | 3664 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3665 | else |
| 3666 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3667 | #line 3668 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3668 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3669 | /* System header to define __stub macros and hopefully few prototypes, |
| 3670 | which can conflict with char $ac_func(); below. */ |
| 3671 | #include <assert.h> |
| 3672 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3673 | /* We use char because int might match the return type of a gcc2 |
| 3674 | builtin and then its argument prototype would still apply. */ |
| 3675 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3676 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3677 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3678 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3679 | /* The GNU C library defines this for functions which it implements |
| 3680 | to always fail with ENOSYS. Some functions are actually named |
| 3681 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3683 | choke me |
| 3684 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3685 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3686 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3687 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3688 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3689 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3690 | if { (eval echo configure:3691: \"$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] | 3691 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3692 | eval "ac_cv_func_$ac_func=yes" |
| 3693 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3694 | echo "configure: failed program was:" >&5 |
| 3695 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3696 | rm -rf conftest* |
| 3697 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3698 | fi |
| 3699 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3700 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3701 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3702 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3703 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3704 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3705 | cat >> confdefs.h <<EOF |
| 3706 | #define $ac_tr_func 1 |
| 3707 | EOF |
| 3708 | |
| 3709 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3710 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3711 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3712 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3713 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3714 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3715 | # check for openpty and forkpty |
| 3716 | |
| 3717 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3718 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3719 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3720 | echo "configure:3721: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3721 | 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] | 3722 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3723 | else |
| 3724 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3725 | #line 3726 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3726 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3727 | /* System header to define __stub macros and hopefully few prototypes, |
| 3728 | which can conflict with char $ac_func(); below. */ |
| 3729 | #include <assert.h> |
| 3730 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3731 | /* We use char because int might match the return type of a gcc2 |
| 3732 | builtin and then its argument prototype would still apply. */ |
| 3733 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3734 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3735 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3736 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3737 | /* The GNU C library defines this for functions which it implements |
| 3738 | to always fail with ENOSYS. Some functions are actually named |
| 3739 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3741 | choke me |
| 3742 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3743 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3744 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3745 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3746 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3747 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3748 | if { (eval echo configure:3749: \"$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] | 3749 | rm -rf conftest* |
| 3750 | eval "ac_cv_func_$ac_func=yes" |
| 3751 | else |
| 3752 | echo "configure: failed program was:" >&5 |
| 3753 | cat conftest.$ac_ext >&5 |
| 3754 | rm -rf conftest* |
| 3755 | eval "ac_cv_func_$ac_func=no" |
| 3756 | fi |
| 3757 | rm -f conftest* |
| 3758 | fi |
| 3759 | |
| 3760 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3761 | echo "$ac_t""yes" 1>&6 |
| 3762 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3763 | cat >> confdefs.h <<EOF |
| 3764 | #define $ac_tr_func 1 |
| 3765 | EOF |
| 3766 | |
| 3767 | else |
| 3768 | echo "$ac_t""no" 1>&6 |
| 3769 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3770 | echo "configure:3771: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3771 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3772 | 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] | 3773 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3774 | else |
| 3775 | ac_save_LIBS="$LIBS" |
| 3776 | LIBS="-lutil $LIBS" |
| 3777 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3778 | #line 3779 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3779 | #include "confdefs.h" |
| 3780 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3781 | /* We use char because int might match the return type of a gcc2 |
| 3782 | builtin and then its argument prototype would still apply. */ |
| 3783 | char openpty(); |
| 3784 | |
| 3785 | int main() { |
| 3786 | openpty() |
| 3787 | ; return 0; } |
| 3788 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3789 | if { (eval echo configure:3790: \"$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] | 3790 | rm -rf conftest* |
| 3791 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3792 | else |
| 3793 | echo "configure: failed program was:" >&5 |
| 3794 | cat conftest.$ac_ext >&5 |
| 3795 | rm -rf conftest* |
| 3796 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3797 | fi |
| 3798 | rm -f conftest* |
| 3799 | LIBS="$ac_save_LIBS" |
| 3800 | |
| 3801 | fi |
| 3802 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3803 | echo "$ac_t""yes" 1>&6 |
| 3804 | cat >> confdefs.h <<\EOF |
| 3805 | #define HAVE_OPENPTY 1 |
| 3806 | EOF |
| 3807 | LIBS="$LIBS -lutil" |
| 3808 | else |
| 3809 | echo "$ac_t""no" 1>&6 |
| 3810 | fi |
| 3811 | |
| 3812 | fi |
| 3813 | done |
| 3814 | |
| 3815 | for ac_func in forkpty |
| 3816 | do |
| 3817 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3818 | echo "configure:3819: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3819 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3820 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3821 | else |
| 3822 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3823 | #line 3824 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3824 | #include "confdefs.h" |
| 3825 | /* System header to define __stub macros and hopefully few prototypes, |
| 3826 | which can conflict with char $ac_func(); below. */ |
| 3827 | #include <assert.h> |
| 3828 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3829 | /* We use char because int might match the return type of a gcc2 |
| 3830 | builtin and then its argument prototype would still apply. */ |
| 3831 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3832 | |
| 3833 | int main() { |
| 3834 | |
| 3835 | /* The GNU C library defines this for functions which it implements |
| 3836 | to always fail with ENOSYS. Some functions are actually named |
| 3837 | something starting with __ and the normal name is an alias. */ |
| 3838 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3839 | choke me |
| 3840 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3841 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3842 | #endif |
| 3843 | |
| 3844 | ; return 0; } |
| 3845 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3846 | if { (eval echo configure:3847: \"$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] | 3847 | rm -rf conftest* |
| 3848 | eval "ac_cv_func_$ac_func=yes" |
| 3849 | else |
| 3850 | echo "configure: failed program was:" >&5 |
| 3851 | cat conftest.$ac_ext >&5 |
| 3852 | rm -rf conftest* |
| 3853 | eval "ac_cv_func_$ac_func=no" |
| 3854 | fi |
| 3855 | rm -f conftest* |
| 3856 | fi |
| 3857 | |
| 3858 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3859 | echo "$ac_t""yes" 1>&6 |
| 3860 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3861 | cat >> confdefs.h <<EOF |
| 3862 | #define $ac_tr_func 1 |
| 3863 | EOF |
| 3864 | |
| 3865 | else |
| 3866 | echo "$ac_t""no" 1>&6 |
| 3867 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3868 | echo "configure:3869: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3869 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3870 | 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] | 3871 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3872 | else |
| 3873 | ac_save_LIBS="$LIBS" |
| 3874 | LIBS="-lutil $LIBS" |
| 3875 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3876 | #line 3877 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3877 | #include "confdefs.h" |
| 3878 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3879 | /* We use char because int might match the return type of a gcc2 |
| 3880 | builtin and then its argument prototype would still apply. */ |
| 3881 | char forkpty(); |
| 3882 | |
| 3883 | int main() { |
| 3884 | forkpty() |
| 3885 | ; return 0; } |
| 3886 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3887 | if { (eval echo configure:3888: \"$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] | 3888 | rm -rf conftest* |
| 3889 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3890 | else |
| 3891 | echo "configure: failed program was:" >&5 |
| 3892 | cat conftest.$ac_ext >&5 |
| 3893 | rm -rf conftest* |
| 3894 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3895 | fi |
| 3896 | rm -f conftest* |
| 3897 | LIBS="$ac_save_LIBS" |
| 3898 | |
| 3899 | fi |
| 3900 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3901 | echo "$ac_t""yes" 1>&6 |
| 3902 | cat >> confdefs.h <<\EOF |
| 3903 | #define HAVE_FORKPTY 1 |
| 3904 | EOF |
| 3905 | LIBS="$LIBS -lutil" |
| 3906 | else |
| 3907 | echo "$ac_t""no" 1>&6 |
| 3908 | fi |
| 3909 | |
| 3910 | fi |
| 3911 | done |
| 3912 | |
| 3913 | |
| 3914 | # check for long file support functions |
| 3915 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 3916 | do |
| 3917 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3918 | echo "configure:3919: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3919 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3920 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3921 | else |
| 3922 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3923 | #line 3924 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3924 | #include "confdefs.h" |
| 3925 | /* System header to define __stub macros and hopefully few prototypes, |
| 3926 | which can conflict with char $ac_func(); below. */ |
| 3927 | #include <assert.h> |
| 3928 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3929 | /* We use char because int might match the return type of a gcc2 |
| 3930 | builtin and then its argument prototype would still apply. */ |
| 3931 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3932 | |
| 3933 | int main() { |
| 3934 | |
| 3935 | /* The GNU C library defines this for functions which it implements |
| 3936 | to always fail with ENOSYS. Some functions are actually named |
| 3937 | something starting with __ and the normal name is an alias. */ |
| 3938 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3939 | choke me |
| 3940 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3941 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3942 | #endif |
| 3943 | |
| 3944 | ; return 0; } |
| 3945 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3946 | if { (eval echo configure:3947: \"$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] | 3947 | rm -rf conftest* |
| 3948 | eval "ac_cv_func_$ac_func=yes" |
| 3949 | else |
| 3950 | echo "configure: failed program was:" >&5 |
| 3951 | cat conftest.$ac_ext >&5 |
| 3952 | rm -rf conftest* |
| 3953 | eval "ac_cv_func_$ac_func=no" |
| 3954 | fi |
| 3955 | rm -f conftest* |
| 3956 | fi |
| 3957 | |
| 3958 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3959 | echo "$ac_t""yes" 1>&6 |
| 3960 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3961 | cat >> confdefs.h <<EOF |
| 3962 | #define $ac_tr_func 1 |
| 3963 | EOF |
| 3964 | |
| 3965 | else |
| 3966 | echo "$ac_t""no" 1>&6 |
| 3967 | fi |
| 3968 | done |
| 3969 | |
| 3970 | |
| 3971 | for ac_func in dup2 getcwd strdup strerror memmove |
| 3972 | do |
| 3973 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3974 | echo "configure:3975: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3975 | 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] | 3976 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3977 | else |
| 3978 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3979 | #line 3980 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3980 | #include "confdefs.h" |
| 3981 | /* System header to define __stub macros and hopefully few prototypes, |
| 3982 | which can conflict with char $ac_func(); below. */ |
| 3983 | #include <assert.h> |
| 3984 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3985 | /* We use char because int might match the return type of a gcc2 |
| 3986 | builtin and then its argument prototype would still apply. */ |
| 3987 | char $ac_func(); |
| 3988 | |
| 3989 | int main() { |
| 3990 | |
| 3991 | /* The GNU C library defines this for functions which it implements |
| 3992 | to always fail with ENOSYS. Some functions are actually named |
| 3993 | something starting with __ and the normal name is an alias. */ |
| 3994 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3995 | choke me |
| 3996 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 3997 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3998 | #endif |
| 3999 | |
| 4000 | ; return 0; } |
| 4001 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4002 | if { (eval echo configure:4003: \"$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] | 4003 | rm -rf conftest* |
| 4004 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4005 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4006 | echo "configure: failed program was:" >&5 |
| 4007 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4008 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4009 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4010 | fi |
| 4011 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4012 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4013 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4014 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4015 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4016 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4017 | cat >> confdefs.h <<EOF |
| 4018 | #define $ac_tr_func 1 |
| 4019 | EOF |
| 4020 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4021 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4022 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4023 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4024 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4025 | done |
| 4026 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4027 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4028 | for ac_func in getpgrp |
| 4029 | do |
| 4030 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 4031 | echo "configure:4032: checking for $ac_func" >&5 |
| 4032 | 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] | 4033 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4034 | else |
| 4035 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4036 | #line 4037 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4037 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4038 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4039 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4040 | #include <assert.h> |
| 4041 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4042 | /* We use char because int might match the return type of a gcc2 |
| 4043 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4044 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4045 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4046 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4047 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4048 | /* The GNU C library defines this for functions which it implements |
| 4049 | to always fail with ENOSYS. Some functions are actually named |
| 4050 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4051 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4052 | choke me |
| 4053 | #else |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4054 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4055 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4056 | |
| 4057 | ; return 0; } |
| 4058 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4059 | if { (eval echo configure:4060: \"$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] | 4060 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4061 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4062 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4063 | echo "configure: failed program was:" >&5 |
| 4064 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4065 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4066 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4067 | fi |
| 4068 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4069 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4070 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4071 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4072 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4073 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4074 | cat >> confdefs.h <<EOF |
| 4075 | #define $ac_tr_func 1 |
| 4076 | EOF |
| 4077 | cat > conftest.$ac_ext <<EOF |
| 4078 | #line 4079 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4079 | #include "confdefs.h" |
| 4080 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4081 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4082 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4083 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4084 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4085 | if { (eval echo configure:4086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4086 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4087 | cat >> confdefs.h <<\EOF |
| 4088 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4089 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4090 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4091 | else |
| 4092 | echo "configure: failed program was:" >&5 |
| 4093 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4094 | fi |
| 4095 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4096 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4097 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4098 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4099 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4100 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4101 | for ac_func in setpgrp |
| 4102 | do |
| 4103 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 4104 | echo "configure:4105: checking for $ac_func" >&5 |
| 4105 | 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] | 4106 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4107 | else |
| 4108 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4109 | #line 4110 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4110 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4111 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4112 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4113 | #include <assert.h> |
| 4114 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4115 | /* We use char because int might match the return type of a gcc2 |
| 4116 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4117 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4118 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4119 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4120 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4121 | /* The GNU C library defines this for functions which it implements |
| 4122 | to always fail with ENOSYS. Some functions are actually named |
| 4123 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4124 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4125 | choke me |
| 4126 | #else |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4127 | $ac_func(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4128 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4129 | |
| 4130 | ; return 0; } |
| 4131 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4132 | if { (eval echo configure:4133: \"$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] | 4133 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4134 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4135 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4136 | echo "configure: failed program was:" >&5 |
| 4137 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4138 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4139 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4140 | fi |
| 4141 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4142 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4143 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4144 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4145 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4146 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4147 | cat >> confdefs.h <<EOF |
| 4148 | #define $ac_tr_func 1 |
| 4149 | EOF |
| 4150 | cat > conftest.$ac_ext <<EOF |
| 4151 | #line 4152 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4152 | #include "confdefs.h" |
| 4153 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4154 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4155 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4156 | ; return 0; } |
| 4157 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4158 | if { (eval echo configure:4159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4159 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4160 | cat >> confdefs.h <<\EOF |
| 4161 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4162 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4163 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4164 | else |
| 4165 | echo "configure: failed program was:" >&5 |
| 4166 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4167 | fi |
| 4168 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4169 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4170 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4171 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4172 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4173 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4174 | for ac_func in gettimeofday |
| 4175 | do |
| 4176 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 4177 | echo "configure:4178: checking for $ac_func" >&5 |
| 4178 | 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] | 4179 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4180 | else |
| 4181 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4182 | #line 4183 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4183 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4184 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4185 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4186 | #include <assert.h> |
| 4187 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4188 | /* We use char because int might match the return type of a gcc2 |
| 4189 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4190 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4191 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4192 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4193 | |
| 4194 | /* The GNU C library defines this for functions which it implements |
| 4195 | to always fail with ENOSYS. Some functions are actually named |
| 4196 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4197 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4198 | choke me |
| 4199 | #else |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4200 | $ac_func(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4201 | #endif |
| 4202 | |
| 4203 | ; return 0; } |
| 4204 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4205 | if { (eval echo configure:4206: \"$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] | 4206 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4207 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4208 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4209 | echo "configure: failed program was:" >&5 |
| 4210 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4211 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4212 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4213 | fi |
| 4214 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4215 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4216 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4217 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4218 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4219 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4220 | cat >> confdefs.h <<EOF |
| 4221 | #define $ac_tr_func 1 |
| 4222 | EOF |
| 4223 | cat > conftest.$ac_ext <<EOF |
| 4224 | #line 4225 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4225 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4226 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4227 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4228 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 4229 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4230 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4231 | if { (eval echo configure:4232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4232 | : |
| 4233 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4234 | echo "configure: failed program was:" >&5 |
| 4235 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4236 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4237 | cat >> confdefs.h <<\EOF |
| 4238 | #define GETTIMEOFDAY_NO_TZ 1 |
| 4239 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4240 | |
| 4241 | fi |
| 4242 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4243 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4244 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4245 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4246 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4247 | |
| 4248 | |
| 4249 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4250 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4251 | echo "configure:4252: checking whether time.h and sys/time.h may both be included" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4252 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4253 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4254 | else |
| 4255 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4256 | #line 4257 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4257 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4258 | #include <sys/types.h> |
| 4259 | #include <sys/time.h> |
| 4260 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4261 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4262 | struct tm *tp; |
| 4263 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4264 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4265 | if { (eval echo configure:4266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4266 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4267 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4268 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4269 | echo "configure: failed program was:" >&5 |
| 4270 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4271 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4272 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4273 | fi |
| 4274 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4275 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4276 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4277 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4278 | if test $ac_cv_header_time = yes; then |
| 4279 | cat >> confdefs.h <<\EOF |
| 4280 | #define TIME_WITH_SYS_TIME 1 |
| 4281 | EOF |
| 4282 | |
| 4283 | fi |
| 4284 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4285 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4286 | echo "configure:4287: checking whether struct tm is in sys/time.h or time.h" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4287 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4288 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4289 | else |
| 4290 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4291 | #line 4292 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4292 | #include "confdefs.h" |
| 4293 | #include <sys/types.h> |
| 4294 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4295 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4296 | struct tm *tp; tp->tm_sec; |
| 4297 | ; return 0; } |
| 4298 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4299 | if { (eval echo configure:4300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4300 | rm -rf conftest* |
| 4301 | ac_cv_struct_tm=time.h |
| 4302 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4303 | echo "configure: failed program was:" >&5 |
| 4304 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4305 | rm -rf conftest* |
| 4306 | ac_cv_struct_tm=sys/time.h |
| 4307 | fi |
| 4308 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4309 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4310 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4311 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4312 | if test $ac_cv_struct_tm = sys/time.h; then |
| 4313 | cat >> confdefs.h <<\EOF |
| 4314 | #define TM_IN_SYS_TIME 1 |
| 4315 | EOF |
| 4316 | |
| 4317 | fi |
| 4318 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4319 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4320 | echo "configure:4321: checking for tm_zone in struct tm" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4321 | 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] | 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 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4325 | #line 4326 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4326 | #include "confdefs.h" |
| 4327 | #include <sys/types.h> |
| 4328 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4329 | int main() { |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4330 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4331 | ; return 0; } |
| 4332 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4333 | if { (eval echo configure:4334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4334 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4335 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4336 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4337 | echo "configure: failed program was:" >&5 |
| 4338 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4339 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4340 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4341 | fi |
| 4342 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4343 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4344 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4345 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 4346 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4347 | cat >> confdefs.h <<\EOF |
| 4348 | #define HAVE_TM_ZONE 1 |
| 4349 | EOF |
| 4350 | |
| 4351 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4352 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4353 | echo "configure:4354: checking for tzname" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4354 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4355 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4356 | else |
| 4357 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4358 | #line 4359 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4359 | #include "confdefs.h" |
| 4360 | #include <time.h> |
| 4361 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4362 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4363 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4364 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4365 | atoi(*tzname); |
| 4366 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4367 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4368 | if { (eval echo configure:4369: \"$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] | 4369 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4370 | ac_cv_var_tzname=yes |
| 4371 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4372 | echo "configure: failed program was:" >&5 |
| 4373 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4374 | rm -rf conftest* |
| 4375 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4376 | fi |
| 4377 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4378 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4379 | |
| 4380 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4381 | if test $ac_cv_var_tzname = yes; then |
| 4382 | cat >> confdefs.h <<\EOF |
| 4383 | #define HAVE_TZNAME 1 |
| 4384 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4385 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4386 | fi |
| 4387 | fi |
| 4388 | |
| 4389 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4390 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4391 | echo "configure:4392: checking for time.h that defines altzone" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4392 | 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] | 4393 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4394 | else |
| 4395 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4396 | #line 4397 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4397 | #include "confdefs.h" |
| 4398 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4399 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4400 | return altzone; |
| 4401 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4402 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4403 | if { (eval echo configure:4404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4404 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4405 | ac_cv_header_time_altzone=yes |
| 4406 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4407 | echo "configure: failed program was:" >&5 |
| 4408 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4409 | rm -rf conftest* |
| 4410 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4411 | fi |
| 4412 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4413 | fi |
| 4414 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4415 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4416 | if test $ac_cv_header_time_altzone = yes; then |
| 4417 | cat >> confdefs.h <<\EOF |
| 4418 | #define HAVE_ALTZONE 1 |
| 4419 | EOF |
| 4420 | |
| 4421 | fi |
| 4422 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4423 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4424 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4425 | echo "configure:4426: 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] | 4426 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4427 | #line 4428 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4428 | #include "confdefs.h" |
| 4429 | |
| 4430 | #include <sys/types.h> |
| 4431 | #include <sys/select.h> |
| 4432 | #include <sys/time.h> |
| 4433 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4434 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4435 | ; |
| 4436 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4437 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4438 | if { (eval echo configure:4439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4439 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4440 | cat >> confdefs.h <<\EOF |
| 4441 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 4442 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4443 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4444 | else |
| 4445 | echo "configure: failed program was:" >&5 |
| 4446 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4447 | fi |
| 4448 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4449 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4450 | |
| 4451 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4452 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4453 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4454 | echo "configure:4455: checking whether char is unsigned" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4455 | 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] | 4456 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4457 | else |
| 4458 | if test "$GCC" = yes; then |
| 4459 | # GCC predefines this symbol on systems where it applies. |
| 4460 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4461 | #line 4462 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4462 | #include "confdefs.h" |
| 4463 | #ifdef __CHAR_UNSIGNED__ |
| 4464 | yes |
| 4465 | #endif |
| 4466 | |
| 4467 | EOF |
| 4468 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4469 | egrep "yes" >/dev/null 2>&1; then |
| 4470 | rm -rf conftest* |
| 4471 | ac_cv_c_char_unsigned=yes |
| 4472 | else |
| 4473 | rm -rf conftest* |
| 4474 | ac_cv_c_char_unsigned=no |
| 4475 | fi |
| 4476 | rm -f conftest* |
| 4477 | |
| 4478 | else |
| 4479 | if test "$cross_compiling" = yes; then |
| 4480 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4481 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4482 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4483 | #line 4484 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4484 | #include "confdefs.h" |
| 4485 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4486 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4487 | #define volatile |
| 4488 | #endif |
| 4489 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4490 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4491 | } |
| 4492 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4493 | if { (eval echo configure:4494: \"$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] | 4494 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4495 | ac_cv_c_char_unsigned=yes |
| 4496 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4497 | echo "configure: failed program was:" >&5 |
| 4498 | cat conftest.$ac_ext >&5 |
| 4499 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4500 | ac_cv_c_char_unsigned=no |
| 4501 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4502 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4503 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4504 | |
| 4505 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4506 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4507 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4508 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4509 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 4510 | cat >> confdefs.h <<\EOF |
| 4511 | #define __CHAR_UNSIGNED__ 1 |
| 4512 | EOF |
| 4513 | |
| 4514 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4515 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4516 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4517 | echo "configure:4518: checking for working const" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4518 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4519 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4520 | else |
| 4521 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4522 | #line 4523 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4523 | #include "confdefs.h" |
| 4524 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4525 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4526 | |
| 4527 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4528 | typedef int charset[2]; const charset x; |
| 4529 | /* SunOS 4.1.1 cc rejects this. */ |
| 4530 | char const *const *ccp; |
| 4531 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4532 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4533 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4534 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4535 | /* AIX XL C 1.02.0.0 rejects this. |
| 4536 | It does not let you subtract one const X* pointer from another in an arm |
| 4537 | of an if-expression whose if-part is not a constant expression */ |
| 4538 | const char *g = "string"; |
| 4539 | ccp = &g + (g ? g-g : 0); |
| 4540 | /* HPUX 7.0 cc rejects these. */ |
| 4541 | ++ccp; |
| 4542 | p = (char**) ccp; |
| 4543 | ccp = (char const *const *) p; |
| 4544 | { /* SCO 3.2v4 cc rejects this. */ |
| 4545 | char *t; |
| 4546 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4547 | |
| 4548 | *t++ = 0; |
| 4549 | } |
| 4550 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4551 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4552 | const int *foo = &x[0]; |
| 4553 | ++foo; |
| 4554 | } |
| 4555 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4556 | typedef const int *iptr; |
| 4557 | iptr p = 0; |
| 4558 | ++p; |
| 4559 | } |
| 4560 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4561 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4562 | struct s { int j; const int *ap[3]; }; |
| 4563 | struct s *b; b->j = 5; |
| 4564 | } |
| 4565 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4566 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4567 | } |
| 4568 | |
| 4569 | ; return 0; } |
| 4570 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4571 | if { (eval echo configure:4572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4572 | rm -rf conftest* |
| 4573 | ac_cv_c_const=yes |
| 4574 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4575 | echo "configure: failed program was:" >&5 |
| 4576 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4577 | rm -rf conftest* |
| 4578 | ac_cv_c_const=no |
| 4579 | fi |
| 4580 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4581 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4582 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4583 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4584 | if test $ac_cv_c_const = no; then |
| 4585 | cat >> confdefs.h <<\EOF |
| 4586 | #define const |
| 4587 | EOF |
| 4588 | |
| 4589 | fi |
| 4590 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4591 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4592 | echo "configure:4593: checking for inline" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4593 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4594 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4595 | else |
| 4596 | ac_cv_c_inline=no |
| 4597 | for ac_kw in inline __inline__ __inline; do |
| 4598 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4599 | #line 4600 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4600 | #include "confdefs.h" |
| 4601 | |
| 4602 | int main() { |
| 4603 | } $ac_kw foo() { |
| 4604 | ; return 0; } |
| 4605 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4606 | if { (eval echo configure:4607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4607 | rm -rf conftest* |
| 4608 | ac_cv_c_inline=$ac_kw; break |
| 4609 | else |
| 4610 | echo "configure: failed program was:" >&5 |
| 4611 | cat conftest.$ac_ext >&5 |
| 4612 | fi |
| 4613 | rm -f conftest* |
| 4614 | done |
| 4615 | |
| 4616 | fi |
| 4617 | |
| 4618 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 4619 | case "$ac_cv_c_inline" in |
| 4620 | inline | yes) ;; |
| 4621 | no) cat >> confdefs.h <<\EOF |
| 4622 | #define inline |
| 4623 | EOF |
| 4624 | ;; |
| 4625 | *) cat >> confdefs.h <<EOF |
| 4626 | #define inline $ac_cv_c_inline |
| 4627 | EOF |
| 4628 | ;; |
| 4629 | esac |
| 4630 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4631 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4632 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4633 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4634 | echo "configure:4635: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4635 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4636 | #line 4637 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4637 | #include "confdefs.h" |
| 4638 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4639 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4640 | volatile int x; x = 0; |
| 4641 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4642 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4643 | if { (eval echo configure:4644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4644 | rm -rf conftest* |
| 4645 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4646 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4647 | echo "configure: failed program was:" >&5 |
| 4648 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4649 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4650 | cat >> confdefs.h <<\EOF |
| 4651 | #define volatile |
| 4652 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4653 | |
| 4654 | fi |
| 4655 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4656 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4657 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4658 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4659 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4660 | echo "configure:4661: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4661 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4662 | #line 4663 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4663 | #include "confdefs.h" |
| 4664 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4665 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4666 | signed char c; |
| 4667 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4668 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4669 | if { (eval echo configure:4670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4670 | rm -rf conftest* |
| 4671 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4672 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4673 | echo "configure: failed program was:" >&5 |
| 4674 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4675 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4676 | cat >> confdefs.h <<\EOF |
| 4677 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4678 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4679 | |
| 4680 | fi |
| 4681 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4682 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4683 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4684 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4685 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4686 | echo "configure:4687: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4687 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4688 | #line 4689 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4689 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4690 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4691 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4692 | return foo(10); |
| 4693 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4694 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4695 | if { (eval echo configure:4696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4696 | rm -rf conftest* |
| 4697 | cat >> confdefs.h <<\EOF |
| 4698 | #define HAVE_PROTOTYPES 1 |
| 4699 | EOF |
| 4700 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4701 | else |
| 4702 | echo "configure: failed program was:" >&5 |
| 4703 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4704 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4705 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4706 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4707 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4708 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4709 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4710 | echo "configure:4711: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4711 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4712 | #line 4713 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4713 | #include "confdefs.h" |
| 4714 | |
| 4715 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4716 | int foo(int x, ...) { |
| 4717 | va_list va; |
| 4718 | va_start(va, x); |
| 4719 | va_arg(va, int); |
| 4720 | va_arg(va, char *); |
| 4721 | va_arg(va, double); |
| 4722 | return 0; |
| 4723 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4724 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4725 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4726 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4727 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4728 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4729 | if { (eval echo configure:4730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4730 | rm -rf conftest* |
| 4731 | cat >> confdefs.h <<\EOF |
| 4732 | #define HAVE_STDARG_PROTOTYPES 1 |
| 4733 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4734 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4735 | else |
| 4736 | echo "configure: failed program was:" >&5 |
| 4737 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4738 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4739 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4740 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4741 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4742 | if test "$have_prototypes" = yes; then |
| 4743 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4744 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4745 | echo "configure:4746: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4746 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4747 | #line 4748 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4748 | #include "confdefs.h" |
| 4749 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4750 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4751 | char **t;execve("@",t,t); |
| 4752 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4753 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4754 | if { (eval echo configure:4755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4755 | : |
| 4756 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4757 | echo "configure: failed program was:" >&5 |
| 4758 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4759 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4760 | cat >> confdefs.h <<\EOF |
| 4761 | #define BAD_EXEC_PROTOTYPES 1 |
| 4762 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4763 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4764 | fi |
| 4765 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4766 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4767 | fi |
| 4768 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4769 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4770 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4771 | echo "configure:4772: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4772 | if test "$cross_compiling" = yes; then |
| 4773 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4774 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4775 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4776 | #line 4777 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4777 | #include "confdefs.h" |
| 4778 | |
| 4779 | struct s { int a; int b; }; |
| 4780 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4781 | int foobar() { |
| 4782 | static int random; |
| 4783 | random = (int) &foo; |
| 4784 | return random; |
| 4785 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4786 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4787 | main() { |
| 4788 | exit(!((int)&foo == foobar())); |
| 4789 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4790 | |
| 4791 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4792 | if { (eval echo configure:4793: \"$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] | 4793 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +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 |
| 4798 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4799 | cat >> confdefs.h <<\EOF |
| 4800 | #define BAD_STATIC_FORWARD 1 |
| 4801 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4802 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4803 | fi |
| 4804 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4805 | fi |
| 4806 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4807 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4808 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4809 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4810 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4811 | echo "configure:4812: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4812 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4813 | #line 4814 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4814 | #include "confdefs.h" |
| 4815 | |
| 4816 | #ifdef HAVE_STDARG_PROTOTYPES |
| 4817 | #include <stdarg.h> |
| 4818 | #else |
| 4819 | #include <varargs.h> |
| 4820 | #endif |
| 4821 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4822 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4823 | va_list list1, list2; list1 = list2; |
| 4824 | ; return 0; } |
| 4825 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4826 | if { (eval echo configure:4827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4827 | : |
| 4828 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4829 | echo "configure: failed program was:" >&5 |
| 4830 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4831 | rm -rf conftest* |
| 4832 | cat >> confdefs.h <<\EOF |
| 4833 | #define VA_LIST_IS_ARRAY 1 |
| 4834 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4835 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4836 | fi |
| 4837 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4838 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4839 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4840 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 4841 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4842 | echo "configure:4843: checking for gethostbyname_r" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4843 | 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] | 4844 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4845 | else |
| 4846 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4847 | #line 4848 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4848 | #include "confdefs.h" |
| 4849 | /* System header to define __stub macros and hopefully few prototypes, |
| 4850 | which can conflict with char gethostbyname_r(); below. */ |
| 4851 | #include <assert.h> |
| 4852 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4853 | /* We use char because int might match the return type of a gcc2 |
| 4854 | builtin and then its argument prototype would still apply. */ |
| 4855 | char gethostbyname_r(); |
| 4856 | |
| 4857 | int main() { |
| 4858 | |
| 4859 | /* The GNU C library defines this for functions which it implements |
| 4860 | to always fail with ENOSYS. Some functions are actually named |
| 4861 | something starting with __ and the normal name is an alias. */ |
| 4862 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 4863 | choke me |
| 4864 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 4865 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4866 | #endif |
| 4867 | |
| 4868 | ; return 0; } |
| 4869 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4870 | if { (eval echo configure:4871: \"$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] | 4871 | rm -rf conftest* |
| 4872 | eval "ac_cv_func_gethostbyname_r=yes" |
| 4873 | else |
| 4874 | echo "configure: failed program was:" >&5 |
| 4875 | cat conftest.$ac_ext >&5 |
| 4876 | rm -rf conftest* |
| 4877 | eval "ac_cv_func_gethostbyname_r=no" |
| 4878 | fi |
| 4879 | rm -f conftest* |
| 4880 | fi |
| 4881 | |
| 4882 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 4883 | echo "$ac_t""yes" 1>&6 |
| 4884 | |
| 4885 | cat >> confdefs.h <<\EOF |
| 4886 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4887 | EOF |
| 4888 | |
| 4889 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4890 | echo "configure:4891: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4891 | OLD_CFLAGS=$CFLAGS |
| 4892 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 4893 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4894 | #line 4895 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4895 | #include "confdefs.h" |
| 4896 | |
| 4897 | # include <netdb.h> |
| 4898 | |
| 4899 | int main() { |
| 4900 | |
| 4901 | char *name; |
| 4902 | struct hostent *he, *res; |
| 4903 | char buffer[2048]; |
| 4904 | int buflen = 2048; |
| 4905 | int h_errnop; |
| 4906 | |
| 4907 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 4908 | |
| 4909 | ; return 0; } |
| 4910 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4911 | if { (eval echo configure:4912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4912 | rm -rf conftest* |
| 4913 | |
| 4914 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4915 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4916 | EOF |
| 4917 | |
| 4918 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4919 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 4920 | EOF |
| 4921 | |
| 4922 | echo "$ac_t""yes" 1>&6 |
| 4923 | |
| 4924 | else |
| 4925 | echo "configure: failed program was:" >&5 |
| 4926 | cat conftest.$ac_ext >&5 |
| 4927 | rm -rf conftest* |
| 4928 | |
| 4929 | echo "$ac_t""no" 1>&6 |
| 4930 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4931 | echo "configure:4932: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4932 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4933 | #line 4934 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4934 | #include "confdefs.h" |
| 4935 | |
| 4936 | # include <netdb.h> |
| 4937 | |
| 4938 | int main() { |
| 4939 | |
| 4940 | char *name; |
| 4941 | struct hostent *he; |
| 4942 | char buffer[2048]; |
| 4943 | int buflen = 2048; |
| 4944 | int h_errnop; |
| 4945 | |
| 4946 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 4947 | |
| 4948 | ; return 0; } |
| 4949 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4950 | if { (eval echo configure:4951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4951 | rm -rf conftest* |
| 4952 | |
| 4953 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4954 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4955 | EOF |
| 4956 | |
| 4957 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4958 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 4959 | EOF |
| 4960 | |
| 4961 | echo "$ac_t""yes" 1>&6 |
| 4962 | |
| 4963 | else |
| 4964 | echo "configure: failed program was:" >&5 |
| 4965 | cat conftest.$ac_ext >&5 |
| 4966 | rm -rf conftest* |
| 4967 | |
| 4968 | echo "$ac_t""no" 1>&6 |
| 4969 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4970 | echo "configure:4971: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4971 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4972 | #line 4973 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4973 | #include "confdefs.h" |
| 4974 | |
| 4975 | # include <netdb.h> |
| 4976 | |
| 4977 | int main() { |
| 4978 | |
| 4979 | char *name; |
| 4980 | struct hostent *he; |
| 4981 | struct hostent_data data; |
| 4982 | |
| 4983 | (void) gethostbyname_r(name, he, &data); |
| 4984 | |
| 4985 | ; return 0; } |
| 4986 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4987 | if { (eval echo configure:4988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4988 | rm -rf conftest* |
| 4989 | |
| 4990 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4991 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4992 | EOF |
| 4993 | |
| 4994 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4995 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 4996 | EOF |
| 4997 | |
| 4998 | echo "$ac_t""yes" 1>&6 |
| 4999 | |
| 5000 | else |
| 5001 | echo "configure: failed program was:" >&5 |
| 5002 | cat conftest.$ac_ext >&5 |
| 5003 | rm -rf conftest* |
| 5004 | |
| 5005 | echo "$ac_t""no" 1>&6 |
| 5006 | |
| 5007 | fi |
| 5008 | rm -f conftest* |
| 5009 | |
| 5010 | fi |
| 5011 | rm -f conftest* |
| 5012 | |
| 5013 | fi |
| 5014 | rm -f conftest* |
| 5015 | CFLAGS=$OLD_CFLAGS |
| 5016 | |
| 5017 | else |
| 5018 | echo "$ac_t""no" 1>&6 |
| 5019 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5020 | for ac_func in gethostbyname |
| 5021 | do |
| 5022 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 5023 | echo "configure:5024: checking for $ac_func" >&5 |
| 5024 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5025 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5026 | else |
| 5027 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5028 | #line 5029 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5029 | #include "confdefs.h" |
| 5030 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5031 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5032 | #include <assert.h> |
| 5033 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5034 | /* We use char because int might match the return type of a gcc2 |
| 5035 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5036 | char $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5037 | |
| 5038 | int main() { |
| 5039 | |
| 5040 | /* The GNU C library defines this for functions which it implements |
| 5041 | to always fail with ENOSYS. Some functions are actually named |
| 5042 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5043 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5044 | choke me |
| 5045 | #else |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5046 | $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5047 | #endif |
| 5048 | |
| 5049 | ; return 0; } |
| 5050 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5051 | if { (eval echo configure:5052: \"$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] | 5052 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5053 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5054 | else |
| 5055 | echo "configure: failed program was:" >&5 |
| 5056 | cat conftest.$ac_ext >&5 |
| 5057 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5058 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5059 | fi |
| 5060 | rm -f conftest* |
| 5061 | fi |
| 5062 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5063 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5064 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5065 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5066 | cat >> confdefs.h <<EOF |
| 5067 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5068 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5069 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5070 | else |
| 5071 | echo "$ac_t""no" 1>&6 |
| 5072 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5073 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5074 | |
| 5075 | |
| 5076 | fi |
| 5077 | |
| 5078 | |
| 5079 | |
| 5080 | |
| 5081 | |
| 5082 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5083 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5084 | # checks for system services |
| 5085 | # (none yet) |
| 5086 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5087 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5088 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5089 | echo "configure:5090: checking for __fpu_control" >&5 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5090 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then |
| 5091 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5092 | else |
| 5093 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5094 | #line 5095 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5095 | #include "confdefs.h" |
| 5096 | /* System header to define __stub macros and hopefully few prototypes, |
| 5097 | which can conflict with char __fpu_control(); below. */ |
| 5098 | #include <assert.h> |
| 5099 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5100 | /* We use char because int might match the return type of a gcc2 |
| 5101 | builtin and then its argument prototype would still apply. */ |
| 5102 | char __fpu_control(); |
| 5103 | |
| 5104 | int main() { |
| 5105 | |
| 5106 | /* The GNU C library defines this for functions which it implements |
| 5107 | to always fail with ENOSYS. Some functions are actually named |
| 5108 | something starting with __ and the normal name is an alias. */ |
| 5109 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 5110 | choke me |
| 5111 | #else |
| 5112 | __fpu_control(); |
| 5113 | #endif |
| 5114 | |
| 5115 | ; return 0; } |
| 5116 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5117 | if { (eval echo configure:5118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5118 | rm -rf conftest* |
| 5119 | eval "ac_cv_func___fpu_control=yes" |
| 5120 | else |
| 5121 | echo "configure: failed program was:" >&5 |
| 5122 | cat conftest.$ac_ext >&5 |
| 5123 | rm -rf conftest* |
| 5124 | eval "ac_cv_func___fpu_control=no" |
| 5125 | fi |
| 5126 | rm -f conftest* |
| 5127 | fi |
| 5128 | |
| 5129 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 5130 | echo "$ac_t""yes" 1>&6 |
| 5131 | : |
| 5132 | else |
| 5133 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5134 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5135 | echo "configure:5136: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5136 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5137 | 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] | 5138 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5139 | else |
| 5140 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5141 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5142 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5143 | #line 5144 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5144 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5145 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5146 | /* We use char because int might match the return type of a gcc2 |
| 5147 | builtin and then its argument prototype would still apply. */ |
| 5148 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5149 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5150 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5151 | __fpu_control() |
| 5152 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5153 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5154 | if { (eval echo configure:5155: \"$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] | 5155 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5156 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5157 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5158 | echo "configure: failed program was:" >&5 |
| 5159 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5160 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5161 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5162 | fi |
| 5163 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5164 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5165 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5166 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5167 | 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] | 5168 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5169 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5170 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5171 | cat >> confdefs.h <<EOF |
| 5172 | #define $ac_tr_lib 1 |
| 5173 | EOF |
| 5174 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5175 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5176 | |
| 5177 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5178 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5179 | fi |
| 5180 | |
| 5181 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5182 | fi |
| 5183 | |
| 5184 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5185 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5186 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5187 | echo "configure:5188: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5188 | # Check whether --with-fpectl or --without-fpectl was given. |
| 5189 | if test "${with_fpectl+set}" = set; then |
| 5190 | withval="$with_fpectl" |
| 5191 | |
| 5192 | if test "$withval" != no |
| 5193 | then cat >> confdefs.h <<\EOF |
| 5194 | #define WANT_SIGFPE_HANDLER 1 |
| 5195 | EOF |
| 5196 | echo "$ac_t""yes" 1>&6 |
| 5197 | else echo "$ac_t""no" 1>&6 |
| 5198 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5199 | else |
| 5200 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5201 | fi |
| 5202 | |
| 5203 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5204 | # check for --with-libm=... |
| 5205 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5206 | case $ac_sys_system in |
| 5207 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5208 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5209 | *) LIBM=-lm |
| 5210 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5211 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5212 | echo "configure:5213: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5213 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5214 | if test "${with_libm+set}" = set; then |
| 5215 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5216 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5217 | if test "$withval" = no |
| 5218 | then LIBM= |
| 5219 | echo "$ac_t""force LIBM empty" 1>&6 |
| 5220 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5221 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5222 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5223 | 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] | 5224 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5225 | else |
| 5226 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5227 | fi |
| 5228 | |
| 5229 | |
| 5230 | # check for --with-libc=... |
| 5231 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5232 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5233 | echo "configure:5234: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5234 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5235 | if test "${with_libc+set}" = set; then |
| 5236 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5237 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5238 | if test "$withval" = no |
| 5239 | then LIBC= |
| 5240 | echo "$ac_t""force LIBC empty" 1>&6 |
| 5241 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5242 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5243 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5244 | 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] | 5245 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5246 | else |
| 5247 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5248 | fi |
| 5249 | |
| 5250 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5251 | # check for hypot() in math library |
| 5252 | LIBS_SAVE=$LIBS |
| 5253 | LIBS="$LIBS $LIBM" |
| 5254 | for ac_func in hypot |
| 5255 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5256 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5257 | echo "configure:5258: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5258 | 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] | 5259 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5260 | else |
| 5261 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5262 | #line 5263 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5263 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5264 | /* System header to define __stub macros and hopefully few prototypes, |
| 5265 | which can conflict with char $ac_func(); below. */ |
| 5266 | #include <assert.h> |
| 5267 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5268 | /* We use char because int might match the return type of a gcc2 |
| 5269 | builtin and then its argument prototype would still apply. */ |
| 5270 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5271 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5272 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5273 | |
| 5274 | /* The GNU C library defines this for functions which it implements |
| 5275 | to always fail with ENOSYS. Some functions are actually named |
| 5276 | something starting with __ and the normal name is an alias. */ |
| 5277 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5278 | choke me |
| 5279 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5280 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5281 | #endif |
| 5282 | |
| 5283 | ; return 0; } |
| 5284 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5285 | if { (eval echo configure:5286: \"$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] | 5286 | rm -rf conftest* |
| 5287 | eval "ac_cv_func_$ac_func=yes" |
| 5288 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5289 | echo "configure: failed program was:" >&5 |
| 5290 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5291 | rm -rf conftest* |
| 5292 | eval "ac_cv_func_$ac_func=no" |
| 5293 | fi |
| 5294 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5295 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5296 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5297 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5298 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5299 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5300 | cat >> confdefs.h <<EOF |
| 5301 | #define $ac_tr_func 1 |
| 5302 | EOF |
| 5303 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5304 | else |
| 5305 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5306 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5307 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5308 | done |
| 5309 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5310 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5311 | LIBS=$LIBS_SAVE |
| 5312 | |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5313 | # check for rint() in math library |
| 5314 | LIBS_SAVE=$LIBS |
| 5315 | LIBS="$LIBS $LIBM" |
| 5316 | for ac_func in rint |
| 5317 | do |
| 5318 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5319 | echo "configure:5320: checking for $ac_func" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5320 | 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] | 5321 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5322 | else |
| 5323 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5324 | #line 5325 "configure" |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5325 | #include "confdefs.h" |
| 5326 | /* System header to define __stub macros and hopefully few prototypes, |
| 5327 | which can conflict with char $ac_func(); below. */ |
| 5328 | #include <assert.h> |
| 5329 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5330 | /* We use char because int might match the return type of a gcc2 |
| 5331 | builtin and then its argument prototype would still apply. */ |
| 5332 | char $ac_func(); |
| 5333 | |
| 5334 | int main() { |
| 5335 | |
| 5336 | /* The GNU C library defines this for functions which it implements |
| 5337 | to always fail with ENOSYS. Some functions are actually named |
| 5338 | something starting with __ and the normal name is an alias. */ |
| 5339 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5340 | choke me |
| 5341 | #else |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5342 | $ac_func(); |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5343 | #endif |
| 5344 | |
| 5345 | ; return 0; } |
| 5346 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5347 | if { (eval echo configure:5348: \"$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] | 5348 | rm -rf conftest* |
| 5349 | eval "ac_cv_func_$ac_func=yes" |
| 5350 | else |
| 5351 | echo "configure: failed program was:" >&5 |
| 5352 | cat conftest.$ac_ext >&5 |
| 5353 | rm -rf conftest* |
| 5354 | eval "ac_cv_func_$ac_func=no" |
| 5355 | fi |
| 5356 | rm -f conftest* |
| 5357 | fi |
| 5358 | |
| 5359 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5360 | echo "$ac_t""yes" 1>&6 |
| 5361 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5362 | cat >> confdefs.h <<EOF |
| 5363 | #define $ac_tr_func 1 |
| 5364 | EOF |
| 5365 | |
| 5366 | else |
| 5367 | echo "$ac_t""no" 1>&6 |
| 5368 | fi |
| 5369 | done |
| 5370 | |
| 5371 | LIBS=$LIBS_SAVE |
| 5372 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5373 | # check for getopt |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5374 | echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5375 | echo "configure:5376: checking for genuine getopt" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5376 | if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5377 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5378 | else |
| 5379 | if test "$cross_compiling" = yes; then |
| 5380 | ac_cv_func_getopt=no |
| 5381 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5382 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5383 | #line 5384 "configure" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5384 | #include "confdefs.h" |
| 5385 | #include <stdio.h> |
| 5386 | extern int optind, opterr, getopt(); |
| 5387 | extern char* optarg; |
| 5388 | int main() { |
| 5389 | char* av[] = { "testprog", "parameter", "-fFlag", NULL }; |
| 5390 | opterr = 0; |
| 5391 | if (getopt(3, av, "f:") == 'f') { exit(1); } |
| 5392 | exit(0); |
| 5393 | } |
| 5394 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5395 | if { (eval echo configure:5396: \"$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] | 5396 | then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5397 | ac_cv_func_getopt=yes |
| 5398 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5399 | echo "configure: failed program was:" >&5 |
| 5400 | cat conftest.$ac_ext >&5 |
| 5401 | rm -fr conftest* |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5402 | ac_cv_func_getopt=no |
| 5403 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5404 | rm -fr conftest* |
| 5405 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5406 | |
| 5407 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5408 | echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5409 | test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 5410 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5411 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5412 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5413 | echo "configure:5414: checking what malloc(0) returns" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5414 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5415 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5416 | else |
| 5417 | if test "$cross_compiling" = yes; then |
| 5418 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5419 | else |
| 5420 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5421 | #line 5422 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5422 | #include "confdefs.h" |
| 5423 | #include <stdio.h> |
| 5424 | #ifdef HAVE_STDLIB |
| 5425 | #include <stdlib.h> |
| 5426 | #else |
| 5427 | char *malloc(), *realloc(); |
| 5428 | int *free(); |
| 5429 | #endif |
| 5430 | main() { |
| 5431 | char *p; |
| 5432 | p = malloc(0); |
| 5433 | if (p == NULL) exit(1); |
| 5434 | p = realloc(p, 0); |
| 5435 | if (p == NULL) exit(1); |
| 5436 | free(p); |
| 5437 | exit(0); |
| 5438 | } |
| 5439 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5440 | if { (eval echo configure:5441: \"$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] | 5441 | then |
| 5442 | ac_cv_malloc_zero=nonnull |
| 5443 | else |
| 5444 | echo "configure: failed program was:" >&5 |
| 5445 | cat conftest.$ac_ext >&5 |
| 5446 | rm -fr conftest* |
| 5447 | ac_cv_malloc_zero=null |
| 5448 | fi |
| 5449 | rm -fr conftest* |
| 5450 | fi |
| 5451 | |
| 5452 | fi |
| 5453 | |
| 5454 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 5455 | if test "$ac_cv_malloc_zero" = null |
| 5456 | then |
| 5457 | cat >> confdefs.h <<\EOF |
| 5458 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 5459 | EOF |
| 5460 | |
| 5461 | fi |
| 5462 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5463 | # check for wchar.h |
| 5464 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 5465 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5466 | echo "configure:5467: checking for wchar.h" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5467 | 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] | 5468 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5469 | else |
| 5470 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5471 | #line 5472 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5472 | #include "confdefs.h" |
| 5473 | #include <wchar.h> |
| 5474 | EOF |
| 5475 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5476 | { (eval echo configure:5477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5477 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5478 | if test -z "$ac_err"; then |
| 5479 | rm -rf conftest* |
| 5480 | eval "ac_cv_header_$ac_safe=yes" |
| 5481 | else |
| 5482 | echo "$ac_err" >&5 |
| 5483 | echo "configure: failed program was:" >&5 |
| 5484 | cat conftest.$ac_ext >&5 |
| 5485 | rm -rf conftest* |
| 5486 | eval "ac_cv_header_$ac_safe=no" |
| 5487 | fi |
| 5488 | rm -f conftest* |
| 5489 | fi |
| 5490 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5491 | echo "$ac_t""yes" 1>&6 |
| 5492 | cat >> confdefs.h <<\EOF |
| 5493 | #define HAVE_WCHAR_H 1 |
| 5494 | EOF |
| 5495 | wchar_h="yes" |
| 5496 | else |
| 5497 | echo "$ac_t""no" 1>&6 |
| 5498 | wchar_h="no" |
| 5499 | |
| 5500 | fi |
| 5501 | |
| 5502 | |
| 5503 | # check for usable wchar_t |
| 5504 | usable_wchar_t="unkown" |
| 5505 | echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5506 | echo "configure:5507: checking for usable wchar_t" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5507 | if test "$cross_compiling" = yes; then |
| 5508 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5509 | else |
| 5510 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5511 | #line 5512 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5512 | #include "confdefs.h" |
| 5513 | |
| 5514 | #include "wchar.h" |
| 5515 | #include "wctype.h" |
| 5516 | main() { |
| 5517 | wchar_t s; |
| 5518 | if (sizeof(s) == 2) |
| 5519 | exit(0); |
| 5520 | else |
| 5521 | exit(1); |
| 5522 | } |
| 5523 | |
| 5524 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5525 | if { (eval echo configure:5526: \"$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] | 5526 | then |
| 5527 | cat >> confdefs.h <<\EOF |
| 5528 | #define HAVE_USABLE_WCHAR_T 1 |
| 5529 | EOF |
| 5530 | usable_wchar_t="yes" |
| 5531 | else |
| 5532 | echo "configure: failed program was:" >&5 |
| 5533 | cat conftest.$ac_ext >&5 |
| 5534 | rm -fr conftest* |
| 5535 | usable_wchar_t="no" |
| 5536 | fi |
| 5537 | rm -fr conftest* |
| 5538 | fi |
| 5539 | |
| 5540 | echo "$ac_t""$usable_wchar_t" 1>&6 |
| 5541 | |
| 5542 | # check for endianness |
| 5543 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5544 | echo "configure:5545: checking whether byte ordering is bigendian" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5545 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5546 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5547 | else |
| 5548 | ac_cv_c_bigendian=unknown |
| 5549 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5550 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5551 | #line 5552 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5552 | #include "confdefs.h" |
| 5553 | #include <sys/types.h> |
| 5554 | #include <sys/param.h> |
| 5555 | int main() { |
| 5556 | |
| 5557 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5558 | bogus endian macros |
| 5559 | #endif |
| 5560 | ; return 0; } |
| 5561 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5562 | if { (eval echo configure:5563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5563 | rm -rf conftest* |
| 5564 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5565 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +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 | #include <sys/types.h> |
| 5569 | #include <sys/param.h> |
| 5570 | int main() { |
| 5571 | |
| 5572 | #if BYTE_ORDER != BIG_ENDIAN |
| 5573 | not big endian |
| 5574 | #endif |
| 5575 | ; return 0; } |
| 5576 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5577 | if { (eval echo configure:5578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5578 | rm -rf conftest* |
| 5579 | ac_cv_c_bigendian=yes |
| 5580 | else |
| 5581 | echo "configure: failed program was:" >&5 |
| 5582 | cat conftest.$ac_ext >&5 |
| 5583 | rm -rf conftest* |
| 5584 | ac_cv_c_bigendian=no |
| 5585 | fi |
| 5586 | rm -f conftest* |
| 5587 | else |
| 5588 | echo "configure: failed program was:" >&5 |
| 5589 | cat conftest.$ac_ext >&5 |
| 5590 | fi |
| 5591 | rm -f conftest* |
| 5592 | if test $ac_cv_c_bigendian = unknown; then |
| 5593 | if test "$cross_compiling" = yes; then |
| 5594 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5595 | else |
| 5596 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5597 | #line 5598 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5598 | #include "confdefs.h" |
| 5599 | main () { |
| 5600 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5601 | union |
| 5602 | { |
| 5603 | long l; |
| 5604 | char c[sizeof (long)]; |
| 5605 | } u; |
| 5606 | u.l = 1; |
| 5607 | exit (u.c[sizeof (long) - 1] == 1); |
| 5608 | } |
| 5609 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5610 | if { (eval echo configure:5611: \"$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] | 5611 | then |
| 5612 | ac_cv_c_bigendian=no |
| 5613 | else |
| 5614 | echo "configure: failed program was:" >&5 |
| 5615 | cat conftest.$ac_ext >&5 |
| 5616 | rm -fr conftest* |
| 5617 | ac_cv_c_bigendian=yes |
| 5618 | fi |
| 5619 | rm -fr conftest* |
| 5620 | fi |
| 5621 | |
| 5622 | fi |
| 5623 | fi |
| 5624 | |
| 5625 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5626 | if test $ac_cv_c_bigendian = yes; then |
| 5627 | cat >> confdefs.h <<\EOF |
| 5628 | #define WORDS_BIGENDIAN 1 |
| 5629 | EOF |
| 5630 | |
| 5631 | fi |
| 5632 | |
| 5633 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5634 | # Check whether right shifting a negative integer extends the sign bit |
| 5635 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 5636 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5637 | echo "configure:5638: checking whether right shift extends the sign bit" >&5 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5638 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
| 5639 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5640 | else |
| 5641 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5642 | if test "$cross_compiling" = yes; then |
| 5643 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5644 | else |
| 5645 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5646 | #line 5647 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5647 | #include "confdefs.h" |
| 5648 | |
| 5649 | int main() |
| 5650 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5651 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5652 | } |
| 5653 | |
| 5654 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5655 | if { (eval echo configure:5656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5656 | then |
| 5657 | ac_cv_rshift_extends_sign=yes |
| 5658 | else |
| 5659 | echo "configure: failed program was:" >&5 |
| 5660 | cat conftest.$ac_ext >&5 |
| 5661 | rm -fr conftest* |
| 5662 | ac_cv_rshift_extends_sign=no |
| 5663 | fi |
| 5664 | rm -fr conftest* |
| 5665 | fi |
| 5666 | |
| 5667 | fi |
| 5668 | |
| 5669 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 5670 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5671 | then |
| 5672 | cat >> confdefs.h <<\EOF |
| 5673 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 5674 | EOF |
| 5675 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5676 | fi |
| 5677 | |
| 5678 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5679 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 5680 | # Add sys/socket.h to confdefs.h |
| 5681 | cat >> confdefs.h <<\EOF |
| 5682 | #ifdef HAVE_SYS_SOCKET_H |
| 5683 | #include <sys/socket.h> |
| 5684 | #endif |
| 5685 | EOF |
| 5686 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5687 | echo "configure:5688: checking for socklen_t" >&5 |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5688 | 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] | 5689 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5690 | else |
| 5691 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5692 | #line 5693 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5693 | #include "confdefs.h" |
| 5694 | #include <sys/types.h> |
| 5695 | #if STDC_HEADERS |
| 5696 | #include <stdlib.h> |
| 5697 | #include <stddef.h> |
| 5698 | #endif |
| 5699 | EOF |
| 5700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5701 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5702 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5703 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5704 | else |
| 5705 | rm -rf conftest* |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5706 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5707 | fi |
| 5708 | rm -f conftest* |
| 5709 | |
| 5710 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5711 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 5712 | if test $ac_cv_type_socklen_t = no; then |
| 5713 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5714 | #define socklen_t int |
| 5715 | EOF |
| 5716 | |
| 5717 | fi |
| 5718 | |
| 5719 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5720 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5721 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5722 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5723 | # This file is a shell script that caches the results of configure |
| 5724 | # tests run on this system so they can be shared between configure |
| 5725 | # scripts and configure runs. It is not useful on other systems. |
| 5726 | # If it contains results you don't want to keep, you may remove or edit it. |
| 5727 | # |
| 5728 | # By default, configure uses ./config.cache as the cache file, |
| 5729 | # creating it if it does not exist already. You can give configure |
| 5730 | # the --cache-file=FILE option to use a different cache file; that is |
| 5731 | # what configure does when it calls configure scripts in |
| 5732 | # subdirectories, so they share the cache. |
| 5733 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 5734 | # config.status only pays attention to the cache file if you give it the |
| 5735 | # --recheck option to rerun configure. |
| 5736 | # |
| 5737 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5738 | # The following way of writing the cache mishandles newlines in values, |
| 5739 | # but we know of no workaround that is simple, portable, and efficient. |
| 5740 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5741 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5742 | # 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] | 5743 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5744 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5745 | *ac_space=\ *) |
| 5746 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 5747 | # turns \\\\ into \\, and sed turns \\ into \). |
| 5748 | sed -n \ |
| 5749 | -e "s/'/'\\\\''/g" \ |
| 5750 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 5751 | ;; |
| 5752 | *) |
| 5753 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5754 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 5755 | ;; |
| 5756 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5757 | if cmp -s $cache_file confcache; then |
| 5758 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5759 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5760 | if test -w $cache_file; then |
| 5761 | echo "updating cache $cache_file" |
| 5762 | cat confcache > $cache_file |
| 5763 | else |
| 5764 | echo "not updating unwritable cache $cache_file" |
| 5765 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5766 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5767 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5768 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5769 | 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] | 5770 | |
| 5771 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5772 | # Let make expand exec_prefix. |
| 5773 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5774 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5775 | # Any assignment to VPATH causes Sun make to only execute |
| 5776 | # the first set of double-colon rules, so remove it if not needed. |
| 5777 | # If there is a colon in the path, we need to keep it. |
| 5778 | if test "x$srcdir" = x.; then |
| 5779 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 5780 | fi |
| 5781 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5782 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5783 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5784 | DEFS=-DHAVE_CONFIG_H |
| 5785 | |
| 5786 | # Without the "./", some shells look in PATH for config.status. |
| 5787 | : ${CONFIG_STATUS=./config.status} |
| 5788 | |
| 5789 | echo creating $CONFIG_STATUS |
| 5790 | rm -f $CONFIG_STATUS |
| 5791 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5792 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5793 | # Generated automatically by configure. |
| 5794 | # Run this file to recreate the current configuration. |
| 5795 | # This directory was configured as follows, |
| 5796 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 5797 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5798 | # $0 $ac_configure_args |
| 5799 | # |
| 5800 | # Compiler output produced by configure, useful for debugging |
| 5801 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5802 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5803 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5804 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5805 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5806 | case "\$ac_option" in |
| 5807 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5808 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 5809 | 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] | 5810 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5811 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5812 | exit 0 ;; |
| 5813 | -help | --help | --hel | --he | --h) |
| 5814 | echo "\$ac_cs_usage"; exit 0 ;; |
| 5815 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5816 | esac |
| 5817 | done |
| 5818 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5819 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5820 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5821 | trap 'rm -fr `echo "Makefile \ |
| 5822 | Objects/Makefile \ |
| 5823 | Parser/Makefile \ |
| 5824 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5825 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5826 | 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] | 5827 | EOF |
| 5828 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5829 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5830 | # Protect against being on the right side of a sed subst in config.status. |
| 5831 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 5832 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5833 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5834 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5835 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5836 | s%@CFLAGS@%$CFLAGS%g |
| 5837 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 5838 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5839 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5840 | s%@DEFS@%$DEFS%g |
| 5841 | s%@LDFLAGS@%$LDFLAGS%g |
| 5842 | s%@LIBS@%$LIBS%g |
| 5843 | s%@exec_prefix@%$exec_prefix%g |
| 5844 | s%@prefix@%$prefix%g |
| 5845 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5846 | s%@bindir@%$bindir%g |
| 5847 | s%@sbindir@%$sbindir%g |
| 5848 | s%@libexecdir@%$libexecdir%g |
| 5849 | s%@datadir@%$datadir%g |
| 5850 | s%@sysconfdir@%$sysconfdir%g |
| 5851 | s%@sharedstatedir@%$sharedstatedir%g |
| 5852 | s%@localstatedir@%$localstatedir%g |
| 5853 | s%@libdir@%$libdir%g |
| 5854 | s%@includedir@%$includedir%g |
| 5855 | s%@oldincludedir@%$oldincludedir%g |
| 5856 | s%@infodir@%$infodir%g |
| 5857 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 5858 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5859 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 5860 | s%@SGI_ABI@%$SGI_ABI%g |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 5861 | s%@SET_CXX@%$SET_CXX%g |
| 5862 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5863 | s%@CC@%$CC%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 5864 | s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g |
| 5865 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 5866 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5867 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5868 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 5869 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5870 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 5871 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5872 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 5873 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5874 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 5875 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5876 | s%@SO@%$SO%g |
| 5877 | s%@LDSHARED@%$LDSHARED%g |
| 5878 | s%@CCSHARED@%$CCSHARED%g |
| 5879 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5880 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 5881 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5882 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5883 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 5884 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5885 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5886 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 5887 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 5888 | 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] | 5889 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5890 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5891 | s%@LIBM@%$LIBM%g |
| 5892 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5893 | |
| 5894 | CEOF |
| 5895 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5896 | |
| 5897 | cat >> $CONFIG_STATUS <<\EOF |
| 5898 | |
| 5899 | # Split the substitutions into bite-sized pieces for seds with |
| 5900 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 5901 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 5902 | ac_file=1 # Number of current file. |
| 5903 | ac_beg=1 # First line for current file. |
| 5904 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 5905 | ac_more_lines=: |
| 5906 | ac_sed_cmds="" |
| 5907 | while $ac_more_lines; do |
| 5908 | if test $ac_beg -gt 1; then |
| 5909 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5910 | else |
| 5911 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5912 | fi |
| 5913 | if test ! -s conftest.s$ac_file; then |
| 5914 | ac_more_lines=false |
| 5915 | rm -f conftest.s$ac_file |
| 5916 | else |
| 5917 | if test -z "$ac_sed_cmds"; then |
| 5918 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 5919 | else |
| 5920 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 5921 | fi |
| 5922 | ac_file=`expr $ac_file + 1` |
| 5923 | ac_beg=$ac_end |
| 5924 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 5925 | fi |
| 5926 | done |
| 5927 | if test -z "$ac_sed_cmds"; then |
| 5928 | ac_sed_cmds=cat |
| 5929 | fi |
| 5930 | EOF |
| 5931 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5932 | cat >> $CONFIG_STATUS <<EOF |
| 5933 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5934 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 5935 | Objects/Makefile \ |
| 5936 | Parser/Makefile \ |
| 5937 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5938 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5939 | Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5940 | EOF |
| 5941 | cat >> $CONFIG_STATUS <<\EOF |
| 5942 | 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] | 5943 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5944 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5945 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5946 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5947 | *) ac_file_in="${ac_file}.in" ;; |
| 5948 | esac |
| 5949 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5950 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5951 | |
| 5952 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 5953 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5954 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5955 | # The file is in a subdirectory. |
| 5956 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5957 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5958 | # A "../" for each directory in $ac_dir_suffix. |
| 5959 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 5960 | else |
| 5961 | ac_dir_suffix= ac_dots= |
| 5962 | fi |
| 5963 | |
| 5964 | case "$ac_given_srcdir" in |
| 5965 | .) srcdir=. |
| 5966 | if test -z "$ac_dots"; then top_srcdir=. |
| 5967 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 5968 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 5969 | *) # Relative path. |
| 5970 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 5971 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 5972 | esac |
| 5973 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5974 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5975 | echo creating "$ac_file" |
| 5976 | rm -f "$ac_file" |
| 5977 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 5978 | case "$ac_file" in |
| 5979 | *Makefile*) ac_comsub="1i\\ |
| 5980 | # $configure_input" ;; |
| 5981 | *) ac_comsub= ;; |
| 5982 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5983 | |
| 5984 | 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] | 5985 | sed -e "$ac_comsub |
| 5986 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5987 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5988 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5989 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5990 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5991 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5992 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5993 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 5994 | # 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] | 5995 | # |
| 5996 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5997 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 5998 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5999 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6000 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6001 | # 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] | 6002 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6003 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6004 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6005 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6006 | # 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] | 6007 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6008 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6009 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6010 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6011 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6012 | if test "${CONFIG_HEADERS+set}" != set; then |
| 6013 | EOF |
| 6014 | cat >> $CONFIG_STATUS <<EOF |
| 6015 | CONFIG_HEADERS="config.h" |
| 6016 | EOF |
| 6017 | cat >> $CONFIG_STATUS <<\EOF |
| 6018 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6019 | 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] | 6020 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6021 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6022 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6023 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6024 | *) ac_file_in="${ac_file}.in" ;; |
| 6025 | esac |
| 6026 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6027 | echo creating $ac_file |
| 6028 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6029 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6030 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6031 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6032 | |
| 6033 | EOF |
| 6034 | |
| 6035 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 6036 | # 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] | 6037 | # 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] | 6038 | # Protect against being in an unquoted here document in config.status. |
| 6039 | rm -f conftest.vals |
| 6040 | cat > conftest.hdr <<\EOF |
| 6041 | s/[\\&%]/\\&/g |
| 6042 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6043 | 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] | 6044 | s%ac_d%ac_u%gp |
| 6045 | s%ac_u%ac_e%gp |
| 6046 | EOF |
| 6047 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 6048 | rm -f conftest.hdr |
| 6049 | |
| 6050 | # This sed command replaces #undef with comments. This is necessary, for |
| 6051 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6052 | # on some systems where configure will not decide to define it. |
| 6053 | cat >> conftest.vals <<\EOF |
| 6054 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6055 | EOF |
| 6056 | |
| 6057 | # Break up conftest.vals because some shells have a limit on |
| 6058 | # 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] | 6059 | |
| 6060 | rm -f conftest.tail |
| 6061 | while : |
| 6062 | do |
| 6063 | ac_lines=`grep -c . conftest.vals` |
| 6064 | # grep -c gives empty output for an empty file on some AIX systems. |
| 6065 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6066 | # Write a limited-size here document to conftest.frag. |
| 6067 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6068 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6069 | echo 'CEOF |
| 6070 | sed -f conftest.frag conftest.in > conftest.out |
| 6071 | rm -f conftest.in |
| 6072 | mv conftest.out conftest.in |
| 6073 | ' >> $CONFIG_STATUS |
| 6074 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6075 | rm -f conftest.vals |
| 6076 | mv conftest.tail conftest.vals |
| 6077 | done |
| 6078 | rm -f conftest.vals |
| 6079 | |
| 6080 | cat >> $CONFIG_STATUS <<\EOF |
| 6081 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6082 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6083 | cat conftest.in >> conftest.h |
| 6084 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6085 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6086 | echo "$ac_file is unchanged" |
| 6087 | rm -f conftest.h |
| 6088 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6089 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6090 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6091 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6092 | # The file is in a subdirectory. |
| 6093 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6094 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6095 | rm -f $ac_file |
| 6096 | mv conftest.h $ac_file |
| 6097 | fi |
| 6098 | fi; done |
| 6099 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6100 | EOF |
| 6101 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6102 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6103 | EOF |
| 6104 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6105 | |
| 6106 | exit 0 |
| 6107 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6108 | chmod +x $CONFIG_STATUS |
| 6109 | rm -fr confdefs* $ac_clean_files |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6110 | 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] | 6111 | |