| 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 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.267 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5 | # Guess values for system-dependent variables and create Makefiles. | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +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 | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 17 | --enable-framework[=INSTALLDIR] Build (MacOSX|Darwin) framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 18 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 19 | --without-gcc                   never use gcc" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 21 | --with-cxx=<compiler>           enable C++ support" | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 22 | ac_help="$ac_help | 
| Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 23 | --with-suffix=.exe              set executable suffix" | 
|  | 24 | ac_help="$ac_help | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 25 | --with-pydebug                  build with Py_DEBUG defined" | 
|  | 26 | ac_help="$ac_help | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 27 | --enable-toolbox-glue            disable/enable MacOSX glue code for extensions" | 
|  | 28 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 29 | --with-libs='lib1 ...'          link against additional libs" | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 30 | ac_help="$ac_help | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 31 | --with-signal-module            disable/enable signal module" | 
|  | 32 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 33 | --with-dec-threads              use DEC Alpha/OSF1 thread-safe libraries" | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 34 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 35 | --with(out)-threads[=DIRECTORY] disable/enable thread support" | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 36 | ac_help="$ac_help | 
| Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 37 | --with(out)-thread[=DIRECTORY]  deprecated; use --with(out)-threads" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 38 | ac_help="$ac_help | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 39 | --with-pth                      use GNU pth threading libraries" | 
|  | 40 | ac_help="$ac_help | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 41 | --enable-ipv6                   Enable ipv6 (with ipv4) support | 
|  | 42 | --disable-ipv6                  Disable ipv6 support" | 
|  | 43 | ac_help="$ac_help | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 44 | --with(out)-cycle-gc            disable/enable garbage collection" | 
|  | 45 | ac_help="$ac_help | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 46 | --with(out)-pymalloc            disable/enable specialized mallocs" | 
|  | 47 | ac_help="$ac_help | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 48 | --with-wctype-functions         use wctype.h functions" | 
|  | 49 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 50 | --with-sgi-dl=DIRECTORY         IRIX 4 dynamic linking" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 51 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 52 | --with-dl-dld=DL_DIR,DLD_DIR    GNU dynamic linking" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 53 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 54 | --with-fpectl                   enable SIGFPE catching" | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 55 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 56 | --with-libm=STRING              math library" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 57 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 58 | --with-libc=STRING              C library" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 59 | ac_help="$ac_help | 
|  | 60 | --enable-unicode[=ucs2,ucs4]    Enable Unicode strings (default is yes)" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 61 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 62 | # Initialize some variables set by options. | 
|  | 63 | # The variables have the same names as the options, with | 
|  | 64 | # dashes changed to underlines. | 
|  | 65 | build=NONE | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 66 | cache_file=./config.cache | 
|  | 67 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 68 | host=NONE | 
|  | 69 | no_create= | 
|  | 70 | nonopt=NONE | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 71 | no_recursion= | 
|  | 72 | prefix=NONE | 
|  | 73 | program_prefix=NONE | 
|  | 74 | program_suffix=NONE | 
|  | 75 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 76 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 77 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 78 | srcdir= | 
|  | 79 | target=NONE | 
|  | 80 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 81 | x_includes=NONE | 
|  | 82 | x_libraries=NONE | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 83 | bindir='${exec_prefix}/bin' | 
|  | 84 | sbindir='${exec_prefix}/sbin' | 
|  | 85 | libexecdir='${exec_prefix}/libexec' | 
|  | 86 | datadir='${prefix}/share' | 
|  | 87 | sysconfdir='${prefix}/etc' | 
|  | 88 | sharedstatedir='${prefix}/com' | 
|  | 89 | localstatedir='${prefix}/var' | 
|  | 90 | libdir='${exec_prefix}/lib' | 
|  | 91 | includedir='${prefix}/include' | 
|  | 92 | oldincludedir='/usr/include' | 
|  | 93 | infodir='${prefix}/info' | 
|  | 94 | mandir='${prefix}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 95 |  | 
|  | 96 | # Initialize some other variables. | 
|  | 97 | subdirs= | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 98 | MFLAGS= MAKEFLAGS= | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 99 | SHELL=${CONFIG_SHELL-/bin/sh} | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 100 | # Maximum number of lines to put in a shell here document. | 
|  | 101 | ac_max_here_lines=12 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 102 |  | 
|  | 103 | ac_prev= | 
|  | 104 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 105 | do | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 106 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 107 | # If the previous option needs an argument, assign it. | 
|  | 108 | if test -n "$ac_prev"; then | 
|  | 109 | eval "$ac_prev=\$ac_option" | 
|  | 110 | ac_prev= | 
|  | 111 | continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 112 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 113 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 114 | case "$ac_option" in | 
|  | 115 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | 
|  | 116 | *) ac_optarg= ;; | 
|  | 117 | esac | 
|  | 118 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 119 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 120 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 121 | case "$ac_option" in | 
|  | 122 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 123 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 124 | ac_prev=bindir ;; | 
|  | 125 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
|  | 126 | bindir="$ac_optarg" ;; | 
|  | 127 |  | 
|  | 128 | -build | --build | --buil | --bui | --bu) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 129 | ac_prev=build ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 130 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 131 | build="$ac_optarg" ;; | 
|  | 132 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 133 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 134 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 135 | ac_prev=cache_file ;; | 
|  | 136 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 137 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
|  | 138 | cache_file="$ac_optarg" ;; | 
|  | 139 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 140 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
|  | 141 | ac_prev=datadir ;; | 
|  | 142 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
|  | 143 | | --da=*) | 
|  | 144 | datadir="$ac_optarg" ;; | 
|  | 145 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 146 | -disable-* | --disable-*) | 
|  | 147 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 148 | # Reject names that are not valid shell variable names. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 149 | 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] | 150 | { 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] | 151 | fi | 
|  | 152 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
|  | 153 | eval "enable_${ac_feature}=no" ;; | 
|  | 154 |  | 
|  | 155 | -enable-* | --enable-*) | 
|  | 156 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 157 | # Reject names that are not valid shell variable names. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 158 | 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] | 159 | { 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] | 160 | fi | 
|  | 161 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
|  | 162 | case "$ac_option" in | 
|  | 163 | *=*) ;; | 
|  | 164 | *) ac_optarg=yes ;; | 
|  | 165 | esac | 
|  | 166 | eval "enable_${ac_feature}='$ac_optarg'" ;; | 
|  | 167 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 168 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 169 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 170 | | --exec | --exe | --ex) | 
|  | 171 | ac_prev=exec_prefix ;; | 
|  | 172 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 173 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 174 | | --exec=* | --exe=* | --ex=*) | 
|  | 175 | exec_prefix="$ac_optarg" ;; | 
|  | 176 |  | 
|  | 177 | -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 178 | # Obsolete; use --with-gas. | 
|  | 179 | with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 180 |  | 
|  | 181 | -help | --help | --hel | --he) | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 182 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 183 | # 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] | 184 | cat << EOF | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 185 | Usage: configure [options] [host] | 
|  | 186 | Options: [defaults in brackets after descriptions] | 
|  | 187 | Configuration: | 
|  | 188 | --cache-file=FILE       cache test results in FILE | 
|  | 189 | --help                  print this message | 
|  | 190 | --no-create             do not create output files | 
|  | 191 | --quiet, --silent       do not print \`checking...' messages | 
|  | 192 | --version               print the version of autoconf that created configure | 
|  | 193 | Directory and file names: | 
|  | 194 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
|  | 195 | [$ac_default_prefix] | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 196 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 197 | [same as prefix] | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 198 | --bindir=DIR            user executables in DIR [EPREFIX/bin] | 
|  | 199 | --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin] | 
|  | 200 | --libexecdir=DIR        program executables in DIR [EPREFIX/libexec] | 
|  | 201 | --datadir=DIR           read-only architecture-independent data in DIR | 
|  | 202 | [PREFIX/share] | 
|  | 203 | --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc] | 
|  | 204 | --sharedstatedir=DIR    modifiable architecture-independent data in DIR | 
|  | 205 | [PREFIX/com] | 
|  | 206 | --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var] | 
|  | 207 | --libdir=DIR            object code libraries in DIR [EPREFIX/lib] | 
|  | 208 | --includedir=DIR        C header files in DIR [PREFIX/include] | 
|  | 209 | --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include] | 
|  | 210 | --infodir=DIR           info documentation in DIR [PREFIX/info] | 
|  | 211 | --mandir=DIR            man documentation in DIR [PREFIX/man] | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 212 | --srcdir=DIR            find the sources in DIR [configure dir or ..] | 
|  | 213 | --program-prefix=PREFIX prepend PREFIX to installed program names | 
|  | 214 | --program-suffix=SUFFIX append SUFFIX to installed program names | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 215 | --program-transform-name=PROGRAM | 
|  | 216 | run sed PROGRAM on installed program names | 
|  | 217 | EOF | 
|  | 218 | cat << EOF | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 219 | Host type: | 
|  | 220 | --build=BUILD           configure for building on BUILD [BUILD=HOST] | 
|  | 221 | --host=HOST             configure for HOST [guessed] | 
|  | 222 | --target=TARGET         configure for TARGET [TARGET=HOST] | 
|  | 223 | Features and packages: | 
|  | 224 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 225 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
|  | 226 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 227 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
|  | 228 | --x-includes=DIR        X include files are in DIR | 
|  | 229 | --x-libraries=DIR       X library files are in DIR | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 230 | EOF | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 231 | if test -n "$ac_help"; then | 
|  | 232 | echo "--enable and --with options recognized:$ac_help" | 
|  | 233 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 234 | exit 0 ;; | 
|  | 235 |  | 
|  | 236 | -host | --host | --hos | --ho) | 
|  | 237 | ac_prev=host ;; | 
|  | 238 | -host=* | --host=* | --hos=* | --ho=*) | 
|  | 239 | host="$ac_optarg" ;; | 
|  | 240 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 241 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 242 | | --includ | --inclu | --incl | --inc) | 
|  | 243 | ac_prev=includedir ;; | 
|  | 244 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 245 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
|  | 246 | includedir="$ac_optarg" ;; | 
|  | 247 |  | 
|  | 248 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 249 | ac_prev=infodir ;; | 
|  | 250 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
|  | 251 | infodir="$ac_optarg" ;; | 
|  | 252 |  | 
|  | 253 | -libdir | --libdir | --libdi | --libd) | 
|  | 254 | ac_prev=libdir ;; | 
|  | 255 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
|  | 256 | libdir="$ac_optarg" ;; | 
|  | 257 |  | 
|  | 258 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 259 | | --libexe | --libex | --libe) | 
|  | 260 | ac_prev=libexecdir ;; | 
|  | 261 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 262 | | --libexe=* | --libex=* | --libe=*) | 
|  | 263 | libexecdir="$ac_optarg" ;; | 
|  | 264 |  | 
|  | 265 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
|  | 266 | | --localstate | --localstat | --localsta | --localst \ | 
|  | 267 | | --locals | --local | --loca | --loc | --lo) | 
|  | 268 | ac_prev=localstatedir ;; | 
|  | 269 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
|  | 270 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
|  | 271 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
|  | 272 | localstatedir="$ac_optarg" ;; | 
|  | 273 |  | 
|  | 274 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 275 | ac_prev=mandir ;; | 
|  | 276 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
|  | 277 | mandir="$ac_optarg" ;; | 
|  | 278 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 279 | -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 280 | # Obsolete; use --without-fp. | 
|  | 281 | with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 282 |  | 
|  | 283 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|  | 284 | | --no-cr | --no-c) | 
|  | 285 | no_create=yes ;; | 
|  | 286 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 287 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 288 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 289 | no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 290 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 291 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 292 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 293 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 294 | ac_prev=oldincludedir ;; | 
|  | 295 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 296 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 297 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
|  | 298 | oldincludedir="$ac_optarg" ;; | 
|  | 299 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 300 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 301 | ac_prev=prefix ;; | 
|  | 302 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 303 | prefix="$ac_optarg" ;; | 
|  | 304 |  | 
|  | 305 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 306 | | --program-pre | --program-pr | --program-p) | 
|  | 307 | ac_prev=program_prefix ;; | 
|  | 308 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 309 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
|  | 310 | program_prefix="$ac_optarg" ;; | 
|  | 311 |  | 
|  | 312 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 313 | | --program-suf | --program-su | --program-s) | 
|  | 314 | ac_prev=program_suffix ;; | 
|  | 315 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 316 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
|  | 317 | program_suffix="$ac_optarg" ;; | 
|  | 318 |  | 
|  | 319 | -program-transform-name | --program-transform-name \ | 
|  | 320 | | --program-transform-nam | --program-transform-na \ | 
|  | 321 | | --program-transform-n | --program-transform- \ | 
|  | 322 | | --program-transform | --program-transfor \ | 
|  | 323 | | --program-transfo | --program-transf \ | 
|  | 324 | | --program-trans | --program-tran \ | 
|  | 325 | | --progr-tra | --program-tr | --program-t) | 
|  | 326 | ac_prev=program_transform_name ;; | 
|  | 327 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 328 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 329 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 330 | | --program-transform=* | --program-transfor=* \ | 
|  | 331 | | --program-transfo=* | --program-transf=* \ | 
|  | 332 | | --program-trans=* | --program-tran=* \ | 
|  | 333 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
|  | 334 | program_transform_name="$ac_optarg" ;; | 
|  | 335 |  | 
|  | 336 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 337 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 338 | silent=yes ;; | 
|  | 339 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 340 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 341 | ac_prev=sbindir ;; | 
|  | 342 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 343 | | --sbi=* | --sb=*) | 
|  | 344 | sbindir="$ac_optarg" ;; | 
|  | 345 |  | 
|  | 346 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 347 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 348 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 349 | | --sha | --sh) | 
|  | 350 | ac_prev=sharedstatedir ;; | 
|  | 351 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 352 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 353 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 354 | | --sha=* | --sh=*) | 
|  | 355 | sharedstatedir="$ac_optarg" ;; | 
|  | 356 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 357 | -site | --site | --sit) | 
|  | 358 | ac_prev=site ;; | 
|  | 359 | -site=* | --site=* | --sit=*) | 
|  | 360 | site="$ac_optarg" ;; | 
|  | 361 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 362 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 363 | ac_prev=srcdir ;; | 
|  | 364 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 365 | srcdir="$ac_optarg" ;; | 
|  | 366 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 367 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 368 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 369 | ac_prev=sysconfdir ;; | 
|  | 370 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 371 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
|  | 372 | sysconfdir="$ac_optarg" ;; | 
|  | 373 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 374 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
|  | 375 | ac_prev=target ;; | 
|  | 376 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
|  | 377 | target="$ac_optarg" ;; | 
|  | 378 |  | 
|  | 379 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 380 | verbose=yes ;; | 
|  | 381 |  | 
|  | 382 | -version | --version | --versio | --versi | --vers) | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 383 | echo "configure generated by autoconf version 2.13" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 384 | exit 0 ;; | 
|  | 385 |  | 
|  | 386 | -with-* | --with-*) | 
|  | 387 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 388 | # Reject names that are not valid shell variable names. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 389 | 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] | 390 | { 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] | 391 | fi | 
|  | 392 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
|  | 393 | case "$ac_option" in | 
|  | 394 | *=*) ;; | 
|  | 395 | *) ac_optarg=yes ;; | 
|  | 396 | esac | 
|  | 397 | eval "with_${ac_package}='$ac_optarg'" ;; | 
|  | 398 |  | 
|  | 399 | -without-* | --without-*) | 
|  | 400 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 401 | # Reject names that are not valid shell variable names. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 402 | 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] | 403 | { 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] | 404 | fi | 
|  | 405 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
|  | 406 | eval "with_${ac_package}=no" ;; | 
|  | 407 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 408 | --x) | 
|  | 409 | # Obsolete; use --with-x. | 
|  | 410 | with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 411 |  | 
|  | 412 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 413 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 414 | ac_prev=x_includes ;; | 
|  | 415 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 416 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
|  | 417 | x_includes="$ac_optarg" ;; | 
|  | 418 |  | 
|  | 419 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 420 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 421 | ac_prev=x_libraries ;; | 
|  | 422 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 423 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
|  | 424 | x_libraries="$ac_optarg" ;; | 
|  | 425 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 426 | -*) { 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] | 427 | ;; | 
|  | 428 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 429 | *) | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 430 | 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] | 431 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 432 | fi | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 433 | if test "x$nonopt" != xNONE; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 434 | { 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] | 435 | fi | 
|  | 436 | nonopt="$ac_option" | 
|  | 437 | ;; | 
|  | 438 |  | 
|  | 439 | esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 440 | done | 
|  | 441 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 442 | if test -n "$ac_prev"; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 443 | { 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] | 444 | fi | 
|  | 445 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 446 | 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] | 447 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 448 | # File descriptor usage: | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 449 | # 0 standard input | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 450 | # 1 file creation | 
|  | 451 | # 2 errors and warnings | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 452 | # 3 some systems may open it to /dev/tty | 
|  | 453 | # 4 used on the Kubota Titan | 
|  | 454 | # 6 checking for... messages and results | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 455 | # 5 compiler messages saved in config.log | 
|  | 456 | if test "$silent" = yes; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 457 | exec 6>/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 458 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 459 | exec 6>&1 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 460 | fi | 
|  | 461 | exec 5>./config.log | 
|  | 462 |  | 
|  | 463 | echo "\ | 
|  | 464 | This file contains any messages produced by compilers while | 
|  | 465 | running configure, to aid debugging if configure makes a mistake. | 
|  | 466 | " 1>&5 | 
|  | 467 |  | 
|  | 468 | # Strip out --no-create and --no-recursion so they do not pile up. | 
|  | 469 | # Also quote any args containing shell metacharacters. | 
|  | 470 | ac_configure_args= | 
|  | 471 | for ac_arg | 
|  | 472 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 473 | case "$ac_arg" in | 
|  | 474 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|  | 475 | | --no-cr | --no-c) ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 476 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 477 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | 
|  | 478 | *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | 
|  | 479 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
|  | 480 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 481 | esac | 
|  | 482 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 483 |  | 
|  | 484 | # NLS nuisances. | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 485 | # Only set these to C if already set.  These must not be set unconditionally | 
|  | 486 | # because not all systems understand e.g. LANG=C (notably SCO). | 
|  | 487 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | 
|  | 488 | # Non-C LC_CTYPE values break the ctype check. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 489 | if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 490 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | 
|  | 491 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | 
|  | 492 | 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] | 493 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 494 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
|  | 495 | rm -rf conftest* confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 496 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
|  | 497 | echo > confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 498 |  | 
|  | 499 | # A filename unique to this package, relative to the directory that | 
|  | 500 | # 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] | 501 | ac_unique_file=Include/object.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 502 |  | 
|  | 503 | # Find the source files, if location was not specified. | 
|  | 504 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 505 | ac_srcdir_defaulted=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 506 | # Try the directory containing this script, then its parent. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 507 | ac_prog=$0 | 
|  | 508 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | 
|  | 509 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | 
|  | 510 | srcdir=$ac_confdir | 
|  | 511 | if test ! -r $srcdir/$ac_unique_file; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 512 | srcdir=.. | 
|  | 513 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 514 | else | 
|  | 515 | ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 516 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 517 | if test ! -r $srcdir/$ac_unique_file; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 518 | if test "$ac_srcdir_defaulted" = yes; then | 
|  | 519 | { 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] | 520 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 521 | { 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] | 522 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 523 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 524 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | 
|  | 525 |  | 
|  | 526 | # Prefer explicitly selected file to automatically selected ones. | 
|  | 527 | if test -z "$CONFIG_SITE"; then | 
|  | 528 | if test "x$prefix" != xNONE; then | 
|  | 529 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
|  | 530 | else | 
|  | 531 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
|  | 532 | fi | 
|  | 533 | fi | 
|  | 534 | for ac_site_file in $CONFIG_SITE; do | 
|  | 535 | if test -r "$ac_site_file"; then | 
|  | 536 | echo "loading site script $ac_site_file" | 
|  | 537 | . "$ac_site_file" | 
|  | 538 | fi | 
|  | 539 | done | 
|  | 540 |  | 
|  | 541 | if test -r "$cache_file"; then | 
|  | 542 | echo "loading cache $cache_file" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 543 | . $cache_file | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | else | 
|  | 545 | echo "creating cache $cache_file" | 
|  | 546 | > $cache_file | 
|  | 547 | fi | 
|  | 548 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 549 | ac_ext=c | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 550 | # 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] | 551 | ac_cpp='$CPP $CPPFLAGS' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 552 | 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] | 553 | 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] | 554 | cross_compiling=$ac_cv_prog_cc_cross | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 555 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 556 | ac_exeext= | 
|  | 557 | ac_objext=o | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 558 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | 
|  | 559 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | 
|  | 560 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | 
|  | 561 | ac_n= ac_c=' | 
|  | 562 | ' ac_t='	' | 
|  | 563 | else | 
|  | 564 | ac_n=-n ac_c= ac_t= | 
|  | 565 | fi | 
|  | 566 | else | 
|  | 567 | ac_n= ac_c='\c' ac_t= | 
|  | 568 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 569 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 570 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 571 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 572 |  | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 573 | # Set VERSION so we only need to edit in one place (i.e., here) | 
|  | 574 |  | 
| Guido van Rossum | 6db412b | 2001-04-18 04:37:57 +0000 | [diff] [blame] | 575 | VERSION=2.2 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 576 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 577 | # Arguments passed to configure. | 
|  | 578 |  | 
|  | 579 | CONFIG_ARGS="$ac_configure_args" | 
|  | 580 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 581 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 582 | # Check whether --enable-framework or --disable-framework was given. | 
|  | 583 | if test "${enable_framework+set}" = set; then | 
|  | 584 | enableval="$enable_framework" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 585 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 586 | case $enableval in | 
|  | 587 | yes) | 
|  | 588 | enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 589 | esac | 
|  | 590 | case $enableval in | 
|  | 591 | no) | 
|  | 592 | PYTHONFRAMEWORK= | 
|  | 593 | PYTHONFRAMEWORKDIR=no-framework | 
|  | 594 | PYTHONFRAMEWORKPREFIX= | 
|  | 595 | PYTHONFRAMEWORKINSTALLDIR= | 
|  | 596 | enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 597 | ;; | 
|  | 598 | *) | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 599 | PYTHONFRAMEWORK=Python | 
|  | 600 | PYTHONFRAMEWORKDIR=Python.framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 601 | PYTHONFRAMEWORKPREFIX=$enableval | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 602 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
|  | 603 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 604 | esac | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 605 |  | 
|  | 606 | else | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 607 |  | 
|  | 608 | PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 609 | PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 610 | PYTHONFRAMEWORKPREFIX= | 
|  | 611 | PYTHONFRAMEWORKINSTALLDIR= | 
|  | 612 | enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 613 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 614 | fi | 
|  | 615 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 616 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 617 |  | 
|  | 618 |  | 
|  | 619 |  | 
|  | 620 |  | 
|  | 621 | ##AC_ARG_WITH(dyld, | 
|  | 622 | ##[  --with-dyld                     Use (OpenStep|Rhapsody) dynamic linker],,) | 
|  | 623 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 624 | # Set name for machine-dependent library files | 
|  | 625 |  | 
|  | 626 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 627 | echo "configure:628: checking MACHDEP" >&5 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 628 | if test -z "$MACHDEP" | 
|  | 629 | then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 630 | ac_sys_system=`uname -s` | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 631 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 632 | ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 633 | else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 634 | ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 635 | fi | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 636 | ac_md_system=`echo $ac_sys_system | | 
|  | 637 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
|  | 638 | ac_md_release=`echo $ac_sys_release | | 
|  | 639 | tr -d '/ ' | sed 's/\..*//'` | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 640 | MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 641 |  | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 642 | case $MACHDEP in | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 643 | cygwin*) MACHDEP="cygwin";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 644 | '')	MACHDEP="unknown";; | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 645 | esac | 
|  | 646 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 647 |  | 
|  | 648 | # | 
|  | 649 | # SGI compilers allow the specification of the both the ABI and the | 
|  | 650 | # ISA on the command line.  Depending on the values of these switches, | 
|  | 651 | # different and often incompatable code will be generated. | 
|  | 652 | # | 
|  | 653 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
|  | 654 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
|  | 655 | # variable is also adjusted. | 
|  | 656 | # | 
|  | 657 |  | 
|  | 658 | if test ! -z "$SGI_ABI" | 
|  | 659 | then | 
|  | 660 | CC="cc $SGI_ABI" | 
|  | 661 | LDFLAGS="$SGI_ABI $LDFLAGS" | 
|  | 662 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
|  | 663 | fi | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 664 | echo "$ac_t""$MACHDEP" 1>&6 | 
|  | 665 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 666 | # checks for alternative programs | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 667 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 668 | echo "configure:669: checking for --without-gcc" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 669 | # Check whether --with-gcc or --without-gcc was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 670 | if test "${with_gcc+set}" = set; then | 
|  | 671 | withval="$with_gcc" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 672 |  | 
|  | 673 | case $withval in | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 674 | no)	CC=cc | 
|  | 675 | without_gcc=yes;; | 
|  | 676 | yes)	CC=gcc | 
|  | 677 | without_gcc=no;; | 
|  | 678 | *)	CC=$withval | 
|  | 679 | without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 680 | esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 681 | else | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 682 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 683 | case $ac_sys_system in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 684 | AIX*)   CC=cc_r | 
|  | 685 | without_gcc=;; | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 686 | BeOS*) | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 687 | case $BE_HOST_CPU in | 
|  | 688 | ppc) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 689 | CC=mwcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 690 | without_gcc=yes | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 691 | OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 692 | CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 693 | LDFLAGS="$LDFLAGS -nodup" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 694 | ;; | 
|  | 695 | x86) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 696 | CC=gcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 697 | without_gcc=no | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 698 | OPT=-O | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 699 | ;; | 
|  | 700 | *) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 701 | { echo "configure: error: Unknown BeOS platform \"$BE_HOST_CPU\"" 1>&2; exit 1; } | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 702 | ;; | 
|  | 703 | esac | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 704 | AR="\$(srcdir)/Modules/ar_beos" | 
|  | 705 | RANLIB=: | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 706 | ;; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 707 | Monterey*) | 
|  | 708 | RANLIB=: | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 709 | without_gcc=;; | 
|  | 710 | *)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 711 | esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 712 | fi | 
|  | 713 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 714 | echo "$ac_t""$without_gcc" 1>&6 | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 715 |  | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 716 |  | 
|  | 717 |  | 
| Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 718 | MAINOBJ=python.o | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 719 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 720 | echo "configure:721: checking for --with-cxx=<compiler>" >&5 | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 721 | # Check whether --with-cxx or --without-cxx was given. | 
|  | 722 | if test "${with_cxx+set}" = set; then | 
|  | 723 | withval="$with_cxx" | 
|  | 724 |  | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 725 | check_cxx=no | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 726 | case $withval in | 
|  | 727 | no)	CXX= | 
|  | 728 | with_cxx=no;; | 
|  | 729 | *)	CXX=$withval | 
| Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 730 | MAINOBJ=ccpython.o | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 731 | with_cxx=$withval;; | 
|  | 732 | esac | 
|  | 733 | else | 
|  | 734 |  | 
|  | 735 | with_cxx=no | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 736 | check_cxx=yes | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 737 |  | 
|  | 738 | fi | 
|  | 739 |  | 
|  | 740 | echo "$ac_t""$with_cxx" 1>&6 | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 741 |  | 
|  | 742 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 743 |  | 
|  | 744 |  | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 745 | if test "$check_cxx" = "yes" | 
|  | 746 | then | 
|  | 747 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
|  | 748 | do | 
|  | 749 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 750 | set dummy $ac_prog; ac_word=$2 | 
|  | 751 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 752 | echo "configure:753: checking for $ac_word" >&5 | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 753 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | 
|  | 754 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 755 | else | 
|  | 756 | if test -n "$CXX"; then | 
|  | 757 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 758 | else | 
|  | 759 | IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
|  | 760 | ac_dummy="$PATH" | 
|  | 761 | for ac_dir in $ac_dummy; do | 
|  | 762 | test -z "$ac_dir" && ac_dir=. | 
|  | 763 | if test -f $ac_dir/$ac_word; then | 
|  | 764 | ac_cv_prog_CXX="$ac_prog" | 
|  | 765 | break | 
|  | 766 | fi | 
|  | 767 | done | 
|  | 768 | IFS="$ac_save_ifs" | 
|  | 769 | fi | 
|  | 770 | fi | 
|  | 771 | CXX="$ac_cv_prog_CXX" | 
|  | 772 | if test -n "$CXX"; then | 
|  | 773 | echo "$ac_t""$CXX" 1>&6 | 
|  | 774 | else | 
|  | 775 | echo "$ac_t""no" 1>&6 | 
|  | 776 | fi | 
|  | 777 |  | 
|  | 778 | test -n "$CXX" && break | 
|  | 779 | done | 
|  | 780 | test -n "$CXX" || CXX="notfound" | 
|  | 781 |  | 
|  | 782 | if test "$CXX" = "notfound" | 
|  | 783 | then | 
|  | 784 | CXX= | 
|  | 785 | else | 
|  | 786 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 787 | echo "configure:788: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 788 |  | 
|  | 789 | ac_ext=C | 
|  | 790 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|  | 791 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 792 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|  | 793 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|  | 794 | cross_compiling=$ac_cv_prog_cxx_cross | 
|  | 795 |  | 
|  | 796 | cat > conftest.$ac_ext << EOF | 
|  | 797 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 798 | #line 799 "configure" | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 799 | #include "confdefs.h" | 
|  | 800 |  | 
|  | 801 | int main(){return(0);} | 
|  | 802 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 803 | if { (eval echo configure:804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 804 | ac_cv_prog_cxx_works=yes | 
|  | 805 | # If we can't run a trivial program, we are probably using a cross compiler. | 
|  | 806 | if (./conftest; exit) 2>/dev/null; then | 
|  | 807 | ac_cv_prog_cxx_cross=no | 
|  | 808 | else | 
|  | 809 | ac_cv_prog_cxx_cross=yes | 
|  | 810 | fi | 
|  | 811 | else | 
|  | 812 | echo "configure: failed program was:" >&5 | 
|  | 813 | cat conftest.$ac_ext >&5 | 
|  | 814 | ac_cv_prog_cxx_works=no | 
|  | 815 | fi | 
|  | 816 | rm -fr conftest* | 
|  | 817 | ac_ext=c | 
|  | 818 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|  | 819 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 820 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|  | 821 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|  | 822 | cross_compiling=$ac_cv_prog_cc_cross | 
|  | 823 |  | 
|  | 824 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | 
|  | 825 | if test $ac_cv_prog_cxx_works = no; then | 
|  | 826 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | 
|  | 827 | fi | 
|  | 828 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 829 | echo "configure:830: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 830 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | 
|  | 831 | cross_compiling=$ac_cv_prog_cxx_cross | 
|  | 832 |  | 
|  | 833 | fi | 
|  | 834 | fi | 
|  | 835 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 836 | # If the user switches compilers, we can't believe the cache | 
|  | 837 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
|  | 838 | then | 
|  | 839 | { echo "configure: error: cached CC is different -- throw away $cache_file | 
|  | 840 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } | 
|  | 841 | fi | 
|  | 842 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 843 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 844 | set dummy gcc; ac_word=$2 | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 845 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 846 | echo "configure:847: checking for $ac_word" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 847 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 848 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 849 | else | 
|  | 850 | if test -n "$CC"; then | 
|  | 851 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 852 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 853 | IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
|  | 854 | ac_dummy="$PATH" | 
|  | 855 | for ac_dir in $ac_dummy; do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 856 | test -z "$ac_dir" && ac_dir=. | 
|  | 857 | if test -f $ac_dir/$ac_word; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 858 | ac_cv_prog_CC="gcc" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 859 | break | 
|  | 860 | fi | 
|  | 861 | done | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 862 | IFS="$ac_save_ifs" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 863 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 864 | fi | 
|  | 865 | CC="$ac_cv_prog_CC" | 
|  | 866 | if test -n "$CC"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 867 | echo "$ac_t""$CC" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 868 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 869 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 870 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 871 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 872 | if test -z "$CC"; then | 
|  | 873 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 874 | set dummy cc; ac_word=$2 | 
|  | 875 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 876 | echo "configure:877: checking for $ac_word" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 877 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 878 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 879 | else | 
|  | 880 | if test -n "$CC"; then | 
|  | 881 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 882 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 883 | IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 884 | ac_prog_rejected=no | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 885 | ac_dummy="$PATH" | 
|  | 886 | for ac_dir in $ac_dummy; do | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 887 | test -z "$ac_dir" && ac_dir=. | 
|  | 888 | if test -f $ac_dir/$ac_word; then | 
|  | 889 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | 
|  | 890 | ac_prog_rejected=yes | 
|  | 891 | continue | 
|  | 892 | fi | 
|  | 893 | ac_cv_prog_CC="cc" | 
|  | 894 | break | 
|  | 895 | fi | 
|  | 896 | done | 
|  | 897 | IFS="$ac_save_ifs" | 
|  | 898 | if test $ac_prog_rejected = yes; then | 
|  | 899 | # We found a bogon in the path, so make sure we never use it. | 
|  | 900 | set dummy $ac_cv_prog_CC | 
|  | 901 | shift | 
|  | 902 | if test $# -gt 0; then | 
|  | 903 | # We chose a different compiler from the bogus one. | 
|  | 904 | # However, it has the same basename, so the bogon will be chosen | 
|  | 905 | # first if we set CC to just the basename; use the full file name. | 
|  | 906 | shift | 
|  | 907 | set dummy "$ac_dir/$ac_word" "$@" | 
|  | 908 | shift | 
|  | 909 | ac_cv_prog_CC="$@" | 
|  | 910 | fi | 
|  | 911 | fi | 
|  | 912 | fi | 
|  | 913 | fi | 
|  | 914 | CC="$ac_cv_prog_CC" | 
|  | 915 | if test -n "$CC"; then | 
|  | 916 | echo "$ac_t""$CC" 1>&6 | 
|  | 917 | else | 
|  | 918 | echo "$ac_t""no" 1>&6 | 
|  | 919 | fi | 
|  | 920 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 921 | if test -z "$CC"; then | 
|  | 922 | case "`uname -s`" in | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 923 | *win32* | *WIN32*) | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 924 | # Extract the first word of "cl", so it can be a program name with args. | 
|  | 925 | set dummy cl; ac_word=$2 | 
|  | 926 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 927 | echo "configure:928: checking for $ac_word" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 928 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 929 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 930 | else | 
|  | 931 | if test -n "$CC"; then | 
|  | 932 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 933 | else | 
|  | 934 | IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
|  | 935 | ac_dummy="$PATH" | 
|  | 936 | for ac_dir in $ac_dummy; do | 
|  | 937 | test -z "$ac_dir" && ac_dir=. | 
|  | 938 | if test -f $ac_dir/$ac_word; then | 
|  | 939 | ac_cv_prog_CC="cl" | 
|  | 940 | break | 
|  | 941 | fi | 
|  | 942 | done | 
|  | 943 | IFS="$ac_save_ifs" | 
|  | 944 | fi | 
|  | 945 | fi | 
|  | 946 | CC="$ac_cv_prog_CC" | 
|  | 947 | if test -n "$CC"; then | 
|  | 948 | echo "$ac_t""$CC" 1>&6 | 
|  | 949 | else | 
|  | 950 | echo "$ac_t""no" 1>&6 | 
|  | 951 | fi | 
|  | 952 | ;; | 
|  | 953 | esac | 
|  | 954 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 955 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 
|  | 956 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 957 |  | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 958 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 959 | echo "configure:960: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 960 |  | 
|  | 961 | ac_ext=c | 
|  | 962 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|  | 963 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 964 | 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] | 965 | 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] | 966 | cross_compiling=$ac_cv_prog_cc_cross | 
|  | 967 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 968 | cat > conftest.$ac_ext << EOF | 
|  | 969 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 970 | #line 971 "configure" | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 971 | #include "confdefs.h" | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 972 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 973 | main(){return(0);} | 
|  | 974 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 975 | if { (eval echo configure:976: \"$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] | 976 | ac_cv_prog_cc_works=yes | 
|  | 977 | # If we can't run a trivial program, we are probably using a cross compiler. | 
|  | 978 | if (./conftest; exit) 2>/dev/null; then | 
|  | 979 | ac_cv_prog_cc_cross=no | 
|  | 980 | else | 
|  | 981 | ac_cv_prog_cc_cross=yes | 
|  | 982 | fi | 
|  | 983 | else | 
|  | 984 | echo "configure: failed program was:" >&5 | 
|  | 985 | cat conftest.$ac_ext >&5 | 
|  | 986 | ac_cv_prog_cc_works=no | 
|  | 987 | fi | 
|  | 988 | rm -fr conftest* | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 989 | ac_ext=c | 
|  | 990 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|  | 991 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 992 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|  | 993 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|  | 994 | cross_compiling=$ac_cv_prog_cc_cross | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 995 |  | 
|  | 996 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 
|  | 997 | if test $ac_cv_prog_cc_works = no; then | 
|  | 998 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 
|  | 999 | fi | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1000 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1001 | echo "configure:1002: 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] | 1002 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 
|  | 1003 | cross_compiling=$ac_cv_prog_cc_cross | 
|  | 1004 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1005 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1006 | echo "configure:1007: checking whether we are using GNU C" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1007 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1008 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1009 | else | 
|  | 1010 | cat > conftest.c <<EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1011 | #ifdef __GNUC__ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1012 | yes; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1013 | #endif | 
|  | 1014 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1015 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1016: \"$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] | 1016 | ac_cv_prog_gcc=yes | 
|  | 1017 | else | 
|  | 1018 | ac_cv_prog_gcc=no | 
|  | 1019 | fi | 
|  | 1020 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1021 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1022 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1023 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1024 | if test $ac_cv_prog_gcc = yes; then | 
|  | 1025 | GCC=yes | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1026 | else | 
|  | 1027 | GCC= | 
|  | 1028 | fi | 
|  | 1029 |  | 
|  | 1030 | ac_test_CFLAGS="${CFLAGS+set}" | 
|  | 1031 | ac_save_CFLAGS="$CFLAGS" | 
|  | 1032 | CFLAGS= | 
|  | 1033 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1034 | echo "configure:1035: checking whether ${CC-cc} accepts -g" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1035 | 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] | 1036 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1037 | else | 
|  | 1038 | echo 'void f(){}' > conftest.c | 
|  | 1039 | 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] | 1040 | ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1041 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1042 | ac_cv_prog_cc_g=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1043 | fi | 
|  | 1044 | rm -f conftest* | 
|  | 1045 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1046 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1047 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1048 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1049 | if test "$ac_test_CFLAGS" = set; then | 
|  | 1050 | CFLAGS="$ac_save_CFLAGS" | 
|  | 1051 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 1052 | if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1053 | CFLAGS="-g -O2" | 
|  | 1054 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1055 | CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1056 | fi | 
|  | 1057 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1058 | if test "$GCC" = yes; then | 
|  | 1059 | CFLAGS="-O2" | 
|  | 1060 | else | 
|  | 1061 | CFLAGS= | 
|  | 1062 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1063 | fi | 
|  | 1064 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1065 |  | 
|  | 1066 | # checks for UNIX variants that set C preprocessor variables | 
|  | 1067 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1068 | echo "configure:1069: checking how to run the C preprocessor" >&5 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1069 | # On Suns, sometimes $CPP names a directory. | 
|  | 1070 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 1071 | CPP= | 
|  | 1072 | fi | 
|  | 1073 | if test -z "$CPP"; then | 
|  | 1074 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | 
|  | 1075 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 1076 | else | 
|  | 1077 | # This must be in double quotes, not single quotes, because CPP may get | 
|  | 1078 | # substituted into the Makefile and "${CC-cc}" will confuse make. | 
|  | 1079 | CPP="${CC-cc} -E" | 
|  | 1080 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 1081 | # not just through cpp. | 
|  | 1082 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1083 | #line 1084 "configure" | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1084 | #include "confdefs.h" | 
|  | 1085 | #include <assert.h> | 
|  | 1086 | Syntax Error | 
|  | 1087 | EOF | 
|  | 1088 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1089 | { (eval echo configure:1090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1090 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|  | 1091 | if test -z "$ac_err"; then | 
|  | 1092 | : | 
|  | 1093 | else | 
|  | 1094 | echo "$ac_err" >&5 | 
|  | 1095 | echo "configure: failed program was:" >&5 | 
|  | 1096 | cat conftest.$ac_ext >&5 | 
|  | 1097 | rm -rf conftest* | 
|  | 1098 | CPP="${CC-cc} -E -traditional-cpp" | 
|  | 1099 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1100 | #line 1101 "configure" | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1101 | #include "confdefs.h" | 
|  | 1102 | #include <assert.h> | 
|  | 1103 | Syntax Error | 
|  | 1104 | EOF | 
|  | 1105 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1106 | { (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1107 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|  | 1108 | if test -z "$ac_err"; then | 
|  | 1109 | : | 
|  | 1110 | else | 
|  | 1111 | echo "$ac_err" >&5 | 
|  | 1112 | echo "configure: failed program was:" >&5 | 
|  | 1113 | cat conftest.$ac_ext >&5 | 
|  | 1114 | rm -rf conftest* | 
|  | 1115 | CPP="${CC-cc} -nologo -E" | 
|  | 1116 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1117 | #line 1118 "configure" | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1118 | #include "confdefs.h" | 
|  | 1119 | #include <assert.h> | 
|  | 1120 | Syntax Error | 
|  | 1121 | EOF | 
|  | 1122 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1123 | { (eval echo configure:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1124 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|  | 1125 | if test -z "$ac_err"; then | 
|  | 1126 | : | 
|  | 1127 | else | 
|  | 1128 | echo "$ac_err" >&5 | 
|  | 1129 | echo "configure: failed program was:" >&5 | 
|  | 1130 | cat conftest.$ac_ext >&5 | 
|  | 1131 | rm -rf conftest* | 
|  | 1132 | CPP=/lib/cpp | 
|  | 1133 | fi | 
|  | 1134 | rm -f conftest* | 
|  | 1135 | fi | 
|  | 1136 | rm -f conftest* | 
|  | 1137 | fi | 
|  | 1138 | rm -f conftest* | 
|  | 1139 | ac_cv_prog_CPP="$CPP" | 
|  | 1140 | fi | 
|  | 1141 | CPP="$ac_cv_prog_CPP" | 
|  | 1142 | else | 
|  | 1143 | ac_cv_prog_CPP="$CPP" | 
|  | 1144 | fi | 
|  | 1145 | echo "$ac_t""$CPP" 1>&6 | 
|  | 1146 |  | 
|  | 1147 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1148 | echo "configure:1149: checking for AIX" >&5 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1149 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1150 | #line 1151 "configure" | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1151 | #include "confdefs.h" | 
|  | 1152 | #ifdef _AIX | 
|  | 1153 | yes | 
|  | 1154 | #endif | 
|  | 1155 |  | 
|  | 1156 | EOF | 
|  | 1157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 1158 | egrep "yes" >/dev/null 2>&1; then | 
|  | 1159 | rm -rf conftest* | 
|  | 1160 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 
|  | 1161 | #define _ALL_SOURCE 1 | 
|  | 1162 | EOF | 
|  | 1163 |  | 
|  | 1164 | else | 
|  | 1165 | rm -rf conftest* | 
|  | 1166 | echo "$ac_t""no" 1>&6 | 
|  | 1167 | fi | 
|  | 1168 | rm -f conftest* | 
|  | 1169 |  | 
|  | 1170 |  | 
|  | 1171 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` | 
|  | 1172 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1173 | echo "configure:1174: checking for minix/config.h" >&5 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1174 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|  | 1175 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 1176 | else | 
|  | 1177 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1178 | #line 1179 "configure" | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1179 | #include "confdefs.h" | 
|  | 1180 | #include <minix/config.h> | 
|  | 1181 | EOF | 
|  | 1182 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1183 | { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1184 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|  | 1185 | if test -z "$ac_err"; then | 
|  | 1186 | rm -rf conftest* | 
|  | 1187 | eval "ac_cv_header_$ac_safe=yes" | 
|  | 1188 | else | 
|  | 1189 | echo "$ac_err" >&5 | 
|  | 1190 | echo "configure: failed program was:" >&5 | 
|  | 1191 | cat conftest.$ac_ext >&5 | 
|  | 1192 | rm -rf conftest* | 
|  | 1193 | eval "ac_cv_header_$ac_safe=no" | 
|  | 1194 | fi | 
|  | 1195 | rm -f conftest* | 
|  | 1196 | fi | 
|  | 1197 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|  | 1198 | echo "$ac_t""yes" 1>&6 | 
|  | 1199 | MINIX=yes | 
|  | 1200 | else | 
|  | 1201 | echo "$ac_t""no" 1>&6 | 
|  | 1202 | MINIX= | 
|  | 1203 | fi | 
|  | 1204 |  | 
|  | 1205 | if test "$MINIX" = yes; then | 
|  | 1206 | cat >> confdefs.h <<\EOF | 
|  | 1207 | #define _POSIX_SOURCE 1 | 
|  | 1208 | EOF | 
|  | 1209 |  | 
|  | 1210 | cat >> confdefs.h <<\EOF | 
|  | 1211 | #define _POSIX_1_SOURCE 2 | 
|  | 1212 | EOF | 
|  | 1213 |  | 
|  | 1214 | cat >> confdefs.h <<\EOF | 
|  | 1215 | #define _MINIX 1 | 
|  | 1216 | EOF | 
|  | 1217 |  | 
|  | 1218 | fi | 
|  | 1219 |  | 
|  | 1220 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1221 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1222 | echo "configure:1223: checking for Cygwin environment" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1223 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | 
|  | 1224 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 1225 | else | 
|  | 1226 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1227 | #line 1228 "configure" | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1228 | #include "confdefs.h" | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1229 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1230 | int main() { | 
|  | 1231 |  | 
|  | 1232 | #ifndef __CYGWIN__ | 
|  | 1233 | #define __CYGWIN__ __CYGWIN32__ | 
|  | 1234 | #endif | 
|  | 1235 | return __CYGWIN__; | 
|  | 1236 | ; return 0; } | 
|  | 1237 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1238 | if { (eval echo configure:1239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1239 | rm -rf conftest* | 
|  | 1240 | ac_cv_cygwin=yes | 
|  | 1241 | else | 
|  | 1242 | echo "configure: failed program was:" >&5 | 
|  | 1243 | cat conftest.$ac_ext >&5 | 
|  | 1244 | rm -rf conftest* | 
|  | 1245 | ac_cv_cygwin=no | 
|  | 1246 | fi | 
|  | 1247 | rm -f conftest* | 
|  | 1248 | rm -f conftest* | 
| Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1249 | fi | 
|  | 1250 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1251 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | 
|  | 1252 | CYGWIN= | 
|  | 1253 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | 
|  | 1254 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1255 | echo "configure:1256: checking for mingw32 environment" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1256 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | 
|  | 1257 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 1258 | else | 
|  | 1259 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1260 | #line 1261 "configure" | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1261 | #include "confdefs.h" | 
|  | 1262 |  | 
|  | 1263 | int main() { | 
|  | 1264 | return __MINGW32__; | 
|  | 1265 | ; return 0; } | 
|  | 1266 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1267 | if { (eval echo configure:1268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1268 | rm -rf conftest* | 
|  | 1269 | ac_cv_mingw32=yes | 
|  | 1270 | else | 
|  | 1271 | echo "configure: failed program was:" >&5 | 
|  | 1272 | cat conftest.$ac_ext >&5 | 
|  | 1273 | rm -rf conftest* | 
|  | 1274 | ac_cv_mingw32=no | 
|  | 1275 | fi | 
|  | 1276 | rm -f conftest* | 
|  | 1277 | rm -f conftest* | 
|  | 1278 | fi | 
|  | 1279 |  | 
|  | 1280 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | 
|  | 1281 | MINGW32= | 
|  | 1282 | test "$ac_cv_mingw32" = yes && MINGW32=yes | 
|  | 1283 |  | 
|  | 1284 |  | 
|  | 1285 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1286 | echo "configure:1287: checking for executable suffix" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1287 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | 
|  | 1288 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 1289 | else | 
|  | 1290 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | 
|  | 1291 | ac_cv_exeext=.exe | 
|  | 1292 | else | 
|  | 1293 | rm -f conftest* | 
|  | 1294 | echo 'int main () { return 0; }' > conftest.$ac_ext | 
|  | 1295 | ac_cv_exeext= | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1296 | if { (eval echo configure:1297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1297 | for file in conftest.*; do | 
|  | 1298 | case $file in | 
|  | 1299 | *.c | *.o | *.obj) ;; | 
|  | 1300 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | 
|  | 1301 | esac | 
|  | 1302 | done | 
|  | 1303 | else | 
|  | 1304 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | 
|  | 1305 | fi | 
|  | 1306 | rm -f conftest* | 
|  | 1307 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | 
|  | 1308 | fi | 
|  | 1309 | fi | 
|  | 1310 |  | 
|  | 1311 | EXEEXT="" | 
|  | 1312 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | 
|  | 1313 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | 
|  | 1314 | ac_exeext=$EXEEXT | 
|  | 1315 |  | 
| Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1316 | echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1317 | echo "configure:1318: checking for --with-suffix" >&5 | 
| Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1318 | # Check whether --with-suffix or --without-suffix was given. | 
|  | 1319 | if test "${with_suffix+set}" = set; then | 
|  | 1320 | withval="$with_suffix" | 
|  | 1321 |  | 
|  | 1322 | case $withval in | 
|  | 1323 | no)	EXEEXT=;; | 
|  | 1324 | yes)	EXEEXT=.exe;; | 
|  | 1325 | *)	EXEEXT=$withval;; | 
|  | 1326 | esac | 
|  | 1327 | fi | 
|  | 1328 |  | 
|  | 1329 | echo "$ac_t""$EXEEXT" 1>&6 | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 1330 | # Test whether we're running on a non-case-sensitive system, in which | 
|  | 1331 | # case we give a warning if no ext is given | 
|  | 1332 | if test -d "python" -a -z "$EXEEXT" | 
|  | 1333 | then | 
|  | 1334 | echo "configure: warning: This filesystem is not case-sensitive so you should probably use --with-suffix" 1>&2 | 
|  | 1335 | fi | 
| Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1336 |  | 
| Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1337 | case $MACHDEP in | 
|  | 1338 | bsdos*) | 
|  | 1339 | case $CC in | 
|  | 1340 | gcc) CC="$CC -D_HAVE_BSDI";; | 
|  | 1341 | esac;; | 
|  | 1342 | esac | 
|  | 1343 |  | 
| Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1344 | case $ac_sys_system in | 
|  | 1345 | hp*|HP*) | 
|  | 1346 | case $CC in | 
| Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1347 | cc|*/cc) CC="$CC -Ae";; | 
| Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1348 | esac;; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1349 | Monterey*) | 
|  | 1350 | case $CC in | 
|  | 1351 | cc) CC="$CC -Wl,-Bexport";; | 
|  | 1352 | esac;; | 
| Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1353 | SunOS*) | 
|  | 1354 | # Some functions have a prototype only with that define, e.g. confstr | 
|  | 1355 | cat >> confdefs.h <<\EOF | 
|  | 1356 | #define __EXTENSIONS__ 1 | 
|  | 1357 | EOF | 
|  | 1358 |  | 
|  | 1359 | ;; | 
| Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1360 | esac | 
|  | 1361 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1362 |  | 
| Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1363 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1364 | echo $ac_n "checking LIBRARY""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1365 | echo "configure:1366: checking LIBRARY" >&5 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1366 | if test -z "$LIBRARY" | 
|  | 1367 | then | 
|  | 1368 | LIBRARY='libpython$(VERSION).a' | 
|  | 1369 | fi | 
|  | 1370 | echo "$ac_t""$LIBRARY" 1>&6 | 
|  | 1371 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1372 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1373 | # name of the library into which to insert object files). BLDLIBRARY is also | 
|  | 1374 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
|  | 1375 | # is blank as the main program is not linked directly against LDLIBRARY. | 
|  | 1376 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
|  | 1377 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
|  | 1378 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
|  | 1379 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
|  | 1380 | # | 
|  | 1381 |  | 
|  | 1382 |  | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1383 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1384 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1385 | LDLIBRARY="$LIBRARY" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1386 | BLDLIBRARY='$(LDLIBRARY)' | 
| Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 1387 | DLLLIBRARY='' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1388 | LDLIBRARYDIR='' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1389 |  | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1390 | # LINKCC is the command that links the python executable -- default is $(CC). | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1391 | # This is altered for AIX in order to build the export list before | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1392 | # linking. | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1393 |  | 
|  | 1394 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1395 | echo "configure:1396: checking LINKCC" >&5 | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1396 | if test -z "$LINKCC" | 
|  | 1397 | then | 
|  | 1398 | case $ac_sys_system in | 
|  | 1399 | AIX*) | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1400 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; | 
| Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1401 | dgux*) | 
|  | 1402 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1403 | Monterey64*) | 
|  | 1404 | LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; | 
| Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1405 | *) LINKCC="\$(PURIFY) \$(CC)";; | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1406 | esac | 
|  | 1407 | fi | 
|  | 1408 | echo "$ac_t""$LINKCC" 1>&6 | 
|  | 1409 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1410 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1411 | echo "configure:1412: checking LDLIBRARY" >&5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1412 |  | 
|  | 1413 | # DG/UX requires some fancy ld contortions to produce a .so from an .a | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1414 | case $MACHDEP in | 
|  | 1415 | dguxR4) | 
|  | 1416 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 1417 | OPT="$OPT -pic" | 
|  | 1418 | ;; | 
|  | 1419 | beos*) | 
|  | 1420 | LDLIBRARY='libpython$(VERSION).so' | 
|  | 1421 | ;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1422 | cygwin*) | 
|  | 1423 | LDLIBRARY='libpython$(VERSION).dll.a' | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1424 | DLLLIBRARY='libpython$(VERSION).dll' | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1425 | ;; | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1426 | esac | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1427 |  | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 1428 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
|  | 1429 | # library that we build, but we do not want to link against it (we | 
|  | 1430 | # will find it with a -framework option). For this reason there is an | 
|  | 1431 | # extra variable BLDLIBRARY against which Python and the extension | 
|  | 1432 | # modules are linked, BLDLIBRARY. This is normally the same as | 
|  | 1433 | # LDLIBRARY, but empty for MacOSX framework builds. | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1434 | if test "$enable_framework" | 
|  | 1435 | then | 
|  | 1436 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
|  | 1437 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' | 
|  | 1438 | BLDLIBRARY='' | 
|  | 1439 | else | 
|  | 1440 | BLDLIBRARY='$(LDLIBRARY)' | 
|  | 1441 | fi | 
|  | 1442 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1443 | echo "$ac_t""$LDLIBRARY" 1>&6 | 
|  | 1444 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1445 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 1446 | set dummy ranlib; ac_word=$2 | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1447 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1448 | echo "configure:1449: checking for $ac_word" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1449 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1450 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1451 | else | 
|  | 1452 | if test -n "$RANLIB"; then | 
|  | 1453 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 1454 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1455 | IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
|  | 1456 | ac_dummy="$PATH" | 
|  | 1457 | for ac_dir in $ac_dummy; do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1458 | test -z "$ac_dir" && ac_dir=. | 
|  | 1459 | if test -f $ac_dir/$ac_word; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1460 | ac_cv_prog_RANLIB="ranlib" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1461 | break | 
|  | 1462 | fi | 
|  | 1463 | done | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1464 | IFS="$ac_save_ifs" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1465 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1466 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1467 | fi | 
|  | 1468 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 1469 | if test -n "$RANLIB"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1470 | echo "$ac_t""$RANLIB" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1471 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1472 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1473 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1474 |  | 
|  | 1475 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1476 | for ac_prog in ar aal | 
|  | 1477 | do | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1478 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 1479 | set dummy $ac_prog; ac_word=$2 | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1480 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1481 | echo "configure:1482: checking for $ac_word" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1482 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1483 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1484 | else | 
|  | 1485 | if test -n "$AR"; then | 
|  | 1486 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 1487 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1488 | IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
|  | 1489 | ac_dummy="$PATH" | 
|  | 1490 | for ac_dir in $ac_dummy; do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1491 | test -z "$ac_dir" && ac_dir=. | 
|  | 1492 | if test -f $ac_dir/$ac_word; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1493 | ac_cv_prog_AR="$ac_prog" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1494 | break | 
|  | 1495 | fi | 
|  | 1496 | done | 
|  | 1497 | IFS="$ac_save_ifs" | 
|  | 1498 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1499 | fi | 
|  | 1500 | AR="$ac_cv_prog_AR" | 
|  | 1501 | if test -n "$AR"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1502 | echo "$ac_t""$AR" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1503 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1504 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1505 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1506 |  | 
|  | 1507 | test -n "$AR" && break | 
|  | 1508 | done | 
|  | 1509 | test -n "$AR" || AR="ar" | 
|  | 1510 |  | 
| Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 1511 |  | 
|  | 1512 | case $MACHDEP in | 
|  | 1513 | bsdos*) | 
|  | 1514 | # install -d does not work on BSDI | 
|  | 1515 | if test -z "$INSTALL" | 
|  | 1516 | then | 
|  | 1517 | INSTALL="${srcdir}/install-sh -c" | 
|  | 1518 | fi | 
|  | 1519 | esac | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1520 | ac_aux_dir= | 
|  | 1521 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | 
|  | 1522 | if test -f $ac_dir/install-sh; then | 
|  | 1523 | ac_aux_dir=$ac_dir | 
|  | 1524 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 1525 | break | 
|  | 1526 | elif test -f $ac_dir/install.sh; then | 
|  | 1527 | ac_aux_dir=$ac_dir | 
|  | 1528 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 1529 | break | 
|  | 1530 | fi | 
|  | 1531 | done | 
|  | 1532 | if test -z "$ac_aux_dir"; then | 
|  | 1533 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | 
| Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1534 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1535 | ac_config_guess=$ac_aux_dir/config.guess | 
|  | 1536 | ac_config_sub=$ac_aux_dir/config.sub | 
|  | 1537 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | 
|  | 1538 |  | 
|  | 1539 | # Find a good install program.  We prefer a C program (faster), | 
|  | 1540 | # so one script is as good as another.  But avoid the broken or | 
|  | 1541 | # incompatible versions: | 
|  | 1542 | # SysV /etc/install, /usr/sbin/install | 
|  | 1543 | # SunOS /usr/etc/install | 
|  | 1544 | # IRIX /sbin/install | 
|  | 1545 | # AIX /bin/install | 
|  | 1546 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 1547 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 1548 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 1549 | # ./install, which can be erroneously created by make from ./install.sh. | 
|  | 1550 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1551 | echo "configure:1552: checking for a BSD compatible install" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1552 | if test -z "$INSTALL"; then | 
|  | 1553 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
|  | 1554 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 1555 | else | 
|  | 1556 | IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":" | 
|  | 1557 | for ac_dir in $PATH; do | 
|  | 1558 | # Account for people who put trailing slashes in PATH elements. | 
|  | 1559 | case "$ac_dir/" in | 
|  | 1560 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
|  | 1561 | *) | 
|  | 1562 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 1563 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 1564 | # by default. | 
|  | 1565 | for ac_prog in ginstall scoinst install; do | 
|  | 1566 | if test -f $ac_dir/$ac_prog; then | 
|  | 1567 | if test $ac_prog = install && | 
|  | 1568 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
|  | 1569 | # AIX install.  It has an incompatible calling convention. | 
|  | 1570 | : | 
|  | 1571 | else | 
|  | 1572 | ac_cv_path_install="$ac_dir/$ac_prog -c" | 
|  | 1573 | break 2 | 
|  | 1574 | fi | 
|  | 1575 | fi | 
|  | 1576 | done | 
|  | 1577 | ;; | 
|  | 1578 | esac | 
|  | 1579 | done | 
|  | 1580 | IFS="$ac_save_IFS" | 
|  | 1581 |  | 
|  | 1582 | fi | 
|  | 1583 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 1584 | INSTALL="$ac_cv_path_install" | 
|  | 1585 | else | 
|  | 1586 | # As a last resort, use the slow shell script.  We don't cache a | 
|  | 1587 | # path for INSTALL within a source directory, because that will | 
|  | 1588 | # break other packages using the cache if that directory is | 
|  | 1589 | # removed, or if the path is relative. | 
|  | 1590 | INSTALL="$ac_install_sh" | 
|  | 1591 | fi | 
|  | 1592 | fi | 
|  | 1593 | echo "$ac_t""$INSTALL" 1>&6 | 
|  | 1594 |  | 
|  | 1595 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 1596 | # It thinks the first close brace ends the variable substitution. | 
|  | 1597 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 1598 |  | 
|  | 1599 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
|  | 1600 |  | 
|  | 1601 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 1602 |  | 
| Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1603 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1604 | # Not every filesystem supports hard links | 
|  | 1605 |  | 
|  | 1606 | if test -z "$LN" ; then | 
|  | 1607 | case $ac_sys_system in | 
|  | 1608 | BeOS*) LN="ln -s";; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1609 | CYGWIN*) LN="ln -s";; | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1610 | *) LN=ln;; | 
|  | 1611 | esac | 
|  | 1612 | fi | 
|  | 1613 |  | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1614 | # Check for --with-pydebug | 
|  | 1615 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1616 | echo "configure:1617: checking for --with-pydebug" >&5 | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1617 | # Check whether --with-pydebug or --without-pydebug was given. | 
|  | 1618 | if test "${with_pydebug+set}" = set; then | 
|  | 1619 | withval="$with_pydebug" | 
|  | 1620 |  | 
|  | 1621 | if test "$withval" != no | 
|  | 1622 | then cat >> confdefs.h <<\EOF | 
|  | 1623 | #define Py_DEBUG 1 | 
|  | 1624 | EOF | 
|  | 1625 | echo "$ac_t""yes" 1>&6; Py_DEBUG='true' | 
|  | 1626 | else echo "$ac_t""no" 1>&6; Py_DEBUG='false' | 
|  | 1627 | fi | 
|  | 1628 | else | 
|  | 1629 | echo "$ac_t""no" 1>&6 | 
|  | 1630 | fi | 
|  | 1631 |  | 
|  | 1632 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1633 | # Optimizer/debugger flags | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1634 |  | 
| Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1635 | if test -z "$OPT" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1636 | then | 
| Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1637 | case $GCC in | 
|  | 1638 | yes) | 
|  | 1639 | case $ac_cv_prog_cc_g in | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1640 | yes) | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1641 | if test "$Py_DEBUG" = 'true' ; then | 
|  | 1642 | # Optimization messes up debuggers, so turn it off for | 
|  | 1643 | # debug builds. | 
|  | 1644 | OPT="-g -Wall -Wstrict-prototypes" | 
|  | 1645 | else | 
|  | 1646 | OPT="-g -O3 -Wall -Wstrict-prototypes" | 
|  | 1647 | fi;; | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1648 | *) | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1649 | OPT="-O3 -Wall -Wstrict-prototypes";; | 
|  | 1650 | esac | 
|  | 1651 | ;; | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1652 | *) | 
|  | 1653 | case $ac_sys_system in | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 1654 | OpenUNIX*|UnixWare*) | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1655 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; | 
|  | 1656 | *) | 
|  | 1657 | OPT="-O";; | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1658 | esac | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1659 | esac | 
| Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 1660 | case $ac_sys_system in | 
|  | 1661 | Darwin*) | 
|  | 1662 | OPT="$OPT -no-cpp-precomp";; | 
|  | 1663 | esac | 
| Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1664 | fi | 
|  | 1665 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1666 | # The current (beta) Monterey compiler dies with optimizations | 
|  | 1667 | case $ac_sys_system in | 
|  | 1668 | Monterey*) OPT="";; | 
|  | 1669 | esac | 
|  | 1670 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1671 | if test "$ac_arch_flags" | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1672 | then | 
|  | 1673 | OPT="$OPT $ac_arch_flags" | 
|  | 1674 | fi | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1675 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1676 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1677 | echo "configure:1678: checking whether $CC accepts -OPT:Olimit=0" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1678 | 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] | 1679 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 1680 | else | 
|  | 1681 | ac_save_cc="$CC" | 
|  | 1682 | CC="$CC -OPT:Olimit=0" | 
|  | 1683 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 1684 | ac_cv_opt_olimit_ok=no | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1685 | else | 
|  | 1686 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1687 | #line 1688 "configure" | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1688 | #include "confdefs.h" | 
|  | 1689 | int main() { return 0; } | 
|  | 1690 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1691 | if { (eval echo configure:1692: \"$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] | 1692 | then | 
|  | 1693 | ac_cv_opt_olimit_ok=yes | 
|  | 1694 | else | 
|  | 1695 | echo "configure: failed program was:" >&5 | 
|  | 1696 | cat conftest.$ac_ext >&5 | 
|  | 1697 | rm -fr conftest* | 
|  | 1698 | ac_cv_opt_olimit_ok=no | 
|  | 1699 | fi | 
|  | 1700 | rm -fr conftest* | 
|  | 1701 | fi | 
|  | 1702 |  | 
|  | 1703 | CC="$ac_save_cc" | 
|  | 1704 | fi | 
|  | 1705 |  | 
|  | 1706 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 | 
| Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1707 | if test $ac_cv_opt_olimit_ok = yes; then | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 1708 | case $ac_sys_system in | 
|  | 1709 | Darwin*) OPT="$OPT" ;; | 
|  | 1710 | *) OPT="$OPT -OPT:Olimit=0";; | 
|  | 1711 | esac | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1712 | else | 
|  | 1713 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1714 | echo "configure:1715: checking whether $CC accepts -Olimit 1500" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1715 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1716 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 1717 | else | 
|  | 1718 | ac_save_cc="$CC" | 
|  | 1719 | CC="$CC -Olimit 1500" | 
|  | 1720 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 1721 | ac_cv_olimit_ok=no | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1722 | else | 
|  | 1723 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1724 | #line 1725 "configure" | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1725 | #include "confdefs.h" | 
|  | 1726 | int main() { return 0; } | 
|  | 1727 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1728 | if { (eval echo configure:1729: \"$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] | 1729 | then | 
|  | 1730 | ac_cv_olimit_ok=yes | 
|  | 1731 | else | 
|  | 1732 | echo "configure: failed program was:" >&5 | 
|  | 1733 | cat conftest.$ac_ext >&5 | 
|  | 1734 | rm -fr conftest* | 
|  | 1735 | ac_cv_olimit_ok=no | 
| Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1736 | fi | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1737 | rm -fr conftest* | 
|  | 1738 | fi | 
|  | 1739 |  | 
|  | 1740 | CC="$ac_save_cc" | 
|  | 1741 | fi | 
|  | 1742 |  | 
|  | 1743 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 | 
|  | 1744 | if test $ac_cv_olimit_ok = yes; then | 
|  | 1745 | OPT="$OPT -Olimit 1500" | 
|  | 1746 | fi | 
|  | 1747 | fi | 
|  | 1748 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1749 | # On some compilers, pthreads are available without further options | 
|  | 1750 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
|  | 1751 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
|  | 1752 | # So we have to see first whether pthreads are available without | 
|  | 1753 | # options before we can check whether -Kpthread improves anything. | 
|  | 1754 | echo $ac_n "checking whether pthreads are available without options""... $ac_c" 1>&6 | 
|  | 1755 | echo "configure:1756: checking whether pthreads are available without options" >&5 | 
|  | 1756 | if eval "test \"`echo '$''{'ac_cv_pthread_is_default'+set}'`\" = set"; then | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1757 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 1758 | else | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1759 | if test "$cross_compiling" = yes; then | 
|  | 1760 | ac_cv_pthread_is_default=no | 
| Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1761 | else | 
|  | 1762 | cat > conftest.$ac_ext <<EOF | 
|  | 1763 | #line 1764 "configure" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1764 | #include "confdefs.h" | 
| Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1765 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1766 | #include <pthread.h> | 
| Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1767 |  | 
|  | 1768 | void* routine(void* p){return NULL;} | 
|  | 1769 |  | 
|  | 1770 | int main(){ | 
|  | 1771 | pthread_t p; | 
|  | 1772 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 1773 | return 1; | 
|  | 1774 | return 0; | 
|  | 1775 | } | 
|  | 1776 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1777 | EOF | 
| Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1778 | if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|  | 1779 | then | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1780 | ac_cv_pthread_is_default=yes | 
|  | 1781 | else | 
|  | 1782 | echo "configure: failed program was:" >&5 | 
|  | 1783 | cat conftest.$ac_ext >&5 | 
|  | 1784 | rm -fr conftest* | 
|  | 1785 | ac_cv_pthread_is_default=no | 
|  | 1786 | fi | 
|  | 1787 | rm -fr conftest* | 
|  | 1788 | fi | 
|  | 1789 |  | 
|  | 1790 |  | 
|  | 1791 | fi | 
|  | 1792 |  | 
|  | 1793 | echo "$ac_t""$ac_cv_pthread_is_default" 1>&6 | 
|  | 1794 |  | 
|  | 1795 |  | 
|  | 1796 | if test $ac_cv_pthread_is_default = yes | 
|  | 1797 | then | 
|  | 1798 | ac_cv_kpthread=no | 
|  | 1799 | else | 
|  | 1800 | # -Kpthread, if available, provides the right #defines | 
|  | 1801 | # and linker options to make pthread_create available | 
|  | 1802 | # Some compilers won't report that they do not support -Kpthread, | 
|  | 1803 | # so we need to run a program to see whether it really made the | 
|  | 1804 | # function available. | 
|  | 1805 | echo $ac_n "checking whether $CC accepts -Kpthread""... $ac_c" 1>&6 | 
|  | 1806 | echo "configure:1807: checking whether $CC accepts -Kpthread" >&5 | 
|  | 1807 | if eval "test \"`echo '$''{'ac_cv_kpthread'+set}'`\" = set"; then | 
|  | 1808 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 1809 | else | 
|  | 1810 | ac_save_cc="$CC" | 
|  | 1811 | CC="$CC -Kpthread" | 
|  | 1812 | if test "$cross_compiling" = yes; then | 
|  | 1813 | ac_cv_kpthread=no | 
|  | 1814 | else | 
|  | 1815 | cat > conftest.$ac_ext <<EOF | 
|  | 1816 | #line 1817 "configure" | 
|  | 1817 | #include "confdefs.h" | 
|  | 1818 |  | 
|  | 1819 | #include <pthread.h> | 
|  | 1820 |  | 
|  | 1821 | void* routine(void* p){return NULL;} | 
|  | 1822 |  | 
|  | 1823 | int main(){ | 
|  | 1824 | pthread_t p; | 
|  | 1825 | if(pthread_create(&p,NULL,routine,NULL)!=0) | 
|  | 1826 | return 1; | 
|  | 1827 | return 0; | 
|  | 1828 | } | 
|  | 1829 |  | 
|  | 1830 | EOF | 
|  | 1831 | if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|  | 1832 | then | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1833 | ac_cv_kpthread=yes | 
|  | 1834 | else | 
|  | 1835 | echo "configure: failed program was:" >&5 | 
|  | 1836 | cat conftest.$ac_ext >&5 | 
| Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1837 | rm -fr conftest* | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1838 | ac_cv_kpthread=no | 
|  | 1839 | fi | 
| Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1840 | rm -fr conftest* | 
|  | 1841 | fi | 
|  | 1842 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1843 | CC="$ac_save_cc" | 
|  | 1844 | fi | 
|  | 1845 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1846 | echo "$ac_t""$ac_cv_kpthread" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1847 | fi | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1848 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1849 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1850 | # checks for header files | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1851 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1852 | echo "configure:1853: checking for ANSI C header files" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1853 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1854 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1855 | else | 
|  | 1856 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1857 | #line 1858 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1858 | #include "confdefs.h" | 
|  | 1859 | #include <stdlib.h> | 
|  | 1860 | #include <stdarg.h> | 
|  | 1861 | #include <string.h> | 
|  | 1862 | #include <float.h> | 
|  | 1863 | EOF | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1864 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1865 | { (eval echo configure:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1866 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1867 | if test -z "$ac_err"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1868 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1869 | ac_cv_header_stdc=yes | 
|  | 1870 | else | 
|  | 1871 | echo "$ac_err" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1872 | echo "configure: failed program was:" >&5 | 
|  | 1873 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1874 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1875 | ac_cv_header_stdc=no | 
|  | 1876 | fi | 
|  | 1877 | rm -f conftest* | 
|  | 1878 |  | 
|  | 1879 | if test $ac_cv_header_stdc = yes; then | 
|  | 1880 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 1881 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1882 | #line 1883 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1883 | #include "confdefs.h" | 
|  | 1884 | #include <string.h> | 
|  | 1885 | EOF | 
|  | 1886 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 1887 | egrep "memchr" >/dev/null 2>&1; then | 
|  | 1888 | : | 
|  | 1889 | else | 
|  | 1890 | rm -rf conftest* | 
|  | 1891 | ac_cv_header_stdc=no | 
|  | 1892 | fi | 
|  | 1893 | rm -f conftest* | 
|  | 1894 |  | 
|  | 1895 | fi | 
|  | 1896 |  | 
|  | 1897 | if test $ac_cv_header_stdc = yes; then | 
|  | 1898 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 1899 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1900 | #line 1901 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1901 | #include "confdefs.h" | 
|  | 1902 | #include <stdlib.h> | 
|  | 1903 | EOF | 
|  | 1904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 1905 | egrep "free" >/dev/null 2>&1; then | 
|  | 1906 | : | 
|  | 1907 | else | 
|  | 1908 | rm -rf conftest* | 
|  | 1909 | ac_cv_header_stdc=no | 
|  | 1910 | fi | 
|  | 1911 | rm -f conftest* | 
|  | 1912 |  | 
|  | 1913 | fi | 
|  | 1914 |  | 
|  | 1915 | if test $ac_cv_header_stdc = yes; then | 
|  | 1916 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 1917 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1918 | : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1919 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1920 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1921 | #line 1922 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1922 | #include "confdefs.h" | 
|  | 1923 | #include <ctype.h> | 
|  | 1924 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 1925 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1926 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1927 | int main () { int i; for (i = 0; i < 256; i++) | 
|  | 1928 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 
|  | 1929 | exit (0); } | 
|  | 1930 |  | 
|  | 1931 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1932 | if { (eval echo configure:1933: \"$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] | 1933 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1934 | : | 
|  | 1935 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1936 | echo "configure: failed program was:" >&5 | 
|  | 1937 | cat conftest.$ac_ext >&5 | 
|  | 1938 | rm -fr conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1939 | ac_cv_header_stdc=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1940 | fi | 
|  | 1941 | rm -fr conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1942 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1943 |  | 
|  | 1944 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1945 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1946 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1947 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1948 | if test $ac_cv_header_stdc = yes; then | 
|  | 1949 | cat >> confdefs.h <<\EOF | 
|  | 1950 | #define STDC_HEADERS 1 | 
|  | 1951 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1952 |  | 
|  | 1953 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1954 |  | 
| Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame] | 1955 | for ac_hdr in dlfcn.h fcntl.h limits.h langinfo.h locale.h \ | 
|  | 1956 | ncurses.h poll.h pthread.h \ | 
| Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 1957 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ | 
| Fred Drake | bbc3c5a | 2001-05-11 16:11:25 +0000 | [diff] [blame] | 1958 | sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \ | 
| Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 1959 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ | 
| Martin v. Löwis | 6953233 | 2001-10-13 09:12:41 +0000 | [diff] [blame] | 1960 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ | 
| Martin v. Löwis | f24b2f3 | 2001-08-10 20:29:40 +0000 | [diff] [blame] | 1961 | ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1962 | do | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1963 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1964 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1965 | echo "configure:1966: checking for $ac_hdr" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1966 | 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] | 1967 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1968 | else | 
|  | 1969 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1970 | #line 1971 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1971 | #include "confdefs.h" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1972 | #include <$ac_hdr> | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1973 | EOF | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1974 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1975 | { (eval echo configure:1976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1976 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1977 | if test -z "$ac_err"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1978 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1979 | eval "ac_cv_header_$ac_safe=yes" | 
|  | 1980 | else | 
|  | 1981 | echo "$ac_err" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1982 | echo "configure: failed program was:" >&5 | 
|  | 1983 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1984 | rm -rf conftest* | 
|  | 1985 | eval "ac_cv_header_$ac_safe=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1986 | fi | 
|  | 1987 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1988 | fi | 
|  | 1989 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1990 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1991 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1992 | cat >> confdefs.h <<EOF | 
|  | 1993 | #define $ac_tr_hdr 1 | 
|  | 1994 | EOF | 
|  | 1995 |  | 
|  | 1996 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1997 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1998 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1999 | done | 
|  | 2000 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2001 | ac_header_dirent=no | 
|  | 2002 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | 
|  | 2003 | do | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2004 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2005 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2006 | echo "configure:2007: checking for $ac_hdr that defines DIR" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2007 | 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] | 2008 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2009 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2010 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2011 | #line 2012 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2012 | #include "confdefs.h" | 
|  | 2013 | #include <sys/types.h> | 
|  | 2014 | #include <$ac_hdr> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2015 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2016 | DIR *dirp = 0; | 
|  | 2017 | ; return 0; } | 
|  | 2018 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2019 | if { (eval echo configure:2020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2020 | rm -rf conftest* | 
|  | 2021 | eval "ac_cv_header_dirent_$ac_safe=yes" | 
|  | 2022 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2023 | echo "configure: failed program was:" >&5 | 
|  | 2024 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2025 | rm -rf conftest* | 
|  | 2026 | eval "ac_cv_header_dirent_$ac_safe=no" | 
|  | 2027 | fi | 
|  | 2028 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2029 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2030 | 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] | 2031 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2032 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2033 | cat >> confdefs.h <<EOF | 
|  | 2034 | #define $ac_tr_hdr 1 | 
|  | 2035 | EOF | 
|  | 2036 | ac_header_dirent=$ac_hdr; break | 
|  | 2037 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2038 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2039 | fi | 
|  | 2040 | done | 
|  | 2041 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 2042 | if test $ac_header_dirent = dirent.h; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2043 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2044 | echo "configure:2045: checking for opendir in -ldir" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2045 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2046 | 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] | 2047 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2048 | else | 
|  | 2049 | ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2050 | LIBS="-ldir  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2051 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2052 | #line 2053 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2053 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2054 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 2055 | /* We use char because int might match the return type of a gcc2 | 
|  | 2056 | builtin and then its argument prototype would still apply.  */ | 
|  | 2057 | char opendir(); | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2058 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2059 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2060 | opendir() | 
|  | 2061 | ; return 0; } | 
|  | 2062 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2063 | if { (eval echo configure:2064: \"$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] | 2064 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2065 | eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2066 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2067 | echo "configure: failed program was:" >&5 | 
|  | 2068 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2069 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2070 | eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2071 | fi | 
|  | 2072 | rm -f conftest* | 
|  | 2073 | LIBS="$ac_save_LIBS" | 
|  | 2074 |  | 
|  | 2075 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2076 | 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] | 2077 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2078 | LIBS="$LIBS -ldir" | 
|  | 2079 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2080 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2081 | fi | 
|  | 2082 |  | 
|  | 2083 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2084 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2085 | echo "configure:2086: checking for opendir in -lx" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2086 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2087 | 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] | 2088 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2089 | else | 
|  | 2090 | ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2091 | LIBS="-lx  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2092 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2093 | #line 2094 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2094 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2095 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 2096 | /* We use char because int might match the return type of a gcc2 | 
|  | 2097 | builtin and then its argument prototype would still apply.  */ | 
|  | 2098 | char opendir(); | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2099 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2100 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2101 | opendir() | 
|  | 2102 | ; return 0; } | 
|  | 2103 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2104 | if { (eval echo configure:2105: \"$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] | 2105 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2106 | eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2107 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2108 | echo "configure: failed program was:" >&5 | 
|  | 2109 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2110 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2111 | eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2112 | fi | 
|  | 2113 | rm -f conftest* | 
|  | 2114 | LIBS="$ac_save_LIBS" | 
|  | 2115 |  | 
|  | 2116 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2117 | 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] | 2118 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2119 | LIBS="$LIBS -lx" | 
|  | 2120 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2121 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2122 | fi | 
|  | 2123 |  | 
|  | 2124 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2125 |  | 
|  | 2126 |  | 
|  | 2127 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2128 | was_it_defined=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2129 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2130 | echo "configure:2131: checking for clock_t in time.h" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2131 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2132 | #line 2133 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2133 | #include "confdefs.h" | 
|  | 2134 | #include <time.h> | 
|  | 2135 | EOF | 
|  | 2136 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 2137 | egrep "clock_t" >/dev/null 2>&1; then | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2138 | rm -rf conftest* | 
|  | 2139 | was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2140 | else | 
|  | 2141 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2142 | cat >> confdefs.h <<\EOF | 
|  | 2143 | #define clock_t long | 
|  | 2144 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2145 |  | 
|  | 2146 | fi | 
|  | 2147 | rm -f conftest* | 
|  | 2148 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2149 | echo "$ac_t""$was_it_defined" 1>&6 | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2150 |  | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 2151 | # Two defines needed to enable largefile support on various platforms | 
|  | 2152 | # These may affect some typedefs | 
|  | 2153 | cat >> confdefs.h <<\EOF | 
|  | 2154 | #define _LARGEFILE_SOURCE 1 | 
|  | 2155 | EOF | 
|  | 2156 |  | 
|  | 2157 | cat >> confdefs.h <<\EOF | 
|  | 2158 | #define _FILE_OFFSET_BITS 64 | 
|  | 2159 | EOF | 
|  | 2160 |  | 
|  | 2161 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2162 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
|  | 2163 | cat >> confdefs.h <<\EOF | 
|  | 2164 | #if defined(SCO_DS) | 
|  | 2165 | #undef _OFF_T | 
|  | 2166 | #endif | 
|  | 2167 | EOF | 
|  | 2168 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2169 | # Type availability checks | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2170 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2171 | echo "configure:2172: checking for mode_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2172 | 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] | 2173 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2174 | else | 
|  | 2175 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2176 | #line 2177 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2177 | #include "confdefs.h" | 
|  | 2178 | #include <sys/types.h> | 
|  | 2179 | #if STDC_HEADERS | 
|  | 2180 | #include <stdlib.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2181 | #include <stddef.h> | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2182 | #endif | 
|  | 2183 | EOF | 
|  | 2184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2185 | 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] | 2186 | rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2187 | ac_cv_type_mode_t=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2188 | else | 
|  | 2189 | rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2190 | ac_cv_type_mode_t=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2191 | fi | 
|  | 2192 | rm -f conftest* | 
|  | 2193 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2194 | fi | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2195 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | 
|  | 2196 | if test $ac_cv_type_mode_t = no; then | 
|  | 2197 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2198 | #define mode_t int | 
|  | 2199 | EOF | 
|  | 2200 |  | 
|  | 2201 | fi | 
|  | 2202 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2203 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2204 | echo "configure:2205: checking for off_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2205 | 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] | 2206 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2207 | else | 
|  | 2208 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2209 | #line 2210 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2210 | #include "confdefs.h" | 
|  | 2211 | #include <sys/types.h> | 
|  | 2212 | #if STDC_HEADERS | 
|  | 2213 | #include <stdlib.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2214 | #include <stddef.h> | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2215 | #endif | 
|  | 2216 | EOF | 
|  | 2217 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2218 | 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] | 2219 | rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2220 | ac_cv_type_off_t=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2221 | else | 
|  | 2222 | rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2223 | ac_cv_type_off_t=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2224 | fi | 
|  | 2225 | rm -f conftest* | 
|  | 2226 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2227 | fi | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2228 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | 
|  | 2229 | if test $ac_cv_type_off_t = no; then | 
|  | 2230 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2231 | #define off_t long | 
|  | 2232 | EOF | 
|  | 2233 |  | 
|  | 2234 | fi | 
|  | 2235 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2236 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2237 | echo "configure:2238: checking for pid_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2238 | 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] | 2239 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2240 | else | 
|  | 2241 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2242 | #line 2243 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2243 | #include "confdefs.h" | 
|  | 2244 | #include <sys/types.h> | 
|  | 2245 | #if STDC_HEADERS | 
|  | 2246 | #include <stdlib.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2247 | #include <stddef.h> | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2248 | #endif | 
|  | 2249 | EOF | 
|  | 2250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2251 | 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] | 2252 | rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2253 | ac_cv_type_pid_t=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2254 | else | 
|  | 2255 | rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2256 | ac_cv_type_pid_t=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2257 | fi | 
|  | 2258 | rm -f conftest* | 
|  | 2259 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2260 | fi | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2261 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | 
|  | 2262 | if test $ac_cv_type_pid_t = no; then | 
|  | 2263 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2264 | #define pid_t int | 
|  | 2265 | EOF | 
|  | 2266 |  | 
|  | 2267 | fi | 
|  | 2268 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2269 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2270 | echo "configure:2271: checking return type of signal handlers" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2271 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2272 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2273 | else | 
|  | 2274 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2275 | #line 2276 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2276 | #include "confdefs.h" | 
|  | 2277 | #include <sys/types.h> | 
|  | 2278 | #include <signal.h> | 
|  | 2279 | #ifdef signal | 
|  | 2280 | #undef signal | 
|  | 2281 | #endif | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2282 | #ifdef __cplusplus | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2283 | extern "C" void (*signal (int, void (*)(int)))(int); | 
|  | 2284 | #else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2285 | void (*signal ()) (); | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2286 | #endif | 
|  | 2287 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2288 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2289 | int i; | 
|  | 2290 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2291 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2292 | if { (eval echo configure:2293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2293 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2294 | ac_cv_type_signal=void | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2295 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2296 | echo "configure: failed program was:" >&5 | 
|  | 2297 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2298 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2299 | ac_cv_type_signal=int | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2300 | fi | 
|  | 2301 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2302 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2303 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2304 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2305 | cat >> confdefs.h <<EOF | 
|  | 2306 | #define RETSIGTYPE $ac_cv_type_signal | 
|  | 2307 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2308 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2309 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2310 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2311 | echo "configure:2312: checking for size_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2312 | 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] | 2313 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2314 | else | 
|  | 2315 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2316 | #line 2317 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2317 | #include "confdefs.h" | 
|  | 2318 | #include <sys/types.h> | 
|  | 2319 | #if STDC_HEADERS | 
|  | 2320 | #include <stdlib.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2321 | #include <stddef.h> | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2322 | #endif | 
|  | 2323 | EOF | 
|  | 2324 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2325 | 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] | 2326 | rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2327 | ac_cv_type_size_t=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2328 | else | 
|  | 2329 | rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2330 | ac_cv_type_size_t=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2331 | fi | 
|  | 2332 | rm -f conftest* | 
|  | 2333 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2334 | fi | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2335 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | 
|  | 2336 | if test $ac_cv_type_size_t = no; then | 
|  | 2337 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2338 | #define size_t unsigned | 
|  | 2339 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2340 |  | 
|  | 2341 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2342 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2343 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2344 | echo "configure:2345: checking for uid_t in sys/types.h" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2345 | 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] | 2346 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2347 | else | 
|  | 2348 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2349 | #line 2350 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2350 | #include "confdefs.h" | 
|  | 2351 | #include <sys/types.h> | 
|  | 2352 | EOF | 
|  | 2353 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 2354 | egrep "uid_t" >/dev/null 2>&1; then | 
|  | 2355 | rm -rf conftest* | 
|  | 2356 | ac_cv_type_uid_t=yes | 
|  | 2357 | else | 
|  | 2358 | rm -rf conftest* | 
|  | 2359 | ac_cv_type_uid_t=no | 
|  | 2360 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2361 | rm -f conftest* | 
|  | 2362 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2363 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2364 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2365 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2366 | if test $ac_cv_type_uid_t = no; then | 
|  | 2367 | cat >> confdefs.h <<\EOF | 
|  | 2368 | #define uid_t int | 
|  | 2369 | EOF | 
|  | 2370 |  | 
|  | 2371 | cat >> confdefs.h <<\EOF | 
|  | 2372 | #define gid_t int | 
|  | 2373 | EOF | 
|  | 2374 |  | 
|  | 2375 | fi | 
|  | 2376 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2377 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2378 | # Sizes of various common basic types | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2379 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2380 | echo "configure:2381: checking size of int" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2381 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2382 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2383 | else | 
|  | 2384 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2385 | ac_cv_sizeof_int=4 | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2386 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2387 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2388 | #line 2389 "configure" | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2389 | #include "confdefs.h" | 
|  | 2390 | #include <stdio.h> | 
|  | 2391 | main() | 
|  | 2392 | { | 
|  | 2393 | FILE *f=fopen("conftestval", "w"); | 
|  | 2394 | if (!f) exit(1); | 
|  | 2395 | fprintf(f, "%d\n", sizeof(int)); | 
|  | 2396 | exit(0); | 
|  | 2397 | } | 
|  | 2398 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2399 | if { (eval echo configure:2400: \"$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] | 2400 | then | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2401 | ac_cv_sizeof_int=`cat conftestval` | 
|  | 2402 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2403 | echo "configure: failed program was:" >&5 | 
|  | 2404 | cat conftest.$ac_ext >&5 | 
|  | 2405 | rm -fr conftest* | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2406 | ac_cv_sizeof_int=0 | 
|  | 2407 | fi | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2408 | rm -fr conftest* | 
|  | 2409 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2410 |  | 
|  | 2411 | fi | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2412 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | 
|  | 2413 | cat >> confdefs.h <<EOF | 
|  | 2414 | #define SIZEOF_INT $ac_cv_sizeof_int | 
|  | 2415 | EOF | 
|  | 2416 |  | 
|  | 2417 |  | 
|  | 2418 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2419 | echo "configure:2420: checking size of long" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2420 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2421 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2422 | else | 
|  | 2423 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2424 | ac_cv_sizeof_long=4 | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2425 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2426 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2427 | #line 2428 "configure" | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2428 | #include "confdefs.h" | 
|  | 2429 | #include <stdio.h> | 
|  | 2430 | main() | 
|  | 2431 | { | 
|  | 2432 | FILE *f=fopen("conftestval", "w"); | 
|  | 2433 | if (!f) exit(1); | 
|  | 2434 | fprintf(f, "%d\n", sizeof(long)); | 
|  | 2435 | exit(0); | 
|  | 2436 | } | 
|  | 2437 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2438 | if { (eval echo configure:2439: \"$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] | 2439 | then | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2440 | ac_cv_sizeof_long=`cat conftestval` | 
|  | 2441 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2442 | echo "configure: failed program was:" >&5 | 
|  | 2443 | cat conftest.$ac_ext >&5 | 
|  | 2444 | rm -fr conftest* | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2445 | ac_cv_sizeof_long=0 | 
|  | 2446 | fi | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2447 | rm -fr conftest* | 
|  | 2448 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2449 |  | 
|  | 2450 | fi | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2451 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | 
|  | 2452 | cat >> confdefs.h <<EOF | 
|  | 2453 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
|  | 2454 | EOF | 
|  | 2455 |  | 
|  | 2456 |  | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2457 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2458 | echo "configure:2459: checking size of void *" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2459 | 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] | 2460 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2461 | else | 
|  | 2462 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2463 | ac_cv_sizeof_void_p=4 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2464 | else | 
|  | 2465 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2466 | #line 2467 "configure" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2467 | #include "confdefs.h" | 
|  | 2468 | #include <stdio.h> | 
|  | 2469 | main() | 
|  | 2470 | { | 
|  | 2471 | FILE *f=fopen("conftestval", "w"); | 
|  | 2472 | if (!f) exit(1); | 
|  | 2473 | fprintf(f, "%d\n", sizeof(void *)); | 
|  | 2474 | exit(0); | 
|  | 2475 | } | 
|  | 2476 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2477 | if { (eval echo configure:2478: \"$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] | 2478 | then | 
|  | 2479 | ac_cv_sizeof_void_p=`cat conftestval` | 
|  | 2480 | else | 
|  | 2481 | echo "configure: failed program was:" >&5 | 
|  | 2482 | cat conftest.$ac_ext >&5 | 
|  | 2483 | rm -fr conftest* | 
|  | 2484 | ac_cv_sizeof_void_p=0 | 
|  | 2485 | fi | 
|  | 2486 | rm -fr conftest* | 
|  | 2487 | fi | 
|  | 2488 |  | 
|  | 2489 | fi | 
|  | 2490 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | 
|  | 2491 | cat >> confdefs.h <<EOF | 
|  | 2492 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
|  | 2493 | EOF | 
|  | 2494 |  | 
|  | 2495 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2496 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2497 | echo "configure:2498: checking size of char" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2498 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2499 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2500 | else | 
|  | 2501 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2502 | ac_cv_sizeof_char=1 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2503 | else | 
|  | 2504 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2505 | #line 2506 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2506 | #include "confdefs.h" | 
|  | 2507 | #include <stdio.h> | 
|  | 2508 | main() | 
|  | 2509 | { | 
|  | 2510 | FILE *f=fopen("conftestval", "w"); | 
|  | 2511 | if (!f) exit(1); | 
|  | 2512 | fprintf(f, "%d\n", sizeof(char)); | 
|  | 2513 | exit(0); | 
|  | 2514 | } | 
|  | 2515 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2516 | if { (eval echo configure:2517: \"$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] | 2517 | then | 
|  | 2518 | ac_cv_sizeof_char=`cat conftestval` | 
|  | 2519 | else | 
|  | 2520 | echo "configure: failed program was:" >&5 | 
|  | 2521 | cat conftest.$ac_ext >&5 | 
|  | 2522 | rm -fr conftest* | 
|  | 2523 | ac_cv_sizeof_char=0 | 
|  | 2524 | fi | 
|  | 2525 | rm -fr conftest* | 
|  | 2526 | fi | 
|  | 2527 |  | 
|  | 2528 | fi | 
|  | 2529 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | 
|  | 2530 | cat >> confdefs.h <<EOF | 
|  | 2531 | #define SIZEOF_CHAR $ac_cv_sizeof_char | 
|  | 2532 | EOF | 
|  | 2533 |  | 
|  | 2534 |  | 
|  | 2535 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2536 | echo "configure:2537: checking size of short" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2537 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2538 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2539 | else | 
|  | 2540 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2541 | ac_cv_sizeof_short=2 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2542 | else | 
|  | 2543 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2544 | #line 2545 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2545 | #include "confdefs.h" | 
|  | 2546 | #include <stdio.h> | 
|  | 2547 | main() | 
|  | 2548 | { | 
|  | 2549 | FILE *f=fopen("conftestval", "w"); | 
|  | 2550 | if (!f) exit(1); | 
|  | 2551 | fprintf(f, "%d\n", sizeof(short)); | 
|  | 2552 | exit(0); | 
|  | 2553 | } | 
|  | 2554 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2555 | if { (eval echo configure:2556: \"$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] | 2556 | then | 
|  | 2557 | ac_cv_sizeof_short=`cat conftestval` | 
|  | 2558 | else | 
|  | 2559 | echo "configure: failed program was:" >&5 | 
|  | 2560 | cat conftest.$ac_ext >&5 | 
|  | 2561 | rm -fr conftest* | 
|  | 2562 | ac_cv_sizeof_short=0 | 
|  | 2563 | fi | 
|  | 2564 | rm -fr conftest* | 
|  | 2565 | fi | 
|  | 2566 |  | 
|  | 2567 | fi | 
|  | 2568 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | 
|  | 2569 | cat >> confdefs.h <<EOF | 
|  | 2570 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
|  | 2571 | EOF | 
|  | 2572 |  | 
|  | 2573 |  | 
|  | 2574 | echo $ac_n "checking size of float""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2575 | echo "configure:2576: checking size of float" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2576 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2577 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2578 | else | 
|  | 2579 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2580 | ac_cv_sizeof_float=4 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2581 | else | 
|  | 2582 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2583 | #line 2584 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2584 | #include "confdefs.h" | 
|  | 2585 | #include <stdio.h> | 
|  | 2586 | main() | 
|  | 2587 | { | 
|  | 2588 | FILE *f=fopen("conftestval", "w"); | 
|  | 2589 | if (!f) exit(1); | 
|  | 2590 | fprintf(f, "%d\n", sizeof(float)); | 
|  | 2591 | exit(0); | 
|  | 2592 | } | 
|  | 2593 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2594 | if { (eval echo configure:2595: \"$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] | 2595 | then | 
|  | 2596 | ac_cv_sizeof_float=`cat conftestval` | 
|  | 2597 | else | 
|  | 2598 | echo "configure: failed program was:" >&5 | 
|  | 2599 | cat conftest.$ac_ext >&5 | 
|  | 2600 | rm -fr conftest* | 
|  | 2601 | ac_cv_sizeof_float=0 | 
|  | 2602 | fi | 
|  | 2603 | rm -fr conftest* | 
|  | 2604 | fi | 
|  | 2605 |  | 
|  | 2606 | fi | 
|  | 2607 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 | 
|  | 2608 | cat >> confdefs.h <<EOF | 
|  | 2609 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
|  | 2610 | EOF | 
|  | 2611 |  | 
|  | 2612 |  | 
|  | 2613 | echo $ac_n "checking size of double""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2614 | echo "configure:2615: checking size of double" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2615 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2616 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2617 | else | 
|  | 2618 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2619 | ac_cv_sizeof_double=8 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2620 | else | 
|  | 2621 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2622 | #line 2623 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2623 | #include "confdefs.h" | 
|  | 2624 | #include <stdio.h> | 
|  | 2625 | main() | 
|  | 2626 | { | 
|  | 2627 | FILE *f=fopen("conftestval", "w"); | 
|  | 2628 | if (!f) exit(1); | 
|  | 2629 | fprintf(f, "%d\n", sizeof(double)); | 
|  | 2630 | exit(0); | 
|  | 2631 | } | 
|  | 2632 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2633 | if { (eval echo configure:2634: \"$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] | 2634 | then | 
|  | 2635 | ac_cv_sizeof_double=`cat conftestval` | 
|  | 2636 | else | 
|  | 2637 | echo "configure: failed program was:" >&5 | 
|  | 2638 | cat conftest.$ac_ext >&5 | 
|  | 2639 | rm -fr conftest* | 
|  | 2640 | ac_cv_sizeof_double=0 | 
|  | 2641 | fi | 
|  | 2642 | rm -fr conftest* | 
|  | 2643 | fi | 
|  | 2644 |  | 
|  | 2645 | fi | 
|  | 2646 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 | 
|  | 2647 | cat >> confdefs.h <<EOF | 
|  | 2648 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
|  | 2649 | EOF | 
|  | 2650 |  | 
|  | 2651 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2652 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2653 | echo "configure:2654: checking size of fpos_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2654 | 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] | 2655 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2656 | else | 
|  | 2657 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2658 | ac_cv_sizeof_fpos_t=4 | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2659 | else | 
|  | 2660 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2661 | #line 2662 "configure" | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2662 | #include "confdefs.h" | 
|  | 2663 | #include <stdio.h> | 
|  | 2664 | main() | 
|  | 2665 | { | 
|  | 2666 | FILE *f=fopen("conftestval", "w"); | 
|  | 2667 | if (!f) exit(1); | 
|  | 2668 | fprintf(f, "%d\n", sizeof(fpos_t)); | 
|  | 2669 | exit(0); | 
|  | 2670 | } | 
|  | 2671 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2672 | if { (eval echo configure:2673: \"$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] | 2673 | then | 
|  | 2674 | ac_cv_sizeof_fpos_t=`cat conftestval` | 
|  | 2675 | else | 
|  | 2676 | echo "configure: failed program was:" >&5 | 
|  | 2677 | cat conftest.$ac_ext >&5 | 
|  | 2678 | rm -fr conftest* | 
|  | 2679 | ac_cv_sizeof_fpos_t=0 | 
|  | 2680 | fi | 
|  | 2681 | rm -fr conftest* | 
|  | 2682 | fi | 
|  | 2683 |  | 
|  | 2684 | fi | 
|  | 2685 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 | 
|  | 2686 | cat >> confdefs.h <<EOF | 
|  | 2687 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
|  | 2688 | EOF | 
|  | 2689 |  | 
|  | 2690 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2691 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2692 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2693 | echo "configure:2694: checking for long long support" >&5 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2694 | have_long_long=no | 
|  | 2695 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2696 | #line 2697 "configure" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2697 | #include "confdefs.h" | 
|  | 2698 |  | 
|  | 2699 | int main() { | 
|  | 2700 | long long x; x = (long long)0; | 
|  | 2701 | ; return 0; } | 
|  | 2702 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2703 | if { (eval echo configure:2704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2704 | rm -rf conftest* | 
|  | 2705 | cat >> confdefs.h <<\EOF | 
|  | 2706 | #define HAVE_LONG_LONG 1 | 
|  | 2707 | EOF | 
|  | 2708 | have_long_long=yes | 
|  | 2709 | else | 
|  | 2710 | echo "configure: failed program was:" >&5 | 
|  | 2711 | cat conftest.$ac_ext >&5 | 
|  | 2712 | fi | 
|  | 2713 | rm -f conftest* | 
|  | 2714 | echo "$ac_t""$have_long_long" 1>&6 | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2715 | if test "$have_long_long" = yes ; then | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2716 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2717 | echo "configure:2718: checking size of long long" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2718 | 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] | 2719 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2720 | else | 
|  | 2721 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2722 | ac_cv_sizeof_long_long=8 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2723 | else | 
|  | 2724 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2725 | #line 2726 "configure" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2726 | #include "confdefs.h" | 
|  | 2727 | #include <stdio.h> | 
|  | 2728 | main() | 
|  | 2729 | { | 
|  | 2730 | FILE *f=fopen("conftestval", "w"); | 
|  | 2731 | if (!f) exit(1); | 
|  | 2732 | fprintf(f, "%d\n", sizeof(long long)); | 
|  | 2733 | exit(0); | 
|  | 2734 | } | 
|  | 2735 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2736 | if { (eval echo configure:2737: \"$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] | 2737 | then | 
|  | 2738 | ac_cv_sizeof_long_long=`cat conftestval` | 
|  | 2739 | else | 
|  | 2740 | echo "configure: failed program was:" >&5 | 
|  | 2741 | cat conftest.$ac_ext >&5 | 
|  | 2742 | rm -fr conftest* | 
|  | 2743 | ac_cv_sizeof_long_long=0 | 
|  | 2744 | fi | 
|  | 2745 | rm -fr conftest* | 
|  | 2746 | fi | 
|  | 2747 |  | 
|  | 2748 | fi | 
|  | 2749 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | 
|  | 2750 | cat >> confdefs.h <<EOF | 
|  | 2751 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
|  | 2752 | EOF | 
|  | 2753 |  | 
|  | 2754 |  | 
|  | 2755 | fi | 
|  | 2756 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2757 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2758 | echo "configure:2759: checking for uintptr_t support" >&5 | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2759 | have_uintptr_t=no | 
|  | 2760 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2761 | #line 2762 "configure" | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2762 | #include "confdefs.h" | 
|  | 2763 |  | 
|  | 2764 | int main() { | 
|  | 2765 | uintptr_t x; x = (uintptr_t)0; | 
|  | 2766 | ; return 0; } | 
|  | 2767 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2768 | if { (eval echo configure:2769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2769 | rm -rf conftest* | 
|  | 2770 | cat >> confdefs.h <<\EOF | 
|  | 2771 | #define HAVE_UINTPTR_T 1 | 
|  | 2772 | EOF | 
|  | 2773 | have_uintptr_t=yes | 
|  | 2774 | else | 
|  | 2775 | echo "configure: failed program was:" >&5 | 
|  | 2776 | cat conftest.$ac_ext >&5 | 
|  | 2777 | fi | 
|  | 2778 | rm -f conftest* | 
|  | 2779 | echo "$ac_t""$have_uintptr_t" 1>&6 | 
|  | 2780 | if test "$have_uintptr_t" = yes ; then | 
|  | 2781 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2782 | echo "configure:2783: checking size of uintptr_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2783 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2784 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2785 | else | 
|  | 2786 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2787 | ac_cv_sizeof_uintptr_t=4 | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2788 | else | 
|  | 2789 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2790 | #line 2791 "configure" | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2791 | #include "confdefs.h" | 
|  | 2792 | #include <stdio.h> | 
|  | 2793 | main() | 
|  | 2794 | { | 
|  | 2795 | FILE *f=fopen("conftestval", "w"); | 
|  | 2796 | if (!f) exit(1); | 
|  | 2797 | fprintf(f, "%d\n", sizeof(uintptr_t)); | 
|  | 2798 | exit(0); | 
|  | 2799 | } | 
|  | 2800 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2801 | if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2802 | then | 
|  | 2803 | ac_cv_sizeof_uintptr_t=`cat conftestval` | 
|  | 2804 | else | 
|  | 2805 | echo "configure: failed program was:" >&5 | 
|  | 2806 | cat conftest.$ac_ext >&5 | 
|  | 2807 | rm -fr conftest* | 
|  | 2808 | ac_cv_sizeof_uintptr_t=0 | 
|  | 2809 | fi | 
|  | 2810 | rm -fr conftest* | 
|  | 2811 | fi | 
|  | 2812 |  | 
|  | 2813 | fi | 
|  | 2814 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 | 
|  | 2815 | cat >> confdefs.h <<EOF | 
|  | 2816 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
|  | 2817 | EOF | 
|  | 2818 |  | 
|  | 2819 |  | 
|  | 2820 | fi | 
|  | 2821 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2822 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. | 
|  | 2823 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2824 | echo "configure:2825: checking size of off_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2825 | 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] | 2826 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2827 | else | 
|  | 2828 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2829 | ac_cv_sizeof_off_t=4 | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2830 | else | 
|  | 2831 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2832 | #line 2833 "configure" | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2833 | #include "confdefs.h" | 
|  | 2834 | #include <stdio.h> | 
|  | 2835 | #include <sys/types.h> | 
|  | 2836 | main() | 
|  | 2837 | { | 
|  | 2838 | FILE *f=fopen("conftestval", "w"); | 
|  | 2839 | if (!f) exit(1); | 
|  | 2840 | fprintf(f, "%d\n", sizeof(off_t)); | 
|  | 2841 | exit(0); | 
|  | 2842 | } | 
|  | 2843 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2844 | if { (eval echo configure:2845: \"$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] | 2845 | then | 
|  | 2846 | ac_cv_sizeof_off_t=`cat conftestval` | 
|  | 2847 | else | 
|  | 2848 | echo "configure: failed program was:" >&5 | 
|  | 2849 | cat conftest.$ac_ext >&5 | 
|  | 2850 | rm -fr conftest* | 
|  | 2851 | ac_cv_sizeof_off_t=0 | 
|  | 2852 | fi | 
|  | 2853 | rm -fr conftest* | 
|  | 2854 | fi | 
|  | 2855 |  | 
|  | 2856 |  | 
|  | 2857 | fi | 
|  | 2858 |  | 
|  | 2859 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 | 
|  | 2860 | cat >> confdefs.h <<EOF | 
|  | 2861 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
|  | 2862 | EOF | 
|  | 2863 |  | 
|  | 2864 |  | 
|  | 2865 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2866 | echo "configure:2867: checking whether to enable large file support" >&5 | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2867 | if test "$have_long_long" = yes -a \ | 
|  | 2868 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ | 
|  | 2869 | "$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] | 2870 | cat >> confdefs.h <<\EOF | 
|  | 2871 | #define HAVE_LARGEFILE_SUPPORT 1 | 
|  | 2872 | EOF | 
|  | 2873 |  | 
|  | 2874 | echo "$ac_t""yes" 1>&6 | 
|  | 2875 | else | 
|  | 2876 | echo "$ac_t""no" 1>&6 | 
|  | 2877 | fi | 
|  | 2878 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2879 | # AC_CHECK_SIZEOF() doesn't include <time.h>. | 
|  | 2880 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2881 | echo "configure:2882: checking size of time_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2882 | 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] | 2883 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2884 | else | 
|  | 2885 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2886 | ac_cv_sizeof_time_t=4 | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2887 | else | 
|  | 2888 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2889 | #line 2890 "configure" | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2890 | #include "confdefs.h" | 
|  | 2891 | #include <stdio.h> | 
|  | 2892 | #include <time.h> | 
|  | 2893 | main() | 
|  | 2894 | { | 
|  | 2895 | FILE *f=fopen("conftestval", "w"); | 
|  | 2896 | if (!f) exit(1); | 
|  | 2897 | fprintf(f, "%d\n", sizeof(time_t)); | 
|  | 2898 | exit(0); | 
|  | 2899 | } | 
|  | 2900 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2901 | if { (eval echo configure:2902: \"$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] | 2902 | then | 
|  | 2903 | ac_cv_sizeof_time_t=`cat conftestval` | 
|  | 2904 | else | 
|  | 2905 | echo "configure: failed program was:" >&5 | 
|  | 2906 | cat conftest.$ac_ext >&5 | 
|  | 2907 | rm -fr conftest* | 
|  | 2908 | ac_cv_sizeof_time_t=0 | 
|  | 2909 | fi | 
|  | 2910 | rm -fr conftest* | 
|  | 2911 | fi | 
|  | 2912 |  | 
|  | 2913 |  | 
|  | 2914 | fi | 
|  | 2915 |  | 
|  | 2916 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 | 
|  | 2917 | cat >> confdefs.h <<EOF | 
|  | 2918 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
|  | 2919 | EOF | 
|  | 2920 |  | 
|  | 2921 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2922 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2923 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 2924 | ac_save_cc="$CC" | 
|  | 2925 | if test "$ac_cv_kpthread" = "yes" | 
|  | 2926 | then CC="$CC -Kpthread" | 
|  | 2927 | fi | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2928 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2929 | echo "configure:2930: checking for pthread_t" >&5 | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2930 | have_pthread_t=no | 
|  | 2931 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2932 | #line 2933 "configure" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2933 | #include "confdefs.h" | 
|  | 2934 | #include <pthread.h> | 
|  | 2935 | int main() { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 2936 | pthread_t x; x = *(pthread_t*)0; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2937 | ; return 0; } | 
|  | 2938 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2939 | if { (eval echo configure:2940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2940 | rm -rf conftest* | 
|  | 2941 | have_pthread_t=yes | 
|  | 2942 | else | 
|  | 2943 | echo "configure: failed program was:" >&5 | 
|  | 2944 | cat conftest.$ac_ext >&5 | 
|  | 2945 | fi | 
|  | 2946 | rm -f conftest* | 
|  | 2947 | echo "$ac_t""$have_pthread_t" 1>&6 | 
|  | 2948 | if test "$have_pthread_t" = yes ; then | 
|  | 2949 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. | 
|  | 2950 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2951 | echo "configure:2952: checking size of pthread_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2952 | if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2953 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 2954 | else | 
|  | 2955 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2956 | ac_cv_sizeof_pthread_t=4 | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2957 | else | 
|  | 2958 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2959 | #line 2960 "configure" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2960 | #include "confdefs.h" | 
|  | 2961 | #include <stdio.h> | 
|  | 2962 | #include <pthread.h> | 
|  | 2963 | main() | 
|  | 2964 | { | 
|  | 2965 | FILE *f=fopen("conftestval", "w"); | 
|  | 2966 | if (!f) exit(1); | 
|  | 2967 | fprintf(f, "%d\n", sizeof(pthread_t)); | 
|  | 2968 | exit(0); | 
|  | 2969 | } | 
|  | 2970 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2971 | if { (eval echo configure:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2972 | then | 
|  | 2973 | ac_cv_sizeof_pthread_t=`cat conftestval` | 
|  | 2974 | else | 
|  | 2975 | echo "configure: failed program was:" >&5 | 
|  | 2976 | cat conftest.$ac_ext >&5 | 
|  | 2977 | rm -fr conftest* | 
|  | 2978 | ac_cv_sizeof_pthread_t=0 | 
|  | 2979 | fi | 
|  | 2980 | rm -fr conftest* | 
|  | 2981 | fi | 
|  | 2982 |  | 
|  | 2983 |  | 
|  | 2984 | fi | 
|  | 2985 |  | 
|  | 2986 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 | 
|  | 2987 | cat >> confdefs.h <<EOF | 
|  | 2988 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
|  | 2989 | EOF | 
|  | 2990 |  | 
|  | 2991 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 2992 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2993 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2994 | echo $ac_n "checking for --enable-toolbox-glue""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 2995 | echo "configure:2996: checking for --enable-toolbox-glue" >&5 | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 2996 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. | 
|  | 2997 | if test "${enable_toolbox_glue+set}" = set; then | 
|  | 2998 | enableval="$enable_toolbox_glue" | 
|  | 2999 | : | 
|  | 3000 | fi | 
|  | 3001 |  | 
|  | 3002 |  | 
|  | 3003 | if test -z "$enable_toolbox_glue" | 
|  | 3004 | then | 
|  | 3005 | case $ac_sys_system/$ac_sys_release in | 
|  | 3006 | Darwin/*) | 
|  | 3007 | enable_toolbox_glue="yes";; | 
|  | 3008 | *) | 
|  | 3009 | enable_toolbox_glue="no";; | 
|  | 3010 | esac | 
|  | 3011 | fi | 
|  | 3012 | case "$enable_toolbox_glue" in | 
|  | 3013 | yes) | 
|  | 3014 | extra_frameworks="-framework Carbon -framework Foundation" | 
|  | 3015 | extra_machdep_objs="Python/mactoolboxglue.o" | 
| Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 3016 | extra_undefs="-u __dummy -u _PyMac_Error" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3017 | cat >> confdefs.h <<\EOF | 
|  | 3018 | #define USE_TOOLBOX_OBJECT_GLUE 1 | 
|  | 3019 | EOF | 
|  | 3020 |  | 
|  | 3021 | ;; | 
|  | 3022 | *) | 
|  | 3023 | extra_frameworks="" | 
|  | 3024 | extra_machdep_objs="" | 
| Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 3025 | extra_undefs="" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3026 | ;; | 
|  | 3027 | esac | 
|  | 3028 | echo "$ac_t""$enable_toolbox_glue" 1>&6 | 
|  | 3029 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3030 |  | 
|  | 3031 | case $ac_sys_system/$ac_sys_release in | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3032 | Darwin/1.4*) | 
|  | 3033 | ns_undef_sym='_environ' | 
|  | 3034 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -flat_namespace -U $ns_undef_sym" | 
|  | 3035 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" | 
|  | 3036 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' | 
|  | 3037 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3038 | Darwin/*) | 
|  | 3039 | ns_undef_sym='_environ' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3040 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" | 
|  | 3041 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" | 
|  | 3042 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' | 
|  | 3043 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3044 | esac | 
|  | 3045 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3046 | echo $ac_n "checking for --enable-framework""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3047 | echo "configure:3048: checking for --enable-framework" >&5 | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3048 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3049 | then | 
| Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3050 | OPT="$OPT -fno-common -dynamic" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3051 | # -U __environ is needed since bundles don't have access | 
|  | 3052 | # to crt0 when built but will always be linked against it | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3053 | # -F. is needed to allow linking to the framework while | 
|  | 3054 | # in the build location. | 
|  | 3055 |  | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3056 | case $ac_sys_system/$ac_sys_release in | 
|  | 3057 | Darwin/1.4*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-flat_namespace,-U,$ns_undef_sym";; | 
|  | 3058 | Darwin/*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-U,$ns_undef_sym";; | 
|  | 3059 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3060 | cat >> confdefs.h <<\EOF | 
|  | 3061 | #define WITH_NEXT_FRAMEWORK 1 | 
|  | 3062 | EOF | 
|  | 3063 |  | 
|  | 3064 | echo "$ac_t""yes" 1>&6 | 
|  | 3065 | else | 
|  | 3066 | echo "$ac_t""no" 1>&6 | 
|  | 3067 | fi | 
|  | 3068 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3069 | echo $ac_n "checking for dyld""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3070 | echo "configure:3071: checking for dyld" >&5 | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3071 | case $ac_sys_system/$ac_sys_release in | 
|  | 3072 | Darwin/*) | 
|  | 3073 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3074 | #define WITH_DYLD 1 | 
|  | 3075 | EOF | 
|  | 3076 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3077 | echo "$ac_t""always on for Darwin" 1>&6 | 
|  | 3078 | ;; | 
|  | 3079 | *) | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3080 | echo "$ac_t""no" 1>&6 | 
|  | 3081 | ;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3082 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3083 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3084 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3085 |  | 
|  | 3086 |  | 
|  | 3087 |  | 
|  | 3088 |  | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3089 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3090 | # SO is the extension of shared libraries `(including the dot!) | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3091 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3092 | echo $ac_n "checking SO""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3093 | echo "configure:3094: checking SO" >&5 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3094 | if test -z "$SO" | 
|  | 3095 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3096 | case $ac_sys_system in | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3097 | hp*|HP*)   SO=.sl;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3098 | CYGWIN*)   SO=.dll;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3099 | *)	   SO=.so;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3100 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3101 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3102 | echo "$ac_t""$SO" 1>&6 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3103 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 3104 | # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3105 | # (Shared libraries in this instance are shared modules to be loaded into | 
|  | 3106 | # Python, as opposed to building Python itself as a shared library.) | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3107 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3108 | echo "configure:3109: checking LDSHARED" >&5 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3109 | if test -z "$LDSHARED" | 
|  | 3110 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3111 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3112 | AIX*) | 
|  | 3113 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 3114 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3115 | ;; | 
|  | 3116 | BeOS*) | 
|  | 3117 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 3118 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3119 | ;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3120 | IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3121 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3122 | SunOS/4*) LDSHARED="ld";; | 
| Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3123 | SunOS/5*) | 
|  | 3124 | if test "$GCC" = "yes" | 
| Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 3125 | then LDSHARED='$(CC) -shared' | 
| Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 3126 | else LDSHARED="$(CC) -G"; | 
| Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3127 | fi ;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3128 | hp*|HP*) LDSHARED="ld -b";; | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3129 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | 
|  | 3130 | DYNIX/ptx*) LDSHARED="ld -G";; | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3131 | Darwin/1.4*) | 
|  | 3132 | LDSHARED='$(CC) $(LDFLAGS) -bundle' | 
|  | 3133 | if test "$enable_framework" ; then | 
|  | 3134 | # Link against the framework. All externals should be defined. | 
|  | 3135 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' | 
|  | 3136 | else | 
|  | 3137 | # No framework. Ignore undefined symbols, assuming they come from Python | 
|  | 3138 | LDSHARED="$LDSHARED -flat_namespace -undefined suppress" | 
|  | 3139 | fi ;; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3140 | Darwin/*) | 
|  | 3141 | LDSHARED='$(CC) $(LDFLAGS) -bundle' | 
|  | 3142 | if test "$enable_framework" ; then | 
|  | 3143 | # Link against the framework. All externals should be defined. | 
|  | 3144 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' | 
|  | 3145 | else | 
|  | 3146 | # No framework. Ignore undefined symbols, assuming they come from Python | 
|  | 3147 | LDSHARED="$LDSHARED -undefined suppress" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3148 | fi ;; | 
| Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 3149 | Linux*) LDSHARED="gcc -shared";; | 
| Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3150 | dgux*) LDSHARED="ld -G";; | 
| Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 3151 | BSD/OS*/4*) LDSHARED="gcc -shared";; | 
| Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 3152 | OpenBSD*|NetBSD*|FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 3153 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3154 | then | 
|  | 3155 | LDSHARED="cc -shared ${LDFLAGS}" | 
|  | 3156 | else | 
|  | 3157 | LDSHARED="ld -Bshareable ${LDFLAGS}" | 
|  | 3158 | fi;; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3159 | OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3160 | if test "$GCC" = "yes" | 
|  | 3161 | then LDSHARED="$(CC) -shared" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3162 | else LDSHARED="$(CC) -G" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3163 | fi;; | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3164 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3165 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3166 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3167 | *)	LDSHARED="ld";; | 
|  | 3168 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3169 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3170 | echo "$ac_t""$LDSHARED" 1>&6 | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3171 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3172 | # 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] | 3173 | # library (module) -- this is only needed for a few systems | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3174 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3175 | echo "configure:3176: checking CCSHARED" >&5 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3176 | if test -z "$CCSHARED" | 
|  | 3177 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3178 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 3179 | SunOS*) if test "$GCC" = yes; | 
|  | 3180 | then CCSHARED="-fPIC"; | 
|  | 3181 | fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 3182 | hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 3183 | then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 3184 | else CCSHARED="+z"; | 
|  | 3185 | fi;; | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3186 | Linux*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3187 | BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 3188 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3189 | OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3190 | if test "$GCC" = "yes" | 
|  | 3191 | then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3192 | else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3193 | fi;; | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3194 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3195 | Monterey*) CCSHARED="-G";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3196 | IRIX*/6*)  case $CC in | 
|  | 3197 | *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 3198 | *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3199 | esac;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3200 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3201 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3202 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3203 | echo "$ac_t""$CCSHARED" 1>&6 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3204 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3205 | # the python executable -- this is only needed for a few systems | 
|  | 3206 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3207 | echo "configure:3208: checking LINKFORSHARED" >&5 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3208 | if test -z "$LINKFORSHARED" | 
|  | 3209 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3210 | case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3211 | AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 3212 | hp*|HP*) | 
| Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 3213 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3214 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 3215 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3216 | # -u libsys_s pulls in all symbols in libsys | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3217 | Darwin/*) | 
|  | 3218 | # -u __dummy makes the linker aware of the objc runtime | 
|  | 3219 | # in System.framework; otherwise, __objcInit (referenced in | 
|  | 3220 | # crt1.o) gets erroneously defined as common, which breaks dynamic | 
|  | 3221 | # loading of any modules which reference it in System.framework. | 
|  | 3222 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is | 
|  | 3223 | # not used by the core itself but which needs to be in the core so | 
|  | 3224 | # that dynamically loaded extension modules have access to it. | 
| Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 3225 | LINKFORSHARED="$extra_undefs -framework System" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3226 | if test "$enable_framework" | 
|  | 3227 | then | 
|  | 3228 | LINKFORSHARED="$LINKFORSHARED -framework Python" | 
|  | 3229 | fi | 
|  | 3230 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3231 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3232 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 3233 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 3234 | FreeBSD*|NetBSD*|OpenBSD*) | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3235 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
|  | 3236 | then | 
|  | 3237 | LINKFORSHARED="-Wl,--export-dynamic" | 
|  | 3238 | fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3239 | SunOS/5*) case $CC in | 
|  | 3240 | *gcc*) | 
| Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 3241 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 3242 | then | 
|  | 3243 | LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3244 | fi;; | 
|  | 3245 | esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3246 | esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3247 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3248 | echo "$ac_t""$LINKFORSHARED" 1>&6 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3249 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3250 |  | 
|  | 3251 | echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3252 | echo "configure:3253: checking CFLAGSFORSHARED" >&5 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3253 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
|  | 3254 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 3255 | case $ac_sys_system in | 
|  | 3256 | CYGWIN*) | 
|  | 3257 | # Cygwin needs CCSHARED when building extension DLLs | 
|  | 3258 | # but not when building the interpreter DLL. | 
|  | 3259 | CFLAGSFORSHARED='';; | 
|  | 3260 | *) | 
|  | 3261 | CFLAGSFORSHARED='$(CCSHARED)' | 
|  | 3262 | esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3263 | fi | 
|  | 3264 | echo "$ac_t""$CFLAGSFORSHARED" 1>&6 | 
|  | 3265 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3266 | # checks for libraries | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3267 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3268 | echo "configure:3269: checking for dlopen in -ldl" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3269 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3270 | 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] | 3271 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3272 | else | 
|  | 3273 | ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3274 | LIBS="-ldl  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3275 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3276 | #line 3277 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3277 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3278 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 3279 | /* We use char because int might match the return type of a gcc2 | 
|  | 3280 | builtin and then its argument prototype would still apply.  */ | 
|  | 3281 | char dlopen(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3282 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3283 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3284 | dlopen() | 
|  | 3285 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3286 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3287 | if { (eval echo configure:3288: \"$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] | 3288 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3289 | eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3290 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3291 | echo "configure: failed program was:" >&5 | 
|  | 3292 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3293 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3294 | eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3295 | fi | 
|  | 3296 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3297 | LIBS="$ac_save_LIBS" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3298 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3299 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3300 | 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] | 3301 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3302 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 
|  | 3303 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3304 | cat >> confdefs.h <<EOF | 
|  | 3305 | #define $ac_tr_lib 1 | 
|  | 3306 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3307 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3308 | LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3309 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3310 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3311 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3312 | fi | 
|  | 3313 | # Dynamic linking for SunOS/Solaris and SYSV | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3314 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3315 | echo "configure:3316: checking for shl_load in -ldld" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3316 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3317 | 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] | 3318 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3319 | else | 
|  | 3320 | ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3321 | LIBS="-ldld  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3322 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3323 | #line 3324 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3324 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3325 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 3326 | /* We use char because int might match the return type of a gcc2 | 
|  | 3327 | builtin and then its argument prototype would still apply.  */ | 
|  | 3328 | char shl_load(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3329 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3330 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3331 | shl_load() | 
|  | 3332 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3333 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3334 | if { (eval echo configure:3335: \"$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] | 3335 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3336 | eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3337 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3338 | echo "configure: failed program was:" >&5 | 
|  | 3339 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3340 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3341 | eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3342 | fi | 
|  | 3343 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3344 | LIBS="$ac_save_LIBS" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3345 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3346 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3347 | 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] | 3348 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3349 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 
|  | 3350 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3351 | cat >> confdefs.h <<EOF | 
|  | 3352 | #define $ac_tr_lib 1 | 
|  | 3353 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3354 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3355 | LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3356 |  | 
|  | 3357 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3358 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3359 | fi | 
|  | 3360 | # Dynamic linking for HP-UX | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3361 |  | 
|  | 3362 | # checks for system dependent C++ extensions support | 
|  | 3363 | case "$ac_sys_system" in | 
|  | 3364 | AIX*)	echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3365 | echo "configure:3366: checking for genuine AIX C++ extensions support" >&5 | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3366 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3367 | #line 3368 "configure" | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3368 | #include "confdefs.h" | 
|  | 3369 | #include "/usr/lpp/xlC/include/load.h" | 
|  | 3370 | int main() { | 
|  | 3371 | loadAndInit("", 0, "") | 
|  | 3372 | ; return 0; } | 
|  | 3373 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3374 | if { (eval echo configure:3375: \"$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] | 3375 | rm -rf conftest* | 
|  | 3376 | cat >> confdefs.h <<\EOF | 
|  | 3377 | #define AIX_GENUINE_CPLUSPLUS 1 | 
|  | 3378 | EOF | 
|  | 3379 |  | 
|  | 3380 | echo "$ac_t""yes" 1>&6 | 
|  | 3381 | else | 
|  | 3382 | echo "configure: failed program was:" >&5 | 
|  | 3383 | cat conftest.$ac_ext >&5 | 
|  | 3384 | rm -rf conftest* | 
|  | 3385 | echo "$ac_t""no" 1>&6 | 
|  | 3386 | fi | 
|  | 3387 | rm -f conftest*;; | 
|  | 3388 | *) ;; | 
|  | 3389 | esac | 
|  | 3390 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3391 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
|  | 3392 | # However on SGI IRIX, these exist but are broken. | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3393 | # BeOS' sockets are stashed in libnet. | 
|  | 3394 | case "$ac_sys_system" in | 
|  | 3395 | IRIX*) ;; | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3396 | *) | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3397 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3398 | echo "configure:3399: checking for t_open in -lnsl" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3399 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3400 | 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] | 3401 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3402 | else | 
|  | 3403 | ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3404 | LIBS="-lnsl  $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3405 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3406 | #line 3407 "configure" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3407 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3408 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 3409 | /* We use char because int might match the return type of a gcc2 | 
|  | 3410 | builtin and then its argument prototype would still apply.  */ | 
|  | 3411 | char t_open(); | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3412 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3413 | int main() { | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3414 | t_open() | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3415 | ; return 0; } | 
|  | 3416 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3417 | if { (eval echo configure:3418: \"$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] | 3418 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3419 | eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3420 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3421 | echo "configure: failed program was:" >&5 | 
|  | 3422 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3423 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3424 | eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3425 | fi | 
|  | 3426 | rm -f conftest* | 
|  | 3427 | LIBS="$ac_save_LIBS" | 
|  | 3428 |  | 
|  | 3429 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3430 | 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] | 3431 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3432 | LIBS="-lnsl $LIBS" | 
|  | 3433 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3434 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3435 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3436 | # SVR4 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3437 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3438 | echo "configure:3439: checking for socket in -lsocket" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3439 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3440 | 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] | 3441 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3442 | else | 
|  | 3443 | ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3444 | LIBS="-lsocket $LIBS $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3445 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3446 | #line 3447 "configure" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3447 | #include "confdefs.h" | 
|  | 3448 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 3449 | /* We use char because int might match the return type of a gcc2 | 
|  | 3450 | builtin and then its argument prototype would still apply.  */ | 
|  | 3451 | char socket(); | 
|  | 3452 |  | 
|  | 3453 | int main() { | 
|  | 3454 | socket() | 
|  | 3455 | ; return 0; } | 
|  | 3456 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3457 | if { (eval echo configure:3458: \"$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] | 3458 | rm -rf conftest* | 
|  | 3459 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|  | 3460 | else | 
|  | 3461 | echo "configure: failed program was:" >&5 | 
|  | 3462 | cat conftest.$ac_ext >&5 | 
|  | 3463 | rm -rf conftest* | 
|  | 3464 | eval "ac_cv_lib_$ac_lib_var=no" | 
|  | 3465 | fi | 
|  | 3466 | rm -f conftest* | 
|  | 3467 | LIBS="$ac_save_LIBS" | 
|  | 3468 |  | 
|  | 3469 | fi | 
|  | 3470 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|  | 3471 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3472 | LIBS="-lsocket $LIBS" | 
|  | 3473 | else | 
|  | 3474 | echo "$ac_t""no" 1>&6 | 
|  | 3475 | fi | 
|  | 3476 | # SVR4 sockets | 
| Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3477 | ;; | 
|  | 3478 | esac | 
|  | 3479 | case "$ac_sys_system" in | 
|  | 3480 | BeOS*) | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3481 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3482 | echo "configure:3483: checking for socket in -lnet" >&5 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3483 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3484 | 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] | 3485 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 3486 | else | 
|  | 3487 | ac_save_LIBS="$LIBS" | 
|  | 3488 | LIBS="-lnet $LIBS $LIBS" | 
|  | 3489 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3490 | #line 3491 "configure" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3491 | #include "confdefs.h" | 
|  | 3492 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 3493 | /* We use char because int might match the return type of a gcc2 | 
|  | 3494 | builtin and then its argument prototype would still apply.  */ | 
|  | 3495 | char socket(); | 
|  | 3496 |  | 
|  | 3497 | int main() { | 
|  | 3498 | socket() | 
|  | 3499 | ; return 0; } | 
|  | 3500 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3501 | if { (eval echo configure:3502: \"$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] | 3502 | rm -rf conftest* | 
|  | 3503 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|  | 3504 | else | 
|  | 3505 | echo "configure: failed program was:" >&5 | 
|  | 3506 | cat conftest.$ac_ext >&5 | 
|  | 3507 | rm -rf conftest* | 
|  | 3508 | eval "ac_cv_lib_$ac_lib_var=no" | 
|  | 3509 | fi | 
|  | 3510 | rm -f conftest* | 
|  | 3511 | LIBS="$ac_save_LIBS" | 
|  | 3512 |  | 
|  | 3513 | fi | 
|  | 3514 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|  | 3515 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3516 | LIBS="-lnet $LIBS" | 
|  | 3517 | else | 
|  | 3518 | echo "$ac_t""no" 1>&6 | 
|  | 3519 | fi | 
|  | 3520 | # BeOS | 
|  | 3521 | ;; | 
|  | 3522 | esac | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3523 |  | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3524 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3525 | echo "configure:3526: checking for --with-libs" >&5 | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3526 | # Check whether --with-libs or --without-libs was given. | 
|  | 3527 | if test "${with_libs+set}" = set; then | 
|  | 3528 | withval="$with_libs" | 
|  | 3529 |  | 
|  | 3530 | echo "$ac_t""$withval" 1>&6 | 
|  | 3531 | LIBS="$withval $LIBS" | 
|  | 3532 |  | 
|  | 3533 | else | 
|  | 3534 | echo "$ac_t""no" 1>&6 | 
|  | 3535 | fi | 
|  | 3536 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3537 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3538 | # Determine if signalmodule should be used. | 
|  | 3539 |  | 
|  | 3540 |  | 
|  | 3541 | echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3542 | echo "configure:3543: checking for --with-signal-module" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3543 | # Check whether --with-signal-module or --without-signal-module was given. | 
|  | 3544 | if test "${with_signal_module+set}" = set; then | 
|  | 3545 | withval="$with_signal_module" | 
|  | 3546 | : | 
|  | 3547 | fi | 
|  | 3548 |  | 
|  | 3549 |  | 
|  | 3550 | if test -z "$with_signal_module" | 
|  | 3551 | then with_signal_module="yes" | 
|  | 3552 | fi | 
|  | 3553 | echo "$ac_t""$with_signal_module" 1>&6 | 
|  | 3554 |  | 
|  | 3555 | if test "${with_signal_module}" = "yes"; then | 
|  | 3556 | USE_SIGNAL_MODULE="" | 
|  | 3557 | SIGNAL_OBJS="" | 
|  | 3558 | else | 
|  | 3559 | USE_SIGNAL_MODULE="#" | 
|  | 3560 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
|  | 3561 | fi | 
|  | 3562 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3563 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3564 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3565 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3566 |  | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3567 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3568 | echo "configure:3569: checking for --with-dec-threads" >&5 | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3569 |  | 
|  | 3570 | # Check whether --with-dec-threads or --without-dec-threads was given. | 
|  | 3571 | if test "${with_dec_threads+set}" = set; then | 
|  | 3572 | withval="$with_dec_threads" | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3573 |  | 
|  | 3574 | echo "$ac_t""$withval" 1>&6 | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3575 | LDLAST=-threads | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3576 | if test "${with_thread+set}" != set; then | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3577 | with_thread="$withval"; | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3578 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3579 | else | 
|  | 3580 | echo "$ac_t""no" 1>&6 | 
|  | 3581 | fi | 
|  | 3582 |  | 
|  | 3583 |  | 
|  | 3584 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3585 | echo "configure:3586: checking for --with-threads" >&5 | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3586 | # Check whether --with-threads or --without-threads was given. | 
|  | 3587 | if test "${with_threads+set}" = set; then | 
|  | 3588 | withval="$with_threads" | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3589 | : | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3590 | fi | 
|  | 3591 |  | 
|  | 3592 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3593 | # --with-thread is deprecated, but check for it anyway | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3594 | # Check whether --with-thread or --without-thread was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3595 | if test "${with_thread+set}" = set; then | 
|  | 3596 | withval="$with_thread" | 
| Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3597 |  | 
|  | 3598 | with_threads=$with_thread | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3599 | fi | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3600 |  | 
|  | 3601 |  | 
|  | 3602 | if test -z "$with_threads" | 
|  | 3603 | then with_threads="yes" | 
|  | 3604 | fi | 
|  | 3605 | echo "$ac_t""$with_threads" 1>&6 | 
|  | 3606 |  | 
|  | 3607 | if test "$with_threads" = "no" | 
|  | 3608 | then | 
|  | 3609 | USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3610 | elif test "$ac_cv_pthread_is_default" = yes | 
|  | 3611 | then | 
|  | 3612 | cat >> confdefs.h <<\EOF | 
|  | 3613 | #define WITH_THREAD 1 | 
|  | 3614 | EOF | 
|  | 3615 |  | 
|  | 3616 | cat >> confdefs.h <<\EOF | 
|  | 3617 | #define _POSIX_THREADS 1 | 
|  | 3618 | EOF | 
|  | 3619 |  | 
|  | 3620 | # Defining _REENTRANT on system with POSIX threads should not hurt. | 
|  | 3621 | cat >> confdefs.h <<\EOF | 
|  | 3622 | #define _REENTRANT 1 | 
|  | 3623 | EOF | 
|  | 3624 |  | 
|  | 3625 | posix_threads=yes | 
|  | 3626 | LIBOBJS="$LIBOBJS thread.o" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3627 | elif test "$ac_cv_kpthread" = "yes" | 
|  | 3628 | then | 
|  | 3629 | CC="$CC -Kpthread" | 
|  | 3630 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3631 | #define WITH_THREAD 1 | 
|  | 3632 | EOF | 
|  | 3633 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3634 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3635 | #define _POSIX_THREADS 1 | 
|  | 3636 | EOF | 
|  | 3637 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 3638 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3639 | LIBOBJS="$LIBOBJS thread.o" | 
|  | 3640 | else | 
|  | 3641 | if test ! -z "$with_threads" -a -d "$with_threads" | 
|  | 3642 | then LDFLAGS="$LDFLAGS -L$with_threads" | 
|  | 3643 | fi | 
|  | 3644 | if test ! -z "$withval" -a -d "$withval" | 
|  | 3645 | then LDFLAGS="$LDFLAGS -L$withval" | 
|  | 3646 | fi | 
|  | 3647 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3648 | #define _REENTRANT 1 | 
|  | 3649 | EOF | 
|  | 3650 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3651 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3652 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3653 | echo "configure:3654: checking for mach/cthreads.h" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3654 | 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] | 3655 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 3656 | else | 
|  | 3657 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3658 | #line 3659 "configure" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3659 | #include "confdefs.h" | 
|  | 3660 | #include <mach/cthreads.h> | 
|  | 3661 | EOF | 
|  | 3662 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3663 | { (eval echo configure:3664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3664 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3665 | if test -z "$ac_err"; then | 
|  | 3666 | rm -rf conftest* | 
|  | 3667 | eval "ac_cv_header_$ac_safe=yes" | 
|  | 3668 | else | 
|  | 3669 | echo "$ac_err" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3670 | echo "configure: failed program was:" >&5 | 
|  | 3671 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3672 | rm -rf conftest* | 
|  | 3673 | eval "ac_cv_header_$ac_safe=no" | 
|  | 3674 | fi | 
|  | 3675 | rm -f conftest* | 
|  | 3676 | fi | 
|  | 3677 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|  | 3678 | echo "$ac_t""yes" 1>&6 | 
|  | 3679 | cat >> confdefs.h <<\EOF | 
|  | 3680 | #define WITH_THREAD 1 | 
|  | 3681 | EOF | 
|  | 3682 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3683 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3684 | #define C_THREADS 1 | 
|  | 3685 | EOF | 
|  | 3686 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3687 | LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3688 | else | 
|  | 3689 | echo "$ac_t""no" 1>&6 | 
|  | 3690 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3691 | echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3692 | echo "configure:3693: checking for --with-pth" >&5 | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3693 | # Check whether --with-pth or --without-pth was given. | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3694 | if test "${with_pth+set}" = set; then | 
|  | 3695 | withval="$with_pth" | 
|  | 3696 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3697 | echo "$ac_t""$withval" 1>&6 | 
|  | 3698 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3699 | #define WITH_THREAD 1 | 
|  | 3700 | EOF | 
|  | 3701 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3702 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3703 | #define HAVE_PTH 1 | 
|  | 3704 | EOF | 
|  | 3705 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3706 | LIBS="-lpth $LIBS" | 
|  | 3707 | LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3708 | else | 
|  | 3709 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3710 | echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3711 |  | 
|  | 3712 | # Just looking for pthread_create in libpthread is not enough: | 
|  | 3713 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
|  | 3714 | # So we really have to include pthread.h, and then link. | 
|  | 3715 | _libs=$LIBS | 
|  | 3716 | LIBS="$LIBS -lpthread" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3717 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3718 | echo "configure:3719: checking for pthread_create in -lpthread" >&5 | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3719 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3720 | #line 3721 "configure" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3721 | #include "confdefs.h" | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3722 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3723 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3724 | void * start_routine (void *arg) { exit (0); } | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3725 | int main() { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3726 |  | 
|  | 3727 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3728 | ; return 0; } | 
|  | 3729 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3730 | if { (eval echo configure:3731: \"$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] | 3731 | rm -rf conftest* | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3732 |  | 
|  | 3733 | echo "$ac_t""yes" 1>&6 | 
|  | 3734 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3735 | #define WITH_THREAD 1 | 
|  | 3736 | EOF | 
|  | 3737 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3738 | case $ac_sys_system in | 
|  | 3739 | Darwin*) ;; | 
|  | 3740 | *) cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3741 | #define _POSIX_THREADS 1 | 
|  | 3742 | EOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 3743 |  | 
|  | 3744 | posix_threads=yes | 
|  | 3745 | ;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3746 | esac | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3747 | LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3748 | else | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3749 | echo "configure: failed program was:" >&5 | 
|  | 3750 | cat conftest.$ac_ext >&5 | 
|  | 3751 | rm -rf conftest* | 
|  | 3752 |  | 
|  | 3753 | LIBS=$_libs | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3754 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3755 | echo "configure:3756: checking for pthread_detach" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3756 | 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] | 3757 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 3758 | else | 
|  | 3759 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3760 | #line 3761 "configure" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3761 | #include "confdefs.h" | 
|  | 3762 | /* System header to define __stub macros and hopefully few prototypes, | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3763 | which can conflict with char pthread_detach(); below.  */ | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3764 | #include <assert.h> | 
|  | 3765 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 3766 | /* We use char because int might match the return type of a gcc2 | 
|  | 3767 | builtin and then its argument prototype would still apply.  */ | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3768 | char pthread_detach(); | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3769 |  | 
|  | 3770 | int main() { | 
|  | 3771 |  | 
|  | 3772 | /* The GNU C library defines this for functions which it implements | 
|  | 3773 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 3774 | something starting with __ and the normal name is an alias.  */ | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3775 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3776 | choke me | 
|  | 3777 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3778 | pthread_detach(); | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3779 | #endif | 
|  | 3780 |  | 
|  | 3781 | ; return 0; } | 
|  | 3782 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3783 | if { (eval echo configure:3784: \"$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] | 3784 | rm -rf conftest* | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3785 | eval "ac_cv_func_pthread_detach=yes" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3786 | else | 
|  | 3787 | echo "configure: failed program was:" >&5 | 
|  | 3788 | cat conftest.$ac_ext >&5 | 
|  | 3789 | rm -rf conftest* | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3790 | eval "ac_cv_func_pthread_detach=no" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3791 | fi | 
|  | 3792 | rm -f conftest* | 
|  | 3793 | fi | 
|  | 3794 |  | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3795 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3796 | echo "$ac_t""yes" 1>&6 | 
|  | 3797 | cat >> confdefs.h <<\EOF | 
|  | 3798 | #define WITH_THREAD 1 | 
|  | 3799 | EOF | 
|  | 3800 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3801 | case $ac_sys_system in | 
|  | 3802 | Darwin*) ;; | 
|  | 3803 | *) cat >> confdefs.h <<\EOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3804 | #define _POSIX_THREADS 1 | 
|  | 3805 | EOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 3806 |  | 
|  | 3807 | posix_threads=yes | 
|  | 3808 | ;; | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3809 | esac | 
|  | 3810 | LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3811 | else | 
|  | 3812 | echo "$ac_t""no" 1>&6 | 
|  | 3813 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3814 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3815 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3816 | echo "configure:3817: checking for kernel/OS.h" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3817 | 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] | 3818 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 3819 | else | 
|  | 3820 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3821 | #line 3822 "configure" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3822 | #include "confdefs.h" | 
|  | 3823 | #include <kernel/OS.h> | 
|  | 3824 | EOF | 
|  | 3825 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3826 | { (eval echo configure:3827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3827 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3828 | if test -z "$ac_err"; then | 
|  | 3829 | rm -rf conftest* | 
|  | 3830 | eval "ac_cv_header_$ac_safe=yes" | 
|  | 3831 | else | 
|  | 3832 | echo "$ac_err" >&5 | 
|  | 3833 | echo "configure: failed program was:" >&5 | 
|  | 3834 | cat conftest.$ac_ext >&5 | 
|  | 3835 | rm -rf conftest* | 
|  | 3836 | eval "ac_cv_header_$ac_safe=no" | 
|  | 3837 | fi | 
|  | 3838 | rm -f conftest* | 
|  | 3839 | fi | 
|  | 3840 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|  | 3841 | echo "$ac_t""yes" 1>&6 | 
|  | 3842 | cat >> confdefs.h <<\EOF | 
|  | 3843 | #define WITH_THREAD 1 | 
|  | 3844 | EOF | 
|  | 3845 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3846 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3847 | #define BEOS_THREADS 1 | 
|  | 3848 | EOF | 
|  | 3849 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3850 | LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3851 | else | 
|  | 3852 | echo "$ac_t""no" 1>&6 | 
|  | 3853 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3854 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3855 | echo "configure:3856: checking for pthread_create in -lpthreads" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3856 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3857 | 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] | 3858 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3859 | else | 
|  | 3860 | ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3861 | LIBS="-lpthreads  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3862 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3863 | #line 3864 "configure" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3864 | #include "confdefs.h" | 
|  | 3865 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 3866 | /* We use char because int might match the return type of a gcc2 | 
|  | 3867 | builtin and then its argument prototype would still apply.  */ | 
|  | 3868 | char pthread_create(); | 
|  | 3869 |  | 
|  | 3870 | int main() { | 
|  | 3871 | pthread_create() | 
|  | 3872 | ; return 0; } | 
|  | 3873 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3874 | if { (eval echo configure:3875: \"$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] | 3875 | rm -rf conftest* | 
|  | 3876 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|  | 3877 | else | 
|  | 3878 | echo "configure: failed program was:" >&5 | 
|  | 3879 | cat conftest.$ac_ext >&5 | 
|  | 3880 | rm -rf conftest* | 
|  | 3881 | eval "ac_cv_lib_$ac_lib_var=no" | 
|  | 3882 | fi | 
|  | 3883 | rm -f conftest* | 
|  | 3884 | LIBS="$ac_save_LIBS" | 
|  | 3885 |  | 
|  | 3886 | fi | 
|  | 3887 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|  | 3888 | echo "$ac_t""yes" 1>&6 | 
|  | 3889 | cat >> confdefs.h <<\EOF | 
|  | 3890 | #define WITH_THREAD 1 | 
|  | 3891 | EOF | 
|  | 3892 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3893 | cat >> confdefs.h <<\EOF | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3894 | #define _POSIX_THREADS 1 | 
|  | 3895 | EOF | 
|  | 3896 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 3897 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3898 | LIBS="$LIBS -lpthreads" | 
|  | 3899 | LIBOBJS="$LIBOBJS thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3900 | else | 
|  | 3901 | echo "$ac_t""no" 1>&6 | 
|  | 3902 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3903 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3904 | echo "configure:3905: checking for pthread_create in -lc_r" >&5 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3905 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3906 | 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] | 3907 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 3908 | else | 
|  | 3909 | ac_save_LIBS="$LIBS" | 
|  | 3910 | LIBS="-lc_r  $LIBS" | 
|  | 3911 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3912 | #line 3913 "configure" | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3913 | #include "confdefs.h" | 
|  | 3914 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 3915 | /* We use char because int might match the return type of a gcc2 | 
|  | 3916 | builtin and then its argument prototype would still apply.  */ | 
|  | 3917 | char pthread_create(); | 
|  | 3918 |  | 
|  | 3919 | int main() { | 
|  | 3920 | pthread_create() | 
|  | 3921 | ; return 0; } | 
|  | 3922 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3923 | if { (eval echo configure:3924: \"$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] | 3924 | rm -rf conftest* | 
|  | 3925 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|  | 3926 | else | 
|  | 3927 | echo "configure: failed program was:" >&5 | 
|  | 3928 | cat conftest.$ac_ext >&5 | 
|  | 3929 | rm -rf conftest* | 
|  | 3930 | eval "ac_cv_lib_$ac_lib_var=no" | 
|  | 3931 | fi | 
|  | 3932 | rm -f conftest* | 
|  | 3933 | LIBS="$ac_save_LIBS" | 
|  | 3934 |  | 
|  | 3935 | fi | 
|  | 3936 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|  | 3937 | echo "$ac_t""yes" 1>&6 | 
|  | 3938 | cat >> confdefs.h <<\EOF | 
|  | 3939 | #define WITH_THREAD 1 | 
|  | 3940 | EOF | 
|  | 3941 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3942 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3943 | #define _POSIX_THREADS 1 | 
|  | 3944 | EOF | 
|  | 3945 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 3946 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3947 | LIBS="$LIBS -lc_r" | 
|  | 3948 | LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3949 | else | 
|  | 3950 | echo "$ac_t""no" 1>&6 | 
|  | 3951 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3952 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3953 | echo "configure:3954: checking for __d6_pthread_create in -lthread" >&5 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3954 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3955 | 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] | 3956 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 3957 | else | 
|  | 3958 | ac_save_LIBS="$LIBS" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3959 | LIBS="-lthread  $LIBS" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3960 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3961 | #line 3962 "configure" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3962 | #include "confdefs.h" | 
|  | 3963 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 3964 | /* We use char because int might match the return type of a gcc2 | 
|  | 3965 | builtin and then its argument prototype would still apply.  */ | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3966 | char __d6_pthread_create(); | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3967 |  | 
|  | 3968 | int main() { | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3969 | __d6_pthread_create() | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3970 | ; return 0; } | 
|  | 3971 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3972 | if { (eval echo configure:3973: \"$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] | 3973 | rm -rf conftest* | 
|  | 3974 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|  | 3975 | else | 
|  | 3976 | echo "configure: failed program was:" >&5 | 
|  | 3977 | cat conftest.$ac_ext >&5 | 
|  | 3978 | rm -rf conftest* | 
|  | 3979 | eval "ac_cv_lib_$ac_lib_var=no" | 
|  | 3980 | fi | 
|  | 3981 | rm -f conftest* | 
|  | 3982 | LIBS="$ac_save_LIBS" | 
|  | 3983 |  | 
|  | 3984 | fi | 
|  | 3985 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|  | 3986 | echo "$ac_t""yes" 1>&6 | 
|  | 3987 | cat >> confdefs.h <<\EOF | 
|  | 3988 | #define WITH_THREAD 1 | 
|  | 3989 | EOF | 
|  | 3990 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3991 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3992 | #define _POSIX_THREADS 1 | 
|  | 3993 | EOF | 
|  | 3994 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 3995 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3996 | LIBS="$LIBS -lthread" | 
|  | 3997 | LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3998 | else | 
|  | 3999 | echo "$ac_t""no" 1>&6 | 
|  | 4000 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4001 | echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4002 | echo "configure:4003: checking for __pthread_create_system in -lpthread" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4003 | ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` | 
|  | 4004 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|  | 4005 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 4006 | else | 
|  | 4007 | ac_save_LIBS="$LIBS" | 
|  | 4008 | LIBS="-lpthread  $LIBS" | 
|  | 4009 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4010 | #line 4011 "configure" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4011 | #include "confdefs.h" | 
|  | 4012 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4013 | /* We use char because int might match the return type of a gcc2 | 
|  | 4014 | builtin and then its argument prototype would still apply.  */ | 
|  | 4015 | char __pthread_create_system(); | 
|  | 4016 |  | 
|  | 4017 | int main() { | 
|  | 4018 | __pthread_create_system() | 
|  | 4019 | ; return 0; } | 
|  | 4020 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4021 | if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4022 | rm -rf conftest* | 
|  | 4023 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|  | 4024 | else | 
|  | 4025 | echo "configure: failed program was:" >&5 | 
|  | 4026 | cat conftest.$ac_ext >&5 | 
|  | 4027 | rm -rf conftest* | 
|  | 4028 | eval "ac_cv_lib_$ac_lib_var=no" | 
|  | 4029 | fi | 
|  | 4030 | rm -f conftest* | 
|  | 4031 | LIBS="$ac_save_LIBS" | 
|  | 4032 |  | 
|  | 4033 | fi | 
|  | 4034 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|  | 4035 | echo "$ac_t""yes" 1>&6 | 
|  | 4036 | cat >> confdefs.h <<\EOF | 
|  | 4037 | #define WITH_THREAD 1 | 
|  | 4038 | EOF | 
|  | 4039 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4040 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4041 | #define _POSIX_THREADS 1 | 
|  | 4042 | EOF | 
|  | 4043 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4044 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4045 | LIBS="$LIBS -lpthread" | 
|  | 4046 | LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4047 | else | 
|  | 4048 | echo "$ac_t""no" 1>&6 | 
|  | 4049 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4050 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4051 | echo "configure:4052: checking for pthread_create in -lcma" >&5 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4052 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4053 | 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] | 4054 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 4055 | else | 
|  | 4056 | ac_save_LIBS="$LIBS" | 
|  | 4057 | LIBS="-lcma  $LIBS" | 
|  | 4058 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4059 | #line 4060 "configure" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4060 | #include "confdefs.h" | 
|  | 4061 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4062 | /* We use char because int might match the return type of a gcc2 | 
|  | 4063 | builtin and then its argument prototype would still apply.  */ | 
|  | 4064 | char pthread_create(); | 
|  | 4065 |  | 
|  | 4066 | int main() { | 
|  | 4067 | pthread_create() | 
|  | 4068 | ; return 0; } | 
|  | 4069 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4070 | if { (eval echo configure:4071: \"$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] | 4071 | rm -rf conftest* | 
|  | 4072 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|  | 4073 | else | 
|  | 4074 | echo "configure: failed program was:" >&5 | 
|  | 4075 | cat conftest.$ac_ext >&5 | 
|  | 4076 | rm -rf conftest* | 
|  | 4077 | eval "ac_cv_lib_$ac_lib_var=no" | 
|  | 4078 | fi | 
|  | 4079 | rm -f conftest* | 
|  | 4080 | LIBS="$ac_save_LIBS" | 
|  | 4081 |  | 
|  | 4082 | fi | 
|  | 4083 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|  | 4084 | echo "$ac_t""yes" 1>&6 | 
|  | 4085 | cat >> confdefs.h <<\EOF | 
|  | 4086 | #define WITH_THREAD 1 | 
|  | 4087 | EOF | 
|  | 4088 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4089 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4090 | #define _POSIX_THREADS 1 | 
|  | 4091 | EOF | 
|  | 4092 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4093 | posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4094 | LIBS="$LIBS -lcma" | 
|  | 4095 | LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4096 | else | 
|  | 4097 | echo "$ac_t""no" 1>&6 | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 4098 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4099 | USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 4100 | fi | 
|  | 4101 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4102 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4103 | fi | 
|  | 4104 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4105 | fi | 
|  | 4106 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4107 | fi | 
|  | 4108 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4109 | fi | 
|  | 4110 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4111 | fi | 
|  | 4112 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4113 | fi | 
|  | 4114 |  | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 4115 | fi | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 4116 | rm -f conftest* | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4117 | fi | 
|  | 4118 |  | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4119 | fi | 
|  | 4120 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4121 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4122 | if test "$posix_threads" = "yes"; then | 
|  | 4123 | echo $ac_n "checking if PTHREAD_SCOPE_SYSTEM is supported""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4124 | echo "configure:4125: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4125 | if eval "test \"`echo '$''{'ac_cv_pthread_system_supported'+set}'`\" = set"; then | 
|  | 4126 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 4127 | else | 
|  | 4128 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4129 | ac_cv_pthread_system_supported=no | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4130 | else | 
|  | 4131 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4132 | #line 4133 "configure" | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4133 | #include "confdefs.h" | 
|  | 4134 | #include <pthread.h> | 
|  | 4135 | void *foo(void *parm) { | 
|  | 4136 | return NULL; | 
|  | 4137 | } | 
|  | 4138 | main() { | 
|  | 4139 | pthread_attr_t attr; | 
|  | 4140 | if (pthread_attr_init(&attr)) exit(-1); | 
|  | 4141 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
|  | 4142 | if (pthread_create(NULL, &attr, foo, NULL)) exit(-1); | 
|  | 4143 | exit(0); | 
|  | 4144 | } | 
|  | 4145 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4146 | if { (eval echo configure:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4147 | then | 
|  | 4148 | ac_cv_pthread_system_supported=yes | 
|  | 4149 | else | 
|  | 4150 | echo "configure: failed program was:" >&5 | 
|  | 4151 | cat conftest.$ac_ext >&5 | 
|  | 4152 | rm -fr conftest* | 
|  | 4153 | ac_cv_pthread_system_supported=no | 
|  | 4154 | fi | 
|  | 4155 | rm -fr conftest* | 
|  | 4156 | fi | 
|  | 4157 |  | 
|  | 4158 |  | 
|  | 4159 | fi | 
|  | 4160 |  | 
|  | 4161 | echo "$ac_t""$ac_cv_pthread_system_supported" 1>&6 | 
|  | 4162 | if test "$ac_cv_pthread_system_supported" = "yes"; then | 
|  | 4163 | cat >> confdefs.h <<\EOF | 
|  | 4164 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 | 
|  | 4165 | EOF | 
|  | 4166 |  | 
|  | 4167 | fi | 
|  | 4168 | fi | 
|  | 4169 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4170 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4171 | echo "configure:4172: checking for usconfig in -lmpc" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4172 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4173 | 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] | 4174 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4175 | else | 
|  | 4176 | ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4177 | LIBS="-lmpc  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4178 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4179 | #line 4180 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4180 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4181 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4182 | /* We use char because int might match the return type of a gcc2 | 
|  | 4183 | builtin and then its argument prototype would still apply.  */ | 
|  | 4184 | char usconfig(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4185 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4186 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4187 | usconfig() | 
|  | 4188 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4189 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4190 | if { (eval echo configure:4191: \"$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] | 4191 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4192 | eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4193 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4194 | echo "configure: failed program was:" >&5 | 
|  | 4195 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4196 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4197 | eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4198 | fi | 
|  | 4199 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4200 | LIBS="$ac_save_LIBS" | 
|  | 4201 |  | 
|  | 4202 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4203 | 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] | 4204 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4205 | cat >> confdefs.h <<\EOF | 
|  | 4206 | #define WITH_THREAD 1 | 
|  | 4207 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4208 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4209 | LIBS="$LIBS -lmpc" | 
|  | 4210 | LIBOBJS="$LIBOBJS thread.o" | 
|  | 4211 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +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 | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4214 | fi | 
|  | 4215 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4216 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4217 | echo "configure:4218: checking for thr_create in -lthread" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4218 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4219 | 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] | 4220 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4221 | else | 
|  | 4222 | ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4223 | LIBS="-lthread  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4224 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4225 | #line 4226 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4226 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4227 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4228 | /* We use char because int might match the return type of a gcc2 | 
|  | 4229 | builtin and then its argument prototype would still apply.  */ | 
|  | 4230 | char thr_create(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4231 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4232 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4233 | thr_create() | 
|  | 4234 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4235 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4236 | if { (eval echo configure:4237: \"$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] | 4237 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4238 | eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4239 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4240 | echo "configure: failed program was:" >&5 | 
|  | 4241 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4242 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4243 | eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4244 | fi | 
|  | 4245 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4246 | LIBS="$ac_save_LIBS" | 
|  | 4247 |  | 
|  | 4248 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4249 | 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] | 4250 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4251 | cat >> confdefs.h <<\EOF | 
|  | 4252 | #define WITH_THREAD 1 | 
|  | 4253 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4254 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4255 | LIBS="$LIBS -lthread" | 
|  | 4256 | LIBOBJS="$LIBOBJS thread.o" | 
|  | 4257 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4258 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4259 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4260 | fi | 
|  | 4261 |  | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4262 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4263 | if test "$USE_THREAD_MODULE" != "#" | 
|  | 4264 | then | 
|  | 4265 | # If the above checks didn't disable threads, (at least) OSF1 | 
|  | 4266 | # needs this '-threads' argument during linking. | 
|  | 4267 | case $ac_sys_system in | 
|  | 4268 | OSF1) LDLAST=-threads;; | 
|  | 4269 | esac | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4270 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4271 | fi | 
|  | 4272 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4273 | # Check for enable-ipv6 | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4274 | echo $ac_n "checking if --enable-ipv6 is specified""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4275 | echo "configure:4276: checking if --enable-ipv6 is specified" >&5 | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4276 | # Check whether --enable-ipv6 or --disable-ipv6 was given. | 
|  | 4277 | if test "${enable_ipv6+set}" = set; then | 
|  | 4278 | enableval="$enable_ipv6" | 
|  | 4279 | case "$enableval" in | 
|  | 4280 | no) | 
|  | 4281 | echo "$ac_t""no" 1>&6 | 
|  | 4282 | ipv6=no | 
|  | 4283 | ;; | 
|  | 4284 | *)   echo "$ac_t""yes" 1>&6 | 
|  | 4285 | cat >> confdefs.h <<\EOF | 
|  | 4286 | #define ENABLE_IPV6 1 | 
|  | 4287 | EOF | 
|  | 4288 |  | 
|  | 4289 | ipv6=yes | 
|  | 4290 | ;; | 
|  | 4291 | esac | 
|  | 4292 | else | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4293 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4294 | if test "$cross_compiling" = yes; then | 
|  | 4295 | echo "$ac_t""no" 1>&6 | 
|  | 4296 | ipv6=no | 
|  | 4297 |  | 
|  | 4298 | else | 
|  | 4299 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4300 | #line 4301 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4301 | #include "confdefs.h" | 
|  | 4302 | /* AF_INET6 available check */ | 
|  | 4303 | #include <sys/types.h> | 
|  | 4304 | #include <sys/socket.h> | 
|  | 4305 | main() | 
|  | 4306 | { | 
|  | 4307 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) | 
|  | 4308 | exit(1); | 
|  | 4309 | else | 
|  | 4310 | exit(0); | 
|  | 4311 | } | 
|  | 4312 |  | 
|  | 4313 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4314 | if { (eval echo configure:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4315 | then | 
|  | 4316 | echo "$ac_t""yes" 1>&6 | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4317 | ipv6=yes | 
|  | 4318 | else | 
|  | 4319 | echo "configure: failed program was:" >&5 | 
|  | 4320 | cat conftest.$ac_ext >&5 | 
|  | 4321 | rm -fr conftest* | 
|  | 4322 | echo "$ac_t""no" 1>&6 | 
|  | 4323 | ipv6=no | 
|  | 4324 | fi | 
|  | 4325 | rm -fr conftest* | 
|  | 4326 | fi | 
|  | 4327 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4328 |  | 
|  | 4329 | if test "$ipv6" = "yes"; then | 
|  | 4330 | echo $ac_n "checking if RFC2553 API is available""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4331 | echo "configure:4332: checking if RFC2553 API is available" >&5 | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4332 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4333 | #line 4334 "configure" | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4334 | #include "confdefs.h" | 
|  | 4335 | #include <sys/types.h> | 
|  | 4336 | #include <netinet/in.h> | 
|  | 4337 | int main() { | 
|  | 4338 | struct sockaddr_in6 x; | 
|  | 4339 | x.sin6_scope_id; | 
|  | 4340 | ; return 0; } | 
|  | 4341 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4342 | if { (eval echo configure:4343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4343 | rm -rf conftest* | 
|  | 4344 | echo "$ac_t""yes" 1>&6 | 
|  | 4345 | ipv6=yes | 
|  | 4346 | else | 
|  | 4347 | echo "configure: failed program was:" >&5 | 
|  | 4348 | cat conftest.$ac_ext >&5 | 
|  | 4349 | rm -rf conftest* | 
|  | 4350 | echo "$ac_t""no" 1>&6 | 
|  | 4351 | ipv6=no | 
|  | 4352 | fi | 
|  | 4353 | rm -f conftest* | 
|  | 4354 | fi | 
|  | 4355 |  | 
|  | 4356 | if test "$ipv6" = "yes"; then | 
|  | 4357 | cat >> confdefs.h <<\EOF | 
|  | 4358 | #define ENABLE_IPV6 1 | 
|  | 4359 | EOF | 
|  | 4360 |  | 
|  | 4361 | fi | 
|  | 4362 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4363 | fi | 
|  | 4364 |  | 
|  | 4365 |  | 
|  | 4366 | ipv6type=unknown | 
|  | 4367 | ipv6lib=none | 
|  | 4368 | ipv6trylibc=no | 
|  | 4369 |  | 
|  | 4370 | if test "$ipv6" = "yes"; then | 
|  | 4371 | echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4372 | echo "configure:4373: checking ipv6 stack type" >&5 | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 4373 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
|  | 4374 | do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4375 | case $i in | 
|  | 4376 | inria) | 
|  | 4377 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4378 | #line 4379 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4379 | #include "confdefs.h" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4380 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4381 | #include <netinet/in.h> | 
|  | 4382 | #ifdef IPV6_INRIA_VERSION | 
|  | 4383 | yes | 
|  | 4384 | #endif | 
|  | 4385 | EOF | 
|  | 4386 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 4387 | egrep "yes" >/dev/null 2>&1; then | 
|  | 4388 | rm -rf conftest* | 
|  | 4389 | ipv6type=$i; | 
|  | 4390 | OPT="-DINET6 $OPT" | 
|  | 4391 | fi | 
|  | 4392 | rm -f conftest* | 
|  | 4393 |  | 
|  | 4394 | ;; | 
|  | 4395 | kame) | 
|  | 4396 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4397 | #line 4398 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4398 | #include "confdefs.h" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4399 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4400 | #include <netinet/in.h> | 
|  | 4401 | #ifdef __KAME__ | 
|  | 4402 | yes | 
|  | 4403 | #endif | 
|  | 4404 | EOF | 
|  | 4405 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 4406 | egrep "yes" >/dev/null 2>&1; then | 
|  | 4407 | rm -rf conftest* | 
|  | 4408 | ipv6type=$i; | 
|  | 4409 | ipv6lib=inet6 | 
|  | 4410 | ipv6libdir=/usr/local/v6/lib | 
|  | 4411 | ipv6trylibc=yes | 
|  | 4412 | OPT="-DINET6 $OPT" | 
|  | 4413 | fi | 
|  | 4414 | rm -f conftest* | 
|  | 4415 |  | 
|  | 4416 | ;; | 
|  | 4417 | linux-glibc) | 
|  | 4418 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4419 | #line 4420 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4420 | #include "confdefs.h" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4421 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4422 | #include <features.h> | 
|  | 4423 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
|  | 4424 | yes | 
|  | 4425 | #endif | 
|  | 4426 | EOF | 
|  | 4427 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 4428 | egrep "yes" >/dev/null 2>&1; then | 
|  | 4429 | rm -rf conftest* | 
|  | 4430 | ipv6type=$i; | 
|  | 4431 | ipv6trylibc=yes | 
|  | 4432 | OPT="-DINET6 $OPT" | 
|  | 4433 | fi | 
|  | 4434 | rm -f conftest* | 
|  | 4435 |  | 
|  | 4436 | ;; | 
|  | 4437 | linux-inet6) | 
|  | 4438 | if test -d /usr/inet6; then | 
|  | 4439 | ipv6type=$i | 
|  | 4440 | ipv6lib=inet6 | 
|  | 4441 | ipv6libdir=/usr/inet6/lib | 
|  | 4442 | OPT="-DINET6 -I/usr/inet6/include $OPT" | 
|  | 4443 | fi | 
|  | 4444 | ;; | 
|  | 4445 | solaris) | 
|  | 4446 | if test -f /etc/netconfig; then | 
|  | 4447 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then | 
|  | 4448 | ipv6type=$i | 
|  | 4449 | ipv6trylibc=yes | 
|  | 4450 | OPT="-DINET6 $OPT" | 
|  | 4451 | fi | 
|  | 4452 | fi | 
|  | 4453 | ;; | 
|  | 4454 | toshiba) | 
|  | 4455 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4456 | #line 4457 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4457 | #include "confdefs.h" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4458 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4459 | #include <sys/param.h> | 
|  | 4460 | #ifdef _TOSHIBA_INET6 | 
|  | 4461 | yes | 
|  | 4462 | #endif | 
|  | 4463 | EOF | 
|  | 4464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 4465 | egrep "yes" >/dev/null 2>&1; then | 
|  | 4466 | rm -rf conftest* | 
|  | 4467 | ipv6type=$i; | 
|  | 4468 | ipv6lib=inet6; | 
|  | 4469 | ipv6libdir=/usr/local/v6/lib; | 
|  | 4470 | OPT="-DINET6 $OPT" | 
|  | 4471 | fi | 
|  | 4472 | rm -f conftest* | 
|  | 4473 |  | 
|  | 4474 | ;; | 
|  | 4475 | v6d) | 
|  | 4476 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4477 | #line 4478 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4478 | #include "confdefs.h" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4479 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4480 | #include </usr/local/v6/include/sys/v6config.h> | 
|  | 4481 | #ifdef __V6D__ | 
|  | 4482 | yes | 
|  | 4483 | #endif | 
|  | 4484 | EOF | 
|  | 4485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 4486 | egrep "yes" >/dev/null 2>&1; then | 
|  | 4487 | rm -rf conftest* | 
|  | 4488 | ipv6type=$i; | 
|  | 4489 | ipv6lib=v6; | 
|  | 4490 | ipv6libdir=/usr/local/v6/lib; | 
|  | 4491 | OPT="-I/usr/local/v6/include $OPT" | 
|  | 4492 | fi | 
|  | 4493 | rm -f conftest* | 
|  | 4494 |  | 
|  | 4495 | ;; | 
|  | 4496 | zeta) | 
|  | 4497 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4498 | #line 4499 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4499 | #include "confdefs.h" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4500 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4501 | #include <sys/param.h> | 
|  | 4502 | #ifdef _ZETA_MINAMI_INET6 | 
|  | 4503 | yes | 
|  | 4504 | #endif | 
|  | 4505 | EOF | 
|  | 4506 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 4507 | egrep "yes" >/dev/null 2>&1; then | 
|  | 4508 | rm -rf conftest* | 
|  | 4509 | ipv6type=$i; | 
|  | 4510 | ipv6lib=inet6; | 
|  | 4511 | ipv6libdir=/usr/local/v6/lib; | 
|  | 4512 | OPT="-DINET6 $OPT" | 
|  | 4513 | fi | 
|  | 4514 | rm -f conftest* | 
|  | 4515 |  | 
|  | 4516 | ;; | 
|  | 4517 | esac | 
|  | 4518 | if test "$ipv6type" != "unknown"; then | 
|  | 4519 | break | 
|  | 4520 | fi | 
|  | 4521 | done | 
|  | 4522 | echo "$ac_t""$ipv6type" 1>&6 | 
|  | 4523 | fi | 
|  | 4524 |  | 
|  | 4525 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
|  | 4526 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
|  | 4527 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
|  | 4528 | echo "using lib$ipv6lib" | 
|  | 4529 | else | 
|  | 4530 | if test $ipv6trylibc = "yes"; then | 
|  | 4531 | echo "using libc" | 
|  | 4532 | else | 
|  | 4533 | echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
|  | 4534 | echo "You need to fetch lib$ipv6lib.a from appropriate" | 
|  | 4535 | echo 'ipv6 kit and compile beforehand.' | 
|  | 4536 | exit 1 | 
|  | 4537 | fi | 
|  | 4538 | fi | 
|  | 4539 | fi | 
|  | 4540 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4541 | # Check for GC support | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4542 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4543 | echo "configure:4544: checking for --with-cycle-gc" >&5 | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4544 | # Check whether --with-cycle-gc or --without-cycle-gc was given. | 
|  | 4545 | if test "${with_cycle_gc+set}" = set; then | 
|  | 4546 | withval="$with_cycle_gc" | 
|  | 4547 | : | 
|  | 4548 | fi | 
|  | 4549 |  | 
|  | 4550 |  | 
|  | 4551 | if test -z "$with_cycle_gc" | 
|  | 4552 | then with_cycle_gc="yes" | 
|  | 4553 | fi | 
| Neil Schemenauer | cf22946 | 2001-08-29 23:58:47 +0000 | [diff] [blame] | 4554 | if test "$with_cycle_gc" != "no" | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4555 | then | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4556 | cat >> confdefs.h <<\EOF | 
|  | 4557 | #define WITH_CYCLE_GC 1 | 
|  | 4558 | EOF | 
|  | 4559 |  | 
|  | 4560 | fi | 
|  | 4561 | echo "$ac_t""$with_cycle_gc" 1>&6 | 
|  | 4562 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4563 | # Check for Python-specific malloc support | 
|  | 4564 | echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4565 | echo "configure:4566: checking for --with-pymalloc" >&5 | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4566 | # Check whether --with-pymalloc or --without-pymalloc was given. | 
|  | 4567 | if test "${with_pymalloc+set}" = set; then | 
|  | 4568 | withval="$with_pymalloc" | 
|  | 4569 |  | 
|  | 4570 | if test "$withval" != no | 
|  | 4571 | then cat >> confdefs.h <<\EOF | 
|  | 4572 | #define WITH_PYMALLOC 1 | 
|  | 4573 | EOF | 
|  | 4574 | echo "$ac_t""yes" 1>&6 | 
|  | 4575 | else echo "$ac_t""no" 1>&6 | 
|  | 4576 | fi | 
|  | 4577 | else | 
|  | 4578 | echo "$ac_t""no" 1>&6 | 
|  | 4579 | fi | 
|  | 4580 |  | 
|  | 4581 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4582 | # Check for --with-wctype-functions | 
|  | 4583 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4584 | echo "configure:4585: checking for --with-wctype-functions" >&5 | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4585 | # Check whether --with-wctype-functions or --without-wctype-functions was given. | 
|  | 4586 | if test "${with_wctype_functions+set}" = set; then | 
|  | 4587 | withval="$with_wctype_functions" | 
|  | 4588 |  | 
|  | 4589 | if test "$withval" != no | 
|  | 4590 | then cat >> confdefs.h <<\EOF | 
|  | 4591 | #define WANT_WCTYPE_FUNCTIONS 1 | 
|  | 4592 | EOF | 
|  | 4593 | echo "$ac_t""yes" 1>&6 | 
|  | 4594 | else echo "$ac_t""no" 1>&6 | 
|  | 4595 | fi | 
|  | 4596 | else | 
|  | 4597 | echo "$ac_t""no" 1>&6 | 
|  | 4598 | fi | 
|  | 4599 |  | 
|  | 4600 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4601 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4602 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 4603 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4604 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4605 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4606 | echo "configure:4607: checking for --with-sgi-dl" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4607 | # Check whether --with-sgi-dl or --without-sgi-dl was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4608 | if test "${with_sgi_dl+set}" = set; then | 
|  | 4609 | withval="$with_sgi_dl" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4610 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4611 | echo "$ac_t""$withval" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4612 | cat >> confdefs.h <<\EOF | 
|  | 4613 | #define WITH_SGI_DL 1 | 
|  | 4614 | EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4615 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4616 | DYNLOADFILE="dynload_dl.o" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4617 | dldir=$withval | 
| Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 4618 | if test ! -z "$dldir" -a -d "$dldir" | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4619 | then LDFLAGS="$LDFLAGS -L$dldir" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4620 | 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] | 4621 | fi | 
|  | 4622 | DLINCLDIR=${dldir} | 
|  | 4623 | LIBS="$LIBS -ldl -lmld" | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4624 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4625 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4626 | fi | 
|  | 4627 |  | 
|  | 4628 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4629 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4630 | echo "configure:4631: checking for --with-dl-dld" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4631 | # Check whether --with-dl-dld or --without-dl-dld was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4632 | if test "${with_dl_dld+set}" = set; then | 
|  | 4633 | withval="$with_dl_dld" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4634 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4635 | echo "$ac_t""$withval" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4636 | cat >> confdefs.h <<\EOF | 
|  | 4637 | #define WITH_DL_DLD 1 | 
|  | 4638 | EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4639 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4640 | DYNLOADFILE="dynload_dl.o" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4641 | dldir=`echo "$withval" | sed 's/,.*//'` | 
|  | 4642 | dlddir=`echo "$withval" | sed 's/.*,//'` | 
| Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 4643 | if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir" | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4644 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4645 | 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] | 4646 | fi | 
|  | 4647 | DLINCLDIR=${dldir} | 
|  | 4648 | LIBS="$LIBS -ldl -ldld" | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4649 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4650 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4651 | fi | 
|  | 4652 |  | 
|  | 4653 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4654 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
|  | 4655 | # platforms, such as AIX, have dlopen(), but don't want to use it. | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4656 | for ac_func in dlopen | 
|  | 4657 | do | 
|  | 4658 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4659 | echo "configure:4660: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4660 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4661 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 4662 | else | 
|  | 4663 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4664 | #line 4665 "configure" | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4665 | #include "confdefs.h" | 
|  | 4666 | /* System header to define __stub macros and hopefully few prototypes, | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4667 | which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4668 | #include <assert.h> | 
|  | 4669 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4670 | /* We use char because int might match the return type of a gcc2 | 
|  | 4671 | builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4672 | char $ac_func(); | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4673 |  | 
|  | 4674 | int main() { | 
|  | 4675 |  | 
|  | 4676 | /* The GNU C library defines this for functions which it implements | 
|  | 4677 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 4678 | something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4679 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4680 | choke me | 
|  | 4681 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4682 | $ac_func(); | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4683 | #endif | 
|  | 4684 |  | 
|  | 4685 | ; return 0; } | 
|  | 4686 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4687 | if { (eval echo configure:4688: \"$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] | 4688 | rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4689 | eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4690 | else | 
|  | 4691 | echo "configure: failed program was:" >&5 | 
|  | 4692 | cat conftest.$ac_ext >&5 | 
|  | 4693 | rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4694 | eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4695 | fi | 
|  | 4696 | rm -f conftest* | 
|  | 4697 | fi | 
|  | 4698 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4699 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4700 | echo "$ac_t""yes" 1>&6 | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4701 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 4702 | cat >> confdefs.h <<EOF | 
|  | 4703 | #define $ac_tr_func 1 | 
|  | 4704 | EOF | 
|  | 4705 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4706 | else | 
|  | 4707 | echo "$ac_t""no" 1>&6 | 
|  | 4708 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4709 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4710 |  | 
|  | 4711 |  | 
|  | 4712 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
|  | 4713 | # loading of modules. | 
|  | 4714 |  | 
|  | 4715 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4716 | echo "configure:4717: checking DYNLOADFILE" >&5 | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4717 | if test -z "$DYNLOADFILE" | 
|  | 4718 | then | 
|  | 4719 | case $ac_sys_system/$ac_sys_release in | 
|  | 4720 | AIX*) DYNLOADFILE="dynload_aix.o";; | 
|  | 4721 | BeOS*) DYNLOADFILE="dynload_beos.o";; | 
|  | 4722 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4723 | Darwin/*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4724 | *) | 
|  | 4725 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
|  | 4726 | # out any dynamic loading | 
|  | 4727 | if test "$ac_cv_func_dlopen" = yes | 
|  | 4728 | then DYNLOADFILE="dynload_shlib.o" | 
|  | 4729 | else DYNLOADFILE="dynload_stub.o" | 
|  | 4730 | fi | 
|  | 4731 | ;; | 
|  | 4732 | esac | 
|  | 4733 | fi | 
|  | 4734 | echo "$ac_t""$DYNLOADFILE" 1>&6 | 
|  | 4735 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
|  | 4736 | then | 
|  | 4737 | cat >> confdefs.h <<\EOF | 
|  | 4738 | #define HAVE_DYNAMIC_LOADING 1 | 
|  | 4739 | EOF | 
|  | 4740 |  | 
|  | 4741 | fi | 
|  | 4742 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4743 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
|  | 4744 |  | 
|  | 4745 |  | 
|  | 4746 | echo $ac_n "checking MACHDEP_OBJS""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4747 | echo "configure:4748: checking MACHDEP_OBJS" >&5 | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4748 | if test -z "$MACHDEP_OBJS" | 
|  | 4749 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4750 | MACHDEP_OBJS=$extra_machdep_objs | 
|  | 4751 | else | 
|  | 4752 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4753 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4754 | echo "$ac_t""MACHDEP_OBJS" 1>&6 | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4755 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4756 | # checks for library functions | 
| Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 4757 | for ac_func in alarm chown chroot clock confstr ctermid ctermid_r execv \ | 
| Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4758 | flock fork fsync fdatasync fpathconf ftime ftruncate \ | 
| Martin v. Löwis | f95dd0a | 2001-08-15 17:14:33 +0000 | [diff] [blame] | 4759 | gai_strerror getgroups getlogin getpeername getpid getpwent getwd \ | 
| Martin v. Löwis | 864e9ff | 2001-08-04 22:32:03 +0000 | [diff] [blame] | 4760 | hstrerror inet_pton kill link lstat mkfifo mktime mremap \ | 
| Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 4761 | nice pathconf pause plock poll pthread_init \ | 
| Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4762 | putenv readlink \ | 
| Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 4763 | select setegid seteuid setgid \ | 
| Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 4764 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ | 
| Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4765 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ | 
| Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 4766 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Thomas Wouters | c2c12dc | 2001-07-11 14:45:34 +0000 | [diff] [blame] | 4767 | truncate uname waitpid _getpty getpriority | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4768 | do | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4769 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4770 | echo "configure:4771: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4771 | 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] | 4772 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4773 | else | 
|  | 4774 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4775 | #line 4776 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4776 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4777 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 4778 | which can conflict with char $ac_func(); below.  */ | 
|  | 4779 | #include <assert.h> | 
|  | 4780 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4781 | /* We use char because int might match the return type of a gcc2 | 
|  | 4782 | builtin and then its argument prototype would still apply.  */ | 
|  | 4783 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4784 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4785 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4786 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4787 | /* The GNU C library defines this for functions which it implements | 
|  | 4788 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 4789 | something starting with __ and the normal name is an alias.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4790 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4791 | choke me | 
|  | 4792 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4793 | $ac_func(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4794 | #endif | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4795 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4796 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4797 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4798 | if { (eval echo configure:4799: \"$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] | 4799 | rm -rf conftest* | 
|  | 4800 | eval "ac_cv_func_$ac_func=yes" | 
|  | 4801 | else | 
|  | 4802 | echo "configure: failed program was:" >&5 | 
|  | 4803 | cat conftest.$ac_ext >&5 | 
|  | 4804 | rm -rf conftest* | 
|  | 4805 | eval "ac_cv_func_$ac_func=no" | 
|  | 4806 | fi | 
|  | 4807 | rm -f conftest* | 
|  | 4808 | fi | 
|  | 4809 |  | 
|  | 4810 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|  | 4811 | echo "$ac_t""yes" 1>&6 | 
|  | 4812 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 4813 | cat >> confdefs.h <<EOF | 
|  | 4814 | #define $ac_tr_func 1 | 
|  | 4815 | EOF | 
|  | 4816 |  | 
|  | 4817 | else | 
|  | 4818 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4819 | fi | 
|  | 4820 | done | 
|  | 4821 |  | 
|  | 4822 |  | 
|  | 4823 | # check for openpty and forkpty | 
|  | 4824 |  | 
|  | 4825 | for ac_func in openpty | 
|  | 4826 | do | 
|  | 4827 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4828 | echo "configure:4829: checking for $ac_func" >&5 | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4829 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|  | 4830 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 4831 | else | 
|  | 4832 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4833 | #line 4834 "configure" | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4834 | #include "confdefs.h" | 
|  | 4835 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 4836 | which can conflict with char $ac_func(); below.  */ | 
|  | 4837 | #include <assert.h> | 
|  | 4838 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4839 | /* We use char because int might match the return type of a gcc2 | 
|  | 4840 | builtin and then its argument prototype would still apply.  */ | 
|  | 4841 | char $ac_func(); | 
|  | 4842 |  | 
|  | 4843 | int main() { | 
|  | 4844 |  | 
|  | 4845 | /* The GNU C library defines this for functions which it implements | 
|  | 4846 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 4847 | something starting with __ and the normal name is an alias.  */ | 
|  | 4848 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 4849 | choke me | 
|  | 4850 | #else | 
|  | 4851 | $ac_func(); | 
|  | 4852 | #endif | 
|  | 4853 |  | 
|  | 4854 | ; return 0; } | 
|  | 4855 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4856 | if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4857 | rm -rf conftest* | 
|  | 4858 | eval "ac_cv_func_$ac_func=yes" | 
|  | 4859 | else | 
|  | 4860 | echo "configure: failed program was:" >&5 | 
|  | 4861 | cat conftest.$ac_ext >&5 | 
|  | 4862 | rm -rf conftest* | 
|  | 4863 | eval "ac_cv_func_$ac_func=no" | 
|  | 4864 | fi | 
|  | 4865 | rm -f conftest* | 
|  | 4866 | fi | 
|  | 4867 |  | 
|  | 4868 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|  | 4869 | echo "$ac_t""yes" 1>&6 | 
|  | 4870 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 4871 | cat >> confdefs.h <<EOF | 
|  | 4872 | #define $ac_tr_func 1 | 
|  | 4873 | EOF | 
|  | 4874 |  | 
|  | 4875 | else | 
|  | 4876 | echo "$ac_t""no" 1>&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4877 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4878 | echo "configure:4879: checking for openpty in -lutil" >&5 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4879 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4880 | 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] | 4881 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 4882 | else | 
|  | 4883 | ac_save_LIBS="$LIBS" | 
|  | 4884 | LIBS="-lutil  $LIBS" | 
|  | 4885 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4886 | #line 4887 "configure" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4887 | #include "confdefs.h" | 
|  | 4888 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4889 | /* We use char because int might match the return type of a gcc2 | 
|  | 4890 | builtin and then its argument prototype would still apply.  */ | 
|  | 4891 | char openpty(); | 
|  | 4892 |  | 
|  | 4893 | int main() { | 
|  | 4894 | openpty() | 
|  | 4895 | ; return 0; } | 
|  | 4896 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4897 | if { (eval echo configure:4898: \"$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] | 4898 | rm -rf conftest* | 
|  | 4899 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|  | 4900 | else | 
|  | 4901 | echo "configure: failed program was:" >&5 | 
|  | 4902 | cat conftest.$ac_ext >&5 | 
|  | 4903 | rm -rf conftest* | 
|  | 4904 | eval "ac_cv_lib_$ac_lib_var=no" | 
|  | 4905 | fi | 
|  | 4906 | rm -f conftest* | 
|  | 4907 | LIBS="$ac_save_LIBS" | 
|  | 4908 |  | 
|  | 4909 | fi | 
|  | 4910 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|  | 4911 | echo "$ac_t""yes" 1>&6 | 
|  | 4912 | cat >> confdefs.h <<\EOF | 
|  | 4913 | #define HAVE_OPENPTY 1 | 
|  | 4914 | EOF | 
|  | 4915 | LIBS="$LIBS -lutil" | 
|  | 4916 | else | 
|  | 4917 | echo "$ac_t""no" 1>&6 | 
|  | 4918 | fi | 
|  | 4919 |  | 
|  | 4920 | fi | 
|  | 4921 | done | 
|  | 4922 |  | 
|  | 4923 | for ac_func in forkpty | 
|  | 4924 | do | 
|  | 4925 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4926 | echo "configure:4927: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4927 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4928 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 4929 | else | 
|  | 4930 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4931 | #line 4932 "configure" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4932 | #include "confdefs.h" | 
|  | 4933 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 4934 | which can conflict with char $ac_func(); below.  */ | 
|  | 4935 | #include <assert.h> | 
|  | 4936 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4937 | /* We use char because int might match the return type of a gcc2 | 
|  | 4938 | builtin and then its argument prototype would still apply.  */ | 
|  | 4939 | char $ac_func(); | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4940 |  | 
|  | 4941 | int main() { | 
|  | 4942 |  | 
|  | 4943 | /* The GNU C library defines this for functions which it implements | 
|  | 4944 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 4945 | something starting with __ and the normal name is an alias.  */ | 
|  | 4946 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 4947 | choke me | 
|  | 4948 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4949 | $ac_func(); | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4950 | #endif | 
|  | 4951 |  | 
|  | 4952 | ; return 0; } | 
|  | 4953 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4954 | if { (eval echo configure:4955: \"$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] | 4955 | rm -rf conftest* | 
|  | 4956 | eval "ac_cv_func_$ac_func=yes" | 
|  | 4957 | else | 
|  | 4958 | echo "configure: failed program was:" >&5 | 
|  | 4959 | cat conftest.$ac_ext >&5 | 
|  | 4960 | rm -rf conftest* | 
|  | 4961 | eval "ac_cv_func_$ac_func=no" | 
|  | 4962 | fi | 
|  | 4963 | rm -f conftest* | 
|  | 4964 | fi | 
|  | 4965 |  | 
|  | 4966 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|  | 4967 | echo "$ac_t""yes" 1>&6 | 
|  | 4968 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 4969 | cat >> confdefs.h <<EOF | 
|  | 4970 | #define $ac_tr_func 1 | 
|  | 4971 | EOF | 
|  | 4972 |  | 
|  | 4973 | else | 
|  | 4974 | echo "$ac_t""no" 1>&6 | 
|  | 4975 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4976 | echo "configure:4977: checking for forkpty in -lutil" >&5 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4977 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4978 | 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] | 4979 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 4980 | else | 
|  | 4981 | ac_save_LIBS="$LIBS" | 
|  | 4982 | LIBS="-lutil  $LIBS" | 
|  | 4983 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4984 | #line 4985 "configure" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4985 | #include "confdefs.h" | 
|  | 4986 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 4987 | /* We use char because int might match the return type of a gcc2 | 
|  | 4988 | builtin and then its argument prototype would still apply.  */ | 
|  | 4989 | char forkpty(); | 
|  | 4990 |  | 
|  | 4991 | int main() { | 
|  | 4992 | forkpty() | 
|  | 4993 | ; return 0; } | 
|  | 4994 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4995 | if { (eval echo configure:4996: \"$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] | 4996 | rm -rf conftest* | 
|  | 4997 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|  | 4998 | else | 
|  | 4999 | echo "configure: failed program was:" >&5 | 
|  | 5000 | cat conftest.$ac_ext >&5 | 
|  | 5001 | rm -rf conftest* | 
|  | 5002 | eval "ac_cv_lib_$ac_lib_var=no" | 
|  | 5003 | fi | 
|  | 5004 | rm -f conftest* | 
|  | 5005 | LIBS="$ac_save_LIBS" | 
|  | 5006 |  | 
|  | 5007 | fi | 
|  | 5008 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|  | 5009 | echo "$ac_t""yes" 1>&6 | 
|  | 5010 | cat >> confdefs.h <<\EOF | 
|  | 5011 | #define HAVE_FORKPTY 1 | 
|  | 5012 | EOF | 
|  | 5013 | LIBS="$LIBS -lutil" | 
|  | 5014 | else | 
|  | 5015 | echo "$ac_t""no" 1>&6 | 
|  | 5016 | fi | 
|  | 5017 |  | 
|  | 5018 | fi | 
|  | 5019 | done | 
|  | 5020 |  | 
|  | 5021 |  | 
|  | 5022 | # check for long file support functions | 
|  | 5023 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
|  | 5024 | do | 
|  | 5025 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5026 | echo "configure:5027: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5027 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5028 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 5029 | else | 
|  | 5030 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5031 | #line 5032 "configure" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5032 | #include "confdefs.h" | 
|  | 5033 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 5034 | which can conflict with char $ac_func(); below.  */ | 
|  | 5035 | #include <assert.h> | 
|  | 5036 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 5037 | /* We use char because int might match the return type of a gcc2 | 
|  | 5038 | builtin and then its argument prototype would still apply.  */ | 
|  | 5039 | char $ac_func(); | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5040 |  | 
|  | 5041 | int main() { | 
|  | 5042 |  | 
|  | 5043 | /* The GNU C library defines this for functions which it implements | 
|  | 5044 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 5045 | something starting with __ and the normal name is an alias.  */ | 
|  | 5046 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 5047 | choke me | 
|  | 5048 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5049 | $ac_func(); | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5050 | #endif | 
|  | 5051 |  | 
|  | 5052 | ; return 0; } | 
|  | 5053 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5054 | if { (eval echo configure:5055: \"$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] | 5055 | rm -rf conftest* | 
|  | 5056 | eval "ac_cv_func_$ac_func=yes" | 
|  | 5057 | else | 
|  | 5058 | echo "configure: failed program was:" >&5 | 
|  | 5059 | cat conftest.$ac_ext >&5 | 
|  | 5060 | rm -rf conftest* | 
|  | 5061 | eval "ac_cv_func_$ac_func=no" | 
|  | 5062 | fi | 
|  | 5063 | rm -f conftest* | 
|  | 5064 | fi | 
|  | 5065 |  | 
|  | 5066 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|  | 5067 | echo "$ac_t""yes" 1>&6 | 
|  | 5068 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 5069 | cat >> confdefs.h <<EOF | 
|  | 5070 | #define $ac_tr_func 1 | 
|  | 5071 | EOF | 
|  | 5072 |  | 
|  | 5073 | else | 
|  | 5074 | echo "$ac_t""no" 1>&6 | 
|  | 5075 | fi | 
|  | 5076 | done | 
|  | 5077 |  | 
|  | 5078 |  | 
|  | 5079 | for ac_func in dup2 getcwd strdup strerror memmove | 
|  | 5080 | do | 
|  | 5081 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5082 | echo "configure:5083: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5083 | 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] | 5084 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 5085 | else | 
|  | 5086 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5087 | #line 5088 "configure" | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5088 | #include "confdefs.h" | 
|  | 5089 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 5090 | which can conflict with char $ac_func(); below.  */ | 
|  | 5091 | #include <assert.h> | 
|  | 5092 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 5093 | /* We use char because int might match the return type of a gcc2 | 
|  | 5094 | builtin and then its argument prototype would still apply.  */ | 
|  | 5095 | char $ac_func(); | 
|  | 5096 |  | 
|  | 5097 | int main() { | 
|  | 5098 |  | 
|  | 5099 | /* The GNU C library defines this for functions which it implements | 
|  | 5100 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 5101 | something starting with __ and the normal name is an alias.  */ | 
|  | 5102 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 5103 | choke me | 
|  | 5104 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5105 | $ac_func(); | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5106 | #endif | 
|  | 5107 |  | 
|  | 5108 | ; return 0; } | 
|  | 5109 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5110 | if { (eval echo configure:5111: \"$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] | 5111 | rm -rf conftest* | 
|  | 5112 | eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5113 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5114 | echo "configure: failed program was:" >&5 | 
|  | 5115 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5116 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5117 | eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5118 | fi | 
|  | 5119 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5120 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5121 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5122 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5123 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5124 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 5125 | cat >> confdefs.h <<EOF | 
|  | 5126 | #define $ac_tr_func 1 | 
|  | 5127 | EOF | 
|  | 5128 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5129 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5130 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5131 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5132 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5133 | done | 
|  | 5134 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5135 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5136 | for ac_func in getpgrp | 
|  | 5137 | do | 
|  | 5138 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5139 | echo "configure:5140: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5140 | 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] | 5141 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5142 | else | 
|  | 5143 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5144 | #line 5145 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5145 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5146 | /* System header to define __stub macros and hopefully few prototypes, | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5147 | which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5148 | #include <assert.h> | 
|  | 5149 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5150 | /* We use char because int might match the return type of a gcc2 | 
|  | 5151 | builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5152 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5153 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5154 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5155 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5156 | /* The GNU C library defines this for functions which it implements | 
|  | 5157 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 5158 | something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5159 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5160 | choke me | 
|  | 5161 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5162 | $ac_func(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5163 | #endif | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5164 |  | 
|  | 5165 | ; return 0; } | 
|  | 5166 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5167 | if { (eval echo configure:5168: \"$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] | 5168 | rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5169 | eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5170 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5171 | echo "configure: failed program was:" >&5 | 
|  | 5172 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5173 | rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5174 | eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5175 | fi | 
|  | 5176 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5177 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5178 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5179 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5180 | echo "$ac_t""yes" 1>&6 | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5181 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 5182 | cat >> confdefs.h <<EOF | 
|  | 5183 | #define $ac_tr_func 1 | 
|  | 5184 | EOF | 
|  | 5185 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5186 | #line 5187 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5187 | #include "confdefs.h" | 
|  | 5188 | #include <unistd.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5189 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5190 | getpgrp(0); | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5191 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5192 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5193 | if { (eval echo configure:5194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5194 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5195 | cat >> confdefs.h <<\EOF | 
|  | 5196 | #define GETPGRP_HAVE_ARG 1 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5197 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5198 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5199 | else | 
|  | 5200 | echo "configure: failed program was:" >&5 | 
|  | 5201 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5202 | fi | 
|  | 5203 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5204 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5205 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5206 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5207 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5208 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5209 | for ac_func in setpgrp | 
|  | 5210 | do | 
|  | 5211 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5212 | echo "configure:5213: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5213 | 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] | 5214 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5215 | else | 
|  | 5216 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5217 | #line 5218 "configure" | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5218 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5219 | /* System header to define __stub macros and hopefully few prototypes, | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5220 | which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5221 | #include <assert.h> | 
|  | 5222 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5223 | /* We use char because int might match the return type of a gcc2 | 
|  | 5224 | builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5225 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5226 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5227 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5228 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5229 | /* The GNU C library defines this for functions which it implements | 
|  | 5230 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 5231 | something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5232 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5233 | choke me | 
|  | 5234 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5235 | $ac_func(); | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5236 | #endif | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5237 |  | 
|  | 5238 | ; return 0; } | 
|  | 5239 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5240 | if { (eval echo configure:5241: \"$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] | 5241 | rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5242 | eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5243 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5244 | echo "configure: failed program was:" >&5 | 
|  | 5245 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5246 | rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5247 | eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5248 | fi | 
|  | 5249 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5250 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5251 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5252 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5253 | echo "$ac_t""yes" 1>&6 | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5254 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 5255 | cat >> confdefs.h <<EOF | 
|  | 5256 | #define $ac_tr_func 1 | 
|  | 5257 | EOF | 
|  | 5258 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5259 | #line 5260 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5260 | #include "confdefs.h" | 
|  | 5261 | #include <unistd.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5262 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5263 | setpgrp(0,0); | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5264 | ; return 0; } | 
|  | 5265 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5266 | if { (eval echo configure:5267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5267 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5268 | cat >> confdefs.h <<\EOF | 
|  | 5269 | #define SETPGRP_HAVE_ARG 1 | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5270 | EOF | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5271 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5272 | else | 
|  | 5273 | echo "configure: failed program was:" >&5 | 
|  | 5274 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5275 | fi | 
|  | 5276 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5277 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5278 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5279 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5280 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5281 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5282 | for ac_func in gettimeofday | 
|  | 5283 | do | 
|  | 5284 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5285 | echo "configure:5286: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5286 | 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] | 5287 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5288 | else | 
|  | 5289 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5290 | #line 5291 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5291 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5292 | /* System header to define __stub macros and hopefully few prototypes, | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5293 | which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5294 | #include <assert.h> | 
|  | 5295 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5296 | /* We use char because int might match the return type of a gcc2 | 
|  | 5297 | builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5298 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5299 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5300 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5301 |  | 
|  | 5302 | /* The GNU C library defines this for functions which it implements | 
|  | 5303 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 5304 | something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5305 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5306 | choke me | 
|  | 5307 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5308 | $ac_func(); | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5309 | #endif | 
|  | 5310 |  | 
|  | 5311 | ; return 0; } | 
|  | 5312 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5313 | if { (eval echo configure:5314: \"$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] | 5314 | rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5315 | eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5316 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5317 | echo "configure: failed program was:" >&5 | 
|  | 5318 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5319 | rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5320 | eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5321 | fi | 
|  | 5322 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5323 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5324 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5325 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5326 | echo "$ac_t""yes" 1>&6 | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5327 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 5328 | cat >> confdefs.h <<EOF | 
|  | 5329 | #define $ac_tr_func 1 | 
|  | 5330 | EOF | 
|  | 5331 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5332 | #line 5333 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5333 | #include "confdefs.h" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5334 | #include <sys/time.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5335 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5336 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
|  | 5337 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5338 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5339 | if { (eval echo configure:5340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5340 | : | 
|  | 5341 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5342 | echo "configure: failed program was:" >&5 | 
|  | 5343 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5344 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5345 | cat >> confdefs.h <<\EOF | 
|  | 5346 | #define GETTIMEOFDAY_NO_TZ 1 | 
|  | 5347 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5348 |  | 
|  | 5349 | fi | 
|  | 5350 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5351 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5352 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5353 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5354 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5355 |  | 
|  | 5356 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5357 | for ac_func in getaddrinfo | 
|  | 5358 | do | 
|  | 5359 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5360 | echo "configure:5361: checking for $ac_func" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5361 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|  | 5362 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 5363 | else | 
|  | 5364 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5365 | #line 5366 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5366 | #include "confdefs.h" | 
|  | 5367 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 5368 | which can conflict with char $ac_func(); below.  */ | 
|  | 5369 | #include <assert.h> | 
|  | 5370 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 5371 | /* We use char because int might match the return type of a gcc2 | 
|  | 5372 | builtin and then its argument prototype would still apply.  */ | 
|  | 5373 | char $ac_func(); | 
|  | 5374 |  | 
|  | 5375 | int main() { | 
|  | 5376 |  | 
|  | 5377 | /* The GNU C library defines this for functions which it implements | 
|  | 5378 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 5379 | something starting with __ and the normal name is an alias.  */ | 
|  | 5380 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 5381 | choke me | 
|  | 5382 | #else | 
|  | 5383 | $ac_func(); | 
|  | 5384 | #endif | 
|  | 5385 |  | 
|  | 5386 | ; return 0; } | 
|  | 5387 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5388 | if { (eval echo configure:5389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5389 | rm -rf conftest* | 
|  | 5390 | eval "ac_cv_func_$ac_func=yes" | 
|  | 5391 | else | 
|  | 5392 | echo "configure: failed program was:" >&5 | 
|  | 5393 | cat conftest.$ac_ext >&5 | 
|  | 5394 | rm -rf conftest* | 
|  | 5395 | eval "ac_cv_func_$ac_func=no" | 
|  | 5396 | fi | 
|  | 5397 | rm -f conftest* | 
|  | 5398 | fi | 
|  | 5399 |  | 
|  | 5400 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|  | 5401 | echo "$ac_t""yes" 1>&6 | 
|  | 5402 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 5403 | cat >> confdefs.h <<EOF | 
|  | 5404 | #define $ac_tr_func 1 | 
|  | 5405 | EOF | 
|  | 5406 | echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5407 | echo "configure:5408: checking getaddrinfo bug" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5408 | if test "$cross_compiling" = yes; then | 
|  | 5409 | echo "$ac_t""buggy" 1>&6 | 
|  | 5410 | buggygetaddrinfo=yes | 
|  | 5411 | else | 
|  | 5412 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5413 | #line 5414 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5414 | #include "confdefs.h" | 
|  | 5415 |  | 
|  | 5416 | #include <sys/types.h> | 
|  | 5417 | #include <netdb.h> | 
|  | 5418 | #include <string.h> | 
|  | 5419 | #include <sys/socket.h> | 
|  | 5420 | #include <netinet/in.h> | 
|  | 5421 |  | 
|  | 5422 | main() | 
|  | 5423 | { | 
|  | 5424 | int passive, gaierr, inet4 = 0, inet6 = 0; | 
|  | 5425 | struct addrinfo hints, *ai, *aitop; | 
|  | 5426 | char straddr[INET6_ADDRSTRLEN], strport[16]; | 
|  | 5427 |  | 
|  | 5428 | for (passive = 0; passive <= 1; passive++) { | 
|  | 5429 | memset(&hints, 0, sizeof(hints)); | 
|  | 5430 | hints.ai_family = AF_UNSPEC; | 
|  | 5431 | hints.ai_flags = passive ? AI_PASSIVE : 0; | 
|  | 5432 | hints.ai_socktype = SOCK_STREAM; | 
|  | 5433 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
|  | 5434 | (void)gai_strerror(gaierr); | 
|  | 5435 | goto bad; | 
|  | 5436 | } | 
|  | 5437 | for (ai = aitop; ai; ai = ai->ai_next) { | 
|  | 5438 | if (ai->ai_addr == NULL || | 
|  | 5439 | ai->ai_addrlen == 0 || | 
|  | 5440 | getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
|  | 5441 | straddr, sizeof(straddr), strport, sizeof(strport), | 
|  | 5442 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
|  | 5443 | goto bad; | 
|  | 5444 | } | 
|  | 5445 | switch (ai->ai_family) { | 
|  | 5446 | case AF_INET: | 
|  | 5447 | if (strcmp(strport, "54321") != 0) { | 
|  | 5448 | goto bad; | 
|  | 5449 | } | 
|  | 5450 | if (passive) { | 
|  | 5451 | if (strcmp(straddr, "0.0.0.0") != 0) { | 
|  | 5452 | goto bad; | 
|  | 5453 | } | 
|  | 5454 | } else { | 
|  | 5455 | if (strcmp(straddr, "127.0.0.1") != 0) { | 
|  | 5456 | goto bad; | 
|  | 5457 | } | 
|  | 5458 | } | 
|  | 5459 | inet4++; | 
|  | 5460 | break; | 
|  | 5461 | case AF_INET6: | 
|  | 5462 | if (strcmp(strport, "54321") != 0) { | 
|  | 5463 | goto bad; | 
|  | 5464 | } | 
|  | 5465 | if (passive) { | 
|  | 5466 | if (strcmp(straddr, "::") != 0) { | 
|  | 5467 | goto bad; | 
|  | 5468 | } | 
|  | 5469 | } else { | 
|  | 5470 | if (strcmp(straddr, "::1") != 0) { | 
|  | 5471 | goto bad; | 
|  | 5472 | } | 
|  | 5473 | } | 
|  | 5474 | inet6++; | 
|  | 5475 | break; | 
|  | 5476 | case AF_UNSPEC: | 
|  | 5477 | goto bad; | 
|  | 5478 | break; | 
|  | 5479 | default: | 
|  | 5480 | /* another family support? */ | 
|  | 5481 | break; | 
|  | 5482 | } | 
|  | 5483 | } | 
|  | 5484 | } | 
|  | 5485 |  | 
|  | 5486 | if (!(inet4 == 0 || inet4 == 2)) | 
|  | 5487 | goto bad; | 
|  | 5488 | if (!(inet6 == 0 || inet6 == 2)) | 
|  | 5489 | goto bad; | 
|  | 5490 |  | 
|  | 5491 | if (aitop) | 
|  | 5492 | freeaddrinfo(aitop); | 
|  | 5493 | exit(0); | 
|  | 5494 |  | 
|  | 5495 | bad: | 
|  | 5496 | if (aitop) | 
|  | 5497 | freeaddrinfo(aitop); | 
|  | 5498 | exit(1); | 
|  | 5499 | } | 
|  | 5500 |  | 
|  | 5501 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5502 | if { (eval echo configure:5503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5503 | then | 
|  | 5504 | echo "$ac_t""good" 1>&6 | 
|  | 5505 | buggygetaddrinfo=no | 
|  | 5506 | else | 
|  | 5507 | echo "configure: failed program was:" >&5 | 
|  | 5508 | cat conftest.$ac_ext >&5 | 
|  | 5509 | rm -fr conftest* | 
|  | 5510 | echo "$ac_t""buggy" 1>&6 | 
|  | 5511 | buggygetaddrinfo=yes | 
|  | 5512 | fi | 
|  | 5513 | rm -fr conftest* | 
|  | 5514 | fi | 
|  | 5515 |  | 
|  | 5516 | else | 
|  | 5517 | echo "$ac_t""no" 1>&6 | 
|  | 5518 | buggygetaddrinfo=yes | 
|  | 5519 | fi | 
|  | 5520 | done | 
|  | 5521 |  | 
|  | 5522 |  | 
|  | 5523 | if test "$buggygetaddrinfo" = "yes"; then | 
|  | 5524 | if test "$ipv6" = "yes"; then | 
|  | 5525 | echo 'Fatal: You must get working getaddrinfo() function.' | 
|  | 5526 | echo '       or you can specify "--disable-ipv6"'. | 
|  | 5527 | exit 1 | 
|  | 5528 | fi | 
|  | 5529 | fi | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 5530 | for ac_func in getnameinfo | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5531 | do | 
|  | 5532 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5533 | echo "configure:5534: checking for $ac_func" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5534 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|  | 5535 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 5536 | else | 
|  | 5537 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5538 | #line 5539 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5539 | #include "confdefs.h" | 
|  | 5540 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 5541 | which can conflict with char $ac_func(); below.  */ | 
|  | 5542 | #include <assert.h> | 
|  | 5543 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 5544 | /* We use char because int might match the return type of a gcc2 | 
|  | 5545 | builtin and then its argument prototype would still apply.  */ | 
|  | 5546 | char $ac_func(); | 
|  | 5547 |  | 
|  | 5548 | int main() { | 
|  | 5549 |  | 
|  | 5550 | /* The GNU C library defines this for functions which it implements | 
|  | 5551 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 5552 | something starting with __ and the normal name is an alias.  */ | 
|  | 5553 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 5554 | choke me | 
|  | 5555 | #else | 
|  | 5556 | $ac_func(); | 
|  | 5557 | #endif | 
|  | 5558 |  | 
|  | 5559 | ; return 0; } | 
|  | 5560 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5561 | if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5562 | rm -rf conftest* | 
|  | 5563 | eval "ac_cv_func_$ac_func=yes" | 
|  | 5564 | else | 
|  | 5565 | echo "configure: failed program was:" >&5 | 
|  | 5566 | cat conftest.$ac_ext >&5 | 
|  | 5567 | rm -rf conftest* | 
|  | 5568 | eval "ac_cv_func_$ac_func=no" | 
|  | 5569 | fi | 
|  | 5570 | rm -f conftest* | 
|  | 5571 | fi | 
|  | 5572 |  | 
|  | 5573 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|  | 5574 | echo "$ac_t""yes" 1>&6 | 
|  | 5575 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 5576 | cat >> confdefs.h <<EOF | 
|  | 5577 | #define $ac_tr_func 1 | 
|  | 5578 | EOF | 
|  | 5579 |  | 
|  | 5580 | else | 
|  | 5581 | echo "$ac_t""no" 1>&6 | 
|  | 5582 | fi | 
|  | 5583 | done | 
|  | 5584 |  | 
|  | 5585 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5586 | # checks for structures | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5587 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5588 | echo "configure:5589: checking whether time.h and sys/time.h may both be included" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5589 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5590 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5591 | else | 
|  | 5592 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5593 | #line 5594 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5594 | #include "confdefs.h" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5595 | #include <sys/types.h> | 
|  | 5596 | #include <sys/time.h> | 
|  | 5597 | #include <time.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5598 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5599 | struct tm *tp; | 
|  | 5600 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5601 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5602 | if { (eval echo configure:5603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5603 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5604 | ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5605 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5606 | echo "configure: failed program was:" >&5 | 
|  | 5607 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5608 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5609 | ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5610 | fi | 
|  | 5611 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5612 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5613 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5614 | echo "$ac_t""$ac_cv_header_time" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5615 | if test $ac_cv_header_time = yes; then | 
|  | 5616 | cat >> confdefs.h <<\EOF | 
|  | 5617 | #define TIME_WITH_SYS_TIME 1 | 
|  | 5618 | EOF | 
|  | 5619 |  | 
|  | 5620 | fi | 
|  | 5621 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5622 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5623 | echo "configure:5624: checking whether struct tm is in sys/time.h or time.h" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5624 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5625 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5626 | else | 
|  | 5627 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5628 | #line 5629 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5629 | #include "confdefs.h" | 
|  | 5630 | #include <sys/types.h> | 
|  | 5631 | #include <time.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5632 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5633 | struct tm *tp; tp->tm_sec; | 
|  | 5634 | ; return 0; } | 
|  | 5635 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5636 | if { (eval echo configure:5637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5637 | rm -rf conftest* | 
|  | 5638 | ac_cv_struct_tm=time.h | 
|  | 5639 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5640 | echo "configure: failed program was:" >&5 | 
|  | 5641 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5642 | rm -rf conftest* | 
|  | 5643 | ac_cv_struct_tm=sys/time.h | 
|  | 5644 | fi | 
|  | 5645 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5646 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5647 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5648 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5649 | if test $ac_cv_struct_tm = sys/time.h; then | 
|  | 5650 | cat >> confdefs.h <<\EOF | 
|  | 5651 | #define TM_IN_SYS_TIME 1 | 
|  | 5652 | EOF | 
|  | 5653 |  | 
|  | 5654 | fi | 
|  | 5655 |  | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5656 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5657 | echo "configure:5658: checking for tm_zone in struct tm" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5658 | 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] | 5659 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5660 | else | 
|  | 5661 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5662 | #line 5663 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5663 | #include "confdefs.h" | 
|  | 5664 | #include <sys/types.h> | 
|  | 5665 | #include <$ac_cv_struct_tm> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5666 | int main() { | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5667 | struct tm tm; tm.tm_zone; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5668 | ; return 0; } | 
|  | 5669 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5670 | if { (eval echo configure:5671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5671 | rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5672 | ac_cv_struct_tm_zone=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5673 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5674 | echo "configure: failed program was:" >&5 | 
|  | 5675 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5676 | rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5677 | ac_cv_struct_tm_zone=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5678 | fi | 
|  | 5679 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5680 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5681 |  | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5682 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | 
|  | 5683 | if test "$ac_cv_struct_tm_zone" = yes; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5684 | cat >> confdefs.h <<\EOF | 
|  | 5685 | #define HAVE_TM_ZONE 1 | 
|  | 5686 | EOF | 
|  | 5687 |  | 
|  | 5688 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5689 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5690 | echo "configure:5691: checking for tzname" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5691 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5692 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5693 | else | 
|  | 5694 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5695 | #line 5696 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5696 | #include "confdefs.h" | 
|  | 5697 | #include <time.h> | 
|  | 5698 | #ifndef tzname /* For SGI.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5699 | extern char *tzname[]; /* RS6000 and others reject char **tzname.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5700 | #endif | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5701 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5702 | atoi(*tzname); | 
|  | 5703 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5704 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5705 | if { (eval echo configure:5706: \"$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] | 5706 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5707 | ac_cv_var_tzname=yes | 
|  | 5708 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5709 | echo "configure: failed program was:" >&5 | 
|  | 5710 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5711 | rm -rf conftest* | 
|  | 5712 | ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5713 | fi | 
|  | 5714 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5715 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5716 |  | 
|  | 5717 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5718 | if test $ac_cv_var_tzname = yes; then | 
|  | 5719 | cat >> confdefs.h <<\EOF | 
|  | 5720 | #define HAVE_TZNAME 1 | 
|  | 5721 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5722 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5723 | fi | 
|  | 5724 | fi | 
|  | 5725 |  | 
|  | 5726 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5727 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5728 | echo "configure:5729: checking for time.h that defines altzone" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5729 | 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] | 5730 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5731 | else | 
|  | 5732 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5733 | #line 5734 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5734 | #include "confdefs.h" | 
|  | 5735 | #include <time.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5736 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5737 | return altzone; | 
|  | 5738 | ; return 0; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5739 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5740 | if { (eval echo configure:5741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5741 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5742 | ac_cv_header_time_altzone=yes | 
|  | 5743 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5744 | echo "configure: failed program was:" >&5 | 
|  | 5745 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5746 | rm -rf conftest* | 
|  | 5747 | ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5748 | fi | 
|  | 5749 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5750 | fi | 
|  | 5751 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5752 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5753 | if test $ac_cv_header_time_altzone = yes; then | 
|  | 5754 | cat >> confdefs.h <<\EOF | 
|  | 5755 | #define HAVE_ALTZONE 1 | 
|  | 5756 | EOF | 
|  | 5757 |  | 
|  | 5758 | fi | 
|  | 5759 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5760 | was_it_defined=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5761 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5762 | echo "configure:5763: 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] | 5763 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5764 | #line 5765 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5765 | #include "confdefs.h" | 
|  | 5766 |  | 
|  | 5767 | #include <sys/types.h> | 
|  | 5768 | #include <sys/select.h> | 
|  | 5769 | #include <sys/time.h> | 
|  | 5770 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5771 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5772 | ; | 
|  | 5773 | ; return 0; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5774 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5775 | if { (eval echo configure:5776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5776 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5777 | cat >> confdefs.h <<\EOF | 
|  | 5778 | #define SYS_SELECT_WITH_SYS_TIME 1 | 
|  | 5779 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5780 | was_it_defined=yes | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5781 | else | 
|  | 5782 | echo "configure: failed program was:" >&5 | 
|  | 5783 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5784 | fi | 
|  | 5785 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5786 | echo "$ac_t""$was_it_defined" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5787 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5788 | echo $ac_n "checking for addrinfo""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5789 | echo "configure:5790: checking for addrinfo" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5790 | if eval "test \"`echo '$''{'ac_cv_struct_addrinfo'+set}'`\" = set"; then | 
|  | 5791 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 5792 | else | 
|  | 5793 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5794 | #line 5795 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5795 | #include "confdefs.h" | 
|  | 5796 |  | 
|  | 5797 | #		include <netdb.h> | 
|  | 5798 | int main() { | 
|  | 5799 | struct addrinfo a | 
|  | 5800 | ; return 0; } | 
|  | 5801 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5802 | if { (eval echo configure:5803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5803 | rm -rf conftest* | 
|  | 5804 | ac_cv_struct_addrinfo=yes | 
|  | 5805 | else | 
|  | 5806 | echo "configure: failed program was:" >&5 | 
|  | 5807 | cat conftest.$ac_ext >&5 | 
|  | 5808 | rm -rf conftest* | 
|  | 5809 | ac_cv_struct_addrinfo=no | 
|  | 5810 | fi | 
|  | 5811 | rm -f conftest* | 
|  | 5812 | fi | 
|  | 5813 |  | 
|  | 5814 | echo "$ac_t""$ac_cv_struct_addrinfo" 1>&6 | 
|  | 5815 | if test $ac_cv_struct_addrinfo = yes; then | 
|  | 5816 | cat >> confdefs.h <<\EOF | 
|  | 5817 | #define HAVE_ADDRINFO 1 | 
|  | 5818 | EOF | 
|  | 5819 |  | 
|  | 5820 | fi | 
|  | 5821 |  | 
|  | 5822 | echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5823 | echo "configure:5824: checking for sockaddr_storage" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5824 | if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then | 
|  | 5825 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 5826 | else | 
|  | 5827 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5828 | #line 5829 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5829 | #include "confdefs.h" | 
|  | 5830 |  | 
|  | 5831 | #		include <sys/types.h> | 
|  | 5832 | #		include <sys/socket.h> | 
|  | 5833 | int main() { | 
|  | 5834 | struct sockaddr_storage s | 
|  | 5835 | ; return 0; } | 
|  | 5836 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5837 | if { (eval echo configure:5838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5838 | rm -rf conftest* | 
|  | 5839 | ac_cv_struct_sockaddr_storage=yes | 
|  | 5840 | else | 
|  | 5841 | echo "configure: failed program was:" >&5 | 
|  | 5842 | cat conftest.$ac_ext >&5 | 
|  | 5843 | rm -rf conftest* | 
|  | 5844 | ac_cv_struct_sockaddr_storage=no | 
|  | 5845 | fi | 
|  | 5846 | rm -f conftest* | 
|  | 5847 | fi | 
|  | 5848 |  | 
|  | 5849 | echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6 | 
|  | 5850 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
|  | 5851 | cat >> confdefs.h <<\EOF | 
|  | 5852 | #define HAVE_SOCKADDR_STORAGE 1 | 
|  | 5853 | EOF | 
|  | 5854 |  | 
|  | 5855 | fi | 
|  | 5856 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5857 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5858 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5859 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5860 | echo "configure:5861: checking whether char is unsigned" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5861 | 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] | 5862 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5863 | else | 
|  | 5864 | if test "$GCC" = yes; then | 
|  | 5865 | # GCC predefines this symbol on systems where it applies. | 
|  | 5866 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5867 | #line 5868 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5868 | #include "confdefs.h" | 
|  | 5869 | #ifdef __CHAR_UNSIGNED__ | 
|  | 5870 | yes | 
|  | 5871 | #endif | 
|  | 5872 |  | 
|  | 5873 | EOF | 
|  | 5874 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 5875 | egrep "yes" >/dev/null 2>&1; then | 
|  | 5876 | rm -rf conftest* | 
|  | 5877 | ac_cv_c_char_unsigned=yes | 
|  | 5878 | else | 
|  | 5879 | rm -rf conftest* | 
|  | 5880 | ac_cv_c_char_unsigned=no | 
|  | 5881 | fi | 
|  | 5882 | rm -f conftest* | 
|  | 5883 |  | 
|  | 5884 | else | 
|  | 5885 | if test "$cross_compiling" = yes; then | 
|  | 5886 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
|  | 5887 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5888 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5889 | #line 5890 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5890 | #include "confdefs.h" | 
|  | 5891 | /* volatile prevents gcc2 from optimizing the test away on sparcs.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5892 | #if !defined(__STDC__) || __STDC__ != 1 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5893 | #define volatile | 
|  | 5894 | #endif | 
|  | 5895 | main() { | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5896 | volatile char c = 255; exit(c < 0); | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5897 | } | 
|  | 5898 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5899 | if { (eval echo configure:5900: \"$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] | 5900 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5901 | ac_cv_c_char_unsigned=yes | 
|  | 5902 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5903 | echo "configure: failed program was:" >&5 | 
|  | 5904 | cat conftest.$ac_ext >&5 | 
|  | 5905 | rm -fr conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5906 | ac_cv_c_char_unsigned=no | 
|  | 5907 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5908 | rm -fr conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5909 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5910 |  | 
|  | 5911 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5912 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5913 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5914 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5915 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
|  | 5916 | cat >> confdefs.h <<\EOF | 
|  | 5917 | #define __CHAR_UNSIGNED__ 1 | 
|  | 5918 | EOF | 
|  | 5919 |  | 
|  | 5920 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5921 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5922 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5923 | echo "configure:5924: checking for working const" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5924 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5925 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5926 | else | 
|  | 5927 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5928 | #line 5929 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5929 | #include "confdefs.h" | 
|  | 5930 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5931 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5932 |  | 
|  | 5933 | /* Ultrix mips cc rejects this.  */ | 
| Martin v. Löwis | 9db2f57 | 2001-07-23 01:30:10 +0000 | [diff] [blame] | 5934 | typedef int charset[2]; const charset x; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5935 | /* SunOS 4.1.1 cc rejects this.  */ | 
|  | 5936 | char const *const *ccp; | 
|  | 5937 | char **p; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5938 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|  | 5939 | struct point {int x, y;}; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5940 | static struct point const zero = {0,0}; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5941 | /* AIX XL C 1.02.0.0 rejects this. | 
|  | 5942 | It does not let you subtract one const X* pointer from another in an arm | 
|  | 5943 | of an if-expression whose if-part is not a constant expression */ | 
|  | 5944 | const char *g = "string"; | 
|  | 5945 | ccp = &g + (g ? g-g : 0); | 
|  | 5946 | /* HPUX 7.0 cc rejects these. */ | 
|  | 5947 | ++ccp; | 
|  | 5948 | p = (char**) ccp; | 
|  | 5949 | ccp = (char const *const *) p; | 
|  | 5950 | { /* SCO 3.2v4 cc rejects this.  */ | 
|  | 5951 | char *t; | 
|  | 5952 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
|  | 5953 |  | 
|  | 5954 | *t++ = 0; | 
|  | 5955 | } | 
|  | 5956 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5957 | int x[] = {25, 17}; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5958 | const int *foo = &x[0]; | 
|  | 5959 | ++foo; | 
|  | 5960 | } | 
|  | 5961 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|  | 5962 | typedef const int *iptr; | 
|  | 5963 | iptr p = 0; | 
|  | 5964 | ++p; | 
|  | 5965 | } | 
|  | 5966 | { /* AIX XL C 1.02.0.0 rejects this saying | 
|  | 5967 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
|  | 5968 | struct s { int j; const int *ap[3]; }; | 
|  | 5969 | struct s *b; b->j = 5; | 
|  | 5970 | } | 
|  | 5971 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|  | 5972 | const int foo = 10; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5973 | } | 
|  | 5974 |  | 
|  | 5975 | ; return 0; } | 
|  | 5976 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 5977 | if { (eval echo configure:5978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5978 | rm -rf conftest* | 
|  | 5979 | ac_cv_c_const=yes | 
|  | 5980 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5981 | echo "configure: failed program was:" >&5 | 
|  | 5982 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5983 | rm -rf conftest* | 
|  | 5984 | ac_cv_c_const=no | 
|  | 5985 | fi | 
|  | 5986 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5987 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5988 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5989 | echo "$ac_t""$ac_cv_c_const" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5990 | if test $ac_cv_c_const = no; then | 
|  | 5991 | cat >> confdefs.h <<\EOF | 
|  | 5992 | #define const | 
|  | 5993 | EOF | 
|  | 5994 |  | 
|  | 5995 | fi | 
|  | 5996 |  | 
|  | 5997 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5998 | works=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5999 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6000 | echo "configure:6001: checking for working volatile" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6001 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6002 | #line 6003 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6003 | #include "confdefs.h" | 
|  | 6004 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6005 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6006 | volatile int x; x = 0; | 
|  | 6007 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6008 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6009 | if { (eval echo configure:6010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6010 | rm -rf conftest* | 
|  | 6011 | works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6012 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6013 | echo "configure: failed program was:" >&5 | 
|  | 6014 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6015 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6016 | cat >> confdefs.h <<\EOF | 
|  | 6017 | #define volatile | 
|  | 6018 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6019 |  | 
|  | 6020 | fi | 
|  | 6021 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6022 | echo "$ac_t""$works" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6023 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6024 | works=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6025 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6026 | echo "configure:6027: checking for working signed char" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6027 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6028 | #line 6029 "configure" | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 6029 | #include "confdefs.h" | 
|  | 6030 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6031 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6032 | signed char c; | 
|  | 6033 | ; return 0; } | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 6034 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6035 | if { (eval echo configure:6036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6036 | rm -rf conftest* | 
|  | 6037 | works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 6038 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6039 | echo "configure: failed program was:" >&5 | 
|  | 6040 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 6041 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6042 | cat >> confdefs.h <<\EOF | 
|  | 6043 | #define signed | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6044 | EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6045 |  | 
|  | 6046 | fi | 
|  | 6047 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6048 | echo "$ac_t""$works" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6049 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6050 | have_prototypes=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6051 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6052 | echo "configure:6053: checking for prototypes" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6053 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6054 | #line 6055 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6055 | #include "confdefs.h" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6056 | int foo(int x) { return 0; } | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6057 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6058 | return foo(10); | 
|  | 6059 | ; return 0; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6060 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6061 | if { (eval echo configure:6062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6062 | rm -rf conftest* | 
|  | 6063 | cat >> confdefs.h <<\EOF | 
|  | 6064 | #define HAVE_PROTOTYPES 1 | 
|  | 6065 | EOF | 
|  | 6066 | have_prototypes=yes | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6067 | else | 
|  | 6068 | echo "configure: failed program was:" >&5 | 
|  | 6069 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6070 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6071 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6072 | echo "$ac_t""$have_prototypes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6073 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6074 | works=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6075 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6076 | echo "configure:6077: checking for variable length prototypes and stdarg.h" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6077 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6078 | #line 6079 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6079 | #include "confdefs.h" | 
|  | 6080 |  | 
|  | 6081 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 6082 | int foo(int x, ...) { | 
|  | 6083 | va_list va; | 
|  | 6084 | va_start(va, x); | 
|  | 6085 | va_arg(va, int); | 
|  | 6086 | va_arg(va, char *); | 
|  | 6087 | va_arg(va, double); | 
|  | 6088 | return 0; | 
|  | 6089 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6090 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6091 | int main() { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 6092 | return foo(10, "", 3.14); | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6093 | ; return 0; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6094 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6095 | if { (eval echo configure:6096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6096 | rm -rf conftest* | 
|  | 6097 | cat >> confdefs.h <<\EOF | 
|  | 6098 | #define HAVE_STDARG_PROTOTYPES 1 | 
|  | 6099 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6100 | works=yes | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6101 | else | 
|  | 6102 | echo "configure: failed program was:" >&5 | 
|  | 6103 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6104 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6105 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6106 | echo "$ac_t""$works" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6107 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6108 | if test "$have_prototypes" = yes; then | 
|  | 6109 | bad_prototypes=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6110 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6111 | echo "configure:6112: checking for bad exec* prototypes" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6112 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6113 | #line 6114 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6114 | #include "confdefs.h" | 
|  | 6115 | #include <unistd.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6116 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6117 | char **t;execve("@",t,t); | 
|  | 6118 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6119 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6120 | if { (eval echo configure:6121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6121 | : | 
|  | 6122 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6123 | echo "configure: failed program was:" >&5 | 
|  | 6124 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6125 | rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6126 | cat >> confdefs.h <<\EOF | 
|  | 6127 | #define BAD_EXEC_PROTOTYPES 1 | 
|  | 6128 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6129 | bad_prototypes=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6130 | fi | 
|  | 6131 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6132 | echo "$ac_t""$bad_prototypes" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6133 | fi | 
|  | 6134 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6135 | # check if sockaddr has sa_len member | 
|  | 6136 | echo $ac_n "checking if sockaddr has sa_len member""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6137 | echo "configure:6138: checking if sockaddr has sa_len member" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6138 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6139 | #line 6140 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6140 | #include "confdefs.h" | 
|  | 6141 | #include <sys/types.h> | 
|  | 6142 | #include <sys/socket.h> | 
|  | 6143 | int main() { | 
|  | 6144 | struct sockaddr x; | 
|  | 6145 | x.sa_len = 0; | 
|  | 6146 | ; return 0; } | 
|  | 6147 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6148 | if { (eval echo configure:6149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6149 | rm -rf conftest* | 
|  | 6150 | echo "$ac_t""yes" 1>&6 | 
|  | 6151 | cat >> confdefs.h <<\EOF | 
|  | 6152 | #define HAVE_SOCKADDR_SA_LEN 1 | 
|  | 6153 | EOF | 
|  | 6154 |  | 
|  | 6155 | else | 
|  | 6156 | echo "configure: failed program was:" >&5 | 
|  | 6157 | cat conftest.$ac_ext >&5 | 
|  | 6158 | rm -rf conftest* | 
|  | 6159 | echo "$ac_t""no" 1>&6 | 
|  | 6160 | fi | 
|  | 6161 | rm -f conftest* | 
|  | 6162 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6163 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6164 | echo "configure:6165: checking for bad static forward" >&5 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 6165 | if eval "test \"`echo '$''{'ac_cv_bad_static_forward'+set}'`\" = set"; then | 
|  | 6166 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 6167 | else | 
|  | 6168 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 6169 | ac_cv_bad_static_forward=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6170 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6171 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6172 | #line 6173 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6173 | #include "confdefs.h" | 
|  | 6174 |  | 
|  | 6175 | struct s { int a; int b; }; | 
|  | 6176 | static struct s foo; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6177 | int foobar() { | 
|  | 6178 | static int random; | 
|  | 6179 | random = (int) &foo; | 
|  | 6180 | return random; | 
|  | 6181 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6182 | static struct s foo = { 1, 2 }; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6183 | main() { | 
|  | 6184 | exit(!((int)&foo == foobar())); | 
|  | 6185 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6186 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6187 | if { (eval echo configure:6188: \"$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] | 6188 | then | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 6189 | ac_cv_bad_static_forward=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6190 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6191 | echo "configure: failed program was:" >&5 | 
|  | 6192 | cat conftest.$ac_ext >&5 | 
|  | 6193 | rm -fr conftest* | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 6194 | ac_cv_bad_static_forward=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6195 | fi | 
|  | 6196 | rm -fr conftest* | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6197 | fi | 
|  | 6198 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 6199 | fi | 
|  | 6200 |  | 
|  | 6201 | echo "$ac_t""$ac_cv_bad_static_forward" 1>&6 | 
|  | 6202 | if test "$ac_cv_bad_static_forward" = yes | 
|  | 6203 | then | 
|  | 6204 | cat >> confdefs.h <<\EOF | 
|  | 6205 | #define BAD_STATIC_FORWARD 1 | 
|  | 6206 | EOF | 
|  | 6207 |  | 
|  | 6208 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6209 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6210 | va_list_is_array=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6211 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6212 | echo "configure:6213: checking whether va_list is an array" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6213 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6214 | #line 6215 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6215 | #include "confdefs.h" | 
|  | 6216 |  | 
|  | 6217 | #ifdef HAVE_STDARG_PROTOTYPES | 
|  | 6218 | #include <stdarg.h> | 
|  | 6219 | #else | 
|  | 6220 | #include <varargs.h> | 
|  | 6221 | #endif | 
|  | 6222 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6223 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6224 | va_list list1, list2; list1 = list2; | 
|  | 6225 | ; return 0; } | 
|  | 6226 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6227 | if { (eval echo configure:6228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6228 | : | 
|  | 6229 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6230 | echo "configure: failed program was:" >&5 | 
|  | 6231 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6232 | rm -rf conftest* | 
|  | 6233 | cat >> confdefs.h <<\EOF | 
|  | 6234 | #define VA_LIST_IS_ARRAY 1 | 
|  | 6235 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6236 | va_list_is_array=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6237 | fi | 
|  | 6238 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6239 | echo "$ac_t""$va_list_is_array" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6240 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6241 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( | 
|  | 6242 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6243 | echo "configure:6244: checking for gethostbyname_r" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6244 | 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] | 6245 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 6246 | else | 
|  | 6247 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6248 | #line 6249 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6249 | #include "confdefs.h" | 
|  | 6250 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 6251 | which can conflict with char gethostbyname_r(); below.  */ | 
|  | 6252 | #include <assert.h> | 
|  | 6253 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 6254 | /* We use char because int might match the return type of a gcc2 | 
|  | 6255 | builtin and then its argument prototype would still apply.  */ | 
|  | 6256 | char gethostbyname_r(); | 
|  | 6257 |  | 
|  | 6258 | int main() { | 
|  | 6259 |  | 
|  | 6260 | /* The GNU C library defines this for functions which it implements | 
|  | 6261 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 6262 | something starting with __ and the normal name is an alias.  */ | 
|  | 6263 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) | 
|  | 6264 | choke me | 
|  | 6265 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6266 | gethostbyname_r(); | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6267 | #endif | 
|  | 6268 |  | 
|  | 6269 | ; return 0; } | 
|  | 6270 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6271 | if { (eval echo configure:6272: \"$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] | 6272 | rm -rf conftest* | 
|  | 6273 | eval "ac_cv_func_gethostbyname_r=yes" | 
|  | 6274 | else | 
|  | 6275 | echo "configure: failed program was:" >&5 | 
|  | 6276 | cat conftest.$ac_ext >&5 | 
|  | 6277 | rm -rf conftest* | 
|  | 6278 | eval "ac_cv_func_gethostbyname_r=no" | 
|  | 6279 | fi | 
|  | 6280 | rm -f conftest* | 
|  | 6281 | fi | 
|  | 6282 |  | 
|  | 6283 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then | 
|  | 6284 | echo "$ac_t""yes" 1>&6 | 
|  | 6285 |  | 
|  | 6286 | cat >> confdefs.h <<\EOF | 
|  | 6287 | #define HAVE_GETHOSTBYNAME_R 1 | 
|  | 6288 | EOF | 
|  | 6289 |  | 
|  | 6290 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6291 | echo "configure:6292: checking gethostbyname_r with 6 args" >&5 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6292 | OLD_CFLAGS=$CFLAGS | 
|  | 6293 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
|  | 6294 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6295 | #line 6296 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6296 | #include "confdefs.h" | 
|  | 6297 |  | 
|  | 6298 | #   include <netdb.h> | 
|  | 6299 |  | 
|  | 6300 | int main() { | 
|  | 6301 |  | 
|  | 6302 | char *name; | 
|  | 6303 | struct hostent *he, *res; | 
|  | 6304 | char buffer[2048]; | 
|  | 6305 | int buflen = 2048; | 
|  | 6306 | int h_errnop; | 
|  | 6307 |  | 
|  | 6308 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
|  | 6309 |  | 
|  | 6310 | ; return 0; } | 
|  | 6311 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6312 | if { (eval echo configure:6313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6313 | rm -rf conftest* | 
|  | 6314 |  | 
|  | 6315 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6316 | #define HAVE_GETHOSTBYNAME_R 1 | 
|  | 6317 | EOF | 
|  | 6318 |  | 
|  | 6319 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6320 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 | 
|  | 6321 | EOF | 
|  | 6322 |  | 
|  | 6323 | echo "$ac_t""yes" 1>&6 | 
|  | 6324 |  | 
|  | 6325 | else | 
|  | 6326 | echo "configure: failed program was:" >&5 | 
|  | 6327 | cat conftest.$ac_ext >&5 | 
|  | 6328 | rm -rf conftest* | 
|  | 6329 |  | 
|  | 6330 | echo "$ac_t""no" 1>&6 | 
|  | 6331 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6332 | echo "configure:6333: checking gethostbyname_r with 5 args" >&5 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6333 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6334 | #line 6335 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6335 | #include "confdefs.h" | 
|  | 6336 |  | 
|  | 6337 | #     include <netdb.h> | 
|  | 6338 |  | 
|  | 6339 | int main() { | 
|  | 6340 |  | 
|  | 6341 | char *name; | 
|  | 6342 | struct hostent *he; | 
|  | 6343 | char buffer[2048]; | 
|  | 6344 | int buflen = 2048; | 
|  | 6345 | int h_errnop; | 
|  | 6346 |  | 
|  | 6347 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
|  | 6348 |  | 
|  | 6349 | ; return 0; } | 
|  | 6350 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6351 | if { (eval echo configure:6352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6352 | rm -rf conftest* | 
|  | 6353 |  | 
|  | 6354 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6355 | #define HAVE_GETHOSTBYNAME_R 1 | 
|  | 6356 | EOF | 
|  | 6357 |  | 
|  | 6358 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6359 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 | 
|  | 6360 | EOF | 
|  | 6361 |  | 
|  | 6362 | echo "$ac_t""yes" 1>&6 | 
|  | 6363 |  | 
|  | 6364 | else | 
|  | 6365 | echo "configure: failed program was:" >&5 | 
|  | 6366 | cat conftest.$ac_ext >&5 | 
|  | 6367 | rm -rf conftest* | 
|  | 6368 |  | 
|  | 6369 | echo "$ac_t""no" 1>&6 | 
|  | 6370 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6371 | echo "configure:6372: checking gethostbyname_r with 3 args" >&5 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6372 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6373 | #line 6374 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6374 | #include "confdefs.h" | 
|  | 6375 |  | 
|  | 6376 | #       include <netdb.h> | 
|  | 6377 |  | 
|  | 6378 | int main() { | 
|  | 6379 |  | 
|  | 6380 | char *name; | 
|  | 6381 | struct hostent *he; | 
|  | 6382 | struct hostent_data data; | 
|  | 6383 |  | 
|  | 6384 | (void) gethostbyname_r(name, he, &data); | 
|  | 6385 |  | 
|  | 6386 | ; return 0; } | 
|  | 6387 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6388 | if { (eval echo configure:6389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6389 | rm -rf conftest* | 
|  | 6390 |  | 
|  | 6391 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6392 | #define HAVE_GETHOSTBYNAME_R 1 | 
|  | 6393 | EOF | 
|  | 6394 |  | 
|  | 6395 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6396 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 | 
|  | 6397 | EOF | 
|  | 6398 |  | 
|  | 6399 | echo "$ac_t""yes" 1>&6 | 
|  | 6400 |  | 
|  | 6401 | else | 
|  | 6402 | echo "configure: failed program was:" >&5 | 
|  | 6403 | cat conftest.$ac_ext >&5 | 
|  | 6404 | rm -rf conftest* | 
|  | 6405 |  | 
|  | 6406 | echo "$ac_t""no" 1>&6 | 
|  | 6407 |  | 
|  | 6408 | fi | 
|  | 6409 | rm -f conftest* | 
|  | 6410 |  | 
|  | 6411 | fi | 
|  | 6412 | rm -f conftest* | 
|  | 6413 |  | 
|  | 6414 | fi | 
|  | 6415 | rm -f conftest* | 
|  | 6416 | CFLAGS=$OLD_CFLAGS | 
|  | 6417 |  | 
|  | 6418 | else | 
|  | 6419 | echo "$ac_t""no" 1>&6 | 
|  | 6420 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6421 | for ac_func in gethostbyname | 
|  | 6422 | do | 
|  | 6423 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6424 | echo "configure:6425: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6425 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6426 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 6427 | else | 
|  | 6428 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6429 | #line 6430 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6430 | #include "confdefs.h" | 
|  | 6431 | /* System header to define __stub macros and hopefully few prototypes, | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6432 | which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6433 | #include <assert.h> | 
|  | 6434 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 6435 | /* We use char because int might match the return type of a gcc2 | 
|  | 6436 | builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6437 | char $ac_func(); | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6438 |  | 
|  | 6439 | int main() { | 
|  | 6440 |  | 
|  | 6441 | /* The GNU C library defines this for functions which it implements | 
|  | 6442 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 6443 | something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6444 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6445 | choke me | 
|  | 6446 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6447 | $ac_func(); | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6448 | #endif | 
|  | 6449 |  | 
|  | 6450 | ; return 0; } | 
|  | 6451 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6452 | if { (eval echo configure:6453: \"$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] | 6453 | rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6454 | eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6455 | else | 
|  | 6456 | echo "configure: failed program was:" >&5 | 
|  | 6457 | cat conftest.$ac_ext >&5 | 
|  | 6458 | rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6459 | eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6460 | fi | 
|  | 6461 | rm -f conftest* | 
|  | 6462 | fi | 
|  | 6463 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6464 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6465 | echo "$ac_t""yes" 1>&6 | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6466 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 6467 | cat >> confdefs.h <<EOF | 
|  | 6468 | #define $ac_tr_func 1 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6469 | EOF | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6470 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6471 | else | 
|  | 6472 | echo "$ac_t""no" 1>&6 | 
|  | 6473 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6474 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6475 |  | 
|  | 6476 |  | 
|  | 6477 | fi | 
|  | 6478 |  | 
|  | 6479 |  | 
|  | 6480 |  | 
|  | 6481 |  | 
|  | 6482 |  | 
|  | 6483 |  | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6484 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6485 | # checks for system services | 
|  | 6486 | # (none yet) | 
|  | 6487 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6488 | # Linux requires this for correct f.p. operations | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6489 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6490 | echo "configure:6491: checking for __fpu_control" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6491 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6492 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 6493 | else | 
|  | 6494 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6495 | #line 6496 "configure" | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6496 | #include "confdefs.h" | 
|  | 6497 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 6498 | which can conflict with char __fpu_control(); below.  */ | 
|  | 6499 | #include <assert.h> | 
|  | 6500 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 6501 | /* We use char because int might match the return type of a gcc2 | 
|  | 6502 | builtin and then its argument prototype would still apply.  */ | 
|  | 6503 | char __fpu_control(); | 
|  | 6504 |  | 
|  | 6505 | int main() { | 
|  | 6506 |  | 
|  | 6507 | /* The GNU C library defines this for functions which it implements | 
|  | 6508 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 6509 | something starting with __ and the normal name is an alias.  */ | 
|  | 6510 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) | 
|  | 6511 | choke me | 
|  | 6512 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6513 | __fpu_control(); | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6514 | #endif | 
|  | 6515 |  | 
|  | 6516 | ; return 0; } | 
|  | 6517 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6518 | if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6519 | rm -rf conftest* | 
|  | 6520 | eval "ac_cv_func___fpu_control=yes" | 
|  | 6521 | else | 
|  | 6522 | echo "configure: failed program was:" >&5 | 
|  | 6523 | cat conftest.$ac_ext >&5 | 
|  | 6524 | rm -rf conftest* | 
|  | 6525 | eval "ac_cv_func___fpu_control=no" | 
|  | 6526 | fi | 
|  | 6527 | rm -f conftest* | 
|  | 6528 | fi | 
|  | 6529 |  | 
|  | 6530 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then | 
|  | 6531 | echo "$ac_t""yes" 1>&6 | 
|  | 6532 | : | 
|  | 6533 | else | 
|  | 6534 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6535 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6536 | echo "configure:6537: checking for __fpu_control in -lieee" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6537 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6538 | 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] | 6539 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6540 | else | 
|  | 6541 | ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6542 | LIBS="-lieee  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6543 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6544 | #line 6545 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6545 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6546 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 6547 | /* We use char because int might match the return type of a gcc2 | 
|  | 6548 | builtin and then its argument prototype would still apply.  */ | 
|  | 6549 | char __fpu_control(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6550 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6551 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6552 | __fpu_control() | 
|  | 6553 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6554 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6555 | if { (eval echo configure:6556: \"$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] | 6556 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6557 | eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6558 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6559 | echo "configure: failed program was:" >&5 | 
|  | 6560 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6561 | rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6562 | eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6563 | fi | 
|  | 6564 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6565 | LIBS="$ac_save_LIBS" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6566 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6567 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6568 | 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] | 6569 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6570 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 
|  | 6571 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6572 | cat >> confdefs.h <<EOF | 
|  | 6573 | #define $ac_tr_lib 1 | 
|  | 6574 | EOF | 
|  | 6575 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6576 | LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6577 |  | 
|  | 6578 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6579 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6580 | fi | 
|  | 6581 |  | 
|  | 6582 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6583 | fi | 
|  | 6584 |  | 
|  | 6585 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6586 | # Check for --with-fpectl | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6587 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6588 | echo "configure:6589: checking for --with-fpectl" >&5 | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6589 | # Check whether --with-fpectl or --without-fpectl was given. | 
|  | 6590 | if test "${with_fpectl+set}" = set; then | 
|  | 6591 | withval="$with_fpectl" | 
|  | 6592 |  | 
|  | 6593 | if test "$withval" != no | 
|  | 6594 | then cat >> confdefs.h <<\EOF | 
|  | 6595 | #define WANT_SIGFPE_HANDLER 1 | 
|  | 6596 | EOF | 
|  | 6597 | echo "$ac_t""yes" 1>&6 | 
|  | 6598 | else echo "$ac_t""no" 1>&6 | 
|  | 6599 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6600 | else | 
|  | 6601 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6602 | fi | 
|  | 6603 |  | 
|  | 6604 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6605 | # check for --with-libm=... | 
|  | 6606 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6607 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 6608 | Darwin) ;; | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6609 | BeOS) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6610 | *) LIBM=-lm | 
|  | 6611 | esac | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6612 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6613 | echo "configure:6614: checking for --with-libm=STRING" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6614 | # Check whether --with-libm or --without-libm was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6615 | if test "${with_libm+set}" = set; then | 
|  | 6616 | withval="$with_libm" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6617 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6618 | if test "$withval" = no | 
|  | 6619 | then LIBM= | 
|  | 6620 | echo "$ac_t""force LIBM empty" 1>&6 | 
|  | 6621 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6622 | then LIBM=$withval | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6623 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6624 | 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] | 6625 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6626 | else | 
|  | 6627 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6628 | fi | 
|  | 6629 |  | 
|  | 6630 |  | 
|  | 6631 | # check for --with-libc=... | 
|  | 6632 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6633 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6634 | echo "configure:6635: checking for --with-libc=STRING" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6635 | # Check whether --with-libc or --without-libc was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6636 | if test "${with_libc+set}" = set; then | 
|  | 6637 | withval="$with_libc" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6638 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6639 | if test "$withval" = no | 
|  | 6640 | then LIBC= | 
|  | 6641 | echo "$ac_t""force LIBC empty" 1>&6 | 
|  | 6642 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6643 | then LIBC=$withval | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6644 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6645 | 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] | 6646 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6647 | else | 
|  | 6648 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6649 | fi | 
|  | 6650 |  | 
|  | 6651 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6652 | # check for hypot() in math library | 
|  | 6653 | LIBS_SAVE=$LIBS | 
|  | 6654 | LIBS="$LIBS $LIBM" | 
|  | 6655 | for ac_func in hypot | 
|  | 6656 | do | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6657 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6658 | echo "configure:6659: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6659 | 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] | 6660 | echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6661 | else | 
|  | 6662 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6663 | #line 6664 "configure" | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6664 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6665 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 6666 | which can conflict with char $ac_func(); below.  */ | 
|  | 6667 | #include <assert.h> | 
|  | 6668 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6669 | /* We use char because int might match the return type of a gcc2 | 
|  | 6670 | builtin and then its argument prototype would still apply.  */ | 
|  | 6671 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6672 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6673 | int main() { | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6674 |  | 
|  | 6675 | /* The GNU C library defines this for functions which it implements | 
|  | 6676 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 6677 | something starting with __ and the normal name is an alias.  */ | 
|  | 6678 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|  | 6679 | choke me | 
|  | 6680 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6681 | $ac_func(); | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6682 | #endif | 
|  | 6683 |  | 
|  | 6684 | ; return 0; } | 
|  | 6685 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6686 | if { (eval echo configure:6687: \"$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] | 6687 | rm -rf conftest* | 
|  | 6688 | eval "ac_cv_func_$ac_func=yes" | 
|  | 6689 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6690 | echo "configure: failed program was:" >&5 | 
|  | 6691 | cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6692 | rm -rf conftest* | 
|  | 6693 | eval "ac_cv_func_$ac_func=no" | 
|  | 6694 | fi | 
|  | 6695 | rm -f conftest* | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6696 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6697 |  | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6698 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|  | 6699 | echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6700 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|  | 6701 | cat >> confdefs.h <<EOF | 
|  | 6702 | #define $ac_tr_func 1 | 
|  | 6703 | EOF | 
|  | 6704 |  | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6705 | else | 
|  | 6706 | echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6707 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6708 | fi | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6709 | done | 
|  | 6710 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6711 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6712 | LIBS=$LIBS_SAVE | 
|  | 6713 |  | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6714 | # check whether malloc(0) returns NULL or not | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6715 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6716 | echo "configure:6717: checking what malloc(0) returns" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6717 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6718 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 6719 | else | 
|  | 6720 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 6721 | ac_cv_malloc_zero=nonnull | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6722 | else | 
|  | 6723 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6724 | #line 6725 "configure" | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6725 | #include "confdefs.h" | 
|  | 6726 | #include <stdio.h> | 
|  | 6727 | #ifdef HAVE_STDLIB | 
|  | 6728 | #include <stdlib.h> | 
|  | 6729 | #else | 
|  | 6730 | char *malloc(), *realloc(); | 
|  | 6731 | int *free(); | 
|  | 6732 | #endif | 
|  | 6733 | main() { | 
|  | 6734 | char *p; | 
|  | 6735 | p = malloc(0); | 
|  | 6736 | if (p == NULL) exit(1); | 
|  | 6737 | p = realloc(p, 0); | 
|  | 6738 | if (p == NULL) exit(1); | 
|  | 6739 | free(p); | 
|  | 6740 | exit(0); | 
|  | 6741 | } | 
|  | 6742 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6743 | if { (eval echo configure:6744: \"$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] | 6744 | then | 
|  | 6745 | ac_cv_malloc_zero=nonnull | 
|  | 6746 | else | 
|  | 6747 | echo "configure: failed program was:" >&5 | 
|  | 6748 | cat conftest.$ac_ext >&5 | 
|  | 6749 | rm -fr conftest* | 
|  | 6750 | ac_cv_malloc_zero=null | 
|  | 6751 | fi | 
|  | 6752 | rm -fr conftest* | 
|  | 6753 | fi | 
|  | 6754 |  | 
|  | 6755 | fi | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 6756 | # XXX arm cross-compile? | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6757 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 | 
|  | 6758 | if test "$ac_cv_malloc_zero" = null | 
|  | 6759 | then | 
|  | 6760 | cat >> confdefs.h <<\EOF | 
|  | 6761 | #define MALLOC_ZERO_RETURNS_NULL 1 | 
|  | 6762 | EOF | 
|  | 6763 |  | 
|  | 6764 | fi | 
|  | 6765 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6766 | # check for wchar.h | 
|  | 6767 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` | 
|  | 6768 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6769 | echo "configure:6770: checking for wchar.h" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6770 | 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] | 6771 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 6772 | else | 
|  | 6773 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6774 | #line 6775 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6775 | #include "confdefs.h" | 
|  | 6776 | #include <wchar.h> | 
|  | 6777 | EOF | 
|  | 6778 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6779 | { (eval echo configure:6780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6780 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|  | 6781 | if test -z "$ac_err"; then | 
|  | 6782 | rm -rf conftest* | 
|  | 6783 | eval "ac_cv_header_$ac_safe=yes" | 
|  | 6784 | else | 
|  | 6785 | echo "$ac_err" >&5 | 
|  | 6786 | echo "configure: failed program was:" >&5 | 
|  | 6787 | cat conftest.$ac_ext >&5 | 
|  | 6788 | rm -rf conftest* | 
|  | 6789 | eval "ac_cv_header_$ac_safe=no" | 
|  | 6790 | fi | 
|  | 6791 | rm -f conftest* | 
|  | 6792 | fi | 
|  | 6793 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|  | 6794 | echo "$ac_t""yes" 1>&6 | 
|  | 6795 | cat >> confdefs.h <<\EOF | 
|  | 6796 | #define HAVE_WCHAR_H 1 | 
|  | 6797 | EOF | 
|  | 6798 | wchar_h="yes" | 
|  | 6799 | else | 
|  | 6800 | echo "$ac_t""no" 1>&6 | 
|  | 6801 | wchar_h="no" | 
|  | 6802 |  | 
|  | 6803 | fi | 
|  | 6804 |  | 
|  | 6805 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6806 | # determine wchar_t size | 
|  | 6807 | if test "$wchar_h" = yes | 
|  | 6808 | then | 
|  | 6809 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6810 | echo "configure:6811: checking size of wchar_t" >&5 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6811 | if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then | 
|  | 6812 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 6813 | else | 
|  | 6814 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 6815 | ac_cv_sizeof_wchar_t=4 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6816 | else | 
|  | 6817 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6818 | #line 6819 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6819 | #include "confdefs.h" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6820 | #include <stdio.h> | 
|  | 6821 | main() | 
|  | 6822 | { | 
|  | 6823 | FILE *f=fopen("conftestval", "w"); | 
|  | 6824 | if (!f) exit(1); | 
|  | 6825 | fprintf(f, "%d\n", sizeof(wchar_t)); | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6826 | exit(0); | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6827 | } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6828 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6829 | if { (eval echo configure:6830: \"$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] | 6830 | then | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6831 | ac_cv_sizeof_wchar_t=`cat conftestval` | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6832 | else | 
|  | 6833 | echo "configure: failed program was:" >&5 | 
|  | 6834 | cat conftest.$ac_ext >&5 | 
|  | 6835 | rm -fr conftest* | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6836 | ac_cv_sizeof_wchar_t=0 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6837 | fi | 
|  | 6838 | rm -fr conftest* | 
|  | 6839 | fi | 
|  | 6840 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6841 | fi | 
|  | 6842 | echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 | 
|  | 6843 | cat >> confdefs.h <<EOF | 
|  | 6844 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
|  | 6845 | EOF | 
|  | 6846 |  | 
|  | 6847 |  | 
|  | 6848 | fi | 
|  | 6849 |  | 
|  | 6850 | echo $ac_n "checking what type to use for unicode""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6851 | echo "configure:6852: checking what type to use for unicode" >&5 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6852 | # Check whether --enable-unicode or --disable-unicode was given. | 
|  | 6853 | if test "${enable_unicode+set}" = set; then | 
|  | 6854 | enableval="$enable_unicode" | 
|  | 6855 | : | 
|  | 6856 | else | 
|  | 6857 | enable_unicode=yes | 
|  | 6858 | fi | 
|  | 6859 |  | 
|  | 6860 |  | 
|  | 6861 | if test $enable_unicode = yes | 
|  | 6862 | then | 
| Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 6863 | # Without any arguments, Py_UNICODE defaults to two-byte mode | 
|  | 6864 | enable_unicode="ucs2" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6865 | fi | 
|  | 6866 |  | 
|  | 6867 | case "$enable_unicode" in | 
|  | 6868 | ucs2) unicode_size="2" | 
|  | 6869 | cat >> confdefs.h <<\EOF | 
|  | 6870 | #define Py_UNICODE_SIZE 2 | 
|  | 6871 | EOF | 
|  | 6872 |  | 
|  | 6873 | ;; | 
|  | 6874 | ucs4) unicode_size="4" | 
|  | 6875 | cat >> confdefs.h <<\EOF | 
|  | 6876 | #define Py_UNICODE_SIZE 4 | 
|  | 6877 | EOF | 
|  | 6878 |  | 
|  | 6879 | ;; | 
|  | 6880 | esac | 
|  | 6881 |  | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 6882 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6883 | if test "$enable_unicode" = "no" | 
|  | 6884 | then | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 6885 | UNICODE_OBJS="" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6886 | echo "$ac_t""not used" 1>&6 | 
|  | 6887 | else | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 6888 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6889 | cat >> confdefs.h <<\EOF | 
|  | 6890 | #define Py_USING_UNICODE 1 | 
|  | 6891 | EOF | 
|  | 6892 |  | 
|  | 6893 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" | 
|  | 6894 | then | 
|  | 6895 | PY_UNICODE_TYPE="wchar_t" | 
|  | 6896 | cat >> confdefs.h <<\EOF | 
|  | 6897 | #define HAVE_USABLE_WCHAR_T 1 | 
|  | 6898 | EOF | 
|  | 6899 |  | 
|  | 6900 | cat >> confdefs.h <<\EOF | 
|  | 6901 | #define PY_UNICODE_TYPE wchar_t | 
|  | 6902 | EOF | 
|  | 6903 |  | 
|  | 6904 | elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
|  | 6905 | then | 
|  | 6906 | PY_UNICODE_TYPE="unsigned short" | 
|  | 6907 | cat >> confdefs.h <<\EOF | 
|  | 6908 | #define PY_UNICODE_TYPE unsigned short | 
|  | 6909 | EOF | 
|  | 6910 |  | 
|  | 6911 | elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
|  | 6912 | then | 
|  | 6913 | PY_UNICODE_TYPE="unsigned long" | 
|  | 6914 | cat >> confdefs.h <<\EOF | 
|  | 6915 | #define PY_UNICODE_TYPE unsigned long | 
|  | 6916 | EOF | 
|  | 6917 |  | 
|  | 6918 | else | 
|  | 6919 | PY_UNICODE_TYPE="no type found" | 
|  | 6920 | fi | 
|  | 6921 | echo "$ac_t""$PY_UNICODE_TYPE" 1>&6 | 
|  | 6922 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6923 |  | 
|  | 6924 | # check for endianness | 
|  | 6925 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6926 | echo "configure:6927: checking whether byte ordering is bigendian" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6927 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6928 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 6929 | else | 
|  | 6930 | ac_cv_c_bigendian=unknown | 
|  | 6931 | # See if sys/param.h defines the BYTE_ORDER macro. | 
|  | 6932 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6933 | #line 6934 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6934 | #include "confdefs.h" | 
|  | 6935 | #include <sys/types.h> | 
|  | 6936 | #include <sys/param.h> | 
|  | 6937 | int main() { | 
|  | 6938 |  | 
|  | 6939 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
|  | 6940 | bogus endian macros | 
|  | 6941 | #endif | 
|  | 6942 | ; return 0; } | 
|  | 6943 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6944 | if { (eval echo configure:6945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6945 | rm -rf conftest* | 
|  | 6946 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
|  | 6947 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6948 | #line 6949 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6949 | #include "confdefs.h" | 
|  | 6950 | #include <sys/types.h> | 
|  | 6951 | #include <sys/param.h> | 
|  | 6952 | int main() { | 
|  | 6953 |  | 
|  | 6954 | #if BYTE_ORDER != BIG_ENDIAN | 
|  | 6955 | not big endian | 
|  | 6956 | #endif | 
|  | 6957 | ; return 0; } | 
|  | 6958 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6959 | if { (eval echo configure:6960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6960 | rm -rf conftest* | 
|  | 6961 | ac_cv_c_bigendian=yes | 
|  | 6962 | else | 
|  | 6963 | echo "configure: failed program was:" >&5 | 
|  | 6964 | cat conftest.$ac_ext >&5 | 
|  | 6965 | rm -rf conftest* | 
|  | 6966 | ac_cv_c_bigendian=no | 
|  | 6967 | fi | 
|  | 6968 | rm -f conftest* | 
|  | 6969 | else | 
|  | 6970 | echo "configure: failed program was:" >&5 | 
|  | 6971 | cat conftest.$ac_ext >&5 | 
|  | 6972 | fi | 
|  | 6973 | rm -f conftest* | 
|  | 6974 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 6975 | if test "$cross_compiling" = yes; then | 
|  | 6976 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
|  | 6977 | else | 
|  | 6978 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6979 | #line 6980 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6980 | #include "confdefs.h" | 
|  | 6981 | main () { | 
|  | 6982 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 6983 | union | 
|  | 6984 | { | 
|  | 6985 | long l; | 
|  | 6986 | char c[sizeof (long)]; | 
|  | 6987 | } u; | 
|  | 6988 | u.l = 1; | 
|  | 6989 | exit (u.c[sizeof (long) - 1] == 1); | 
|  | 6990 | } | 
|  | 6991 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 6992 | if { (eval echo configure:6993: \"$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] | 6993 | then | 
|  | 6994 | ac_cv_c_bigendian=no | 
|  | 6995 | else | 
|  | 6996 | echo "configure: failed program was:" >&5 | 
|  | 6997 | cat conftest.$ac_ext >&5 | 
|  | 6998 | rm -fr conftest* | 
|  | 6999 | ac_cv_c_bigendian=yes | 
|  | 7000 | fi | 
|  | 7001 | rm -fr conftest* | 
|  | 7002 | fi | 
|  | 7003 |  | 
|  | 7004 | fi | 
|  | 7005 | fi | 
|  | 7006 |  | 
|  | 7007 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | 
|  | 7008 | if test $ac_cv_c_bigendian = yes; then | 
|  | 7009 | cat >> confdefs.h <<\EOF | 
|  | 7010 | #define WORDS_BIGENDIAN 1 | 
|  | 7011 | EOF | 
|  | 7012 |  | 
|  | 7013 | fi | 
|  | 7014 |  | 
|  | 7015 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7016 | # Check whether right shifting a negative integer extends the sign bit | 
|  | 7017 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
|  | 7018 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7019 | echo "configure:7020: checking whether right shift extends the sign bit" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7020 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 7021 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 7022 | else | 
|  | 7023 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7024 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7025 | ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7026 | else | 
|  | 7027 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7028 | #line 7029 "configure" | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7029 | #include "confdefs.h" | 
|  | 7030 |  | 
|  | 7031 | int main() | 
|  | 7032 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 7033 | exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7034 | } | 
|  | 7035 |  | 
|  | 7036 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7037 | if { (eval echo configure:7038: \"$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] | 7038 | then | 
|  | 7039 | ac_cv_rshift_extends_sign=yes | 
|  | 7040 | else | 
|  | 7041 | echo "configure: failed program was:" >&5 | 
|  | 7042 | cat conftest.$ac_ext >&5 | 
|  | 7043 | rm -fr conftest* | 
|  | 7044 | ac_cv_rshift_extends_sign=no | 
|  | 7045 | fi | 
|  | 7046 | rm -fr conftest* | 
|  | 7047 | fi | 
|  | 7048 |  | 
|  | 7049 | fi | 
|  | 7050 |  | 
|  | 7051 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 | 
|  | 7052 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7053 | then | 
|  | 7054 | cat >> confdefs.h <<\EOF | 
|  | 7055 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 | 
|  | 7056 | EOF | 
|  | 7057 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7058 | fi | 
|  | 7059 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7060 | # check for getc_unlocked and related locking functions | 
|  | 7061 | echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7062 | echo "configure:7063: checking for getc_unlocked() and friends" >&5 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7063 | if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then | 
|  | 7064 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 7065 | else | 
|  | 7066 |  | 
|  | 7067 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7068 | #line 7069 "configure" | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7069 | #include "confdefs.h" | 
|  | 7070 | #include <stdio.h> | 
|  | 7071 | int main() { | 
|  | 7072 |  | 
|  | 7073 | FILE *f = fopen("/dev/null", "r"); | 
|  | 7074 | flockfile(f); | 
|  | 7075 | getc_unlocked(f); | 
|  | 7076 | funlockfile(f); | 
|  | 7077 |  | 
|  | 7078 | ; return 0; } | 
|  | 7079 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7080 | if { (eval echo configure:7081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7081 | rm -rf conftest* | 
|  | 7082 | ac_cv_have_getc_unlocked=yes | 
|  | 7083 | else | 
|  | 7084 | echo "configure: failed program was:" >&5 | 
|  | 7085 | cat conftest.$ac_ext >&5 | 
|  | 7086 | rm -rf conftest* | 
|  | 7087 | ac_cv_have_getc_unlocked=no | 
|  | 7088 | fi | 
|  | 7089 | rm -f conftest* | 
|  | 7090 | fi | 
|  | 7091 |  | 
|  | 7092 | echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6 | 
|  | 7093 | if test "$ac_cv_have_getc_unlocked" = yes | 
|  | 7094 | then | 
|  | 7095 | cat >> confdefs.h <<\EOF | 
|  | 7096 | #define HAVE_GETC_UNLOCKED 1 | 
|  | 7097 | EOF | 
|  | 7098 |  | 
|  | 7099 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7100 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7101 | # check for readline 4.0 | 
|  | 7102 | echo $ac_n "checking for rl_pre_input_hook in -lreadline""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7103 | echo "configure:7104: checking for rl_pre_input_hook in -lreadline" >&5 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7104 | ac_lib_var=`echo readline'_'rl_pre_input_hook | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7105 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|  | 7106 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 7107 | else | 
|  | 7108 | ac_save_LIBS="$LIBS" | 
|  | 7109 | LIBS="-lreadline -ltermcap $LIBS" | 
|  | 7110 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7111 | #line 7112 "configure" | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7112 | #include "confdefs.h" | 
|  | 7113 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7114 | /* We use char because int might match the return type of a gcc2 | 
|  | 7115 | builtin and then its argument prototype would still apply.  */ | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7116 | char rl_pre_input_hook(); | 
|  | 7117 |  | 
|  | 7118 | int main() { | 
|  | 7119 | rl_pre_input_hook() | 
|  | 7120 | ; return 0; } | 
|  | 7121 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7122 | if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7123 | rm -rf conftest* | 
|  | 7124 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|  | 7125 | else | 
|  | 7126 | echo "configure: failed program was:" >&5 | 
|  | 7127 | cat conftest.$ac_ext >&5 | 
|  | 7128 | rm -rf conftest* | 
|  | 7129 | eval "ac_cv_lib_$ac_lib_var=no" | 
|  | 7130 | fi | 
|  | 7131 | rm -f conftest* | 
|  | 7132 | LIBS="$ac_save_LIBS" | 
|  | 7133 |  | 
|  | 7134 | fi | 
|  | 7135 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|  | 7136 | echo "$ac_t""yes" 1>&6 | 
|  | 7137 | cat >> confdefs.h <<\EOF | 
|  | 7138 | #define HAVE_RL_PRE_INPUT_HOOK 1 | 
|  | 7139 | EOF | 
|  | 7140 |  | 
|  | 7141 | else | 
|  | 7142 | echo "$ac_t""no" 1>&6 | 
|  | 7143 | fi | 
|  | 7144 |  | 
|  | 7145 |  | 
|  | 7146 | # check for readline 4.2 | 
|  | 7147 | echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7148 | echo "configure:7149: checking for rl_completion_matches in -lreadline" >&5 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7149 | ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'` | 
|  | 7150 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|  | 7151 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 7152 | else | 
|  | 7153 | ac_save_LIBS="$LIBS" | 
|  | 7154 | LIBS="-lreadline -ltermcap $LIBS" | 
|  | 7155 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7156 | #line 7157 "configure" | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7157 | #include "confdefs.h" | 
|  | 7158 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|  | 7159 | /* We use char because int might match the return type of a gcc2 | 
|  | 7160 | builtin and then its argument prototype would still apply.  */ | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7161 | char rl_completion_matches(); | 
|  | 7162 |  | 
|  | 7163 | int main() { | 
|  | 7164 | rl_completion_matches() | 
|  | 7165 | ; return 0; } | 
|  | 7166 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7167 | if { (eval echo configure:7168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7168 | rm -rf conftest* | 
|  | 7169 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|  | 7170 | else | 
|  | 7171 | echo "configure: failed program was:" >&5 | 
|  | 7172 | cat conftest.$ac_ext >&5 | 
|  | 7173 | rm -rf conftest* | 
|  | 7174 | eval "ac_cv_lib_$ac_lib_var=no" | 
|  | 7175 | fi | 
|  | 7176 | rm -f conftest* | 
|  | 7177 | LIBS="$ac_save_LIBS" | 
|  | 7178 |  | 
|  | 7179 | fi | 
|  | 7180 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|  | 7181 | echo "$ac_t""yes" 1>&6 | 
|  | 7182 | cat >> confdefs.h <<\EOF | 
|  | 7183 | #define HAVE_RL_COMPLETION_MATCHES 1 | 
|  | 7184 | EOF | 
|  | 7185 |  | 
|  | 7186 | else | 
|  | 7187 | echo "$ac_t""no" 1>&6 | 
|  | 7188 | fi | 
|  | 7189 |  | 
|  | 7190 |  | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7191 | echo $ac_n "checking for broken nice()""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7192 | echo "configure:7193: checking for broken nice()" >&5 | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7193 | if eval "test \"`echo '$''{'ac_cv_broken_nice'+set}'`\" = set"; then | 
|  | 7194 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 7195 | else | 
|  | 7196 |  | 
|  | 7197 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7198 | ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7199 | else | 
|  | 7200 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7201 | #line 7202 "configure" | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7202 | #include "confdefs.h" | 
|  | 7203 |  | 
|  | 7204 | int main() | 
|  | 7205 | { | 
|  | 7206 | int val1 = nice(1); | 
|  | 7207 | if (val1 != -1 && val1 == nice(2)) | 
|  | 7208 | exit(0); | 
|  | 7209 | exit(1); | 
|  | 7210 | } | 
|  | 7211 |  | 
|  | 7212 | EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7213 | if { (eval echo configure:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7214 | then | 
|  | 7215 | ac_cv_broken_nice=yes | 
|  | 7216 | else | 
|  | 7217 | echo "configure: failed program was:" >&5 | 
|  | 7218 | cat conftest.$ac_ext >&5 | 
|  | 7219 | rm -fr conftest* | 
|  | 7220 | ac_cv_broken_nice=no | 
|  | 7221 | fi | 
|  | 7222 | rm -fr conftest* | 
|  | 7223 | fi | 
|  | 7224 |  | 
|  | 7225 | fi | 
|  | 7226 |  | 
|  | 7227 | echo "$ac_t""$ac_cv_broken_nice" 1>&6 | 
|  | 7228 | if test "$ac_cv_broken_nice" = yes | 
|  | 7229 | then | 
|  | 7230 | cat >> confdefs.h <<\EOF | 
|  | 7231 | #define HAVE_BROKEN_NICE 1 | 
|  | 7232 | EOF | 
|  | 7233 |  | 
|  | 7234 | fi | 
|  | 7235 |  | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7236 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! | 
|  | 7237 | # Add sys/socket.h to confdefs.h | 
|  | 7238 | cat >> confdefs.h <<\EOF | 
|  | 7239 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 7240 | #include <sys/socket.h> | 
|  | 7241 | #endif | 
|  | 7242 | EOF | 
|  | 7243 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7244 | echo "configure:7245: checking for socklen_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7245 | 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] | 7246 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|  | 7247 | else | 
|  | 7248 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7249 | #line 7250 "configure" | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7250 | #include "confdefs.h" | 
|  | 7251 | #include <sys/types.h> | 
|  | 7252 | #if STDC_HEADERS | 
|  | 7253 | #include <stdlib.h> | 
|  | 7254 | #include <stddef.h> | 
|  | 7255 | #endif | 
|  | 7256 | EOF | 
|  | 7257 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 7258 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
|  | 7259 | rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7260 | ac_cv_type_socklen_t=yes | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7261 | else | 
|  | 7262 | rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7263 | ac_cv_type_socklen_t=no | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7264 | fi | 
|  | 7265 | rm -f conftest* | 
|  | 7266 |  | 
|  | 7267 | fi | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7268 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 | 
|  | 7269 | if test $ac_cv_type_socklen_t = no; then | 
|  | 7270 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7271 | #define socklen_t int | 
|  | 7272 | EOF | 
|  | 7273 |  | 
|  | 7274 | fi | 
|  | 7275 |  | 
|  | 7276 |  | 
| Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 7277 | # Add Python/ prefix to LIBOBJS | 
|  | 7278 | libobjs=$LIBOBJS | 
|  | 7279 | LIBOBJS= | 
|  | 7280 | for obj in $libobjs; do | 
|  | 7281 | LIBOBJS="$LIBOBJS Python/$obj" | 
|  | 7282 | done | 
|  | 7283 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7284 | #AC_MSG_CHECKING(for Modules/Setup) | 
|  | 7285 | #if test ! -f Modules/Setup ; then | 
|  | 7286 | #    if test ! -d Modules ; then | 
|  | 7287 | #        mkdir Modules | 
|  | 7288 | #    fi | 
|  | 7289 | #    cp "$srcdir/Modules/Setup.dist" Modules/Setup | 
|  | 7290 | #    AC_MSG_RESULT(creating) | 
|  | 7291 | #else | 
|  | 7292 | #    AC_MSG_RESULT(already exists) | 
|  | 7293 | #fi | 
|  | 7294 |  | 
|  | 7295 |  | 
| Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 7296 | SRCDIRS="Parser Grammar Objects Python Modules" | 
| Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 7297 | echo $ac_n "checking for build directories""... $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 7298 | echo "configure:7299: checking for build directories" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7299 | for dir in $SRCDIRS; do | 
|  | 7300 | if test ! -d $dir; then | 
|  | 7301 | mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 7302 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7303 | done | 
|  | 7304 | echo "$ac_t""done" 1>&6 | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 7305 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7306 | # generate output files | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7307 | trap '' 1 2 15 | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7308 | cat > confcache <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7309 | # This file is a shell script that caches the results of configure | 
|  | 7310 | # tests run on this system so they can be shared between configure | 
|  | 7311 | # scripts and configure runs.  It is not useful on other systems. | 
|  | 7312 | # If it contains results you don't want to keep, you may remove or edit it. | 
|  | 7313 | # | 
|  | 7314 | # By default, configure uses ./config.cache as the cache file, | 
|  | 7315 | # creating it if it does not exist already.  You can give configure | 
|  | 7316 | # the --cache-file=FILE option to use a different cache file; that is | 
|  | 7317 | # what configure does when it calls configure scripts in | 
|  | 7318 | # subdirectories, so they share the cache. | 
|  | 7319 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
|  | 7320 | # config.status only pays attention to the cache file if you give it the | 
|  | 7321 | # --recheck option to rerun configure. | 
|  | 7322 | # | 
|  | 7323 | EOF | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7324 | # The following way of writing the cache mishandles newlines in values, | 
|  | 7325 | # but we know of no workaround that is simple, portable, and efficient. | 
|  | 7326 | # So, don't put newlines in cache variables' values. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7327 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 7328 | # 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] | 7329 | (set) 2>&1 | | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7330 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7331 | *ac_space=\ *) | 
|  | 7332 | # `set' does not quote correctly, so add quotes (double-quote substitution | 
|  | 7333 | # turns \\\\ into \\, and sed turns \\ into \). | 
|  | 7334 | sed -n \ | 
|  | 7335 | -e "s/'/'\\\\''/g" \ | 
|  | 7336 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
|  | 7337 | ;; | 
|  | 7338 | *) | 
|  | 7339 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|  | 7340 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
|  | 7341 | ;; | 
|  | 7342 | esac >> confcache | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7343 | if cmp -s $cache_file confcache; then | 
|  | 7344 | : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7345 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7346 | if test -w $cache_file; then | 
|  | 7347 | echo "updating cache $cache_file" | 
|  | 7348 | cat confcache > $cache_file | 
|  | 7349 | else | 
|  | 7350 | echo "not updating unwritable cache $cache_file" | 
|  | 7351 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7352 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7353 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7354 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7355 | 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] | 7356 |  | 
|  | 7357 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 7358 | # Let make expand exec_prefix. | 
|  | 7359 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7360 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7361 | # Any assignment to VPATH causes Sun make to only execute | 
|  | 7362 | # the first set of double-colon rules, so remove it if not needed. | 
|  | 7363 | # If there is a colon in the path, we need to keep it. | 
|  | 7364 | if test "x$srcdir" = x.; then | 
|  | 7365 | ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d' | 
|  | 7366 | fi | 
|  | 7367 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7368 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7369 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7370 | DEFS=-DHAVE_CONFIG_H | 
|  | 7371 |  | 
|  | 7372 | # Without the "./", some shells look in PATH for config.status. | 
|  | 7373 | : ${CONFIG_STATUS=./config.status} | 
|  | 7374 |  | 
|  | 7375 | echo creating $CONFIG_STATUS | 
|  | 7376 | rm -f $CONFIG_STATUS | 
|  | 7377 | cat > $CONFIG_STATUS <<EOF | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7378 | #! /bin/sh | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7379 | # Generated automatically by configure. | 
|  | 7380 | # Run this file to recreate the current configuration. | 
|  | 7381 | # This directory was configured as follows, | 
|  | 7382 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 7383 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7384 | # $0 $ac_configure_args | 
|  | 7385 | # | 
|  | 7386 | # Compiler output produced by configure, useful for debugging | 
|  | 7387 | # configure, is in ./config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7388 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7389 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7390 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7391 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7392 | case "\$ac_option" in | 
|  | 7393 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7394 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | 
|  | 7395 | 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] | 7396 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7397 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7398 | exit 0 ;; | 
|  | 7399 | -help | --help | --hel | --he | --h) | 
|  | 7400 | echo "\$ac_cs_usage"; exit 0 ;; | 
|  | 7401 | *) echo "\$ac_cs_usage"; exit 1 ;; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7402 | esac | 
|  | 7403 | done | 
|  | 7404 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7405 | ac_given_srcdir=$srcdir | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7406 | ac_given_INSTALL="$INSTALL" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7407 |  | 
| Martin v. Löwis | 4f1cd8b | 2001-07-26 13:41:06 +0000 | [diff] [blame] | 7408 | trap 'rm -fr `echo "Makefile.pre Modules/Setup.config pyconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7409 | EOF | 
|  | 7410 | cat >> $CONFIG_STATUS <<EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7411 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7412 | # Protect against being on the right side of a sed subst in config.status. | 
|  | 7413 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | 
|  | 7414 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7415 | $ac_vpsub | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7416 | $extrasub | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7417 | s%@SHELL@%$SHELL%g | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7418 | s%@CFLAGS@%$CFLAGS%g | 
|  | 7419 | s%@CPPFLAGS@%$CPPFLAGS%g | 
|  | 7420 | s%@CXXFLAGS@%$CXXFLAGS%g | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7421 | s%@FFLAGS@%$FFLAGS%g | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7422 | s%@DEFS@%$DEFS%g | 
|  | 7423 | s%@LDFLAGS@%$LDFLAGS%g | 
|  | 7424 | s%@LIBS@%$LIBS%g | 
|  | 7425 | s%@exec_prefix@%$exec_prefix%g | 
|  | 7426 | s%@prefix@%$prefix%g | 
|  | 7427 | s%@program_transform_name@%$program_transform_name%g | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7428 | s%@bindir@%$bindir%g | 
|  | 7429 | s%@sbindir@%$sbindir%g | 
|  | 7430 | s%@libexecdir@%$libexecdir%g | 
|  | 7431 | s%@datadir@%$datadir%g | 
|  | 7432 | s%@sysconfdir@%$sysconfdir%g | 
|  | 7433 | s%@sharedstatedir@%$sharedstatedir%g | 
|  | 7434 | s%@localstatedir@%$localstatedir%g | 
|  | 7435 | s%@libdir@%$libdir%g | 
|  | 7436 | s%@includedir@%$includedir%g | 
|  | 7437 | s%@oldincludedir@%$oldincludedir%g | 
|  | 7438 | s%@infodir@%$infodir%g | 
|  | 7439 | s%@mandir@%$mandir%g | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 7440 | s%@VERSION@%$VERSION%g | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 7441 | s%@CONFIG_ARGS@%$CONFIG_ARGS%g | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7442 | s%@PYTHONFRAMEWORK@%$PYTHONFRAMEWORK%g | 
|  | 7443 | s%@PYTHONFRAMEWORKDIR@%$PYTHONFRAMEWORKDIR%g | 
|  | 7444 | s%@PYTHONFRAMEWORKPREFIX@%$PYTHONFRAMEWORKPREFIX%g | 
|  | 7445 | s%@PYTHONFRAMEWORKINSTALLDIR@%$PYTHONFRAMEWORKINSTALLDIR%g | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 7446 | s%@MACHDEP@%$MACHDEP%g | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7447 | s%@SGI_ABI@%$SGI_ABI%g | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 7448 | s%@CXX@%$CXX%g | 
| Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 7449 | s%@MAINOBJ@%$MAINOBJ%g | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7450 | s%@CC@%$CC%g | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 7451 | s%@CPP@%$CPP%g | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7452 | s%@EXEEXT@%$EXEEXT%g | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7453 | s%@LIBRARY@%$LIBRARY%g | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7454 | s%@LDLIBRARY@%$LDLIBRARY%g | 
| Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 7455 | s%@DLLLIBRARY@%$DLLLIBRARY%g | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7456 | s%@BLDLIBRARY@%$BLDLIBRARY%g | 
|  | 7457 | s%@LDLIBRARYDIR@%$LDLIBRARYDIR%g | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 7458 | s%@LINKCC@%$LINKCC%g | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7459 | s%@RANLIB@%$RANLIB%g | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7460 | s%@AR@%$AR%g | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7461 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7462 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7463 | s%@INSTALL_DATA@%$INSTALL_DATA%g | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7464 | s%@LN@%$LN%g | 
| Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 7465 | s%@OPT@%$OPT%g | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7466 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7467 | s%@SO@%$SO%g | 
|  | 7468 | s%@LDSHARED@%$LDSHARED%g | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7469 | s%@BLDSHARED@%$BLDSHARED%g | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7470 | s%@CCSHARED@%$CCSHARED%g | 
|  | 7471 | s%@LINKFORSHARED@%$LINKFORSHARED%g | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7472 | s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7473 | s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g | 
|  | 7474 | s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 7475 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 7476 | s%@LDLAST@%$LDLAST%g | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7477 | s%@DLINCLDIR@%$DLINCLDIR%g | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 7478 | s%@DYNLOADFILE@%$DYNLOADFILE%g | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 7479 | s%@MACHDEP_OBJS@%$MACHDEP_OBJS%g | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7480 | s%@LIBOBJS@%$LIBOBJS%g | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 7481 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g | 
|  | 7482 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g | 
|  | 7483 | 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] | 7484 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 7485 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7486 | s%@LIBM@%$LIBM%g | 
|  | 7487 | s%@LIBC@%$LIBC%g | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 7488 | s%@UNICODE_OBJS@%$UNICODE_OBJS%g | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7489 | s%@SRCDIRS@%$SRCDIRS%g | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7490 |  | 
|  | 7491 | CEOF | 
|  | 7492 | EOF | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7493 |  | 
|  | 7494 | cat >> $CONFIG_STATUS <<\EOF | 
|  | 7495 |  | 
|  | 7496 | # Split the substitutions into bite-sized pieces for seds with | 
|  | 7497 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
|  | 7498 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | 
|  | 7499 | ac_file=1 # Number of current file. | 
|  | 7500 | ac_beg=1 # First line for current file. | 
|  | 7501 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | 
|  | 7502 | ac_more_lines=: | 
|  | 7503 | ac_sed_cmds="" | 
|  | 7504 | while $ac_more_lines; do | 
|  | 7505 | if test $ac_beg -gt 1; then | 
|  | 7506 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | 
|  | 7507 | else | 
|  | 7508 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | 
|  | 7509 | fi | 
|  | 7510 | if test ! -s conftest.s$ac_file; then | 
|  | 7511 | ac_more_lines=false | 
|  | 7512 | rm -f conftest.s$ac_file | 
|  | 7513 | else | 
|  | 7514 | if test -z "$ac_sed_cmds"; then | 
|  | 7515 | ac_sed_cmds="sed -f conftest.s$ac_file" | 
|  | 7516 | else | 
|  | 7517 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | 
|  | 7518 | fi | 
|  | 7519 | ac_file=`expr $ac_file + 1` | 
|  | 7520 | ac_beg=$ac_end | 
|  | 7521 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | 
|  | 7522 | fi | 
|  | 7523 | done | 
|  | 7524 | if test -z "$ac_sed_cmds"; then | 
|  | 7525 | ac_sed_cmds=cat | 
|  | 7526 | fi | 
|  | 7527 | EOF | 
|  | 7528 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7529 | cat >> $CONFIG_STATUS <<EOF | 
|  | 7530 |  | 
| Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 7531 | CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"} | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7532 | EOF | 
|  | 7533 | cat >> $CONFIG_STATUS <<\EOF | 
|  | 7534 | 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] | 7535 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7536 | case "$ac_file" in | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7537 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7538 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
|  | 7539 | *) ac_file_in="${ac_file}.in" ;; | 
|  | 7540 | esac | 
|  | 7541 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7542 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7543 |  | 
|  | 7544 | # Remove last slash and all that follows it.  Not all systems have dirname. | 
|  | 7545 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
|  | 7546 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
|  | 7547 | # The file is in a subdirectory. | 
|  | 7548 | test ! -d "$ac_dir" && mkdir "$ac_dir" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7549 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7550 | # A "../" for each directory in $ac_dir_suffix. | 
|  | 7551 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | 
|  | 7552 | else | 
|  | 7553 | ac_dir_suffix= ac_dots= | 
|  | 7554 | fi | 
|  | 7555 |  | 
|  | 7556 | case "$ac_given_srcdir" in | 
|  | 7557 | .)  srcdir=. | 
|  | 7558 | if test -z "$ac_dots"; then top_srcdir=. | 
|  | 7559 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | 
|  | 7560 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | 
|  | 7561 | *) # Relative path. | 
|  | 7562 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | 
|  | 7563 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | 
|  | 7564 | esac | 
|  | 7565 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7566 | case "$ac_given_INSTALL" in | 
|  | 7567 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | 
|  | 7568 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 
|  | 7569 | esac | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7570 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7571 | echo creating "$ac_file" | 
|  | 7572 | rm -f "$ac_file" | 
|  | 7573 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | 
|  | 7574 | case "$ac_file" in | 
|  | 7575 | *Makefile*) ac_comsub="1i\\ | 
|  | 7576 | # $configure_input" ;; | 
|  | 7577 | *) ac_comsub= ;; | 
|  | 7578 | esac | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7579 |  | 
|  | 7580 | 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] | 7581 | sed -e "$ac_comsub | 
|  | 7582 | s%@configure_input@%$configure_input%g | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7583 | s%@srcdir@%$srcdir%g | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7584 | s%@top_srcdir@%$top_srcdir%g | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7585 | s%@INSTALL@%$INSTALL%g | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7586 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7587 | fi; done | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7588 | rm -f conftest.s* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7589 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7590 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
|  | 7591 | # 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] | 7592 | # | 
|  | 7593 | # ac_d sets the value in "#define NAME VALUE" lines. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7594 | ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)' | 
|  | 7595 | ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7596 | ac_dC='\3' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7597 | ac_dD='%g' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7598 | # 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] | 7599 | ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)' | 
|  | 7600 | ac_uB='\([ 	]\)%\1#\2define\3' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7601 | ac_uC=' ' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7602 | ac_uD='\4%g' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7603 | # 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] | 7604 | ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)' | 
|  | 7605 | ac_eB='$%\1#\2define\3' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7606 | ac_eC=' ' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7607 | ac_eD='%g' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7608 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7609 | if test "${CONFIG_HEADERS+set}" != set; then | 
|  | 7610 | EOF | 
|  | 7611 | cat >> $CONFIG_STATUS <<EOF | 
| Martin v. Löwis | 4f1cd8b | 2001-07-26 13:41:06 +0000 | [diff] [blame] | 7612 | CONFIG_HEADERS="pyconfig.h" | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7613 | EOF | 
|  | 7614 | cat >> $CONFIG_STATUS <<\EOF | 
|  | 7615 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7616 | 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] | 7617 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7618 | case "$ac_file" in | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7619 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7620 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
|  | 7621 | *) ac_file_in="${ac_file}.in" ;; | 
|  | 7622 | esac | 
|  | 7623 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7624 | echo creating $ac_file | 
|  | 7625 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7626 | rm -f conftest.frag conftest.in conftest.out | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7627 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | 
|  | 7628 | cat $ac_file_inputs > conftest.in | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7629 |  | 
|  | 7630 | EOF | 
|  | 7631 |  | 
|  | 7632 | # Transform confdefs.h into a sed script conftest.vals that substitutes | 
|  | 7633 | # 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] | 7634 | # 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] | 7635 | # Protect against being in an unquoted here document in config.status. | 
|  | 7636 | rm -f conftest.vals | 
|  | 7637 | cat > conftest.hdr <<\EOF | 
|  | 7638 | s/[\\&%]/\\&/g | 
|  | 7639 | s%[\\$`]%\\&%g | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7640 | 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] | 7641 | s%ac_d%ac_u%gp | 
|  | 7642 | s%ac_u%ac_e%gp | 
|  | 7643 | EOF | 
|  | 7644 | sed -n -f conftest.hdr confdefs.h > conftest.vals | 
|  | 7645 | rm -f conftest.hdr | 
|  | 7646 |  | 
|  | 7647 | # This sed command replaces #undef with comments.  This is necessary, for | 
|  | 7648 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 7649 | # on some systems where configure will not decide to define it. | 
|  | 7650 | cat >> conftest.vals <<\EOF | 
|  | 7651 | s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | 
|  | 7652 | EOF | 
|  | 7653 |  | 
|  | 7654 | # Break up conftest.vals because some shells have a limit on | 
|  | 7655 | # 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] | 7656 |  | 
|  | 7657 | rm -f conftest.tail | 
|  | 7658 | while : | 
|  | 7659 | do | 
|  | 7660 | ac_lines=`grep -c . conftest.vals` | 
|  | 7661 | # grep -c gives empty output for an empty file on some AIX systems. | 
|  | 7662 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | 
|  | 7663 | # Write a limited-size here document to conftest.frag. | 
|  | 7664 | echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | 
|  | 7665 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | 
|  | 7666 | echo 'CEOF | 
|  | 7667 | sed -f conftest.frag conftest.in > conftest.out | 
|  | 7668 | rm -f conftest.in | 
|  | 7669 | mv conftest.out conftest.in | 
|  | 7670 | ' >> $CONFIG_STATUS | 
|  | 7671 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | 
|  | 7672 | rm -f conftest.vals | 
|  | 7673 | mv conftest.tail conftest.vals | 
|  | 7674 | done | 
|  | 7675 | rm -f conftest.vals | 
|  | 7676 |  | 
|  | 7677 | cat >> $CONFIG_STATUS <<\EOF | 
|  | 7678 | rm -f conftest.frag conftest.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7679 | echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7680 | cat conftest.in >> conftest.h | 
|  | 7681 | rm -f conftest.in | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7682 | if cmp -s $ac_file conftest.h 2>/dev/null; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7683 | echo "$ac_file is unchanged" | 
|  | 7684 | rm -f conftest.h | 
|  | 7685 | else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7686 | # Remove last slash and all that follows it.  Not all systems have dirname. | 
|  | 7687 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
|  | 7688 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
|  | 7689 | # The file is in a subdirectory. | 
|  | 7690 | test ! -d "$ac_dir" && mkdir "$ac_dir" | 
|  | 7691 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7692 | rm -f $ac_file | 
|  | 7693 | mv conftest.h $ac_file | 
|  | 7694 | fi | 
|  | 7695 | fi; done | 
|  | 7696 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7697 | EOF | 
|  | 7698 | cat >> $CONFIG_STATUS <<EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7699 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7700 | EOF | 
|  | 7701 | cat >> $CONFIG_STATUS <<\EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7702 |  | 
|  | 7703 | exit 0 | 
|  | 7704 | EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7705 | chmod +x $CONFIG_STATUS | 
|  | 7706 | rm -fr confdefs* $ac_clean_files | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7707 | 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] | 7708 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7709 |  | 
|  | 7710 | echo "creating Setup" | 
|  | 7711 | if test ! -f Modules/Setup | 
|  | 7712 | then | 
|  | 7713 | cp $srcdir/Modules/Setup.dist Modules/Setup | 
|  | 7714 | fi | 
|  | 7715 |  | 
|  | 7716 | echo "creating Setup.local" | 
|  | 7717 | if test ! -f Modules/Setup.local | 
|  | 7718 | then | 
|  | 7719 | echo "# Edit this file for local setup changes" >Modules/Setup.local | 
|  | 7720 | fi | 
|  | 7721 |  | 
|  | 7722 | echo "creating Makefile" | 
|  | 7723 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
|  | 7724 | -s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 7725 | Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7726 | mv config.c Modules |