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