| 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 | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.228  | 
| 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 | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 17 |   --with-next-archs='arch1 arch2 ..'   build MAB binary" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 18 | ac_help="$ac_help | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 19 |   --with-next-framework           Build (OpenStep|Rhapsody|MacOSX|Darwin) framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 20 | ac_help="$ac_help | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 21 |   --with-dyld                     Use (OpenStep|Rhapsody|MacOSX|Darwin) dynamic linker" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 22 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 23 |   --without-gcc                   never use gcc" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 25 |   --with-cxx=<compiler>           enable C++ support" | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 26 | ac_help="$ac_help | 
| Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 27 |   --with-suffix=.exe              set executable suffix" | 
 | 28 | ac_help="$ac_help | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 29 |   --with-pydebug                  build with Py_DEBUG defined" | 
 | 30 | ac_help="$ac_help | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 31 |   --enable-ipv6                   Enable ipv6 (with ipv4) support | 
 | 32 |   --disable-ipv6                  Disable ipv6 support" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 33 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 34 |   --with-libs='lib1 ...'          link against additional libs" | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 35 | ac_help="$ac_help | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 36 |   --with-signal-module            disable/enable signal module" | 
 | 37 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 38 |   --with-dec-threads              use DEC Alpha/OSF1 thread-safe libraries" | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 39 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 40 |   --with(out)-threads[=DIRECTORY] disable/enable thread support" | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 41 | ac_help="$ac_help | 
| Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 42 |   --with(out)-thread[=DIRECTORY]  deprecated; use --with(out)-threads" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 43 | ac_help="$ac_help | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 44 |   --with-pth                      use GNU pth threading libraries" | 
 | 45 | ac_help="$ac_help | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 46 |   --with(out)-cycle-gc            disable/enable garbage collection" | 
 | 47 | ac_help="$ac_help | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 48 |   --with(out)-pymalloc            disable/enable specialized mallocs" | 
 | 49 | ac_help="$ac_help | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 50 |   --with-wctype-functions         use wctype.h functions" | 
 | 51 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 52 |   --with-sgi-dl=DIRECTORY         IRIX 4 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-dl-dld=DL_DIR,DLD_DIR    GNU dynamic linking" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 55 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 56 |   --with-fpectl                   enable SIGFPE catching" | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 57 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 58 |   --with-libm=STRING              math library" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 59 | ac_help="$ac_help | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 60 |   --with-libc=STRING              C library" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 61 | ac_help="$ac_help | 
 | 62 |   --enable-unicode[=ucs2,ucs4]    Enable Unicode strings (default is yes)" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 63 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 64 | # Initialize some variables set by options. | 
 | 65 | # The variables have the same names as the options, with | 
 | 66 | # dashes changed to underlines. | 
 | 67 | build=NONE | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 68 | cache_file=./config.cache | 
 | 69 | exec_prefix=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 70 | host=NONE | 
 | 71 | no_create= | 
 | 72 | nonopt=NONE | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 73 | no_recursion= | 
 | 74 | prefix=NONE | 
 | 75 | program_prefix=NONE | 
 | 76 | program_suffix=NONE | 
 | 77 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 78 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 79 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 80 | srcdir= | 
 | 81 | target=NONE | 
 | 82 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 83 | x_includes=NONE | 
 | 84 | x_libraries=NONE | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 85 | bindir='${exec_prefix}/bin' | 
 | 86 | sbindir='${exec_prefix}/sbin' | 
 | 87 | libexecdir='${exec_prefix}/libexec' | 
 | 88 | datadir='${prefix}/share' | 
 | 89 | sysconfdir='${prefix}/etc' | 
 | 90 | sharedstatedir='${prefix}/com' | 
 | 91 | localstatedir='${prefix}/var' | 
 | 92 | libdir='${exec_prefix}/lib' | 
 | 93 | includedir='${prefix}/include' | 
 | 94 | oldincludedir='/usr/include' | 
 | 95 | infodir='${prefix}/info' | 
 | 96 | mandir='${prefix}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 97 |  | 
 | 98 | # Initialize some other variables. | 
 | 99 | subdirs= | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 100 | MFLAGS= MAKEFLAGS= | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 101 | SHELL=${CONFIG_SHELL-/bin/sh} | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 102 | # Maximum number of lines to put in a shell here document. | 
 | 103 | ac_max_here_lines=12 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 104 |  | 
 | 105 | ac_prev= | 
 | 106 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 107 | do | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 108 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 109 |   # If the previous option needs an argument, assign it. | 
 | 110 |   if test -n "$ac_prev"; then | 
 | 111 |     eval "$ac_prev=\$ac_option" | 
 | 112 |     ac_prev= | 
 | 113 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 114 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 115 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 116 |   case "$ac_option" in | 
 | 117 |   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | 
 | 118 |   *) ac_optarg= ;; | 
 | 119 |   esac | 
 | 120 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 121 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 122 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 123 |   case "$ac_option" in | 
 | 124 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 125 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 126 |     ac_prev=bindir ;; | 
 | 127 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
 | 128 |     bindir="$ac_optarg" ;; | 
 | 129 |  | 
 | 130 |   -build | --build | --buil | --bui | --bu) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 131 |     ac_prev=build ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 132 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 133 |     build="$ac_optarg" ;; | 
 | 134 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 135 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 136 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 137 |     ac_prev=cache_file ;; | 
 | 138 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 139 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
 | 140 |     cache_file="$ac_optarg" ;; | 
 | 141 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 142 |   -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
 | 143 |     ac_prev=datadir ;; | 
 | 144 |   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
 | 145 |   | --da=*) | 
 | 146 |     datadir="$ac_optarg" ;; | 
 | 147 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 148 |   -disable-* | --disable-*) | 
 | 149 |     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 150 |     # Reject names that are not valid shell variable names. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 151 |     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] | 152 |       { 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] | 153 |     fi | 
 | 154 |     ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
 | 155 |     eval "enable_${ac_feature}=no" ;; | 
 | 156 |  | 
 | 157 |   -enable-* | --enable-*) | 
 | 158 |     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 159 |     # Reject names that are not valid shell variable names. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 160 |     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] | 161 |       { 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] | 162 |     fi | 
 | 163 |     ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
 | 164 |     case "$ac_option" in | 
 | 165 |       *=*) ;; | 
 | 166 |       *) ac_optarg=yes ;; | 
 | 167 |     esac | 
 | 168 |     eval "enable_${ac_feature}='$ac_optarg'" ;; | 
 | 169 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 170 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 171 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 172 |   | --exec | --exe | --ex) | 
 | 173 |     ac_prev=exec_prefix ;; | 
 | 174 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 175 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 176 |   | --exec=* | --exe=* | --ex=*) | 
 | 177 |     exec_prefix="$ac_optarg" ;; | 
 | 178 |  | 
 | 179 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 180 |     # Obsolete; use --with-gas. | 
 | 181 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 182 |  | 
 | 183 |   -help | --help | --hel | --he) | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 184 |     # Omit some internal or obsolete options to make the list less imposing. | 
 | 185 |     # 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] | 186 |     cat << EOF | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 187 | Usage: configure [options] [host] | 
 | 188 | Options: [defaults in brackets after descriptions] | 
 | 189 | Configuration: | 
 | 190 |   --cache-file=FILE       cache test results in FILE | 
 | 191 |   --help                  print this message | 
 | 192 |   --no-create             do not create output files | 
 | 193 |   --quiet, --silent       do not print \`checking...' messages | 
 | 194 |   --version               print the version of autoconf that created configure | 
 | 195 | Directory and file names: | 
 | 196 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
 | 197 |                           [$ac_default_prefix] | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 198 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 199 |                           [same as prefix] | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 200 |   --bindir=DIR            user executables in DIR [EPREFIX/bin] | 
 | 201 |   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin] | 
 | 202 |   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec] | 
 | 203 |   --datadir=DIR           read-only architecture-independent data in DIR | 
 | 204 |                           [PREFIX/share] | 
 | 205 |   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc] | 
 | 206 |   --sharedstatedir=DIR    modifiable architecture-independent data in DIR | 
 | 207 |                           [PREFIX/com] | 
 | 208 |   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var] | 
 | 209 |   --libdir=DIR            object code libraries in DIR [EPREFIX/lib] | 
 | 210 |   --includedir=DIR        C header files in DIR [PREFIX/include] | 
 | 211 |   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include] | 
 | 212 |   --infodir=DIR           info documentation in DIR [PREFIX/info] | 
 | 213 |   --mandir=DIR            man documentation in DIR [PREFIX/man] | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 214 |   --srcdir=DIR            find the sources in DIR [configure dir or ..] | 
 | 215 |   --program-prefix=PREFIX prepend PREFIX to installed program names | 
 | 216 |   --program-suffix=SUFFIX append SUFFIX to installed program names | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 217 |   --program-transform-name=PROGRAM | 
 | 218 |                           run sed PROGRAM on installed program names | 
 | 219 | EOF | 
 | 220 |     cat << EOF | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 221 | Host type: | 
 | 222 |   --build=BUILD           configure for building on BUILD [BUILD=HOST] | 
 | 223 |   --host=HOST             configure for HOST [guessed] | 
 | 224 |   --target=TARGET         configure for TARGET [TARGET=HOST] | 
 | 225 | Features and packages: | 
 | 226 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 227 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
 | 228 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 229 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
 | 230 |   --x-includes=DIR        X include files are in DIR | 
 | 231 |   --x-libraries=DIR       X library files are in DIR | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 232 | EOF | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 233 |     if test -n "$ac_help"; then | 
 | 234 |       echo "--enable and --with options recognized:$ac_help" | 
 | 235 |     fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 236 |     exit 0 ;; | 
 | 237 |  | 
 | 238 |   -host | --host | --hos | --ho) | 
 | 239 |     ac_prev=host ;; | 
 | 240 |   -host=* | --host=* | --hos=* | --ho=*) | 
 | 241 |     host="$ac_optarg" ;; | 
 | 242 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 243 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 244 |   | --includ | --inclu | --incl | --inc) | 
 | 245 |     ac_prev=includedir ;; | 
 | 246 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 247 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
 | 248 |     includedir="$ac_optarg" ;; | 
 | 249 |  | 
 | 250 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 251 |     ac_prev=infodir ;; | 
 | 252 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
 | 253 |     infodir="$ac_optarg" ;; | 
 | 254 |  | 
 | 255 |   -libdir | --libdir | --libdi | --libd) | 
 | 256 |     ac_prev=libdir ;; | 
 | 257 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
 | 258 |     libdir="$ac_optarg" ;; | 
 | 259 |  | 
 | 260 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 261 |   | --libexe | --libex | --libe) | 
 | 262 |     ac_prev=libexecdir ;; | 
 | 263 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 264 |   | --libexe=* | --libex=* | --libe=*) | 
 | 265 |     libexecdir="$ac_optarg" ;; | 
 | 266 |  | 
 | 267 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
 | 268 |   | --localstate | --localstat | --localsta | --localst \ | 
 | 269 |   | --locals | --local | --loca | --loc | --lo) | 
 | 270 |     ac_prev=localstatedir ;; | 
 | 271 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
 | 272 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
 | 273 |   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
 | 274 |     localstatedir="$ac_optarg" ;; | 
 | 275 |  | 
 | 276 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 277 |     ac_prev=mandir ;; | 
 | 278 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
 | 279 |     mandir="$ac_optarg" ;; | 
 | 280 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 281 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 282 |     # Obsolete; use --without-fp. | 
 | 283 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 284 |  | 
 | 285 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 286 |   | --no-cr | --no-c) | 
 | 287 |     no_create=yes ;; | 
 | 288 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 289 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 290 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 291 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 292 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 293 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 294 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 295 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 296 |     ac_prev=oldincludedir ;; | 
 | 297 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 298 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 299 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
 | 300 |     oldincludedir="$ac_optarg" ;; | 
 | 301 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 302 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 303 |     ac_prev=prefix ;; | 
 | 304 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 305 |     prefix="$ac_optarg" ;; | 
 | 306 |  | 
 | 307 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 308 |   | --program-pre | --program-pr | --program-p) | 
 | 309 |     ac_prev=program_prefix ;; | 
 | 310 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 311 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
 | 312 |     program_prefix="$ac_optarg" ;; | 
 | 313 |  | 
 | 314 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 315 |   | --program-suf | --program-su | --program-s) | 
 | 316 |     ac_prev=program_suffix ;; | 
 | 317 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 318 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
 | 319 |     program_suffix="$ac_optarg" ;; | 
 | 320 |  | 
 | 321 |   -program-transform-name | --program-transform-name \ | 
 | 322 |   | --program-transform-nam | --program-transform-na \ | 
 | 323 |   | --program-transform-n | --program-transform- \ | 
 | 324 |   | --program-transform | --program-transfor \ | 
 | 325 |   | --program-transfo | --program-transf \ | 
 | 326 |   | --program-trans | --program-tran \ | 
 | 327 |   | --progr-tra | --program-tr | --program-t) | 
 | 328 |     ac_prev=program_transform_name ;; | 
 | 329 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 330 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 331 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 332 |   | --program-transform=* | --program-transfor=* \ | 
 | 333 |   | --program-transfo=* | --program-transf=* \ | 
 | 334 |   | --program-trans=* | --program-tran=* \ | 
 | 335 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
 | 336 |     program_transform_name="$ac_optarg" ;; | 
 | 337 |  | 
 | 338 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 339 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 340 |     silent=yes ;; | 
 | 341 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 342 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 343 |     ac_prev=sbindir ;; | 
 | 344 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 345 |   | --sbi=* | --sb=*) | 
 | 346 |     sbindir="$ac_optarg" ;; | 
 | 347 |  | 
 | 348 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 349 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 350 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 351 |   | --sha | --sh) | 
 | 352 |     ac_prev=sharedstatedir ;; | 
 | 353 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 354 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 355 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 356 |   | --sha=* | --sh=*) | 
 | 357 |     sharedstatedir="$ac_optarg" ;; | 
 | 358 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 359 |   -site | --site | --sit) | 
 | 360 |     ac_prev=site ;; | 
 | 361 |   -site=* | --site=* | --sit=*) | 
 | 362 |     site="$ac_optarg" ;; | 
 | 363 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 364 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 365 |     ac_prev=srcdir ;; | 
 | 366 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 367 |     srcdir="$ac_optarg" ;; | 
 | 368 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 369 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 370 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 371 |     ac_prev=sysconfdir ;; | 
 | 372 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 373 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
 | 374 |     sysconfdir="$ac_optarg" ;; | 
 | 375 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 376 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
 | 377 |     ac_prev=target ;; | 
 | 378 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
 | 379 |     target="$ac_optarg" ;; | 
 | 380 |  | 
 | 381 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 382 |     verbose=yes ;; | 
 | 383 |  | 
 | 384 |   -version | --version | --versio | --versi | --vers) | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 385 |     echo "configure generated by autoconf version 2.13" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 386 |     exit 0 ;; | 
 | 387 |  | 
 | 388 |   -with-* | --with-*) | 
 | 389 |     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 390 |     # Reject names that are not valid shell variable names. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 391 |     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 392 |       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 393 |     fi | 
 | 394 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
 | 395 |     case "$ac_option" in | 
 | 396 |       *=*) ;; | 
 | 397 |       *) ac_optarg=yes ;; | 
 | 398 |     esac | 
 | 399 |     eval "with_${ac_package}='$ac_optarg'" ;; | 
 | 400 |  | 
 | 401 |   -without-* | --without-*) | 
 | 402 |     ac_package=`echo $ac_option|sed -e 's/-*without-//'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 403 |     # Reject names that are not valid shell variable names. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 404 |     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] | 405 |       { 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] | 406 |     fi | 
 | 407 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
 | 408 |     eval "with_${ac_package}=no" ;; | 
 | 409 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 410 |   --x) | 
 | 411 |     # Obsolete; use --with-x. | 
 | 412 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 413 |  | 
 | 414 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 415 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 416 |     ac_prev=x_includes ;; | 
 | 417 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 418 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
 | 419 |     x_includes="$ac_optarg" ;; | 
 | 420 |  | 
 | 421 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 422 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 423 |     ac_prev=x_libraries ;; | 
 | 424 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 425 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
 | 426 |     x_libraries="$ac_optarg" ;; | 
 | 427 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 428 |   -*) { 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] | 429 |     ;; | 
 | 430 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 431 |   *) | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 432 |     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] | 433 |       echo "configure: warning: $ac_option: invalid host type" 1>&2 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 434 |     fi | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 435 |     if test "x$nonopt" != xNONE; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 436 |       { 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] | 437 |     fi | 
 | 438 |     nonopt="$ac_option" | 
 | 439 |     ;; | 
 | 440 |  | 
 | 441 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 442 | done | 
 | 443 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 444 | if test -n "$ac_prev"; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 445 |   { 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] | 446 | fi | 
 | 447 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 448 | 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] | 449 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 450 | # File descriptor usage: | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 451 | # 0 standard input | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 452 | # 1 file creation | 
 | 453 | # 2 errors and warnings | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 454 | # 3 some systems may open it to /dev/tty | 
 | 455 | # 4 used on the Kubota Titan | 
 | 456 | # 6 checking for... messages and results | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 457 | # 5 compiler messages saved in config.log | 
 | 458 | if test "$silent" = yes; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 459 |   exec 6>/dev/null | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 460 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 461 |   exec 6>&1 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 462 | fi | 
 | 463 | exec 5>./config.log | 
 | 464 |  | 
 | 465 | echo "\ | 
 | 466 | This file contains any messages produced by compilers while | 
 | 467 | running configure, to aid debugging if configure makes a mistake. | 
 | 468 | " 1>&5 | 
 | 469 |  | 
 | 470 | # Strip out --no-create and --no-recursion so they do not pile up. | 
 | 471 | # Also quote any args containing shell metacharacters. | 
 | 472 | ac_configure_args= | 
 | 473 | for ac_arg | 
 | 474 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 475 |   case "$ac_arg" in | 
 | 476 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 477 |   | --no-cr | --no-c) ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 478 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 479 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | 
 | 480 |   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | 
 | 481 |   ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
 | 482 |   *) ac_configure_args="$ac_configure_args $ac_arg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 |   esac | 
 | 484 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 485 |  | 
 | 486 | # NLS nuisances. | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 487 | # Only set these to C if already set.  These must not be set unconditionally | 
 | 488 | # because not all systems understand e.g. LANG=C (notably SCO). | 
 | 489 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | 
 | 490 | # Non-C LC_CTYPE values break the ctype check. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 491 | if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 492 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | 
 | 493 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | 
 | 494 | 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] | 495 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 496 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
 | 497 | rm -rf conftest* confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 498 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
 | 499 | echo > confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 500 |  | 
 | 501 | # A filename unique to this package, relative to the directory that | 
 | 502 | # 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] | 503 | ac_unique_file=Include/object.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 504 |  | 
 | 505 | # Find the source files, if location was not specified. | 
 | 506 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 507 |   ac_srcdir_defaulted=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 508 |   # Try the directory containing this script, then its parent. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 509 |   ac_prog=$0 | 
 | 510 |   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | 
 | 511 |   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | 
 | 512 |   srcdir=$ac_confdir | 
 | 513 |   if test ! -r $srcdir/$ac_unique_file; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 514 |     srcdir=.. | 
 | 515 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 516 | else | 
 | 517 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 518 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 519 | if test ! -r $srcdir/$ac_unique_file; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 520 |   if test "$ac_srcdir_defaulted" = yes; then | 
 | 521 |     { 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] | 522 |   else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 523 |     { 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] | 524 |   fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 525 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 526 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | 
 | 527 |  | 
 | 528 | # Prefer explicitly selected file to automatically selected ones. | 
 | 529 | if test -z "$CONFIG_SITE"; then | 
 | 530 |   if test "x$prefix" != xNONE; then | 
 | 531 |     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
 | 532 |   else | 
 | 533 |     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
 | 534 |   fi | 
 | 535 | fi | 
 | 536 | for ac_site_file in $CONFIG_SITE; do | 
 | 537 |   if test -r "$ac_site_file"; then | 
 | 538 |     echo "loading site script $ac_site_file" | 
 | 539 |     . "$ac_site_file" | 
 | 540 |   fi | 
 | 541 | done | 
 | 542 |  | 
 | 543 | if test -r "$cache_file"; then | 
 | 544 |   echo "loading cache $cache_file" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 545 |   . $cache_file | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 546 | else | 
 | 547 |   echo "creating cache $cache_file" | 
 | 548 |   > $cache_file | 
 | 549 | fi | 
 | 550 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 551 | ac_ext=c | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 552 | # 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] | 553 | ac_cpp='$CPP $CPPFLAGS' | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 554 | 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] | 555 | 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] | 556 | cross_compiling=$ac_cv_prog_cc_cross | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 557 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 558 | ac_exeext= | 
 | 559 | ac_objext=o | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 560 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | 
 | 561 |   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | 
 | 562 |   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | 
 | 563 |     ac_n= ac_c=' | 
 | 564 | ' ac_t='	' | 
 | 565 |   else | 
 | 566 |     ac_n=-n ac_c= ac_t= | 
 | 567 |   fi | 
 | 568 | else | 
 | 569 |   ac_n= ac_c='\c' ac_t= | 
 | 570 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 571 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 572 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 573 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 574 |  | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 575 | # Set VERSION so we only need to edit in one place (i.e., here) | 
 | 576 |  | 
| Guido van Rossum | 6db412b | 2001-04-18 04:37:57 +0000 | [diff] [blame] | 577 | VERSION=2.2 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 578 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 579 | # Arguments passed to configure. | 
 | 580 |  | 
 | 581 | CONFIG_ARGS="$ac_configure_args" | 
 | 582 |  | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 583 | # NEXTSTEP|MacOSX|Darwin stuff | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 584 | if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices/software_version ; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 585 |  | 
 | 586 | 	echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 587 | echo "configure:588: checking for --with-next-archs" >&5 | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 588 | 	# Check whether --with-next-archs or --without-next-archs was given. | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 589 | if test "${with_next_archs+set}" = set; then | 
 | 590 |   withval="$with_next_archs" | 
 | 591 |    | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 592 | 		if test -n "$withval"; then | 
 | 593 | 		    ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` | 
 | 594 | 		    # GCC does not currently support multi archs on the NeXT | 
 | 595 | 		    with_gcc=no | 
 | 596 | 		fi | 
 | 597 | 		echo "$ac_t""$with_next_archs" 1>&6 | 
 | 598 | 	 | 
 | 599 | else | 
 | 600 |   echo "$ac_t""none: using `arch`" 1>&6 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 601 | fi | 
 | 602 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 603 | 	 | 
 | 604 | 	if test -z "$MACHDEP" | 
 | 605 | 	then | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 606 | 	    ac_sys_system=`uname -s` | 
 | 607 | 	    if test "$ac_sys_system" = "Darwin" ; then | 
 | 608 | 		ac_sys_release=`uname -r` | 
 | 609 | 	    else | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 610 | 		set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 611 | 			sed -e 's/://' -e 's/\./_/'` && \ | 
 | 612 | 		ac_sys_system=next && ac_sys_release=$4 | 
 | 613 | 	    fi | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 614 |  | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 615 | 	    MACHDEP="$ac_sys_system$ac_sys_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 616 | 	fi | 
 | 617 | fi | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 618 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 619 | # Check whether --with-next-framework or --without-next-framework was given. | 
 | 620 | if test "${with_next_framework+set}" = set; then | 
 | 621 |   withval="$with_next_framework" | 
 | 622 |   : | 
 | 623 | fi | 
 | 624 |  | 
 | 625 | # Check whether --with-dyld or --without-dyld was given. | 
 | 626 | if test "${with_dyld+set}" = set; then | 
 | 627 |   withval="$with_dyld" | 
 | 628 |   : | 
 | 629 | fi | 
 | 630 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 631 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 632 | # Set name for machine-dependent library files | 
 | 633 |  | 
 | 634 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 635 | echo "configure:636: checking MACHDEP" >&5 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 636 | if test -z "$MACHDEP" | 
 | 637 | then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 638 | 	ac_sys_system=`uname -s` | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 639 | 	if test "$ac_sys_system" = "AIX" -o \ | 
 | 640 | 		"$ac_sys_system" = "Monterey64" -o \ | 
 | 641 | 		"$ac_sys_system" = "UnixWare"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 642 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 643 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 644 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 645 | 	fi | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 646 | 	ac_md_system=`echo $ac_sys_system | | 
 | 647 | 			   tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 648 | 	ac_md_release=`echo $ac_sys_release | | 
 | 649 | 			   tr -d '/ ' | sed 's/\..*//'` | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 650 | 	MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 651 |  | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 652 | 	case $MACHDEP in | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 653 | 	'')	MACHDEP="unknown";; | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 654 | 	esac | 
 | 655 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 656 |  | 
 | 657 | # | 
 | 658 | # SGI compilers allow the specification of the both the ABI and the | 
 | 659 | # ISA on the command line.  Depending on the values of these switches, | 
 | 660 | # different and often incompatable code will be generated. | 
 | 661 | # | 
 | 662 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
 | 663 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
 | 664 | # variable is also adjusted. | 
 | 665 | # | 
 | 666 |  | 
 | 667 | if test ! -z "$SGI_ABI" | 
 | 668 | then | 
 | 669 |         CC="cc $SGI_ABI" | 
 | 670 |         LDFLAGS="$SGI_ABI $LDFLAGS" | 
 | 671 |         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
 | 672 | fi | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 673 | echo "$ac_t""$MACHDEP" 1>&6 | 
 | 674 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 675 | # checks for alternative programs | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 676 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 677 | echo "configure:678: checking for --without-gcc" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 678 | # Check whether --with-gcc or --without-gcc was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 679 | if test "${with_gcc+set}" = set; then | 
 | 680 |   withval="$with_gcc" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 681 |    | 
 | 682 | 	case $withval in | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 683 | 	no)	CC=cc | 
 | 684 | 		without_gcc=yes;; | 
 | 685 | 	yes)	CC=gcc | 
 | 686 | 		without_gcc=no;; | 
 | 687 | 	*)	CC=$withval | 
 | 688 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 689 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 690 | else | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 691 |    | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 692 | 	case $ac_sys_system in | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 693 | 	OSF1)	CC=cc | 
 | 694 | 		without_gcc=;; | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 695 | 	AIX*)   CC=cc_r | 
 | 696 | 		without_gcc=;; | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 697 | 	BeOS*) | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 698 | 		case $BE_HOST_CPU in | 
 | 699 | 		ppc) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 700 | 			CC=mwcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 701 | 			without_gcc=yes | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 702 | 			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] | 703 | 			CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 704 | 			LDFLAGS="$LDFLAGS -nodup" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 705 | 			;; | 
 | 706 | 		x86) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 707 | 			CC=gcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 708 | 			without_gcc=no | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 709 | 			OPT=-O | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 710 | 			;; | 
 | 711 | 		*) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 712 | 			{ 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] | 713 | 			;; | 
 | 714 | 		esac | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 715 | 		AR="\$(srcdir)/Modules/ar_beos" | 
 | 716 | 		RANLIB=: | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 717 | 		;; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 718 |     Monterey*) | 
 | 719 |         RANLIB=: | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 720 | 	    without_gcc= | 
 | 721 | 	    ;; | 
 | 722 | 	UnixWare*) | 
 | 723 | 	    RANLIB=: | 
 | 724 | 	    without_gcc= | 
 | 725 | 	    ;; | 
 | 726 | 	*) | 
 | 727 | 	    without_gcc=no | 
 | 728 | 	    ;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 729 | 	esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 730 | fi | 
 | 731 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 732 | echo "$ac_t""$without_gcc" 1>&6 | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 733 |  | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 734 |  | 
 | 735 |  | 
| Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 736 | MAINOBJ=python.o | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 737 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 738 | echo "configure:739: checking for --with-cxx=<compiler>" >&5 | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 739 | # Check whether --with-cxx or --without-cxx was given. | 
 | 740 | if test "${with_cxx+set}" = set; then | 
 | 741 |   withval="$with_cxx" | 
 | 742 |    | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 743 | 	check_cxx=no | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 744 | 	case $withval in | 
 | 745 | 	no)	CXX= | 
 | 746 | 		with_cxx=no;; | 
 | 747 | 	*)	CXX=$withval | 
| Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 748 | 		MAINOBJ=ccpython.o | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 749 | 		with_cxx=$withval;; | 
 | 750 | 	esac | 
 | 751 | else | 
 | 752 |    | 
 | 753 | 	with_cxx=no | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 754 | 	check_cxx=yes | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 755 |  | 
 | 756 | fi | 
 | 757 |  | 
 | 758 | echo "$ac_t""$with_cxx" 1>&6 | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 759 |  | 
 | 760 |  | 
 | 761 | if test "$check_cxx" = "yes"  | 
 | 762 | then | 
 | 763 | 	for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 764 | do | 
 | 765 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 766 | set dummy $ac_prog; ac_word=$2 | 
 | 767 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 768 | echo "configure:769: checking for $ac_word" >&5 | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 769 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | 
 | 770 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 771 | else | 
 | 772 |   if test -n "$CXX"; then | 
 | 773 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 774 | else | 
 | 775 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 776 |   ac_dummy="$PATH" | 
 | 777 |   for ac_dir in $ac_dummy; do | 
 | 778 |     test -z "$ac_dir" && ac_dir=. | 
 | 779 |     if test -f $ac_dir/$ac_word; then | 
 | 780 |       ac_cv_prog_CXX="$ac_prog" | 
 | 781 |       break | 
 | 782 |     fi | 
 | 783 |   done | 
 | 784 |   IFS="$ac_save_ifs" | 
 | 785 | fi | 
 | 786 | fi | 
 | 787 | CXX="$ac_cv_prog_CXX" | 
 | 788 | if test -n "$CXX"; then | 
 | 789 |   echo "$ac_t""$CXX" 1>&6 | 
 | 790 | else | 
 | 791 |   echo "$ac_t""no" 1>&6 | 
 | 792 | fi | 
 | 793 |  | 
 | 794 | test -n "$CXX" && break | 
 | 795 | done | 
 | 796 | test -n "$CXX" || CXX="notfound" | 
 | 797 |  | 
 | 798 | 	if test "$CXX" = "notfound" | 
 | 799 | 	then | 
 | 800 | 		CXX= | 
 | 801 | 	else | 
 | 802 | 		echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 803 | echo "configure:804: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 804 |  | 
 | 805 | ac_ext=C | 
 | 806 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
 | 807 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 808 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
 | 809 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
 | 810 | cross_compiling=$ac_cv_prog_cxx_cross | 
 | 811 |  | 
 | 812 | cat > conftest.$ac_ext << EOF | 
 | 813 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 814 | #line 815 "configure" | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 815 | #include "confdefs.h" | 
 | 816 |  | 
 | 817 | int main(){return(0);} | 
 | 818 | EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 819 | if { (eval echo configure:820: \"$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] | 820 |   ac_cv_prog_cxx_works=yes | 
 | 821 |   # If we can't run a trivial program, we are probably using a cross compiler. | 
 | 822 |   if (./conftest; exit) 2>/dev/null; then | 
 | 823 |     ac_cv_prog_cxx_cross=no | 
 | 824 |   else | 
 | 825 |     ac_cv_prog_cxx_cross=yes | 
 | 826 |   fi | 
 | 827 | else | 
 | 828 |   echo "configure: failed program was:" >&5 | 
 | 829 |   cat conftest.$ac_ext >&5 | 
 | 830 |   ac_cv_prog_cxx_works=no | 
 | 831 | fi | 
 | 832 | rm -fr conftest* | 
 | 833 | ac_ext=c | 
 | 834 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
 | 835 | ac_cpp='$CPP $CPPFLAGS' | 
 | 836 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
 | 837 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
 | 838 | cross_compiling=$ac_cv_prog_cc_cross | 
 | 839 |  | 
 | 840 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | 
 | 841 | if test $ac_cv_prog_cxx_works = no; then | 
 | 842 |   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | 
 | 843 | fi | 
 | 844 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 845 | echo "configure:846: 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] | 846 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | 
 | 847 | cross_compiling=$ac_cv_prog_cxx_cross | 
 | 848 |  | 
 | 849 | 	fi | 
 | 850 | fi | 
 | 851 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 852 | # If the user switches compilers, we can't believe the cache | 
 | 853 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 854 | then | 
 | 855 |   { echo "configure: error: cached CC is different -- throw away $cache_file | 
 | 856 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } | 
 | 857 | fi | 
 | 858 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 859 | # Extract the first word of "gcc", so it can be a program name with args. | 
 | 860 | set dummy gcc; ac_word=$2 | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 861 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 862 | echo "configure:863: checking for $ac_word" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 863 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 864 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 865 | else | 
 | 866 |   if test -n "$CC"; then | 
 | 867 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 868 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 869 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 870 |   ac_dummy="$PATH" | 
 | 871 |   for ac_dir in $ac_dummy; do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 872 |     test -z "$ac_dir" && ac_dir=. | 
 | 873 |     if test -f $ac_dir/$ac_word; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 874 |       ac_cv_prog_CC="gcc" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 875 |       break | 
 | 876 |     fi | 
 | 877 |   done | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 878 |   IFS="$ac_save_ifs" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 879 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 880 | fi | 
 | 881 | CC="$ac_cv_prog_CC" | 
 | 882 | if test -n "$CC"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 883 |   echo "$ac_t""$CC" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 884 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 885 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 886 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 887 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 888 | if test -z "$CC"; then | 
 | 889 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 890 | set dummy cc; ac_word=$2 | 
 | 891 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 892 | echo "configure:893: checking for $ac_word" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 893 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 894 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 895 | else | 
 | 896 |   if test -n "$CC"; then | 
 | 897 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 898 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 899 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 900 |   ac_prog_rejected=no | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 901 |   ac_dummy="$PATH" | 
 | 902 |   for ac_dir in $ac_dummy; do | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 903 |     test -z "$ac_dir" && ac_dir=. | 
 | 904 |     if test -f $ac_dir/$ac_word; then | 
 | 905 |       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | 
 | 906 |         ac_prog_rejected=yes | 
 | 907 | 	continue | 
 | 908 |       fi | 
 | 909 |       ac_cv_prog_CC="cc" | 
 | 910 |       break | 
 | 911 |     fi | 
 | 912 |   done | 
 | 913 |   IFS="$ac_save_ifs" | 
 | 914 | if test $ac_prog_rejected = yes; then | 
 | 915 |   # We found a bogon in the path, so make sure we never use it. | 
 | 916 |   set dummy $ac_cv_prog_CC | 
 | 917 |   shift | 
 | 918 |   if test $# -gt 0; then | 
 | 919 |     # We chose a different compiler from the bogus one. | 
 | 920 |     # However, it has the same basename, so the bogon will be chosen | 
 | 921 |     # first if we set CC to just the basename; use the full file name. | 
 | 922 |     shift | 
 | 923 |     set dummy "$ac_dir/$ac_word" "$@" | 
 | 924 |     shift | 
 | 925 |     ac_cv_prog_CC="$@" | 
 | 926 |   fi | 
 | 927 | fi | 
 | 928 | fi | 
 | 929 | fi | 
 | 930 | CC="$ac_cv_prog_CC" | 
 | 931 | if test -n "$CC"; then | 
 | 932 |   echo "$ac_t""$CC" 1>&6 | 
 | 933 | else | 
 | 934 |   echo "$ac_t""no" 1>&6 | 
 | 935 | fi | 
 | 936 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 937 |   if test -z "$CC"; then | 
 | 938 |     case "`uname -s`" in | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 939 |     *win32* | *WIN32*) | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 940 |       # Extract the first word of "cl", so it can be a program name with args. | 
 | 941 | set dummy cl; ac_word=$2 | 
 | 942 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 943 | echo "configure:944: checking for $ac_word" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 944 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 945 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 946 | else | 
 | 947 |   if test -n "$CC"; then | 
 | 948 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 949 | else | 
 | 950 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 951 |   ac_dummy="$PATH" | 
 | 952 |   for ac_dir in $ac_dummy; do | 
 | 953 |     test -z "$ac_dir" && ac_dir=. | 
 | 954 |     if test -f $ac_dir/$ac_word; then | 
 | 955 |       ac_cv_prog_CC="cl" | 
 | 956 |       break | 
 | 957 |     fi | 
 | 958 |   done | 
 | 959 |   IFS="$ac_save_ifs" | 
 | 960 | fi | 
 | 961 | fi | 
 | 962 | CC="$ac_cv_prog_CC" | 
 | 963 | if test -n "$CC"; then | 
 | 964 |   echo "$ac_t""$CC" 1>&6 | 
 | 965 | else | 
 | 966 |   echo "$ac_t""no" 1>&6 | 
 | 967 | fi | 
 | 968 |  ;; | 
 | 969 |     esac | 
 | 970 |   fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 971 |   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 
 | 972 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 973 |  | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 974 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 975 | echo "configure:976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 976 |  | 
 | 977 | ac_ext=c | 
 | 978 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
 | 979 | ac_cpp='$CPP $CPPFLAGS' | 
 | 980 | 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] | 981 | 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] | 982 | cross_compiling=$ac_cv_prog_cc_cross | 
 | 983 |  | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 984 | cat > conftest.$ac_ext << EOF | 
 | 985 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 986 | #line 987 "configure" | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 987 | #include "confdefs.h" | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 988 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 989 | main(){return(0);} | 
 | 990 | EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 991 | if { (eval echo configure:992: \"$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] | 992 |   ac_cv_prog_cc_works=yes | 
 | 993 |   # If we can't run a trivial program, we are probably using a cross compiler. | 
 | 994 |   if (./conftest; exit) 2>/dev/null; then | 
 | 995 |     ac_cv_prog_cc_cross=no | 
 | 996 |   else | 
 | 997 |     ac_cv_prog_cc_cross=yes | 
 | 998 |   fi | 
 | 999 | else | 
 | 1000 |   echo "configure: failed program was:" >&5 | 
 | 1001 |   cat conftest.$ac_ext >&5 | 
 | 1002 |   ac_cv_prog_cc_works=no | 
 | 1003 | fi | 
 | 1004 | rm -fr conftest* | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1005 | ac_ext=c | 
 | 1006 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
 | 1007 | ac_cpp='$CPP $CPPFLAGS' | 
 | 1008 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
 | 1009 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
 | 1010 | cross_compiling=$ac_cv_prog_cc_cross | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1011 |  | 
 | 1012 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 
 | 1013 | if test $ac_cv_prog_cc_works = no; then | 
 | 1014 |   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 
 | 1015 | fi | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1016 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1017 | echo "configure:1018: 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] | 1018 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 
 | 1019 | cross_compiling=$ac_cv_prog_cc_cross | 
 | 1020 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1021 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1022 | echo "configure:1023: checking whether we are using GNU C" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1023 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1024 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1025 | else | 
 | 1026 |   cat > conftest.c <<EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1027 | #ifdef __GNUC__ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1028 |   yes; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1029 | #endif | 
 | 1030 | EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1031 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1032: \"$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] | 1032 |   ac_cv_prog_gcc=yes | 
 | 1033 | else | 
 | 1034 |   ac_cv_prog_gcc=no | 
 | 1035 | fi | 
 | 1036 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1037 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1038 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1039 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1040 | if test $ac_cv_prog_gcc = yes; then | 
 | 1041 |   GCC=yes | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1042 | else | 
 | 1043 |   GCC= | 
 | 1044 | fi | 
 | 1045 |  | 
 | 1046 | ac_test_CFLAGS="${CFLAGS+set}" | 
 | 1047 | ac_save_CFLAGS="$CFLAGS" | 
 | 1048 | CFLAGS= | 
 | 1049 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1050 | echo "configure:1051: checking whether ${CC-cc} accepts -g" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1051 | 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] | 1052 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1053 | else | 
 | 1054 |   echo 'void f(){}' > conftest.c | 
 | 1055 | 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] | 1056 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1057 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1058 |   ac_cv_prog_cc_g=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1059 | fi | 
 | 1060 | rm -f conftest* | 
 | 1061 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1062 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1063 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1064 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1065 | if test "$ac_test_CFLAGS" = set; then | 
 | 1066 |   CFLAGS="$ac_save_CFLAGS" | 
 | 1067 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 1068 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1069 |     CFLAGS="-g -O2" | 
 | 1070 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1071 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1072 |   fi | 
 | 1073 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1074 |   if test "$GCC" = yes; then | 
 | 1075 |     CFLAGS="-O2" | 
 | 1076 |   else | 
 | 1077 |     CFLAGS= | 
 | 1078 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 | fi | 
 | 1080 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1081 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1082 | echo "configure:1083: checking for Cygwin environment" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1083 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | 
 | 1084 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1085 | else | 
 | 1086 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1087 | #line 1088 "configure" | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1088 | #include "confdefs.h" | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1089 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1090 | int main() { | 
 | 1091 |  | 
 | 1092 | #ifndef __CYGWIN__ | 
 | 1093 | #define __CYGWIN__ __CYGWIN32__ | 
 | 1094 | #endif | 
 | 1095 | return __CYGWIN__; | 
 | 1096 | ; return 0; } | 
 | 1097 | EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1098 | if { (eval echo configure:1099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1099 |   rm -rf conftest* | 
 | 1100 |   ac_cv_cygwin=yes | 
 | 1101 | else | 
 | 1102 |   echo "configure: failed program was:" >&5 | 
 | 1103 |   cat conftest.$ac_ext >&5 | 
 | 1104 |   rm -rf conftest* | 
 | 1105 |   ac_cv_cygwin=no | 
 | 1106 | fi | 
 | 1107 | rm -f conftest* | 
 | 1108 | rm -f conftest* | 
| Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1109 | fi | 
 | 1110 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1111 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | 
 | 1112 | CYGWIN= | 
 | 1113 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | 
 | 1114 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1115 | echo "configure:1116: checking for mingw32 environment" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1116 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | 
 | 1117 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1118 | else | 
 | 1119 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1120 | #line 1121 "configure" | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1121 | #include "confdefs.h" | 
 | 1122 |  | 
 | 1123 | int main() { | 
 | 1124 | return __MINGW32__; | 
 | 1125 | ; return 0; } | 
 | 1126 | EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1127 | if { (eval echo configure:1128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1128 |   rm -rf conftest* | 
 | 1129 |   ac_cv_mingw32=yes | 
 | 1130 | else | 
 | 1131 |   echo "configure: failed program was:" >&5 | 
 | 1132 |   cat conftest.$ac_ext >&5 | 
 | 1133 |   rm -rf conftest* | 
 | 1134 |   ac_cv_mingw32=no | 
 | 1135 | fi | 
 | 1136 | rm -f conftest* | 
 | 1137 | rm -f conftest* | 
 | 1138 | fi | 
 | 1139 |  | 
 | 1140 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | 
 | 1141 | MINGW32= | 
 | 1142 | test "$ac_cv_mingw32" = yes && MINGW32=yes | 
 | 1143 |  | 
 | 1144 |  | 
 | 1145 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1146 | echo "configure:1147: checking for executable suffix" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1147 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | 
 | 1148 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1149 | else | 
 | 1150 |   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | 
 | 1151 |   ac_cv_exeext=.exe | 
 | 1152 | else | 
 | 1153 |   rm -f conftest* | 
 | 1154 |   echo 'int main () { return 0; }' > conftest.$ac_ext | 
 | 1155 |   ac_cv_exeext= | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1156 |   if { (eval echo configure:1157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1157 |     for file in conftest.*; do | 
 | 1158 |       case $file in | 
 | 1159 |       *.c | *.o | *.obj) ;; | 
 | 1160 |       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | 
 | 1161 |       esac | 
 | 1162 |     done | 
 | 1163 |   else | 
 | 1164 |     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | 
 | 1165 |   fi | 
 | 1166 |   rm -f conftest* | 
 | 1167 |   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | 
 | 1168 | fi | 
 | 1169 | fi | 
 | 1170 |  | 
 | 1171 | EXEEXT="" | 
 | 1172 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | 
 | 1173 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | 
 | 1174 | ac_exeext=$EXEEXT | 
 | 1175 |  | 
| Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1176 | echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1177 | echo "configure:1178: checking for --with-suffix" >&5 | 
| Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1178 | # Check whether --with-suffix or --without-suffix was given. | 
 | 1179 | if test "${with_suffix+set}" = set; then | 
 | 1180 |   withval="$with_suffix" | 
 | 1181 |    | 
 | 1182 | 	case $withval in | 
 | 1183 | 	no)	EXEEXT=;; | 
 | 1184 | 	yes)	EXEEXT=.exe;; | 
 | 1185 | 	*)	EXEEXT=$withval;; | 
 | 1186 | 	esac | 
 | 1187 | fi | 
 | 1188 |  | 
 | 1189 | echo "$ac_t""$EXEEXT" 1>&6 | 
| Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1190 |  | 
| Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1191 | case $MACHDEP in | 
 | 1192 | bsdos*) | 
 | 1193 |     case $CC in | 
 | 1194 |     gcc) CC="$CC -D_HAVE_BSDI";; | 
 | 1195 |     esac;; | 
 | 1196 | esac | 
 | 1197 |  | 
| Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1198 | case $ac_sys_system in | 
 | 1199 | hp*|HP*) | 
 | 1200 |     case $CC in | 
| Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1201 |     cc|*/cc) CC="$CC -Ae";; | 
| Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1202 |     esac;; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1203 | Monterey*) | 
 | 1204 |     case $CC in | 
 | 1205 |     cc) CC="$CC -Wl,-Bexport";; | 
 | 1206 |     esac;; | 
| Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1207 | SunOS*) | 
 | 1208 |     # Some functions have a prototype only with that define, e.g. confstr | 
 | 1209 |     cat >> confdefs.h <<\EOF | 
 | 1210 | #define __EXTENSIONS__ 1 | 
 | 1211 | EOF | 
 | 1212 |  | 
 | 1213 |     ;; | 
| Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1214 | esac | 
 | 1215 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1216 |  | 
| Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1217 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1218 | echo $ac_n "checking LIBRARY""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1219 | echo "configure:1220: checking LIBRARY" >&5 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1220 | if test -z "$LIBRARY" | 
 | 1221 | then | 
 | 1222 | 	LIBRARY='libpython$(VERSION).a' | 
 | 1223 | fi | 
 | 1224 | echo "$ac_t""$LIBRARY" 1>&6 | 
 | 1225 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1226 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
 | 1227 | # name of the library into which to insert object files). On systems | 
 | 1228 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1229 | # the Makefiles). On Cygwin LDLIBRARY is the import library, DLLLIBRARY is the | 
 | 1230 | # shared (i.e., DLL) library. | 
 | 1231 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1232 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1233 | LDLIBRARY="$LIBRARY" | 
| Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 1234 | DLLLIBRARY='' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1235 |  | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1236 | # LINKCC is the command that links the python executable -- default is $(CC). | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1237 | # 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] | 1238 | # linking. | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1239 |  | 
 | 1240 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1241 | echo "configure:1242: checking LINKCC" >&5 | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1242 | if test -z "$LINKCC" | 
 | 1243 | then | 
 | 1244 | 	case $ac_sys_system in | 
 | 1245 | 	AIX*) | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1246 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; | 
| Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1247 | 	dgux*) | 
 | 1248 | 	   LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1249 | 	Monterey64*) | 
 | 1250 | 	   LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; | 
| Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1251 | 	*) LINKCC="\$(PURIFY) \$(CC)";; | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1252 | 	esac | 
 | 1253 | fi | 
 | 1254 | echo "$ac_t""$LINKCC" 1>&6 | 
 | 1255 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1256 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1257 | echo "configure:1258: checking LDLIBRARY" >&5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1258 |  | 
 | 1259 | # NeXT framework builds require that the 'ar' library be converted into | 
 | 1260 | # a bundle using libtool. | 
 | 1261 | if test "$with_next_framework" | 
 | 1262 | then | 
 | 1263 |   LDLIBRARY='libpython$(VERSION).dylib' | 
 | 1264 | fi   | 
 | 1265 |  | 
 | 1266 | # 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] | 1267 | case $MACHDEP in | 
 | 1268 | dguxR4) | 
 | 1269 |       LDLIBRARY='libpython$(VERSION).so' | 
 | 1270 |       OPT="$OPT -pic" | 
 | 1271 |       ;; | 
 | 1272 | beos*) | 
 | 1273 |       LDLIBRARY='libpython$(VERSION).so' | 
 | 1274 |       ;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1275 | cygwin*) | 
 | 1276 |       LDLIBRARY='libpython$(VERSION).dll.a' | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1277 |       DLLLIBRARY='libpython$(VERSION).dll' | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1278 |       ;; | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1279 | unixware*) | 
 | 1280 |       LDLIBRARY='libpython$(VERSION).so' | 
 | 1281 |       ;; | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1282 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1283 | echo "$ac_t""$LDLIBRARY" 1>&6 | 
 | 1284 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1285 | # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 1286 | set dummy ranlib; ac_word=$2 | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1287 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1288 | echo "configure:1289: checking for $ac_word" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1289 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1290 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1291 | else | 
 | 1292 |   if test -n "$RANLIB"; then | 
 | 1293 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 1294 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1295 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1296 |   ac_dummy="$PATH" | 
 | 1297 |   for ac_dir in $ac_dummy; do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1298 |     test -z "$ac_dir" && ac_dir=. | 
 | 1299 |     if test -f $ac_dir/$ac_word; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1300 |       ac_cv_prog_RANLIB="ranlib" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1301 |       break | 
 | 1302 |     fi | 
 | 1303 |   done | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1304 |   IFS="$ac_save_ifs" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1305 |   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1306 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1307 | fi | 
 | 1308 | RANLIB="$ac_cv_prog_RANLIB" | 
 | 1309 | if test -n "$RANLIB"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1310 |   echo "$ac_t""$RANLIB" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1311 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1312 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1313 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1314 |  | 
 | 1315 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1316 | for ac_prog in ar aal | 
 | 1317 | do | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1318 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 1319 | set dummy $ac_prog; ac_word=$2 | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1320 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1321 | echo "configure:1322: checking for $ac_word" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1322 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1323 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1324 | else | 
 | 1325 |   if test -n "$AR"; then | 
 | 1326 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 1327 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1328 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1329 |   ac_dummy="$PATH" | 
 | 1330 |   for ac_dir in $ac_dummy; do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1331 |     test -z "$ac_dir" && ac_dir=. | 
 | 1332 |     if test -f $ac_dir/$ac_word; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1333 |       ac_cv_prog_AR="$ac_prog" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1334 |       break | 
 | 1335 |     fi | 
 | 1336 |   done | 
 | 1337 |   IFS="$ac_save_ifs" | 
 | 1338 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1339 | fi | 
 | 1340 | AR="$ac_cv_prog_AR" | 
 | 1341 | if test -n "$AR"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1342 |   echo "$ac_t""$AR" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1343 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1344 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1345 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1346 |  | 
 | 1347 | test -n "$AR" && break | 
 | 1348 | done | 
 | 1349 | test -n "$AR" || AR="ar" | 
 | 1350 |  | 
| Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 1351 |  | 
 | 1352 | case $MACHDEP in | 
 | 1353 | bsdos*) | 
 | 1354 | 	# install -d does not work on BSDI | 
 | 1355 | 	if test -z "$INSTALL" | 
 | 1356 | 	then | 
 | 1357 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 1358 | 	fi | 
 | 1359 | esac | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1360 | ac_aux_dir= | 
 | 1361 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | 
 | 1362 |   if test -f $ac_dir/install-sh; then | 
 | 1363 |     ac_aux_dir=$ac_dir | 
 | 1364 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 1365 |     break | 
 | 1366 |   elif test -f $ac_dir/install.sh; then | 
 | 1367 |     ac_aux_dir=$ac_dir | 
 | 1368 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 1369 |     break | 
 | 1370 |   fi | 
 | 1371 | done | 
 | 1372 | if test -z "$ac_aux_dir"; then | 
 | 1373 |   { 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] | 1374 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1375 | ac_config_guess=$ac_aux_dir/config.guess | 
 | 1376 | ac_config_sub=$ac_aux_dir/config.sub | 
 | 1377 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | 
 | 1378 |  | 
 | 1379 | # Find a good install program.  We prefer a C program (faster), | 
 | 1380 | # so one script is as good as another.  But avoid the broken or | 
 | 1381 | # incompatible versions: | 
 | 1382 | # SysV /etc/install, /usr/sbin/install | 
 | 1383 | # SunOS /usr/etc/install | 
 | 1384 | # IRIX /sbin/install | 
 | 1385 | # AIX /bin/install | 
 | 1386 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 1387 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 1388 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 1389 | # ./install, which can be erroneously created by make from ./install.sh. | 
 | 1390 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1391 | echo "configure:1392: checking for a BSD compatible install" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1392 | if test -z "$INSTALL"; then | 
 | 1393 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
 | 1394 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1395 | else | 
 | 1396 |     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":" | 
 | 1397 |   for ac_dir in $PATH; do | 
 | 1398 |     # Account for people who put trailing slashes in PATH elements. | 
 | 1399 |     case "$ac_dir/" in | 
 | 1400 |     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
 | 1401 |     *) | 
 | 1402 |       # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 1403 |       # Don't use installbsd from OSF since it installs stuff as root | 
 | 1404 |       # by default. | 
 | 1405 |       for ac_prog in ginstall scoinst install; do | 
 | 1406 |         if test -f $ac_dir/$ac_prog; then | 
 | 1407 | 	  if test $ac_prog = install && | 
 | 1408 |             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
 | 1409 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 1410 | 	    : | 
 | 1411 | 	  else | 
 | 1412 | 	    ac_cv_path_install="$ac_dir/$ac_prog -c" | 
 | 1413 | 	    break 2 | 
 | 1414 | 	  fi | 
 | 1415 | 	fi | 
 | 1416 |       done | 
 | 1417 |       ;; | 
 | 1418 |     esac | 
 | 1419 |   done | 
 | 1420 |   IFS="$ac_save_IFS" | 
 | 1421 |  | 
 | 1422 | fi | 
 | 1423 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 1424 |     INSTALL="$ac_cv_path_install" | 
 | 1425 |   else | 
 | 1426 |     # As a last resort, use the slow shell script.  We don't cache a | 
 | 1427 |     # path for INSTALL within a source directory, because that will | 
 | 1428 |     # break other packages using the cache if that directory is | 
 | 1429 |     # removed, or if the path is relative. | 
 | 1430 |     INSTALL="$ac_install_sh" | 
 | 1431 |   fi | 
 | 1432 | fi | 
 | 1433 | echo "$ac_t""$INSTALL" 1>&6 | 
 | 1434 |  | 
 | 1435 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 1436 | # It thinks the first close brace ends the variable substitution. | 
 | 1437 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 1438 |  | 
 | 1439 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
 | 1440 |  | 
 | 1441 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 1442 |  | 
| Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1443 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1444 | # Not every filesystem supports hard links | 
 | 1445 |  | 
 | 1446 | if test -z "$LN" ; then | 
 | 1447 | 	case $ac_sys_system in | 
 | 1448 | 		BeOS*) LN="ln -s";; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1449 | 		CYGWIN*) LN="ln -s";; | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1450 | 		*) LN=ln;; | 
 | 1451 | 	esac | 
 | 1452 | fi | 
 | 1453 |  | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1454 | # Check for --with-pydebug | 
 | 1455 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 | 
 | 1456 | echo "configure:1457: checking for --with-pydebug" >&5 | 
 | 1457 | # Check whether --with-pydebug or --without-pydebug was given. | 
 | 1458 | if test "${with_pydebug+set}" = set; then | 
 | 1459 |   withval="$with_pydebug" | 
 | 1460 |    | 
 | 1461 | if test "$withval" != no | 
 | 1462 | then cat >> confdefs.h <<\EOF | 
 | 1463 | #define Py_DEBUG 1 | 
 | 1464 | EOF | 
 | 1465 |  echo "$ac_t""yes" 1>&6; Py_DEBUG='true' | 
 | 1466 | else echo "$ac_t""no" 1>&6; Py_DEBUG='false' | 
 | 1467 | fi | 
 | 1468 | else | 
 | 1469 |   echo "$ac_t""no" 1>&6 | 
 | 1470 | fi | 
 | 1471 |  | 
 | 1472 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1473 | # Optimizer/debugger flags | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1474 |  | 
| Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1475 | if test -z "$OPT" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1476 | then | 
| Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1477 | 	case $GCC in | 
 | 1478 | 	yes) | 
 | 1479 | 		case $ac_cv_prog_cc_g in | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1480 | 	yes) | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1481 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 1482 | 		# Optimization messes up debuggers, so turn it off for | 
 | 1483 | 		# debug builds. | 
 | 1484 | 		OPT="-g -Wall -Wstrict-prototypes" | 
 | 1485 | 	    else | 
 | 1486 | 		OPT="-g -O3 -Wall -Wstrict-prototypes" | 
 | 1487 | 	    fi;; | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1488 | 	*) | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1489 | 	    OPT="-O3 -Wall -Wstrict-prototypes";; | 
 | 1490 | 	esac | 
 | 1491 | 	;; | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1492 |     *) | 
 | 1493 | 	case $ac_sys_system in | 
 | 1494 | 	UnixWare*) | 
 | 1495 | 	    OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; | 
 | 1496 | 	*) | 
 | 1497 | 	    OPT="-O";; | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1498 | 	esac | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1499 |     esac | 
| Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1500 | fi | 
 | 1501 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1502 | # The current (beta) Monterey compiler dies with optimizations | 
 | 1503 | case $ac_sys_system in | 
 | 1504 | Monterey*) OPT="";; | 
 | 1505 | esac | 
 | 1506 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1507 | if test "$ac_arch_flags" | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1508 | then | 
 | 1509 | 	OPT="$OPT $ac_arch_flags" | 
 | 1510 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1511 | # checks for UNIX variants that set C preprocessor variables | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1512 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1513 | echo "configure:1514: checking how to run the C preprocessor" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1514 | # On Suns, sometimes $CPP names a directory. | 
 | 1515 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 1516 |   CPP= | 
 | 1517 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1518 | if test -z "$CPP"; then | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1519 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1520 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1521 | else | 
 | 1522 |     # This must be in double quotes, not single quotes, because CPP may get | 
 | 1523 |   # substituted into the Makefile and "${CC-cc}" will confuse make. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1524 |   CPP="${CC-cc} -E" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1525 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 1526 |   # not just through cpp. | 
 | 1527 |   cat > conftest.$ac_ext <<EOF | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1528 | #line 1529 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1529 | #include "confdefs.h" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1530 | #include <assert.h> | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1531 | Syntax Error | 
 | 1532 | EOF | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1533 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1534 | { (eval echo configure:1535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1535 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1536 | if test -z "$ac_err"; then | 
 | 1537 |   : | 
 | 1538 | else | 
 | 1539 |   echo "$ac_err" >&5 | 
 | 1540 |   echo "configure: failed program was:" >&5 | 
 | 1541 |   cat conftest.$ac_ext >&5 | 
 | 1542 |   rm -rf conftest* | 
| Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1543 |   CPP="${CC-cc} -E -traditional-cpp" | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1544 |   cat > conftest.$ac_ext <<EOF | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1545 | #line 1546 "configure" | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1546 | #include "confdefs.h" | 
 | 1547 | #include <assert.h> | 
 | 1548 | Syntax Error | 
 | 1549 | EOF | 
 | 1550 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1551 | { (eval echo configure:1552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1552 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1553 | if test -z "$ac_err"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1554 |   : | 
 | 1555 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1556 |   echo "$ac_err" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1557 |   echo "configure: failed program was:" >&5 | 
 | 1558 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1559 |   rm -rf conftest* | 
| Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1560 |   CPP="${CC-cc} -nologo -E" | 
 | 1561 |   cat > conftest.$ac_ext <<EOF | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1562 | #line 1563 "configure" | 
| Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1563 | #include "confdefs.h" | 
 | 1564 | #include <assert.h> | 
 | 1565 | Syntax Error | 
 | 1566 | EOF | 
 | 1567 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1568 | { (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1569 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1570 | if test -z "$ac_err"; then | 
 | 1571 |   : | 
 | 1572 | else | 
 | 1573 |   echo "$ac_err" >&5 | 
 | 1574 |   echo "configure: failed program was:" >&5 | 
 | 1575 |   cat conftest.$ac_ext >&5 | 
 | 1576 |   rm -rf conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1577 |   CPP=/lib/cpp | 
 | 1578 | fi | 
 | 1579 | rm -f conftest* | 
 | 1580 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1581 | rm -f conftest* | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1582 | fi | 
 | 1583 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1584 |   ac_cv_prog_CPP="$CPP" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1585 | fi | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1586 |   CPP="$ac_cv_prog_CPP" | 
 | 1587 | else | 
 | 1588 |   ac_cv_prog_CPP="$CPP" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1589 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1590 | echo "$ac_t""$CPP" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1591 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1592 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1593 | echo "configure:1594: checking for AIX" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1594 | cat > conftest.$ac_ext <<EOF | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1595 | #line 1596 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1596 | #include "confdefs.h" | 
 | 1597 | #ifdef _AIX | 
 | 1598 |   yes | 
 | 1599 | #endif | 
 | 1600 |  | 
 | 1601 | EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 1603 |   egrep "yes" >/dev/null 2>&1; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1604 |   rm -rf conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1605 |   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1606 | #define _ALL_SOURCE 1 | 
 | 1607 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1608 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1609 | else | 
 | 1610 |   rm -rf conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1611 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1612 | fi | 
 | 1613 | rm -f conftest* | 
 | 1614 |  | 
 | 1615 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1616 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1617 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1618 | echo "configure:1619: checking for minix/config.h" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1619 | 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] | 1620 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1621 | else | 
 | 1622 |   cat > conftest.$ac_ext <<EOF | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1623 | #line 1624 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1624 | #include "confdefs.h" | 
 | 1625 | #include <minix/config.h> | 
 | 1626 | EOF | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1627 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1628 | { (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1629 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1630 | if test -z "$ac_err"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1631 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1632 |   eval "ac_cv_header_$ac_safe=yes" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1633 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1634 |   echo "$ac_err" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1635 |   echo "configure: failed program was:" >&5 | 
 | 1636 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1637 |   rm -rf conftest* | 
 | 1638 |   eval "ac_cv_header_$ac_safe=no" | 
 | 1639 | fi | 
 | 1640 | rm -f conftest* | 
 | 1641 | fi | 
 | 1642 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1643 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1644 |   MINIX=yes | 
 | 1645 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1646 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1647 | MINIX= | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1648 | fi | 
 | 1649 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1650 | if test "$MINIX" = yes; then | 
 | 1651 |   cat >> confdefs.h <<\EOF | 
 | 1652 | #define _POSIX_SOURCE 1 | 
 | 1653 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1654 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1655 |   cat >> confdefs.h <<\EOF | 
 | 1656 | #define _POSIX_1_SOURCE 2 | 
 | 1657 | EOF | 
 | 1658 |  | 
 | 1659 |   cat >> confdefs.h <<\EOF | 
 | 1660 | #define _MINIX 1 | 
 | 1661 | EOF | 
 | 1662 |  | 
 | 1663 | fi | 
 | 1664 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1665 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1666 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1667 | echo "configure:1668: checking whether $CC accepts -OPT:Olimit=0" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1668 | 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] | 1669 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1670 | else | 
 | 1671 |   ac_save_cc="$CC" | 
 | 1672 | CC="$CC -OPT:Olimit=0" | 
 | 1673 | if test "$cross_compiling" = yes; then | 
 | 1674 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 1675 | else | 
 | 1676 |   cat > conftest.$ac_ext <<EOF | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1677 | #line 1678 "configure" | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1678 | #include "confdefs.h" | 
 | 1679 | int main() { return 0; } | 
 | 1680 | EOF | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1681 | if { (eval echo configure:1682: \"$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] | 1682 | then | 
 | 1683 |   ac_cv_opt_olimit_ok=yes | 
 | 1684 | else | 
 | 1685 |   echo "configure: failed program was:" >&5 | 
 | 1686 |   cat conftest.$ac_ext >&5 | 
 | 1687 |   rm -fr conftest* | 
 | 1688 |   ac_cv_opt_olimit_ok=no | 
 | 1689 | fi | 
 | 1690 | rm -fr conftest* | 
 | 1691 | fi | 
 | 1692 |  | 
 | 1693 | CC="$ac_save_cc" | 
 | 1694 | fi | 
 | 1695 |  | 
 | 1696 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 | 
| Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1697 | if test $ac_cv_opt_olimit_ok = yes; then | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 1698 |     case $ac_sys_system in | 
 | 1699 |       Darwin*) OPT="$OPT" ;; | 
 | 1700 |       *) OPT="$OPT -OPT:Olimit=0";; | 
 | 1701 |     esac | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1702 | else | 
 | 1703 |   echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1704 | echo "configure:1705: checking whether $CC accepts -Olimit 1500" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1705 |   if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1706 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1707 | else | 
 | 1708 |   ac_save_cc="$CC" | 
 | 1709 |   CC="$CC -Olimit 1500" | 
 | 1710 |   if test "$cross_compiling" = yes; then | 
 | 1711 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 1712 | else | 
 | 1713 |   cat > conftest.$ac_ext <<EOF | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1714 | #line 1715 "configure" | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1715 | #include "confdefs.h" | 
 | 1716 | int main() { return 0; } | 
 | 1717 | EOF | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1718 | if { (eval echo configure:1719: \"$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] | 1719 | then | 
 | 1720 |   ac_cv_olimit_ok=yes | 
 | 1721 | else | 
 | 1722 |   echo "configure: failed program was:" >&5 | 
 | 1723 |   cat conftest.$ac_ext >&5 | 
 | 1724 |   rm -fr conftest* | 
 | 1725 |   ac_cv_olimit_ok=no | 
| Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1726 | fi | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1727 | rm -fr conftest* | 
 | 1728 | fi | 
 | 1729 |  | 
 | 1730 |   CC="$ac_save_cc" | 
 | 1731 | fi | 
 | 1732 |  | 
 | 1733 |   echo "$ac_t""$ac_cv_olimit_ok" 1>&6 | 
 | 1734 |   if test $ac_cv_olimit_ok = yes; then | 
 | 1735 |     OPT="$OPT -Olimit 1500" | 
 | 1736 |   fi | 
 | 1737 | fi | 
 | 1738 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1739 | # Check for enable-ipv6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1740 | # XXX definition of ss_family disabled until author clarifies rationale. | 
 | 1741 | # DEFS="$DEFS -Dss_family=__ss_family -Dss_len=__ss_len" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1742 | echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1743 | echo "configure:1744: checking whether to enable ipv6" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1744 | # Check whether --enable-ipv6 or --disable-ipv6 was given. | 
 | 1745 | if test "${enable_ipv6+set}" = set; then | 
 | 1746 |   enableval="$enable_ipv6" | 
 | 1747 |    case "$enableval" in | 
 | 1748 |   no) | 
 | 1749 |        echo "$ac_t""no" 1>&6 | 
 | 1750 |        ipv6=no | 
 | 1751 |        ;; | 
 | 1752 |   *)   echo "$ac_t""yes" 1>&6 | 
 | 1753 |        cat >> confdefs.h <<\EOF | 
 | 1754 | #define ENABLE_IPV6 1 | 
 | 1755 | EOF | 
 | 1756 |  | 
 | 1757 |        ipv6=yes | 
 | 1758 |        ;; | 
 | 1759 |   esac  | 
 | 1760 | else | 
 | 1761 |   if test "$cross_compiling" = yes; then | 
 | 1762 |   echo "$ac_t""no" 1>&6 | 
 | 1763 |   ipv6=no | 
 | 1764 |  | 
 | 1765 | else | 
 | 1766 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1767 | #line 1768 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1768 | #include "confdefs.h" | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1769 |  /* AF_INET6 available check */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1770 | #include <sys/types.h> | 
 | 1771 | #include <sys/socket.h> | 
 | 1772 | main() | 
 | 1773 | { | 
 | 1774 |  if (socket(AF_INET6, SOCK_STREAM, 0) < 0) | 
 | 1775 |    exit(1); | 
 | 1776 |  else | 
 | 1777 |    exit(0); | 
 | 1778 | } | 
 | 1779 |  | 
 | 1780 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1781 | if { (eval echo configure:1782: \"$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] | 1782 | then | 
 | 1783 |   echo "$ac_t""yes" 1>&6 | 
 | 1784 |   cat >> confdefs.h <<\EOF | 
 | 1785 | #define ENABLE_IPV6 1 | 
 | 1786 | EOF | 
 | 1787 |  | 
 | 1788 |   ipv6=yes | 
 | 1789 | else | 
 | 1790 |   echo "configure: failed program was:" >&5 | 
 | 1791 |   cat conftest.$ac_ext >&5 | 
 | 1792 |   rm -fr conftest* | 
 | 1793 |   echo "$ac_t""no" 1>&6 | 
 | 1794 |   ipv6=no | 
 | 1795 | fi | 
 | 1796 | rm -fr conftest* | 
 | 1797 | fi | 
 | 1798 |  | 
 | 1799 | fi | 
 | 1800 |  | 
 | 1801 |  | 
 | 1802 | ipv6type=unknown | 
 | 1803 | ipv6lib=none | 
 | 1804 | ipv6trylibc=no | 
 | 1805 |  | 
 | 1806 | if test "$ipv6" = "yes"; then | 
 | 1807 | 	echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1808 | echo "configure:1809: checking ipv6 stack type" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1809 | 	for i in inria kame linux-glibc linux-inet6 toshiba v6d zeta; do | 
 | 1810 | 		case $i in | 
 | 1811 | 		inria) | 
 | 1812 | 						cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1813 | #line 1814 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1814 | #include "confdefs.h" | 
 | 1815 | dnl | 
 | 1816 | #include <netinet/in.h> | 
 | 1817 | #ifdef IPV6_INRIA_VERSION | 
 | 1818 | yes | 
 | 1819 | #endif | 
 | 1820 | EOF | 
 | 1821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 1822 |   egrep "yes" >/dev/null 2>&1; then | 
 | 1823 |   rm -rf conftest* | 
 | 1824 |   ipv6type=$i; | 
 | 1825 | 				OPT="-DINET6 $OPT" | 
 | 1826 | fi | 
 | 1827 | rm -f conftest* | 
 | 1828 |  | 
 | 1829 | 			;; | 
 | 1830 | 		kame) | 
 | 1831 | 						cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1832 | #line 1833 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1833 | #include "confdefs.h" | 
 | 1834 | dnl | 
 | 1835 | #include <netinet/in.h> | 
 | 1836 | #ifdef __KAME__ | 
 | 1837 | yes | 
 | 1838 | #endif | 
 | 1839 | EOF | 
 | 1840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 1841 |   egrep "yes" >/dev/null 2>&1; then | 
 | 1842 |   rm -rf conftest* | 
 | 1843 |   ipv6type=$i; | 
 | 1844 | 				ipv6lib=inet6 | 
 | 1845 | 				ipv6libdir=/usr/local/v6/lib | 
 | 1846 | 				ipv6trylibc=yes | 
 | 1847 | 				OPT="-DINET6 $OPT" | 
 | 1848 | fi | 
 | 1849 | rm -f conftest* | 
 | 1850 |  | 
 | 1851 | 			;; | 
 | 1852 | 		linux-glibc) | 
 | 1853 | 						cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1854 | #line 1855 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1855 | #include "confdefs.h" | 
 | 1856 | dnl | 
 | 1857 | #include <features.h> | 
 | 1858 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 1859 | yes | 
 | 1860 | #endif | 
 | 1861 | EOF | 
 | 1862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 1863 |   egrep "yes" >/dev/null 2>&1; then | 
 | 1864 |   rm -rf conftest* | 
 | 1865 |   ipv6type=$i; | 
 | 1866 | 				ipv6trylibc=yes | 
 | 1867 | 				OPT="-DINET6 $OPT" | 
 | 1868 | fi | 
 | 1869 | rm -f conftest* | 
 | 1870 |  | 
 | 1871 | 			;; | 
 | 1872 | 		linux-inet6) | 
 | 1873 | 						if test -d /usr/inet6; then | 
 | 1874 | 				ipv6type=$i | 
 | 1875 | 				ipv6lib=inet6 | 
 | 1876 | 				ipv6libdir=/usr/inet6/lib | 
 | 1877 | 				OPT="-DINET6 -I/usr/inet6/include $OPT" | 
 | 1878 | 			fi | 
 | 1879 | 			;; | 
 | 1880 | 		toshiba) | 
 | 1881 | 			cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1882 | #line 1883 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1883 | #include "confdefs.h" | 
 | 1884 | dnl | 
 | 1885 | #include <sys/param.h> | 
 | 1886 | #ifdef _TOSHIBA_INET6 | 
 | 1887 | yes | 
 | 1888 | #endif | 
 | 1889 | EOF | 
 | 1890 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 1891 |   egrep "yes" >/dev/null 2>&1; then | 
 | 1892 |   rm -rf conftest* | 
 | 1893 |   ipv6type=$i; | 
 | 1894 | 				ipv6lib=inet6; | 
 | 1895 | 				ipv6libdir=/usr/local/v6/lib; | 
 | 1896 | 				OPT="-DINET6 $OPT" | 
 | 1897 | fi | 
 | 1898 | rm -f conftest* | 
 | 1899 |  | 
 | 1900 | 			;; | 
 | 1901 | 		v6d) | 
 | 1902 | 			cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1903 | #line 1904 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1904 | #include "confdefs.h" | 
 | 1905 | dnl | 
 | 1906 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 1907 | #ifdef __V6D__ | 
 | 1908 | yes | 
 | 1909 | #endif | 
 | 1910 | EOF | 
 | 1911 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 1912 |   egrep "yes" >/dev/null 2>&1; then | 
 | 1913 |   rm -rf conftest* | 
 | 1914 |   ipv6type=$i; | 
 | 1915 | 				ipv6lib=v6; | 
 | 1916 | 				ipv6libdir=/usr/local/v6/lib; | 
 | 1917 | 				OPT="-I/usr/local/v6/include $OPT" | 
 | 1918 | fi | 
 | 1919 | rm -f conftest* | 
 | 1920 |  | 
 | 1921 | 			;; | 
 | 1922 | 		zeta) | 
 | 1923 | 			cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1924 | #line 1925 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1925 | #include "confdefs.h" | 
 | 1926 | dnl | 
 | 1927 | #include <sys/param.h> | 
 | 1928 | #ifdef _ZETA_MINAMI_INET6 | 
 | 1929 | yes | 
 | 1930 | #endif | 
 | 1931 | EOF | 
 | 1932 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 1933 |   egrep "yes" >/dev/null 2>&1; then | 
 | 1934 |   rm -rf conftest* | 
 | 1935 |   ipv6type=$i; | 
 | 1936 | 				ipv6lib=inet6; | 
 | 1937 | 				ipv6libdir=/usr/local/v6/lib; | 
 | 1938 | 				OPT="-DINET6 $OPT" | 
 | 1939 | fi | 
 | 1940 | rm -f conftest* | 
 | 1941 |  | 
 | 1942 | 			;; | 
 | 1943 | 		esac | 
 | 1944 | 		if test "$ipv6type" != "unknown"; then | 
 | 1945 | 			break | 
 | 1946 | 		fi | 
 | 1947 | 	done | 
 | 1948 | 	echo "$ac_t""$ipv6type" 1>&6 | 
 | 1949 | fi | 
 | 1950 |  | 
 | 1951 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 1952 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 1953 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 1954 | 		echo "using lib$ipv6lib" | 
 | 1955 | 	else | 
 | 1956 | 		if test $ipv6trylibc = "yes"; then | 
 | 1957 | 			echo "using libc" | 
 | 1958 | 		else | 
 | 1959 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 1960 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 1961 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 1962 | 			exit 1 | 
 | 1963 | 		fi | 
 | 1964 | 	fi | 
 | 1965 | fi | 
 | 1966 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1967 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1968 | # checks for header files | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1969 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1970 | echo "configure:1971: checking for ANSI C header files" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1971 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1972 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1973 | else | 
 | 1974 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1975 | #line 1976 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1976 | #include "confdefs.h" | 
 | 1977 | #include <stdlib.h> | 
 | 1978 | #include <stdarg.h> | 
 | 1979 | #include <string.h> | 
 | 1980 | #include <float.h> | 
 | 1981 | EOF | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1982 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 1983 | { (eval echo configure:1984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1984 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1985 | if test -z "$ac_err"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1986 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1987 |   ac_cv_header_stdc=yes | 
 | 1988 | else | 
 | 1989 |   echo "$ac_err" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1990 |   echo "configure: failed program was:" >&5 | 
 | 1991 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1992 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1993 |   ac_cv_header_stdc=no | 
 | 1994 | fi | 
 | 1995 | rm -f conftest* | 
 | 1996 |  | 
 | 1997 | if test $ac_cv_header_stdc = yes; then | 
 | 1998 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 1999 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2000 | #line 2001 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2001 | #include "confdefs.h" | 
 | 2002 | #include <string.h> | 
 | 2003 | EOF | 
 | 2004 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2005 |   egrep "memchr" >/dev/null 2>&1; then | 
 | 2006 |   : | 
 | 2007 | else | 
 | 2008 |   rm -rf conftest* | 
 | 2009 |   ac_cv_header_stdc=no | 
 | 2010 | fi | 
 | 2011 | rm -f conftest* | 
 | 2012 |  | 
 | 2013 | fi | 
 | 2014 |  | 
 | 2015 | if test $ac_cv_header_stdc = yes; then | 
 | 2016 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 2017 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2018 | #line 2019 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2019 | #include "confdefs.h" | 
 | 2020 | #include <stdlib.h> | 
 | 2021 | EOF | 
 | 2022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2023 |   egrep "free" >/dev/null 2>&1; then | 
 | 2024 |   : | 
 | 2025 | else | 
 | 2026 |   rm -rf conftest* | 
 | 2027 |   ac_cv_header_stdc=no | 
 | 2028 | fi | 
 | 2029 | rm -f conftest* | 
 | 2030 |  | 
 | 2031 | fi | 
 | 2032 |  | 
 | 2033 | if test $ac_cv_header_stdc = yes; then | 
 | 2034 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 2035 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2036 |   : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2037 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2038 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2039 | #line 2040 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2040 | #include "confdefs.h" | 
 | 2041 | #include <ctype.h> | 
 | 2042 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 2043 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2044 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2045 | int main () { int i; for (i = 0; i < 256; i++) | 
 | 2046 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 
 | 2047 | exit (0); } | 
 | 2048 |  | 
 | 2049 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2050 | if { (eval echo configure:2051: \"$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] | 2051 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2052 |   : | 
 | 2053 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2054 |   echo "configure: failed program was:" >&5 | 
 | 2055 |   cat conftest.$ac_ext >&5 | 
 | 2056 |   rm -fr conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2057 |   ac_cv_header_stdc=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2058 | fi | 
 | 2059 | rm -fr conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2060 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2061 |  | 
 | 2062 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2063 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2064 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2065 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2066 | if test $ac_cv_header_stdc = yes; then | 
 | 2067 |   cat >> confdefs.h <<\EOF | 
 | 2068 | #define STDC_HEADERS 1 | 
 | 2069 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2070 |  | 
 | 2071 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2072 |  | 
| Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 2073 | for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \ | 
| Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 2074 | 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] | 2075 | 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] | 2076 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ | 
| Fred Drake | ae90f8d | 2000-09-15 03:38:12 +0000 | [diff] [blame] | 2077 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 2078 | ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2079 | do | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2080 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2081 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2082 | echo "configure:2083: checking for $ac_hdr" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2083 | 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] | 2084 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2085 | else | 
 | 2086 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2087 | #line 2088 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2088 | #include "confdefs.h" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2089 | #include <$ac_hdr> | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2090 | EOF | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2091 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2092 | { (eval echo configure:2093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2093 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2094 | if test -z "$ac_err"; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2095 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2096 |   eval "ac_cv_header_$ac_safe=yes" | 
 | 2097 | else | 
 | 2098 |   echo "$ac_err" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2099 |   echo "configure: failed program was:" >&5 | 
 | 2100 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2101 |   rm -rf conftest* | 
 | 2102 |   eval "ac_cv_header_$ac_safe=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2103 | fi | 
 | 2104 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2105 | fi | 
 | 2106 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2107 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2108 |     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2109 |   cat >> confdefs.h <<EOF | 
 | 2110 | #define $ac_tr_hdr 1 | 
 | 2111 | EOF | 
 | 2112 |   | 
 | 2113 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2114 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2115 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2116 | done | 
 | 2117 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2118 | ac_header_dirent=no | 
 | 2119 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | 
 | 2120 | do | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2121 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2122 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2123 | echo "configure:2124: checking for $ac_hdr that defines DIR" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2124 | 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] | 2125 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2126 | else | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2127 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2128 | #line 2129 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2129 | #include "confdefs.h" | 
 | 2130 | #include <sys/types.h> | 
 | 2131 | #include <$ac_hdr> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2132 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2133 | DIR *dirp = 0; | 
 | 2134 | ; return 0; } | 
 | 2135 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2136 | if { (eval echo configure:2137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2137 |   rm -rf conftest* | 
 | 2138 |   eval "ac_cv_header_dirent_$ac_safe=yes" | 
 | 2139 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2140 |   echo "configure: failed program was:" >&5 | 
 | 2141 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2142 |   rm -rf conftest* | 
 | 2143 |   eval "ac_cv_header_dirent_$ac_safe=no" | 
 | 2144 | fi | 
 | 2145 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2146 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2147 | 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] | 2148 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2149 |     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2150 |   cat >> confdefs.h <<EOF | 
 | 2151 | #define $ac_tr_hdr 1 | 
 | 2152 | EOF | 
 | 2153 |  ac_header_dirent=$ac_hdr; break | 
 | 2154 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2155 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2156 | fi | 
 | 2157 | done | 
 | 2158 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 2159 | if test $ac_header_dirent = dirent.h; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2160 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2161 | echo "configure:2162: checking for opendir in -ldir" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2162 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2163 | 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] | 2164 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2165 | else | 
 | 2166 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2167 | LIBS="-ldir  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2168 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2169 | #line 2170 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2170 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2171 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 2172 | /* We use char because int might match the return type of a gcc2 | 
 | 2173 |     builtin and then its argument prototype would still apply.  */ | 
 | 2174 | char opendir(); | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2175 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2176 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2177 | opendir() | 
 | 2178 | ; return 0; } | 
 | 2179 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2180 | if { (eval echo configure:2181: \"$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] | 2181 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2182 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2183 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2184 |   echo "configure: failed program was:" >&5 | 
 | 2185 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2186 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2187 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2188 | fi | 
 | 2189 | rm -f conftest* | 
 | 2190 | LIBS="$ac_save_LIBS" | 
 | 2191 |  | 
 | 2192 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2193 | 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] | 2194 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2195 |   LIBS="$LIBS -ldir" | 
 | 2196 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2197 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2198 | fi | 
 | 2199 |  | 
 | 2200 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2201 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2202 | echo "configure:2203: checking for opendir in -lx" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2203 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2204 | 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] | 2205 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2206 | else | 
 | 2207 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2208 | LIBS="-lx  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2209 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2210 | #line 2211 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2211 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2212 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 2213 | /* We use char because int might match the return type of a gcc2 | 
 | 2214 |     builtin and then its argument prototype would still apply.  */ | 
 | 2215 | char opendir(); | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2216 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2217 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2218 | opendir() | 
 | 2219 | ; return 0; } | 
 | 2220 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2221 | if { (eval echo configure:2222: \"$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] | 2222 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2223 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2224 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2225 |   echo "configure: failed program was:" >&5 | 
 | 2226 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2227 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2228 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2229 | fi | 
 | 2230 | rm -f conftest* | 
 | 2231 | LIBS="$ac_save_LIBS" | 
 | 2232 |  | 
 | 2233 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2234 | 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] | 2235 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2236 |   LIBS="$LIBS -lx" | 
 | 2237 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2238 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2239 | fi | 
 | 2240 |  | 
 | 2241 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2242 |  | 
 | 2243 |  | 
 | 2244 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2245 | was_it_defined=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2246 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2247 | echo "configure:2248: checking for clock_t in time.h" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2248 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2249 | #line 2250 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2250 | #include "confdefs.h" | 
 | 2251 | #include <time.h> | 
 | 2252 | EOF | 
 | 2253 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2254 |   egrep "clock_t" >/dev/null 2>&1; then | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2255 |   rm -rf conftest* | 
 | 2256 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2257 | else | 
 | 2258 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2259 |   cat >> confdefs.h <<\EOF | 
 | 2260 | #define clock_t long | 
 | 2261 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2262 |  | 
 | 2263 | fi | 
 | 2264 | rm -f conftest* | 
 | 2265 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2266 | echo "$ac_t""$was_it_defined" 1>&6 | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2267 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2268 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 2269 | cat >> confdefs.h <<\EOF | 
 | 2270 | #if defined(SCO_DS) | 
 | 2271 | #undef _OFF_T | 
 | 2272 | #endif | 
 | 2273 | EOF | 
 | 2274 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2275 | # Type availability checks | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2276 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2277 | echo "configure:2278: checking for mode_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2278 | 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] | 2279 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2280 | else | 
 | 2281 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2282 | #line 2283 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2283 | #include "confdefs.h" | 
 | 2284 | #include <sys/types.h> | 
 | 2285 | #if STDC_HEADERS | 
 | 2286 | #include <stdlib.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2287 | #include <stddef.h> | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2288 | #endif | 
 | 2289 | EOF | 
 | 2290 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2291 |   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] | 2292 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2293 |   ac_cv_type_mode_t=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2294 | else | 
 | 2295 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2296 |   ac_cv_type_mode_t=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2297 | fi | 
 | 2298 | rm -f conftest* | 
 | 2299 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2300 | fi | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2301 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | 
 | 2302 | if test $ac_cv_type_mode_t = no; then | 
 | 2303 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2304 | #define mode_t int | 
 | 2305 | EOF | 
 | 2306 |  | 
 | 2307 | fi | 
 | 2308 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2309 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2310 | echo "configure:2311: checking for off_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2311 | 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] | 2312 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2313 | else | 
 | 2314 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2315 | #line 2316 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2316 | #include "confdefs.h" | 
 | 2317 | #include <sys/types.h> | 
 | 2318 | #if STDC_HEADERS | 
 | 2319 | #include <stdlib.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2320 | #include <stddef.h> | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2321 | #endif | 
 | 2322 | EOF | 
 | 2323 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2324 |   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] | 2325 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2326 |   ac_cv_type_off_t=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2327 | else | 
 | 2328 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2329 |   ac_cv_type_off_t=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2330 | fi | 
 | 2331 | rm -f conftest* | 
 | 2332 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2333 | fi | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2334 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | 
 | 2335 | if test $ac_cv_type_off_t = no; then | 
 | 2336 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2337 | #define off_t long | 
 | 2338 | EOF | 
 | 2339 |  | 
 | 2340 | fi | 
 | 2341 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2342 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2343 | echo "configure:2344: checking for pid_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2344 | 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] | 2345 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2346 | else | 
 | 2347 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2348 | #line 2349 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2349 | #include "confdefs.h" | 
 | 2350 | #include <sys/types.h> | 
 | 2351 | #if STDC_HEADERS | 
 | 2352 | #include <stdlib.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2353 | #include <stddef.h> | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2354 | #endif | 
 | 2355 | EOF | 
 | 2356 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2357 |   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] | 2358 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2359 |   ac_cv_type_pid_t=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2360 | else | 
 | 2361 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2362 |   ac_cv_type_pid_t=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2363 | fi | 
 | 2364 | rm -f conftest* | 
 | 2365 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2366 | fi | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2367 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | 
 | 2368 | if test $ac_cv_type_pid_t = no; then | 
 | 2369 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2370 | #define pid_t int | 
 | 2371 | EOF | 
 | 2372 |  | 
 | 2373 | fi | 
 | 2374 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2375 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2376 | echo "configure:2377: checking return type of signal handlers" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2377 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2378 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2379 | else | 
 | 2380 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2381 | #line 2382 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2382 | #include "confdefs.h" | 
 | 2383 | #include <sys/types.h> | 
 | 2384 | #include <signal.h> | 
 | 2385 | #ifdef signal | 
 | 2386 | #undef signal | 
 | 2387 | #endif | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2388 | #ifdef __cplusplus | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2389 | extern "C" void (*signal (int, void (*)(int)))(int); | 
 | 2390 | #else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2391 | void (*signal ()) (); | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2392 | #endif | 
 | 2393 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2394 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2395 | int i; | 
 | 2396 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2397 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2398 | if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2399 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2400 |   ac_cv_type_signal=void | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2401 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2402 |   echo "configure: failed program was:" >&5 | 
 | 2403 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2404 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2405 |   ac_cv_type_signal=int | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2406 | fi | 
 | 2407 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2408 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2409 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2410 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2411 | cat >> confdefs.h <<EOF | 
 | 2412 | #define RETSIGTYPE $ac_cv_type_signal | 
 | 2413 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2414 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2415 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2416 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2417 | echo "configure:2418: checking for size_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2418 | 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] | 2419 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2420 | else | 
 | 2421 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2422 | #line 2423 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2423 | #include "confdefs.h" | 
 | 2424 | #include <sys/types.h> | 
 | 2425 | #if STDC_HEADERS | 
 | 2426 | #include <stdlib.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2427 | #include <stddef.h> | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2428 | #endif | 
 | 2429 | EOF | 
 | 2430 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2431 |   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] | 2432 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2433 |   ac_cv_type_size_t=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2434 | else | 
 | 2435 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2436 |   ac_cv_type_size_t=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2437 | fi | 
 | 2438 | rm -f conftest* | 
 | 2439 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2440 | fi | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2441 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | 
 | 2442 | if test $ac_cv_type_size_t = no; then | 
 | 2443 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2444 | #define size_t unsigned | 
 | 2445 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2446 |  | 
 | 2447 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2448 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2449 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2450 | echo "configure:2451: checking for uid_t in sys/types.h" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2451 | 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] | 2452 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2453 | else | 
 | 2454 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2455 | #line 2456 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2456 | #include "confdefs.h" | 
 | 2457 | #include <sys/types.h> | 
 | 2458 | EOF | 
 | 2459 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2460 |   egrep "uid_t" >/dev/null 2>&1; then | 
 | 2461 |   rm -rf conftest* | 
 | 2462 |   ac_cv_type_uid_t=yes | 
 | 2463 | else | 
 | 2464 |   rm -rf conftest* | 
 | 2465 |   ac_cv_type_uid_t=no | 
 | 2466 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2467 | rm -f conftest* | 
 | 2468 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2469 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2470 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2471 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2472 | if test $ac_cv_type_uid_t = no; then | 
 | 2473 |   cat >> confdefs.h <<\EOF | 
 | 2474 | #define uid_t int | 
 | 2475 | EOF | 
 | 2476 |  | 
 | 2477 |   cat >> confdefs.h <<\EOF | 
 | 2478 | #define gid_t int | 
 | 2479 | EOF | 
 | 2480 |  | 
 | 2481 | fi | 
 | 2482 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2483 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2484 | # Sizes of various common basic types | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2485 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2486 | echo "configure:2487: checking size of int" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2487 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2488 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2489 | else | 
 | 2490 |   if test "$cross_compiling" = yes; then | 
 | 2491 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2492 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2493 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2494 | #line 2495 "configure" | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2495 | #include "confdefs.h" | 
 | 2496 | #include <stdio.h> | 
 | 2497 | main() | 
 | 2498 | { | 
 | 2499 |   FILE *f=fopen("conftestval", "w"); | 
 | 2500 |   if (!f) exit(1); | 
 | 2501 |   fprintf(f, "%d\n", sizeof(int)); | 
 | 2502 |   exit(0); | 
 | 2503 | } | 
 | 2504 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2505 | if { (eval echo configure:2506: \"$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] | 2506 | then | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2507 |   ac_cv_sizeof_int=`cat conftestval` | 
 | 2508 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2509 |   echo "configure: failed program was:" >&5 | 
 | 2510 |   cat conftest.$ac_ext >&5 | 
 | 2511 |   rm -fr conftest* | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2512 |   ac_cv_sizeof_int=0 | 
 | 2513 | fi | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2514 | rm -fr conftest* | 
 | 2515 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2516 |  | 
 | 2517 | fi | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2518 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | 
 | 2519 | cat >> confdefs.h <<EOF | 
 | 2520 | #define SIZEOF_INT $ac_cv_sizeof_int | 
 | 2521 | EOF | 
 | 2522 |  | 
 | 2523 |  | 
 | 2524 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2525 | echo "configure:2526: checking size of long" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2526 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2527 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2528 | else | 
 | 2529 |   if test "$cross_compiling" = yes; then | 
 | 2530 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2531 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2532 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2533 | #line 2534 "configure" | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2534 | #include "confdefs.h" | 
 | 2535 | #include <stdio.h> | 
 | 2536 | main() | 
 | 2537 | { | 
 | 2538 |   FILE *f=fopen("conftestval", "w"); | 
 | 2539 |   if (!f) exit(1); | 
 | 2540 |   fprintf(f, "%d\n", sizeof(long)); | 
 | 2541 |   exit(0); | 
 | 2542 | } | 
 | 2543 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2544 | if { (eval echo configure:2545: \"$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] | 2545 | then | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2546 |   ac_cv_sizeof_long=`cat conftestval` | 
 | 2547 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2548 |   echo "configure: failed program was:" >&5 | 
 | 2549 |   cat conftest.$ac_ext >&5 | 
 | 2550 |   rm -fr conftest* | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2551 |   ac_cv_sizeof_long=0 | 
 | 2552 | fi | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2553 | rm -fr conftest* | 
 | 2554 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2555 |  | 
 | 2556 | fi | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2557 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | 
 | 2558 | cat >> confdefs.h <<EOF | 
 | 2559 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
 | 2560 | EOF | 
 | 2561 |  | 
 | 2562 |  | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2563 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2564 | echo "configure:2565: checking size of void *" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2565 | 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] | 2566 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2567 | else | 
 | 2568 |   if test "$cross_compiling" = yes; then | 
 | 2569 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2570 | else | 
 | 2571 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2572 | #line 2573 "configure" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2573 | #include "confdefs.h" | 
 | 2574 | #include <stdio.h> | 
 | 2575 | main() | 
 | 2576 | { | 
 | 2577 |   FILE *f=fopen("conftestval", "w"); | 
 | 2578 |   if (!f) exit(1); | 
 | 2579 |   fprintf(f, "%d\n", sizeof(void *)); | 
 | 2580 |   exit(0); | 
 | 2581 | } | 
 | 2582 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2583 | if { (eval echo configure:2584: \"$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] | 2584 | then | 
 | 2585 |   ac_cv_sizeof_void_p=`cat conftestval` | 
 | 2586 | else | 
 | 2587 |   echo "configure: failed program was:" >&5 | 
 | 2588 |   cat conftest.$ac_ext >&5 | 
 | 2589 |   rm -fr conftest* | 
 | 2590 |   ac_cv_sizeof_void_p=0 | 
 | 2591 | fi | 
 | 2592 | rm -fr conftest* | 
 | 2593 | fi | 
 | 2594 |  | 
 | 2595 | fi | 
 | 2596 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | 
 | 2597 | cat >> confdefs.h <<EOF | 
 | 2598 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
 | 2599 | EOF | 
 | 2600 |  | 
 | 2601 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2602 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2603 | echo "configure:2604: checking size of char" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2604 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2605 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2606 | else | 
 | 2607 |   if test "$cross_compiling" = yes; then | 
 | 2608 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2609 | else | 
 | 2610 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2611 | #line 2612 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2612 | #include "confdefs.h" | 
 | 2613 | #include <stdio.h> | 
 | 2614 | main() | 
 | 2615 | { | 
 | 2616 |   FILE *f=fopen("conftestval", "w"); | 
 | 2617 |   if (!f) exit(1); | 
 | 2618 |   fprintf(f, "%d\n", sizeof(char)); | 
 | 2619 |   exit(0); | 
 | 2620 | } | 
 | 2621 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2622 | if { (eval echo configure:2623: \"$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] | 2623 | then | 
 | 2624 |   ac_cv_sizeof_char=`cat conftestval` | 
 | 2625 | else | 
 | 2626 |   echo "configure: failed program was:" >&5 | 
 | 2627 |   cat conftest.$ac_ext >&5 | 
 | 2628 |   rm -fr conftest* | 
 | 2629 |   ac_cv_sizeof_char=0 | 
 | 2630 | fi | 
 | 2631 | rm -fr conftest* | 
 | 2632 | fi | 
 | 2633 |  | 
 | 2634 | fi | 
 | 2635 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | 
 | 2636 | cat >> confdefs.h <<EOF | 
 | 2637 | #define SIZEOF_CHAR $ac_cv_sizeof_char | 
 | 2638 | EOF | 
 | 2639 |  | 
 | 2640 |  | 
 | 2641 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2642 | echo "configure:2643: checking size of short" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2643 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2644 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2645 | else | 
 | 2646 |   if test "$cross_compiling" = yes; then | 
 | 2647 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2648 | else | 
 | 2649 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2650 | #line 2651 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2651 | #include "confdefs.h" | 
 | 2652 | #include <stdio.h> | 
 | 2653 | main() | 
 | 2654 | { | 
 | 2655 |   FILE *f=fopen("conftestval", "w"); | 
 | 2656 |   if (!f) exit(1); | 
 | 2657 |   fprintf(f, "%d\n", sizeof(short)); | 
 | 2658 |   exit(0); | 
 | 2659 | } | 
 | 2660 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2661 | if { (eval echo configure:2662: \"$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] | 2662 | then | 
 | 2663 |   ac_cv_sizeof_short=`cat conftestval` | 
 | 2664 | else | 
 | 2665 |   echo "configure: failed program was:" >&5 | 
 | 2666 |   cat conftest.$ac_ext >&5 | 
 | 2667 |   rm -fr conftest* | 
 | 2668 |   ac_cv_sizeof_short=0 | 
 | 2669 | fi | 
 | 2670 | rm -fr conftest* | 
 | 2671 | fi | 
 | 2672 |  | 
 | 2673 | fi | 
 | 2674 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | 
 | 2675 | cat >> confdefs.h <<EOF | 
 | 2676 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
 | 2677 | EOF | 
 | 2678 |  | 
 | 2679 |  | 
 | 2680 | echo $ac_n "checking size of float""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2681 | echo "configure:2682: checking size of float" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2682 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2683 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2684 | else | 
 | 2685 |   if test "$cross_compiling" = yes; then | 
 | 2686 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2687 | else | 
 | 2688 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2689 | #line 2690 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2690 | #include "confdefs.h" | 
 | 2691 | #include <stdio.h> | 
 | 2692 | main() | 
 | 2693 | { | 
 | 2694 |   FILE *f=fopen("conftestval", "w"); | 
 | 2695 |   if (!f) exit(1); | 
 | 2696 |   fprintf(f, "%d\n", sizeof(float)); | 
 | 2697 |   exit(0); | 
 | 2698 | } | 
 | 2699 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2700 | if { (eval echo configure:2701: \"$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] | 2701 | then | 
 | 2702 |   ac_cv_sizeof_float=`cat conftestval` | 
 | 2703 | else | 
 | 2704 |   echo "configure: failed program was:" >&5 | 
 | 2705 |   cat conftest.$ac_ext >&5 | 
 | 2706 |   rm -fr conftest* | 
 | 2707 |   ac_cv_sizeof_float=0 | 
 | 2708 | fi | 
 | 2709 | rm -fr conftest* | 
 | 2710 | fi | 
 | 2711 |  | 
 | 2712 | fi | 
 | 2713 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 | 
 | 2714 | cat >> confdefs.h <<EOF | 
 | 2715 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
 | 2716 | EOF | 
 | 2717 |  | 
 | 2718 |  | 
 | 2719 | echo $ac_n "checking size of double""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2720 | echo "configure:2721: checking size of double" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2721 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2722 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2723 | else | 
 | 2724 |   if test "$cross_compiling" = yes; then | 
 | 2725 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2726 | else | 
 | 2727 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2728 | #line 2729 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2729 | #include "confdefs.h" | 
 | 2730 | #include <stdio.h> | 
 | 2731 | main() | 
 | 2732 | { | 
 | 2733 |   FILE *f=fopen("conftestval", "w"); | 
 | 2734 |   if (!f) exit(1); | 
 | 2735 |   fprintf(f, "%d\n", sizeof(double)); | 
 | 2736 |   exit(0); | 
 | 2737 | } | 
 | 2738 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2739 | if { (eval echo configure:2740: \"$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] | 2740 | then | 
 | 2741 |   ac_cv_sizeof_double=`cat conftestval` | 
 | 2742 | else | 
 | 2743 |   echo "configure: failed program was:" >&5 | 
 | 2744 |   cat conftest.$ac_ext >&5 | 
 | 2745 |   rm -fr conftest* | 
 | 2746 |   ac_cv_sizeof_double=0 | 
 | 2747 | fi | 
 | 2748 | rm -fr conftest* | 
 | 2749 | fi | 
 | 2750 |  | 
 | 2751 | fi | 
 | 2752 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 | 
 | 2753 | cat >> confdefs.h <<EOF | 
 | 2754 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
 | 2755 | EOF | 
 | 2756 |  | 
 | 2757 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2758 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2759 | echo "configure:2760: checking size of fpos_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2760 | 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] | 2761 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2762 | else | 
 | 2763 |   if test "$cross_compiling" = yes; then | 
 | 2764 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2765 | else | 
 | 2766 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2767 | #line 2768 "configure" | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2768 | #include "confdefs.h" | 
 | 2769 | #include <stdio.h> | 
 | 2770 | main() | 
 | 2771 | { | 
 | 2772 |   FILE *f=fopen("conftestval", "w"); | 
 | 2773 |   if (!f) exit(1); | 
 | 2774 |   fprintf(f, "%d\n", sizeof(fpos_t)); | 
 | 2775 |   exit(0); | 
 | 2776 | } | 
 | 2777 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2778 | if { (eval echo configure:2779: \"$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] | 2779 | then | 
 | 2780 |   ac_cv_sizeof_fpos_t=`cat conftestval` | 
 | 2781 | else | 
 | 2782 |   echo "configure: failed program was:" >&5 | 
 | 2783 |   cat conftest.$ac_ext >&5 | 
 | 2784 |   rm -fr conftest* | 
 | 2785 |   ac_cv_sizeof_fpos_t=0 | 
 | 2786 | fi | 
 | 2787 | rm -fr conftest* | 
 | 2788 | fi | 
 | 2789 |  | 
 | 2790 | fi | 
 | 2791 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 | 
 | 2792 | cat >> confdefs.h <<EOF | 
 | 2793 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
 | 2794 | EOF | 
 | 2795 |  | 
 | 2796 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2797 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2798 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2799 | echo "configure:2800: checking for long long support" >&5 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2800 | have_long_long=no | 
 | 2801 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2802 | #line 2803 "configure" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2803 | #include "confdefs.h" | 
 | 2804 |  | 
 | 2805 | int main() { | 
 | 2806 | long long x; x = (long long)0; | 
 | 2807 | ; return 0; } | 
 | 2808 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2809 | if { (eval echo configure:2810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2810 |   rm -rf conftest* | 
 | 2811 |   cat >> confdefs.h <<\EOF | 
 | 2812 | #define HAVE_LONG_LONG 1 | 
 | 2813 | EOF | 
 | 2814 |  have_long_long=yes | 
 | 2815 | else | 
 | 2816 |   echo "configure: failed program was:" >&5 | 
 | 2817 |   cat conftest.$ac_ext >&5 | 
 | 2818 | fi | 
 | 2819 | rm -f conftest* | 
 | 2820 | echo "$ac_t""$have_long_long" 1>&6 | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2821 | if test "$have_long_long" = yes ; then | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2822 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2823 | echo "configure:2824: checking size of long long" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2824 | 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] | 2825 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2826 | else | 
 | 2827 |   if test "$cross_compiling" = yes; then | 
 | 2828 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2829 | else | 
 | 2830 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2831 | #line 2832 "configure" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2832 | #include "confdefs.h" | 
 | 2833 | #include <stdio.h> | 
 | 2834 | main() | 
 | 2835 | { | 
 | 2836 |   FILE *f=fopen("conftestval", "w"); | 
 | 2837 |   if (!f) exit(1); | 
 | 2838 |   fprintf(f, "%d\n", sizeof(long long)); | 
 | 2839 |   exit(0); | 
 | 2840 | } | 
 | 2841 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2842 | if { (eval echo configure:2843: \"$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] | 2843 | then | 
 | 2844 |   ac_cv_sizeof_long_long=`cat conftestval` | 
 | 2845 | else | 
 | 2846 |   echo "configure: failed program was:" >&5 | 
 | 2847 |   cat conftest.$ac_ext >&5 | 
 | 2848 |   rm -fr conftest* | 
 | 2849 |   ac_cv_sizeof_long_long=0 | 
 | 2850 | fi | 
 | 2851 | rm -fr conftest* | 
 | 2852 | fi | 
 | 2853 |  | 
 | 2854 | fi | 
 | 2855 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | 
 | 2856 | cat >> confdefs.h <<EOF | 
 | 2857 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
 | 2858 | EOF | 
 | 2859 |  | 
 | 2860 |  | 
 | 2861 | fi | 
 | 2862 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2863 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2864 | echo "configure:2865: checking for uintptr_t support" >&5 | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2865 | have_uintptr_t=no | 
 | 2866 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2867 | #line 2868 "configure" | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2868 | #include "confdefs.h" | 
 | 2869 |  | 
 | 2870 | int main() { | 
 | 2871 | uintptr_t x; x = (uintptr_t)0; | 
 | 2872 | ; return 0; } | 
 | 2873 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2874 | if { (eval echo configure:2875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2875 |   rm -rf conftest* | 
 | 2876 |   cat >> confdefs.h <<\EOF | 
 | 2877 | #define HAVE_UINTPTR_T 1 | 
 | 2878 | EOF | 
 | 2879 |  have_uintptr_t=yes | 
 | 2880 | else | 
 | 2881 |   echo "configure: failed program was:" >&5 | 
 | 2882 |   cat conftest.$ac_ext >&5 | 
 | 2883 | fi | 
 | 2884 | rm -f conftest* | 
 | 2885 | echo "$ac_t""$have_uintptr_t" 1>&6 | 
 | 2886 | if test "$have_uintptr_t" = yes ; then | 
 | 2887 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2888 | echo "configure:2889: checking size of uintptr_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2889 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2890 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2891 | else | 
 | 2892 |   if test "$cross_compiling" = yes; then | 
 | 2893 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2894 | else | 
 | 2895 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2896 | #line 2897 "configure" | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2897 | #include "confdefs.h" | 
 | 2898 | #include <stdio.h> | 
 | 2899 | main() | 
 | 2900 | { | 
 | 2901 |   FILE *f=fopen("conftestval", "w"); | 
 | 2902 |   if (!f) exit(1); | 
 | 2903 |   fprintf(f, "%d\n", sizeof(uintptr_t)); | 
 | 2904 |   exit(0); | 
 | 2905 | } | 
 | 2906 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2907 | if { (eval echo configure:2908: \"$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] | 2908 | then | 
 | 2909 |   ac_cv_sizeof_uintptr_t=`cat conftestval` | 
 | 2910 | else | 
 | 2911 |   echo "configure: failed program was:" >&5 | 
 | 2912 |   cat conftest.$ac_ext >&5 | 
 | 2913 |   rm -fr conftest* | 
 | 2914 |   ac_cv_sizeof_uintptr_t=0 | 
 | 2915 | fi | 
 | 2916 | rm -fr conftest* | 
 | 2917 | fi | 
 | 2918 |  | 
 | 2919 | fi | 
 | 2920 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 | 
 | 2921 | cat >> confdefs.h <<EOF | 
 | 2922 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
 | 2923 | EOF | 
 | 2924 |  | 
 | 2925 |  | 
 | 2926 | fi | 
 | 2927 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2928 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. | 
 | 2929 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2930 | echo "configure:2931: checking size of off_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2931 | 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] | 2932 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2933 | else | 
 | 2934 |   if test "$cross_compiling" = yes; then | 
 | 2935 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2936 | else | 
 | 2937 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2938 | #line 2939 "configure" | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2939 | #include "confdefs.h" | 
 | 2940 | #include <stdio.h> | 
 | 2941 | #include <sys/types.h> | 
 | 2942 | main() | 
 | 2943 | { | 
 | 2944 |   FILE *f=fopen("conftestval", "w"); | 
 | 2945 |   if (!f) exit(1); | 
 | 2946 |   fprintf(f, "%d\n", sizeof(off_t)); | 
 | 2947 |   exit(0); | 
 | 2948 | } | 
 | 2949 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2950 | if { (eval echo configure:2951: \"$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] | 2951 | then | 
 | 2952 |   ac_cv_sizeof_off_t=`cat conftestval` | 
 | 2953 | else | 
 | 2954 |   echo "configure: failed program was:" >&5 | 
 | 2955 |   cat conftest.$ac_ext >&5 | 
 | 2956 |   rm -fr conftest* | 
 | 2957 |   ac_cv_sizeof_off_t=0 | 
 | 2958 | fi | 
 | 2959 | rm -fr conftest* | 
 | 2960 | fi | 
 | 2961 |  | 
 | 2962 |  | 
 | 2963 | fi | 
 | 2964 |  | 
 | 2965 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 | 
 | 2966 | cat >> confdefs.h <<EOF | 
 | 2967 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
 | 2968 | EOF | 
 | 2969 |  | 
 | 2970 |  | 
 | 2971 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2972 | echo "configure:2973: checking whether to enable large file support" >&5 | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2973 | if test "$have_long_long" = yes -a \ | 
 | 2974 | 	"$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ | 
 | 2975 | 	"$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] | 2976 |   cat >> confdefs.h <<\EOF | 
 | 2977 | #define HAVE_LARGEFILE_SUPPORT 1 | 
 | 2978 | EOF | 
 | 2979 |  | 
 | 2980 |   echo "$ac_t""yes" 1>&6 | 
 | 2981 | else | 
 | 2982 |   echo "$ac_t""no" 1>&6 | 
 | 2983 | fi | 
 | 2984 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2985 | # AC_CHECK_SIZEOF() doesn't include <time.h>. | 
 | 2986 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2987 | echo "configure:2988: checking size of time_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2988 | 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] | 2989 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2990 | else | 
 | 2991 |   if test "$cross_compiling" = yes; then | 
 | 2992 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2993 | else | 
 | 2994 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 2995 | #line 2996 "configure" | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2996 | #include "confdefs.h" | 
 | 2997 | #include <stdio.h> | 
 | 2998 | #include <time.h> | 
 | 2999 | main() | 
 | 3000 | { | 
 | 3001 |   FILE *f=fopen("conftestval", "w"); | 
 | 3002 |   if (!f) exit(1); | 
 | 3003 |   fprintf(f, "%d\n", sizeof(time_t)); | 
 | 3004 |   exit(0); | 
 | 3005 | } | 
 | 3006 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3007 | if { (eval echo configure:3008: \"$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] | 3008 | then | 
 | 3009 |   ac_cv_sizeof_time_t=`cat conftestval` | 
 | 3010 | else | 
 | 3011 |   echo "configure: failed program was:" >&5 | 
 | 3012 |   cat conftest.$ac_ext >&5 | 
 | 3013 |   rm -fr conftest* | 
 | 3014 |   ac_cv_sizeof_time_t=0 | 
 | 3015 | fi | 
 | 3016 | rm -fr conftest* | 
 | 3017 | fi | 
 | 3018 |  | 
 | 3019 |  | 
 | 3020 | fi | 
 | 3021 |  | 
 | 3022 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 | 
 | 3023 | cat >> confdefs.h <<EOF | 
 | 3024 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
 | 3025 | EOF | 
 | 3026 |  | 
 | 3027 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3028 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3029 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
 | 3030 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3031 | echo "configure:3032: checking for pthread_t" >&5 | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3032 | have_pthread_t=no | 
 | 3033 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3034 | #line 3035 "configure" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3035 | #include "confdefs.h" | 
 | 3036 | #include <pthread.h> | 
 | 3037 | int main() { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 3038 | pthread_t x; x = *(pthread_t*)0; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3039 | ; return 0; } | 
 | 3040 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3041 | if { (eval echo configure:3042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3042 |   rm -rf conftest* | 
 | 3043 |   have_pthread_t=yes | 
 | 3044 | else | 
 | 3045 |   echo "configure: failed program was:" >&5 | 
 | 3046 |   cat conftest.$ac_ext >&5 | 
 | 3047 | fi | 
 | 3048 | rm -f conftest* | 
 | 3049 | echo "$ac_t""$have_pthread_t" 1>&6 | 
 | 3050 | if test "$have_pthread_t" = yes ; then | 
 | 3051 |   # AC_CHECK_SIZEOF() doesn't include <pthread.h>. | 
 | 3052 |   echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3053 | echo "configure:3054: checking size of pthread_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3054 |   if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3055 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3056 | else | 
 | 3057 |   if test "$cross_compiling" = yes; then | 
 | 3058 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 3059 | else | 
 | 3060 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3061 | #line 3062 "configure" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3062 | #include "confdefs.h" | 
 | 3063 | #include <stdio.h> | 
 | 3064 |   #include <pthread.h> | 
 | 3065 |   main() | 
 | 3066 |   { | 
 | 3067 |     FILE *f=fopen("conftestval", "w"); | 
 | 3068 |     if (!f) exit(1); | 
 | 3069 |     fprintf(f, "%d\n", sizeof(pthread_t)); | 
 | 3070 |     exit(0); | 
 | 3071 |   } | 
 | 3072 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3073 | if { (eval echo configure:3074: \"$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] | 3074 | then | 
 | 3075 |   ac_cv_sizeof_pthread_t=`cat conftestval` | 
 | 3076 | else | 
 | 3077 |   echo "configure: failed program was:" >&5 | 
 | 3078 |   cat conftest.$ac_ext >&5 | 
 | 3079 |   rm -fr conftest* | 
 | 3080 |   ac_cv_sizeof_pthread_t=0 | 
 | 3081 | fi | 
 | 3082 | rm -fr conftest* | 
 | 3083 | fi | 
 | 3084 |  | 
 | 3085 |    | 
 | 3086 | fi | 
 | 3087 |  | 
 | 3088 |   echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 | 
 | 3089 |   cat >> confdefs.h <<EOF | 
 | 3090 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
 | 3091 | EOF | 
 | 3092 |  | 
 | 3093 | fi | 
 | 3094 |  | 
 | 3095 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3096 | # Minor variations in building a framework between NextStep versions 4 and 5 | 
 | 3097 |  | 
 | 3098 | case $ac_sys_system/$ac_sys_release in | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3099 |   Darwin/*) | 
 | 3100 |     ns_undef_sym='_environ' | 
 | 3101 |     LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3102 |   next/4*) | 
 | 3103 |     ns_undef_sym='__environ' | 
 | 3104 |     LIBTOOL_CRUFT="-U $ns_undef_sym" ;; | 
 | 3105 |   next/5*) | 
 | 3106 |     ns_undef_sym='_environ' | 
 | 3107 |     LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; | 
 | 3108 | esac | 
 | 3109 |  | 
 | 3110 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3111 | echo "configure:3112: checking for --with-next-framework" >&5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3112 | if test "$with_next_framework" | 
 | 3113 | then | 
 | 3114 | 	OPT="$OPT -fno-common" | 
 | 3115 | 	# -U __environ is needed since bundles don't have access | 
 | 3116 | 	# to crt0 when built but will always be linked against it | 
 | 3117 | 	LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" | 
 | 3118 | 	cat >> confdefs.h <<\EOF | 
 | 3119 | #define WITH_NEXT_FRAMEWORK 1 | 
 | 3120 | EOF | 
 | 3121 |  | 
 | 3122 | 	echo "$ac_t""yes" 1>&6 | 
 | 3123 | else | 
 | 3124 | 	echo "$ac_t""no" 1>&6 | 
 | 3125 | fi | 
 | 3126 |  | 
 | 3127 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3128 | echo "configure:3129: checking for --with-dyld" >&5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3129 | if test "$with_next_framework" -o "$with_dyld" | 
 | 3130 | then | 
 | 3131 | 	if test "$with_dyld" | 
 | 3132 | 	then | 
 | 3133 | 		echo "$ac_t""yes" 1>&6 | 
 | 3134 | 	else | 
 | 3135 | 		echo "$ac_t""required for framework build" 1>&6 | 
 | 3136 | 	fi | 
 | 3137 | 	cat >> confdefs.h <<\EOF | 
 | 3138 | #define WITH_DYLD 1 | 
 | 3139 | EOF | 
 | 3140 |  | 
 | 3141 | 	ns_dyld='set' | 
 | 3142 | else | 
 | 3143 | 	echo "$ac_t""no" 1>&6 | 
 | 3144 | fi | 
 | 3145 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3146 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3147 |  | 
 | 3148 |  | 
 | 3149 |  | 
 | 3150 |  | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3151 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3152 | # SO is the extension of shared libraries `(including the dot!) | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3153 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3154 | echo $ac_n "checking SO""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3155 | echo "configure:3156: checking SO" >&5 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3156 | if test -z "$SO" | 
 | 3157 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3158 | 	case $ac_sys_system in | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3159 | 	hp*|HP*)   SO=.sl;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3160 | 	CYGWIN*)   SO=.dll;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3161 | 	*)	   SO=.so;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3162 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3163 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3164 | echo "$ac_t""$SO" 1>&6 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3165 | # LDSHARED is the ld *command* used to create shared library | 
 | 3166 | # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3167 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 3168 | # Python, as opposed to building Python itself as a shared library.) | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3169 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3170 | echo "configure:3171: checking LDSHARED" >&5 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3171 | if test -z "$LDSHARED" | 
 | 3172 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3173 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3174 | 	AIX*) | 
 | 3175 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" | 
 | 3176 | 		LDSHARED="\$(BINLIBDEST)/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/python.exp" | 
 | 3177 | 		;; | 
 | 3178 | 	BeOS*) | 
 | 3179 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" | 
 | 3180 | 		LDSHARED="\$(BINLIBDEST)/ld_so_beos \$(LIBDIR)/$LDLIBRARY" | 
 | 3181 | 		;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3182 | 	IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3183 | 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3184 | 	SunOS/4*) LDSHARED="ld";; | 
| Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3185 | 	SunOS/5*)  | 
 | 3186 | 		if test "$GCC" = "yes" | 
| Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 3187 | 		then LDSHARED='$(CC) -shared' | 
| Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3188 | 		else LDSHARED="ld -G"; | 
 | 3189 | 		fi ;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3190 | 	hp*|HP*) LDSHARED="ld -b";; | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3191 | 	OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | 
 | 3192 | 	DYNIX/ptx*) LDSHARED="ld -G";; | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3193 |         Darwin/*|next/*)  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3194 | 		if test "$ns_dyld" | 
| Guido van Rossum | acb14c7 | 2001-01-10 21:41:16 +0000 | [diff] [blame] | 3195 | 		then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3196 | 		else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; | 
 | 3197 | 		fi | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3198 | 	if test "$with_next_framework" ; then | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3199 | 		    LDSHARED="$LDSHARED \$(LDLIBRARY)" | 
 | 3200 | 		fi ;; | 
| Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 3201 | 	Linux*) LDSHARED="gcc -shared";; | 
| Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3202 | 	dgux*) LDSHARED="ld -G";; | 
| Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 3203 | 	BSD/OS*/4*) LDSHARED="gcc -shared";; | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3204 | 	OpenBSD*) LDSHARED="ld -Bshareable";; | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3205 | 	NetBSD*) | 
 | 3206 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 3207 | 		then | 
 | 3208 | 			LDSHARED="cc -shared" | 
 | 3209 | 		else | 
 | 3210 | 			LDSHARED="ld -Bshareable" | 
 | 3211 | 		fi;; | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3212 | 	FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 3213 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3214 | 		then | 
 | 3215 | 			LDSHARED="cc -shared ${LDFLAGS}" | 
 | 3216 | 		else | 
 | 3217 | 			LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 3218 | 		fi;; | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3219 | 	UnixWare*) | 
 | 3220 | 		if test "$GCC" = "yes" | 
 | 3221 | 		then LDSHARED="$(CC) -shared" | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3222 | 		else LDSHARED="ld -G -dy -Bdynamic" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3223 | 		fi;; | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3224 | 	SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3225 | 	Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3226 | 	CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3227 | 	*)	LDSHARED="ld";; | 
 | 3228 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3229 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3230 | echo "$ac_t""$LDSHARED" 1>&6 | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3231 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3232 | # 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] | 3233 | # library (module) -- this is only needed for a few systems | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3234 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3235 | echo "configure:3236: checking CCSHARED" >&5 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3236 | if test -z "$CCSHARED" | 
 | 3237 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3238 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 3239 | 	SunOS*) if test "$GCC" = yes; | 
 | 3240 | 	        then CCSHARED="-fPIC"; | 
 | 3241 | 	        fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 3242 | 	hp*|HP*) if test "$GCC" = yes; | 
 | 3243 | 		 then CCSHARED="-fpic"; | 
 | 3244 | 		 else CCSHARED="+z"; | 
 | 3245 | 		 fi;; | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3246 | 	Linux*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3247 | 	BSD/OS*/4*) CCSHARED="-fpic";; | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3248 | 	OpenBSD*) CCSHARED="-fpic";; | 
 | 3249 | 	FreeBSD*|NetBSD*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3250 | 	UnixWare*) | 
 | 3251 | 		if test "$GCC" = "yes" | 
 | 3252 | 		then CCSHARED="-fPIC" | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3253 | 		else CCSHARED="-KPIC -G -dy -Bdynamic" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3254 | 		fi;; | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3255 | 	SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3256 | 	Monterey*) CCSHARED="-G";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3257 | 	IRIX*/6*)  case $CC in | 
 | 3258 | 		   *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 3259 | 		   *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3260 | 		   esac;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3261 | 	CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3262 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3263 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3264 | echo "$ac_t""$CCSHARED" 1>&6 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3265 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3266 | # the python executable -- this is only needed for a few systems | 
 | 3267 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3268 | echo "configure:3269: checking LINKFORSHARED" >&5 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3269 | if test -z "$LINKFORSHARED" | 
 | 3270 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3271 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3272 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 3273 | 	hp*|HP*) | 
| Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 3274 | 	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3275 | 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 3276 | 	Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3277 | 	# -u libsys_s pulls in all symbols in libsys | 
 | 3278 | 	next/2*|next/3*) LINKFORSHARED="-u libsys_s";; | 
 | 3279 | 	# -u __dummy makes the linker aware of the objc runtime | 
 | 3280 | 	# in System.framework; otherwise, __objcInit (referenced in | 
 | 3281 | 	# crt1.o) gets erroneously defined as common, which breaks dynamic | 
 | 3282 | 	# loading of any modules which reference it in System.framework | 
 | 3283 | 	next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 3284 | 	Darwin/*) LINKFORSHARED="-u __dummy -u _PyMac_Error -framework System -framework Foundation -framework Carbon" ;; | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3285 | 	UnixWare*) LINKFORSHARED="-dy -Bdynamic -Wl,-Bexport";; | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3286 | 	SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 3287 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3288 | 	FreeBSD*|NetBSD*)  | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3289 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 3290 | 		then | 
 | 3291 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 3292 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3293 | 	SunOS/5*) case $CC in | 
 | 3294 | 		  *gcc*) | 
| Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 3295 | 		    if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 3296 | 		    then | 
 | 3297 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3298 | 		    fi;; | 
 | 3299 | 		  esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3300 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3301 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3302 | echo "$ac_t""$LINKFORSHARED" 1>&6 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3303 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3304 |  | 
 | 3305 | echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3306 | echo "configure:3307: checking CFLAGSFORSHARED" >&5 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3307 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 3308 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 3309 | 	case $ac_sys_system in | 
 | 3310 | 	CYGWIN*) | 
 | 3311 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 3312 | 		# but not when building the interpreter DLL. | 
 | 3313 | 		CFLAGSFORSHARED='';; | 
 | 3314 | 	*) | 
 | 3315 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 3316 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3317 | fi | 
 | 3318 | echo "$ac_t""$CFLAGSFORSHARED" 1>&6 | 
 | 3319 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3320 | # checks for libraries | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3321 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3322 | echo "configure:3323: checking for dlopen in -ldl" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3323 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3324 | 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] | 3325 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3326 | else | 
 | 3327 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3328 | LIBS="-ldl  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3329 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3330 | #line 3331 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3331 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3332 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3333 | /* We use char because int might match the return type of a gcc2 | 
 | 3334 |     builtin and then its argument prototype would still apply.  */ | 
 | 3335 | char dlopen(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3336 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3337 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3338 | dlopen() | 
 | 3339 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3340 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3341 | if { (eval echo configure:3342: \"$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] | 3342 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3343 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3344 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3345 |   echo "configure: failed program was:" >&5 | 
 | 3346 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3347 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3348 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3349 | fi | 
 | 3350 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3351 | LIBS="$ac_save_LIBS" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3352 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3353 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3354 | 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] | 3355 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3356 |     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 
 | 3357 |     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3358 |   cat >> confdefs.h <<EOF | 
 | 3359 | #define $ac_tr_lib 1 | 
 | 3360 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3361 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3362 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3363 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3364 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3365 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3366 | fi | 
 | 3367 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3368 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3369 | echo "configure:3370: checking for shl_load in -ldld" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3370 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3371 | 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] | 3372 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3373 | else | 
 | 3374 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3375 | LIBS="-ldld  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3376 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3377 | #line 3378 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3378 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3379 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3380 | /* We use char because int might match the return type of a gcc2 | 
 | 3381 |     builtin and then its argument prototype would still apply.  */ | 
 | 3382 | char shl_load(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3383 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3384 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3385 | shl_load() | 
 | 3386 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3387 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3388 | if { (eval echo configure:3389: \"$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] | 3389 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3390 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3391 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3392 |   echo "configure: failed program was:" >&5 | 
 | 3393 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3394 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3395 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3396 | fi | 
 | 3397 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3398 | LIBS="$ac_save_LIBS" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3399 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3400 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3401 | 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] | 3402 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3403 |     ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 
 | 3404 |     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3405 |   cat >> confdefs.h <<EOF | 
 | 3406 | #define $ac_tr_lib 1 | 
 | 3407 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3408 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3409 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3410 |  | 
 | 3411 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3412 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3413 | fi | 
 | 3414 | 	# Dynamic linking for HP-UX | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3415 |  | 
 | 3416 | # checks for system dependent C++ extensions support | 
 | 3417 | case "$ac_sys_system" in | 
 | 3418 | 	AIX*)	echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3419 | echo "configure:3420: checking for genuine AIX C++ extensions support" >&5 | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3420 | 		cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3421 | #line 3422 "configure" | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3422 | #include "confdefs.h" | 
 | 3423 | #include "/usr/lpp/xlC/include/load.h" | 
 | 3424 | int main() { | 
 | 3425 | loadAndInit("", 0, "") | 
 | 3426 | ; return 0; } | 
 | 3427 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3428 | if { (eval echo configure:3429: \"$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] | 3429 |   rm -rf conftest* | 
 | 3430 |   cat >> confdefs.h <<\EOF | 
 | 3431 | #define AIX_GENUINE_CPLUSPLUS 1 | 
 | 3432 | EOF | 
 | 3433 |  | 
 | 3434 | 			     echo "$ac_t""yes" 1>&6 | 
 | 3435 | else | 
 | 3436 |   echo "configure: failed program was:" >&5 | 
 | 3437 |   cat conftest.$ac_ext >&5 | 
 | 3438 |   rm -rf conftest* | 
 | 3439 |   echo "$ac_t""no" 1>&6 | 
 | 3440 | fi | 
 | 3441 | rm -f conftest*;; | 
 | 3442 | 	*) ;; | 
 | 3443 | esac | 
 | 3444 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3445 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
 | 3446 | # However on SGI IRIX, these exist but are broken. | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3447 | # BeOS' sockets are stashed in libnet. | 
 | 3448 | case "$ac_sys_system" in | 
 | 3449 | IRIX*) ;; | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3450 | *) | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3451 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3452 | echo "configure:3453: checking for t_open in -lnsl" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3453 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3454 | 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] | 3455 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3456 | else | 
 | 3457 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3458 | LIBS="-lnsl  $LIBS" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3459 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3460 | #line 3461 "configure" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3461 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3462 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3463 | /* We use char because int might match the return type of a gcc2 | 
 | 3464 |     builtin and then its argument prototype would still apply.  */ | 
 | 3465 | char t_open(); | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3466 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3467 | int main() { | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3468 | t_open() | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3469 | ; return 0; } | 
 | 3470 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3471 | if { (eval echo configure:3472: \"$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] | 3472 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3473 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3474 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3475 |   echo "configure: failed program was:" >&5 | 
 | 3476 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3477 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3478 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3479 | fi | 
 | 3480 | rm -f conftest* | 
 | 3481 | LIBS="$ac_save_LIBS" | 
 | 3482 |  | 
 | 3483 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3484 | 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] | 3485 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3486 |   LIBS="-lnsl $LIBS" | 
 | 3487 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3488 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3489 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3490 |  # SVR4 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3491 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3492 | echo "configure:3493: checking for socket in -lsocket" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3493 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3494 | 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] | 3495 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3496 | else | 
 | 3497 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3498 | LIBS="-lsocket $LIBS $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3499 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3500 | #line 3501 "configure" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3501 | #include "confdefs.h" | 
 | 3502 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3503 | /* We use char because int might match the return type of a gcc2 | 
 | 3504 |     builtin and then its argument prototype would still apply.  */ | 
 | 3505 | char socket(); | 
 | 3506 |  | 
 | 3507 | int main() { | 
 | 3508 | socket() | 
 | 3509 | ; return 0; } | 
 | 3510 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3511 | if { (eval echo configure:3512: \"$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] | 3512 |   rm -rf conftest* | 
 | 3513 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 3514 | else | 
 | 3515 |   echo "configure: failed program was:" >&5 | 
 | 3516 |   cat conftest.$ac_ext >&5 | 
 | 3517 |   rm -rf conftest* | 
 | 3518 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 3519 | fi | 
 | 3520 | rm -f conftest* | 
 | 3521 | LIBS="$ac_save_LIBS" | 
 | 3522 |  | 
 | 3523 | fi | 
 | 3524 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 3525 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3526 |   LIBS="-lsocket $LIBS" | 
 | 3527 | else | 
 | 3528 |   echo "$ac_t""no" 1>&6 | 
 | 3529 | fi | 
 | 3530 |  # SVR4 sockets | 
| Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3531 | ;; | 
 | 3532 | esac | 
 | 3533 | case "$ac_sys_system" in | 
 | 3534 | BeOS*) | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3535 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3536 | echo "configure:3537: checking for socket in -lnet" >&5 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3537 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3538 | 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] | 3539 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3540 | else | 
 | 3541 |   ac_save_LIBS="$LIBS" | 
 | 3542 | LIBS="-lnet $LIBS $LIBS" | 
 | 3543 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3544 | #line 3545 "configure" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3545 | #include "confdefs.h" | 
 | 3546 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3547 | /* We use char because int might match the return type of a gcc2 | 
 | 3548 |     builtin and then its argument prototype would still apply.  */ | 
 | 3549 | char socket(); | 
 | 3550 |  | 
 | 3551 | int main() { | 
 | 3552 | socket() | 
 | 3553 | ; return 0; } | 
 | 3554 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3555 | if { (eval echo configure:3556: \"$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] | 3556 |   rm -rf conftest* | 
 | 3557 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 3558 | else | 
 | 3559 |   echo "configure: failed program was:" >&5 | 
 | 3560 |   cat conftest.$ac_ext >&5 | 
 | 3561 |   rm -rf conftest* | 
 | 3562 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 3563 | fi | 
 | 3564 | rm -f conftest* | 
 | 3565 | LIBS="$ac_save_LIBS" | 
 | 3566 |  | 
 | 3567 | fi | 
 | 3568 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 3569 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3570 |   LIBS="-lnet $LIBS" | 
 | 3571 | else | 
 | 3572 |   echo "$ac_t""no" 1>&6 | 
 | 3573 | fi | 
 | 3574 |  # BeOS | 
 | 3575 | ;; | 
 | 3576 | esac | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3577 |  | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3578 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3579 | echo "configure:3580: checking for --with-libs" >&5 | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3580 | # Check whether --with-libs or --without-libs was given. | 
 | 3581 | if test "${with_libs+set}" = set; then | 
 | 3582 |   withval="$with_libs" | 
 | 3583 |    | 
 | 3584 | echo "$ac_t""$withval" 1>&6 | 
 | 3585 | LIBS="$withval $LIBS" | 
 | 3586 |  | 
 | 3587 | else | 
 | 3588 |   echo "$ac_t""no" 1>&6 | 
 | 3589 | fi | 
 | 3590 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3591 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3592 | # Determine if signalmodule should be used. | 
 | 3593 |  | 
 | 3594 |  | 
 | 3595 | echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3596 | echo "configure:3597: checking for --with-signal-module" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3597 | # Check whether --with-signal-module or --without-signal-module was given. | 
 | 3598 | if test "${with_signal_module+set}" = set; then | 
 | 3599 |   withval="$with_signal_module" | 
 | 3600 |   : | 
 | 3601 | fi | 
 | 3602 |  | 
 | 3603 |  | 
 | 3604 | if test -z "$with_signal_module" | 
 | 3605 | then with_signal_module="yes" | 
 | 3606 | fi | 
 | 3607 | echo "$ac_t""$with_signal_module" 1>&6 | 
 | 3608 |  | 
 | 3609 | if test "${with_signal_module}" = "yes"; then | 
 | 3610 | 	USE_SIGNAL_MODULE="" | 
 | 3611 | 	SIGNAL_OBJS="" | 
 | 3612 | else | 
 | 3613 | 	USE_SIGNAL_MODULE="#" | 
 | 3614 | 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
 | 3615 | fi | 
 | 3616 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3617 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3618 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3619 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3620 |  | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3621 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3622 | echo "configure:3623: checking for --with-dec-threads" >&5 | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3623 |  | 
 | 3624 | # Check whether --with-dec-threads or --without-dec-threads was given. | 
 | 3625 | if test "${with_dec_threads+set}" = set; then | 
 | 3626 |   withval="$with_dec_threads" | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3627 |    | 
 | 3628 | echo "$ac_t""$withval" 1>&6 | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3629 | LDLAST=-threads | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3630 | if test "${with_thread+set}" != set; then | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3631 |    with_thread="$withval"; | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3632 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3633 | else | 
 | 3634 |   echo "$ac_t""no" 1>&6 | 
 | 3635 | fi | 
 | 3636 |  | 
 | 3637 |  | 
 | 3638 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3639 | echo "configure:3640: checking for --with-threads" >&5 | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3640 | # Check whether --with-threads or --without-threads was given. | 
 | 3641 | if test "${with_threads+set}" = set; then | 
 | 3642 |   withval="$with_threads" | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3643 |   : | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3644 | fi | 
 | 3645 |  | 
 | 3646 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3647 | # --with-thread is deprecated, but check for it anyway | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3648 | # Check whether --with-thread or --without-thread was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3649 | if test "${with_thread+set}" = set; then | 
 | 3650 |   withval="$with_thread" | 
| Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3651 |    | 
 | 3652 | with_threads=$with_thread | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3653 | fi | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3654 |  | 
 | 3655 |  | 
 | 3656 | if test -z "$with_threads" | 
 | 3657 | then with_threads="yes" | 
 | 3658 | fi | 
 | 3659 | echo "$ac_t""$with_threads" 1>&6 | 
 | 3660 |  | 
 | 3661 | if test "$with_threads" = "no" | 
 | 3662 | then | 
 | 3663 |     USE_THREAD_MODULE="#" | 
 | 3664 | else | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3665 |     if test "$ac_sys_system" = "UnixWare" | 
 | 3666 |      then | 
 | 3667 | 	CC="${CC} -Kthread" | 
 | 3668 | 	LIBOBJS="$LIBOBJS thread.o" | 
 | 3669 | 	cat >> confdefs.h <<\EOF | 
 | 3670 | #define WITH_THREAD 1 | 
 | 3671 | EOF | 
 | 3672 |  | 
 | 3673 | 	cat >> confdefs.h <<\EOF | 
 | 3674 | #define _POSIX_THREADS 1 | 
 | 3675 | EOF | 
 | 3676 |  | 
 | 3677 | 	USE_THREAD_MODULE="" | 
 | 3678 |     else | 
 | 3679 | 	if test ! -z "$with_threads" -a -d "$with_threads" | 
 | 3680 | 	then LDFLAGS="$LDFLAGS -L$with_threads" | 
 | 3681 | 	fi | 
 | 3682 | 	if test ! -z "$withval" -a -d "$withval" | 
 | 3683 | 	then LDFLAGS="$LDFLAGS -L$withval" | 
 | 3684 | 	fi | 
 | 3685 | 	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3686 | #define _REENTRANT 1 | 
 | 3687 | EOF | 
 | 3688 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3689 | 	ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3690 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3691 | echo "configure:3692: checking for mach/cthreads.h" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3692 | 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] | 3693 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3694 | else | 
 | 3695 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3696 | #line 3697 "configure" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3697 | #include "confdefs.h" | 
 | 3698 | #include <mach/cthreads.h> | 
 | 3699 | EOF | 
 | 3700 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3701 | { (eval echo configure:3702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3702 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3703 | if test -z "$ac_err"; then | 
 | 3704 |   rm -rf conftest* | 
 | 3705 |   eval "ac_cv_header_$ac_safe=yes" | 
 | 3706 | else | 
 | 3707 |   echo "$ac_err" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3708 |   echo "configure: failed program was:" >&5 | 
 | 3709 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3710 |   rm -rf conftest* | 
 | 3711 |   eval "ac_cv_header_$ac_safe=no" | 
 | 3712 | fi | 
 | 3713 | rm -f conftest* | 
 | 3714 | fi | 
 | 3715 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 3716 |   echo "$ac_t""yes" 1>&6 | 
 | 3717 |   cat >> confdefs.h <<\EOF | 
 | 3718 | #define WITH_THREAD 1 | 
 | 3719 | EOF | 
 | 3720 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3721 | 	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3722 | #define C_THREADS 1 | 
 | 3723 | EOF | 
 | 3724 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3725 | 	LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3726 | else | 
 | 3727 |   echo "$ac_t""no" 1>&6 | 
 | 3728 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3729 | 	echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3730 | echo "configure:3731: checking for --with-pth" >&5 | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3731 | 	# Check whether --with-pth or --without-pth was given. | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3732 | if test "${with_pth+set}" = set; then | 
 | 3733 |   withval="$with_pth" | 
 | 3734 |    | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3735 | 	echo "$ac_t""$withval" 1>&6 | 
 | 3736 | 	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3737 | #define WITH_THREAD 1 | 
 | 3738 | EOF | 
 | 3739 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3740 | 	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3741 | #define HAVE_PTH 1 | 
 | 3742 | EOF | 
 | 3743 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3744 | 	LIBS="-lpth $LIBS" | 
 | 3745 | 	LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3746 | else | 
 | 3747 |    | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3748 | 	echo "$ac_t""no" 1>&6 | 
 | 3749 | 	echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3750 | echo "configure:3751: checking for pthread_create in -lpthread" >&5 | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3751 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3752 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3753 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3754 | else | 
 | 3755 |   ac_save_LIBS="$LIBS" | 
 | 3756 | LIBS="-lpthread  $LIBS" | 
 | 3757 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3758 | #line 3759 "configure" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3759 | #include "confdefs.h" | 
 | 3760 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3761 | /* We use char because int might match the return type of a gcc2 | 
 | 3762 |     builtin and then its argument prototype would still apply.  */ | 
 | 3763 | char pthread_create(); | 
 | 3764 |  | 
 | 3765 | int main() { | 
 | 3766 | pthread_create() | 
 | 3767 | ; return 0; } | 
 | 3768 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3769 | if { (eval echo configure:3770: \"$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] | 3770 |   rm -rf conftest* | 
 | 3771 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 3772 | else | 
 | 3773 |   echo "configure: failed program was:" >&5 | 
 | 3774 |   cat conftest.$ac_ext >&5 | 
 | 3775 |   rm -rf conftest* | 
 | 3776 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 3777 | fi | 
 | 3778 | rm -f conftest* | 
 | 3779 | LIBS="$ac_save_LIBS" | 
 | 3780 |  | 
 | 3781 | fi | 
 | 3782 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 3783 |   echo "$ac_t""yes" 1>&6 | 
 | 3784 |   cat >> confdefs.h <<\EOF | 
 | 3785 | #define WITH_THREAD 1 | 
 | 3786 | EOF | 
 | 3787 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3788 | 	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3789 | #define _POSIX_THREADS 1 | 
 | 3790 | EOF | 
 | 3791 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3792 | 	LIBS="-lpthread $LIBS" | 
 | 3793 | 	LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3794 | else | 
 | 3795 |   echo "$ac_t""no" 1>&6 | 
 | 3796 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3797 | 	echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3798 | echo "configure:3799: checking for pthread_detach" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3799 | 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] | 3800 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3801 | else | 
 | 3802 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3803 | #line 3804 "configure" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3804 | #include "confdefs.h" | 
 | 3805 | /* System header to define __stub macros and hopefully few prototypes, | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3806 |     which can conflict with char pthread_detach(); below.  */ | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3807 | #include <assert.h> | 
 | 3808 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3809 | /* We use char because int might match the return type of a gcc2 | 
 | 3810 |     builtin and then its argument prototype would still apply.  */ | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3811 | char pthread_detach(); | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3812 |  | 
 | 3813 | int main() { | 
 | 3814 |  | 
 | 3815 | /* The GNU C library defines this for functions which it implements | 
 | 3816 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 3817 |     something starting with __ and the normal name is an alias.  */ | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3818 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3819 | choke me | 
 | 3820 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3821 | pthread_detach(); | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3822 | #endif | 
 | 3823 |  | 
 | 3824 | ; return 0; } | 
 | 3825 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3826 | if { (eval echo configure:3827: \"$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] | 3827 |   rm -rf conftest* | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3828 |   eval "ac_cv_func_pthread_detach=yes" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3829 | else | 
 | 3830 |   echo "configure: failed program was:" >&5 | 
 | 3831 |   cat conftest.$ac_ext >&5 | 
 | 3832 |   rm -rf conftest* | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3833 |   eval "ac_cv_func_pthread_detach=no" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3834 | fi | 
 | 3835 | rm -f conftest* | 
 | 3836 | fi | 
 | 3837 |  | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3838 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3839 |   echo "$ac_t""yes" 1>&6 | 
 | 3840 |   cat >> confdefs.h <<\EOF | 
 | 3841 | #define WITH_THREAD 1 | 
 | 3842 | EOF | 
 | 3843 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3844 | 	case $ac_sys_system in | 
 | 3845 | 	  Darwin*) ;; | 
 | 3846 | 	  *) cat >> confdefs.h <<\EOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3847 | #define _POSIX_THREADS 1 | 
 | 3848 | EOF | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3849 | ;; | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3850 | 	esac | 
 | 3851 | 	LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3852 | else | 
 | 3853 |   echo "$ac_t""no" 1>&6 | 
 | 3854 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3855 | 	ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3856 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3857 | echo "configure:3858: checking for kernel/OS.h" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3858 | 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] | 3859 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3860 | else | 
 | 3861 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3862 | #line 3863 "configure" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3863 | #include "confdefs.h" | 
 | 3864 | #include <kernel/OS.h> | 
 | 3865 | EOF | 
 | 3866 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3867 | { (eval echo configure:3868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3868 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3869 | if test -z "$ac_err"; then | 
 | 3870 |   rm -rf conftest* | 
 | 3871 |   eval "ac_cv_header_$ac_safe=yes" | 
 | 3872 | else | 
 | 3873 |   echo "$ac_err" >&5 | 
 | 3874 |   echo "configure: failed program was:" >&5 | 
 | 3875 |   cat conftest.$ac_ext >&5 | 
 | 3876 |   rm -rf conftest* | 
 | 3877 |   eval "ac_cv_header_$ac_safe=no" | 
 | 3878 | fi | 
 | 3879 | rm -f conftest* | 
 | 3880 | fi | 
 | 3881 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 3882 |   echo "$ac_t""yes" 1>&6 | 
 | 3883 |   cat >> confdefs.h <<\EOF | 
 | 3884 | #define WITH_THREAD 1 | 
 | 3885 | EOF | 
 | 3886 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3887 | 	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3888 | #define BEOS_THREADS 1 | 
 | 3889 | EOF | 
 | 3890 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3891 | 	LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3892 | else | 
 | 3893 |   echo "$ac_t""no" 1>&6 | 
 | 3894 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3895 | 	echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3896 | echo "configure:3897: checking for pthread_create in -lpthreads" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3897 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3898 | 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] | 3899 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3900 | else | 
 | 3901 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3902 | LIBS="-lpthreads  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3903 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3904 | #line 3905 "configure" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3905 | #include "confdefs.h" | 
 | 3906 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3907 | /* We use char because int might match the return type of a gcc2 | 
 | 3908 |     builtin and then its argument prototype would still apply.  */ | 
 | 3909 | char pthread_create(); | 
 | 3910 |  | 
 | 3911 | int main() { | 
 | 3912 | pthread_create() | 
 | 3913 | ; return 0; } | 
 | 3914 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3915 | if { (eval echo configure:3916: \"$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] | 3916 |   rm -rf conftest* | 
 | 3917 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 3918 | else | 
 | 3919 |   echo "configure: failed program was:" >&5 | 
 | 3920 |   cat conftest.$ac_ext >&5 | 
 | 3921 |   rm -rf conftest* | 
 | 3922 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 3923 | fi | 
 | 3924 | rm -f conftest* | 
 | 3925 | LIBS="$ac_save_LIBS" | 
 | 3926 |  | 
 | 3927 | fi | 
 | 3928 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 3929 |   echo "$ac_t""yes" 1>&6 | 
 | 3930 |   cat >> confdefs.h <<\EOF | 
 | 3931 | #define WITH_THREAD 1 | 
 | 3932 | EOF | 
 | 3933 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3934 | 	cat >> confdefs.h <<\EOF | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3935 | #define _POSIX_THREADS 1 | 
 | 3936 | EOF | 
 | 3937 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3938 | 	LIBS="$LIBS -lpthreads" | 
 | 3939 | 	LIBOBJS="$LIBOBJS thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3940 | else | 
 | 3941 |   echo "$ac_t""no" 1>&6 | 
 | 3942 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3943 | 	echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3944 | echo "configure:3945: checking for pthread_create in -lc_r" >&5 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3945 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3946 | 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] | 3947 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3948 | else | 
 | 3949 |   ac_save_LIBS="$LIBS" | 
 | 3950 | LIBS="-lc_r  $LIBS" | 
 | 3951 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3952 | #line 3953 "configure" | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3953 | #include "confdefs.h" | 
 | 3954 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3955 | /* We use char because int might match the return type of a gcc2 | 
 | 3956 |     builtin and then its argument prototype would still apply.  */ | 
 | 3957 | char pthread_create(); | 
 | 3958 |  | 
 | 3959 | int main() { | 
 | 3960 | pthread_create() | 
 | 3961 | ; return 0; } | 
 | 3962 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3963 | if { (eval echo configure:3964: \"$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] | 3964 |   rm -rf conftest* | 
 | 3965 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 3966 | else | 
 | 3967 |   echo "configure: failed program was:" >&5 | 
 | 3968 |   cat conftest.$ac_ext >&5 | 
 | 3969 |   rm -rf conftest* | 
 | 3970 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 3971 | fi | 
 | 3972 | rm -f conftest* | 
 | 3973 | LIBS="$ac_save_LIBS" | 
 | 3974 |  | 
 | 3975 | fi | 
 | 3976 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 3977 |   echo "$ac_t""yes" 1>&6 | 
 | 3978 |   cat >> confdefs.h <<\EOF | 
 | 3979 | #define WITH_THREAD 1 | 
 | 3980 | EOF | 
 | 3981 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3982 | 	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3983 | #define _POSIX_THREADS 1 | 
 | 3984 | EOF | 
 | 3985 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3986 | 	LIBS="$LIBS -lc_r" | 
 | 3987 | 	LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3988 | else | 
 | 3989 |   echo "$ac_t""no" 1>&6 | 
 | 3990 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3991 | 	echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 3992 | echo "configure:3993: checking for __d6_pthread_create in -lthread" >&5 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3993 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3994 | 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] | 3995 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3996 | else | 
 | 3997 |   ac_save_LIBS="$LIBS" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3998 | LIBS="-lthread  $LIBS" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3999 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4000 | #line 4001 "configure" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4001 | #include "confdefs.h" | 
 | 4002 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4003 | /* We use char because int might match the return type of a gcc2 | 
 | 4004 |     builtin and then its argument prototype would still apply.  */ | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4005 | char __d6_pthread_create(); | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4006 |  | 
 | 4007 | int main() { | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4008 | __d6_pthread_create() | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4009 | ; return 0; } | 
 | 4010 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4011 | if { (eval echo configure:4012: \"$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] | 4012 |   rm -rf conftest* | 
 | 4013 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 4014 | else | 
 | 4015 |   echo "configure: failed program was:" >&5 | 
 | 4016 |   cat conftest.$ac_ext >&5 | 
 | 4017 |   rm -rf conftest* | 
 | 4018 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 4019 | fi | 
 | 4020 | rm -f conftest* | 
 | 4021 | LIBS="$ac_save_LIBS" | 
 | 4022 |  | 
 | 4023 | fi | 
 | 4024 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 4025 |   echo "$ac_t""yes" 1>&6 | 
 | 4026 |   cat >> confdefs.h <<\EOF | 
 | 4027 | #define WITH_THREAD 1 | 
 | 4028 | EOF | 
 | 4029 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4030 | 	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4031 | #define _POSIX_THREADS 1 | 
 | 4032 | EOF | 
 | 4033 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4034 | 	LIBS="$LIBS -lthread" | 
 | 4035 | 	LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4036 | else | 
 | 4037 |   echo "$ac_t""no" 1>&6 | 
 | 4038 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4039 | 	echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4040 | echo "configure:4041: checking for __pthread_create_system in -lpthread" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4041 | ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` | 
 | 4042 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 4043 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4044 | else | 
 | 4045 |   ac_save_LIBS="$LIBS" | 
 | 4046 | LIBS="-lpthread  $LIBS" | 
 | 4047 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4048 | #line 4049 "configure" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4049 | #include "confdefs.h" | 
 | 4050 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4051 | /* We use char because int might match the return type of a gcc2 | 
 | 4052 |     builtin and then its argument prototype would still apply.  */ | 
 | 4053 | char __pthread_create_system(); | 
 | 4054 |  | 
 | 4055 | int main() { | 
 | 4056 | __pthread_create_system() | 
 | 4057 | ; return 0; } | 
 | 4058 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4059 | if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4060 |   rm -rf conftest* | 
 | 4061 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 4062 | else | 
 | 4063 |   echo "configure: failed program was:" >&5 | 
 | 4064 |   cat conftest.$ac_ext >&5 | 
 | 4065 |   rm -rf conftest* | 
 | 4066 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 4067 | fi | 
 | 4068 | rm -f conftest* | 
 | 4069 | LIBS="$ac_save_LIBS" | 
 | 4070 |  | 
 | 4071 | fi | 
 | 4072 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 4073 |   echo "$ac_t""yes" 1>&6 | 
 | 4074 |   cat >> confdefs.h <<\EOF | 
 | 4075 | #define WITH_THREAD 1 | 
 | 4076 | EOF | 
 | 4077 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4078 | 	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4079 | #define _POSIX_THREADS 1 | 
 | 4080 | EOF | 
 | 4081 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4082 | 	LIBS="$LIBS -lpthread" | 
 | 4083 | 	LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4084 | else | 
 | 4085 |   echo "$ac_t""no" 1>&6 | 
 | 4086 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4087 | 	echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4088 | echo "configure:4089: checking for pthread_create in -lcma" >&5 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4089 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4090 | 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] | 4091 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4092 | else | 
 | 4093 |   ac_save_LIBS="$LIBS" | 
 | 4094 | LIBS="-lcma  $LIBS" | 
 | 4095 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4096 | #line 4097 "configure" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4097 | #include "confdefs.h" | 
 | 4098 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4099 | /* We use char because int might match the return type of a gcc2 | 
 | 4100 |     builtin and then its argument prototype would still apply.  */ | 
 | 4101 | char pthread_create(); | 
 | 4102 |  | 
 | 4103 | int main() { | 
 | 4104 | pthread_create() | 
 | 4105 | ; return 0; } | 
 | 4106 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4107 | if { (eval echo configure:4108: \"$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] | 4108 |   rm -rf conftest* | 
 | 4109 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 4110 | else | 
 | 4111 |   echo "configure: failed program was:" >&5 | 
 | 4112 |   cat conftest.$ac_ext >&5 | 
 | 4113 |   rm -rf conftest* | 
 | 4114 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 4115 | fi | 
 | 4116 | rm -f conftest* | 
 | 4117 | LIBS="$ac_save_LIBS" | 
 | 4118 |  | 
 | 4119 | fi | 
 | 4120 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 4121 |   echo "$ac_t""yes" 1>&6 | 
 | 4122 |   cat >> confdefs.h <<\EOF | 
 | 4123 | #define WITH_THREAD 1 | 
 | 4124 | EOF | 
 | 4125 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4126 | 	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4127 | #define _POSIX_THREADS 1 | 
 | 4128 | EOF | 
 | 4129 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4130 | 	LIBS="$LIBS -lcma" | 
 | 4131 | 	LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4132 | else | 
 | 4133 |   echo "$ac_t""no" 1>&6 | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 4134 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4135 | 	USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 4136 | fi | 
 | 4137 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4138 | 	 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4139 | fi | 
 | 4140 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4141 | fi | 
 | 4142 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4143 | fi | 
 | 4144 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4145 | fi | 
 | 4146 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4147 | fi | 
 | 4148 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4149 | fi | 
 | 4150 |  | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 4151 | fi | 
 | 4152 |  | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4153 | fi | 
 | 4154 |  | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4155 | fi | 
 | 4156 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4157 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4158 | 	echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4159 | echo "configure:4160: checking for usconfig in -lmpc" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4160 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4161 | 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] | 4162 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4163 | else | 
 | 4164 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4165 | LIBS="-lmpc  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4166 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4167 | #line 4168 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4168 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4169 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4170 | /* We use char because int might match the return type of a gcc2 | 
 | 4171 |     builtin and then its argument prototype would still apply.  */ | 
 | 4172 | char usconfig(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4173 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4174 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4175 | usconfig() | 
 | 4176 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4177 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4178 | if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4179 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4180 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4181 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4182 |   echo "configure: failed program was:" >&5 | 
 | 4183 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4184 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4185 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4186 | fi | 
 | 4187 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4188 | LIBS="$ac_save_LIBS" | 
 | 4189 |  | 
 | 4190 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4191 | 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] | 4192 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4193 |   cat >> confdefs.h <<\EOF | 
 | 4194 | #define WITH_THREAD 1 | 
 | 4195 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4196 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4197 | 	LIBS="$LIBS -lmpc" | 
 | 4198 | 	LIBOBJS="$LIBOBJS thread.o" | 
 | 4199 | 	USE_THREAD_MODULE="" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4200 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4201 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4202 | fi | 
 | 4203 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4204 | 	echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4205 | echo "configure:4206: checking for thr_create in -lthread" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4206 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4207 | 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] | 4208 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4209 | else | 
 | 4210 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4211 | LIBS="-lthread  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4212 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4213 | #line 4214 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4214 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4215 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4216 | /* We use char because int might match the return type of a gcc2 | 
 | 4217 |     builtin and then its argument prototype would still apply.  */ | 
 | 4218 | char thr_create(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4219 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4220 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4221 | thr_create() | 
 | 4222 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4223 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4224 | if { (eval echo configure:4225: \"$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] | 4225 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4226 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4227 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4228 |   echo "configure: failed program was:" >&5 | 
 | 4229 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4230 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4231 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4232 | fi | 
 | 4233 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4234 | LIBS="$ac_save_LIBS" | 
 | 4235 |  | 
 | 4236 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4237 | 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] | 4238 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4239 |   cat >> confdefs.h <<\EOF | 
 | 4240 | #define WITH_THREAD 1 | 
 | 4241 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4242 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4243 | 	LIBS="$LIBS -lthread" | 
 | 4244 | 	LIBOBJS="$LIBOBJS thread.o" | 
 | 4245 | 	USE_THREAD_MODULE="" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4246 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4247 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4248 | fi | 
 | 4249 |  | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4250 |  | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4251 | 	if test "$USE_THREAD_MODULE" != "#" | 
 | 4252 | 	then | 
 | 4253 | 	    # If the above checks didn't disable threads, (at least) OSF1 | 
 | 4254 | 	    # needs this '-threads' argument during linking. | 
 | 4255 | 	    case $ac_sys_system in | 
 | 4256 | 	    OSF1) LDLAST=-threads;; | 
 | 4257 | 	    esac | 
 | 4258 | 	fi | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4259 |     fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4260 | fi | 
 | 4261 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4262 | # Check for GC support | 
 | 4263 |  | 
 | 4264 | USE_GC_MODULE="" | 
 | 4265 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4266 | echo "configure:4267: checking for --with-cycle-gc" >&5 | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4267 | # Check whether --with-cycle-gc or --without-cycle-gc was given. | 
 | 4268 | if test "${with_cycle_gc+set}" = set; then | 
 | 4269 |   withval="$with_cycle_gc" | 
 | 4270 |   : | 
 | 4271 | fi | 
 | 4272 |  | 
 | 4273 |  | 
 | 4274 | if test -z "$with_cycle_gc" | 
 | 4275 | then with_cycle_gc="yes" | 
 | 4276 | fi | 
 | 4277 | if test "$with_cycle_gc" = "no" | 
 | 4278 | then | 
 | 4279 |     USE_GC_MODULE="#" | 
 | 4280 | else | 
 | 4281 |     cat >> confdefs.h <<\EOF | 
 | 4282 | #define WITH_CYCLE_GC 1 | 
 | 4283 | EOF | 
 | 4284 |  | 
 | 4285 | fi | 
 | 4286 | echo "$ac_t""$with_cycle_gc" 1>&6 | 
 | 4287 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4288 | # Check for Python-specific malloc support | 
 | 4289 | echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4290 | echo "configure:4291: checking for --with-pymalloc" >&5 | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4291 | # Check whether --with-pymalloc or --without-pymalloc was given. | 
 | 4292 | if test "${with_pymalloc+set}" = set; then | 
 | 4293 |   withval="$with_pymalloc" | 
 | 4294 |    | 
 | 4295 | if test "$withval" != no | 
 | 4296 | then cat >> confdefs.h <<\EOF | 
 | 4297 | #define WITH_PYMALLOC 1 | 
 | 4298 | EOF | 
 | 4299 |  echo "$ac_t""yes" 1>&6 | 
 | 4300 | else echo "$ac_t""no" 1>&6 | 
 | 4301 | fi | 
 | 4302 | else | 
 | 4303 |   echo "$ac_t""no" 1>&6 | 
 | 4304 | fi | 
 | 4305 |  | 
 | 4306 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4307 | # Check for --with-wctype-functions | 
 | 4308 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4309 | echo "configure:4310: checking for --with-wctype-functions" >&5 | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4310 | # Check whether --with-wctype-functions or --without-wctype-functions was given. | 
 | 4311 | if test "${with_wctype_functions+set}" = set; then | 
 | 4312 |   withval="$with_wctype_functions" | 
 | 4313 |    | 
 | 4314 | if test "$withval" != no | 
 | 4315 | then cat >> confdefs.h <<\EOF | 
 | 4316 | #define WANT_WCTYPE_FUNCTIONS 1 | 
 | 4317 | EOF | 
 | 4318 |  echo "$ac_t""yes" 1>&6 | 
 | 4319 | else echo "$ac_t""no" 1>&6 | 
 | 4320 | fi | 
 | 4321 | else | 
 | 4322 |   echo "$ac_t""no" 1>&6 | 
 | 4323 | fi | 
 | 4324 |  | 
 | 4325 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4326 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4327 |  | 
 | 4328 | DLINCLDIR=/ | 
 | 4329 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4330 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4331 | echo "configure:4332: checking for --with-sgi-dl" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4332 | # Check whether --with-sgi-dl or --without-sgi-dl was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4333 | if test "${with_sgi_dl+set}" = set; then | 
 | 4334 |   withval="$with_sgi_dl" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4335 |    | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4336 | echo "$ac_t""$withval" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4337 | cat >> confdefs.h <<\EOF | 
 | 4338 | #define WITH_SGI_DL 1 | 
 | 4339 | EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4340 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4341 | DYNLOADFILE="dynload_dl.o" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4342 | dldir=$withval | 
| Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 4343 | if test ! -z "$dldir" -a -d "$dldir" | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4344 | then LDFLAGS="$LDFLAGS -L$dldir" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4345 | 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] | 4346 | fi | 
 | 4347 | DLINCLDIR=${dldir} | 
 | 4348 | LIBS="$LIBS -ldl -lmld" | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4349 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4350 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4351 | fi | 
 | 4352 |  | 
 | 4353 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4354 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4355 | echo "configure:4356: checking for --with-dl-dld" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4356 | # Check whether --with-dl-dld or --without-dl-dld was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4357 | if test "${with_dl_dld+set}" = set; then | 
 | 4358 |   withval="$with_dl_dld" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4359 |    | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4360 | echo "$ac_t""$withval" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4361 | cat >> confdefs.h <<\EOF | 
 | 4362 | #define WITH_DL_DLD 1 | 
 | 4363 | EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4364 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4365 | DYNLOADFILE="dynload_dl.o" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4366 | dldir=`echo "$withval" | sed 's/,.*//'` | 
 | 4367 | dlddir=`echo "$withval" | sed 's/.*,//'` | 
| Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 4368 | 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] | 4369 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4370 | 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] | 4371 | fi | 
 | 4372 | DLINCLDIR=${dldir} | 
 | 4373 | LIBS="$LIBS -ldl -ldld" | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4374 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4375 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4376 | fi | 
 | 4377 |  | 
 | 4378 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4379 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 4380 | # 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] | 4381 | for ac_func in dlopen | 
 | 4382 | do | 
 | 4383 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4384 | echo "configure:4385: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4385 | 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] | 4386 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4387 | else | 
 | 4388 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4389 | #line 4390 "configure" | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4390 | #include "confdefs.h" | 
 | 4391 | /* System header to define __stub macros and hopefully few prototypes, | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4392 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4393 | #include <assert.h> | 
 | 4394 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4395 | /* We use char because int might match the return type of a gcc2 | 
 | 4396 |     builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4397 | char $ac_func(); | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4398 |  | 
 | 4399 | int main() { | 
 | 4400 |  | 
 | 4401 | /* The GNU C library defines this for functions which it implements | 
 | 4402 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 4403 |     something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4404 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4405 | choke me | 
 | 4406 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4407 | $ac_func(); | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4408 | #endif | 
 | 4409 |  | 
 | 4410 | ; return 0; } | 
 | 4411 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4412 | if { (eval echo configure:4413: \"$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] | 4413 |   rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4414 |   eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4415 | else | 
 | 4416 |   echo "configure: failed program was:" >&5 | 
 | 4417 |   cat conftest.$ac_ext >&5 | 
 | 4418 |   rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4419 |   eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4420 | fi | 
 | 4421 | rm -f conftest* | 
 | 4422 | fi | 
 | 4423 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4424 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4425 |   echo "$ac_t""yes" 1>&6 | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4426 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 4427 |   cat >> confdefs.h <<EOF | 
 | 4428 | #define $ac_tr_func 1 | 
 | 4429 | EOF | 
 | 4430 |   | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4431 | else | 
 | 4432 |   echo "$ac_t""no" 1>&6 | 
 | 4433 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4434 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4435 |  | 
 | 4436 |  | 
 | 4437 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 4438 | # loading of modules. | 
 | 4439 |  | 
 | 4440 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4441 | echo "configure:4442: checking DYNLOADFILE" >&5 | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4442 | if test -z "$DYNLOADFILE" | 
 | 4443 | then | 
 | 4444 | 	case $ac_sys_system/$ac_sys_release in | 
 | 4445 | 	AIX*) DYNLOADFILE="dynload_aix.o";; | 
 | 4446 | 	BeOS*) DYNLOADFILE="dynload_beos.o";; | 
 | 4447 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4448 | 	Darwin/*|next/*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4449 | 	*) | 
 | 4450 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 4451 | 	# out any dynamic loading | 
 | 4452 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 4453 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 4454 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 4455 | 	fi | 
 | 4456 | 	;; | 
 | 4457 | 	esac | 
 | 4458 | fi | 
 | 4459 | echo "$ac_t""$DYNLOADFILE" 1>&6 | 
 | 4460 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 4461 | then | 
 | 4462 | 	cat >> confdefs.h <<\EOF | 
 | 4463 | #define HAVE_DYNAMIC_LOADING 1 | 
 | 4464 | EOF | 
 | 4465 |  | 
 | 4466 | fi | 
 | 4467 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4468 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 4469 |  | 
 | 4470 |  | 
 | 4471 | echo $ac_n "checking MACHDEP_OBJS""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4472 | echo "configure:4473: checking MACHDEP_OBJS" >&5 | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4473 | if test -z "$MACHDEP_OBJS" | 
 | 4474 | then | 
 | 4475 | 	case $ac_sys_system/$ac_sys_release in | 
 | 4476 | 	Darwin/*) | 
 | 4477 | 		MACHDEP_OBJS="Mac/Python/macglue.o" | 
 | 4478 | 		cat >> confdefs.h <<\EOF | 
 | 4479 | #define USE_TOOLBOX_OBJECT_GLUE 1 | 
 | 4480 | EOF | 
 | 4481 |  | 
 | 4482 | 		;; | 
 | 4483 | 	*) MACHDEP_OBJS="";; | 
 | 4484 | 	esac | 
 | 4485 | fi | 
 | 4486 | echo "$ac_t""$DYNLOADFILE" 1>&6 | 
 | 4487 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4488 | # checks for library functions | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4489 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ | 
| Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4490 |  flock fork fsync fdatasync fpathconf ftime ftruncate \ | 
| Andrew M. Kuchling | a9586c7 | 2001-01-08 17:58:56 +0000 | [diff] [blame] | 4491 |  getgroups getlogin getpeername getpid getpwent getwd \ | 
| Martin v. Löwis | b9ab159 | 2001-06-24 21:18:26 +0000 | [diff] [blame] | 4492 |  inet_pton kill link lstat mkfifo mktime mremap \ | 
| Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 4493 |  nice pathconf pause plock poll pthread_init \ | 
| Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4494 |  putenv readlink \ | 
| Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 4495 |  select setegid seteuid setgid \ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4496 |  setlocale setregid setreuid setsid setpgid setuid setvbuf \ | 
| Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4497 |  sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ | 
| Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 4498 |  tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Thomas Wouters | c2c12dc | 2001-07-11 14:45:34 +0000 | [diff] [blame] | 4499 |  truncate uname waitpid _getpty getpriority | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4500 | do | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4501 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4502 | echo "configure:4503: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4503 | 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] | 4504 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4505 | else | 
 | 4506 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4507 | #line 4508 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4508 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4509 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 4510 |     which can conflict with char $ac_func(); below.  */ | 
 | 4511 | #include <assert.h> | 
 | 4512 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4513 | /* We use char because int might match the return type of a gcc2 | 
 | 4514 |     builtin and then its argument prototype would still apply.  */ | 
 | 4515 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4516 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4517 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4518 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4519 | /* The GNU C library defines this for functions which it implements | 
 | 4520 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 4521 |     something starting with __ and the normal name is an alias.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4522 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4523 | choke me | 
 | 4524 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4525 | $ac_func(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4526 | #endif | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4527 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4528 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4529 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4530 | if { (eval echo configure:4531: \"$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] | 4531 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4532 |   eval "ac_cv_func_$ac_func=yes" | 
 | 4533 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4534 |   echo "configure: failed program was:" >&5 | 
 | 4535 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4536 |   rm -rf conftest* | 
 | 4537 |   eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4538 | fi | 
 | 4539 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4540 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4541 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4542 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4543 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4544 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4545 |   cat >> confdefs.h <<EOF | 
 | 4546 | #define $ac_tr_func 1 | 
 | 4547 | EOF | 
 | 4548 |   | 
 | 4549 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4550 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4551 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4552 | done | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4553 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4554 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4555 | # check for openpty and forkpty | 
 | 4556 |  | 
 | 4557 | for ac_func in openpty | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4558 | do | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4559 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4560 | echo "configure:4561: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4561 | 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] | 4562 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4563 | else | 
 | 4564 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4565 | #line 4566 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4566 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4567 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 4568 |     which can conflict with char $ac_func(); below.  */ | 
 | 4569 | #include <assert.h> | 
 | 4570 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4571 | /* We use char because int might match the return type of a gcc2 | 
 | 4572 |     builtin and then its argument prototype would still apply.  */ | 
 | 4573 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4574 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4575 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4576 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4577 | /* The GNU C library defines this for functions which it implements | 
 | 4578 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 4579 |     something starting with __ and the normal name is an alias.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4580 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4581 | choke me | 
 | 4582 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4583 | $ac_func(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4584 | #endif | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4585 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4586 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4587 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4588 | if { (eval echo configure:4589: \"$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] | 4589 |   rm -rf conftest* | 
 | 4590 |   eval "ac_cv_func_$ac_func=yes" | 
 | 4591 | else | 
 | 4592 |   echo "configure: failed program was:" >&5 | 
 | 4593 |   cat conftest.$ac_ext >&5 | 
 | 4594 |   rm -rf conftest* | 
 | 4595 |   eval "ac_cv_func_$ac_func=no" | 
 | 4596 | fi | 
 | 4597 | rm -f conftest* | 
 | 4598 | fi | 
 | 4599 |  | 
 | 4600 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 4601 |   echo "$ac_t""yes" 1>&6 | 
 | 4602 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 4603 |   cat >> confdefs.h <<EOF | 
 | 4604 | #define $ac_tr_func 1 | 
 | 4605 | EOF | 
 | 4606 |   | 
 | 4607 | else | 
 | 4608 |   echo "$ac_t""no" 1>&6 | 
 | 4609 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4610 | echo "configure:4611: checking for openpty in -lutil" >&5 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4611 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4612 | 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] | 4613 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4614 | else | 
 | 4615 |   ac_save_LIBS="$LIBS" | 
 | 4616 | LIBS="-lutil  $LIBS" | 
 | 4617 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4618 | #line 4619 "configure" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4619 | #include "confdefs.h" | 
 | 4620 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4621 | /* We use char because int might match the return type of a gcc2 | 
 | 4622 |     builtin and then its argument prototype would still apply.  */ | 
 | 4623 | char openpty(); | 
 | 4624 |  | 
 | 4625 | int main() { | 
 | 4626 | openpty() | 
 | 4627 | ; return 0; } | 
 | 4628 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4629 | if { (eval echo configure:4630: \"$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] | 4630 |   rm -rf conftest* | 
 | 4631 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 4632 | else | 
 | 4633 |   echo "configure: failed program was:" >&5 | 
 | 4634 |   cat conftest.$ac_ext >&5 | 
 | 4635 |   rm -rf conftest* | 
 | 4636 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 4637 | fi | 
 | 4638 | rm -f conftest* | 
 | 4639 | LIBS="$ac_save_LIBS" | 
 | 4640 |  | 
 | 4641 | fi | 
 | 4642 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 4643 |   echo "$ac_t""yes" 1>&6 | 
 | 4644 |   cat >> confdefs.h <<\EOF | 
 | 4645 | #define HAVE_OPENPTY 1 | 
 | 4646 | EOF | 
 | 4647 |  LIBS="$LIBS -lutil" | 
 | 4648 | else | 
 | 4649 |   echo "$ac_t""no" 1>&6 | 
 | 4650 | fi | 
 | 4651 |  | 
 | 4652 | fi | 
 | 4653 | done | 
 | 4654 |  | 
 | 4655 | for ac_func in forkpty | 
 | 4656 | do | 
 | 4657 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4658 | echo "configure:4659: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4659 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4660 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4661 | else | 
 | 4662 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4663 | #line 4664 "configure" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4664 | #include "confdefs.h" | 
 | 4665 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 4666 |     which can conflict with char $ac_func(); below.  */ | 
 | 4667 | #include <assert.h> | 
 | 4668 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4669 | /* We use char because int might match the return type of a gcc2 | 
 | 4670 |     builtin and then its argument prototype would still apply.  */ | 
 | 4671 | char $ac_func(); | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4672 |  | 
 | 4673 | int main() { | 
 | 4674 |  | 
 | 4675 | /* The GNU C library defines this for functions which it implements | 
 | 4676 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 4677 |     something starting with __ and the normal name is an alias.  */ | 
 | 4678 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 4679 | choke me | 
 | 4680 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4681 | $ac_func(); | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4682 | #endif | 
 | 4683 |  | 
 | 4684 | ; return 0; } | 
 | 4685 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4686 | if { (eval echo configure:4687: \"$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] | 4687 |   rm -rf conftest* | 
 | 4688 |   eval "ac_cv_func_$ac_func=yes" | 
 | 4689 | else | 
 | 4690 |   echo "configure: failed program was:" >&5 | 
 | 4691 |   cat conftest.$ac_ext >&5 | 
 | 4692 |   rm -rf conftest* | 
 | 4693 |   eval "ac_cv_func_$ac_func=no" | 
 | 4694 | fi | 
 | 4695 | rm -f conftest* | 
 | 4696 | fi | 
 | 4697 |  | 
 | 4698 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 4699 |   echo "$ac_t""yes" 1>&6 | 
 | 4700 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 4701 |   cat >> confdefs.h <<EOF | 
 | 4702 | #define $ac_tr_func 1 | 
 | 4703 | EOF | 
 | 4704 |   | 
 | 4705 | else | 
 | 4706 |   echo "$ac_t""no" 1>&6 | 
 | 4707 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4708 | echo "configure:4709: checking for forkpty in -lutil" >&5 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4709 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4710 | 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] | 4711 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4712 | else | 
 | 4713 |   ac_save_LIBS="$LIBS" | 
 | 4714 | LIBS="-lutil  $LIBS" | 
 | 4715 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4716 | #line 4717 "configure" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4717 | #include "confdefs.h" | 
 | 4718 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4719 | /* We use char because int might match the return type of a gcc2 | 
 | 4720 |     builtin and then its argument prototype would still apply.  */ | 
 | 4721 | char forkpty(); | 
 | 4722 |  | 
 | 4723 | int main() { | 
 | 4724 | forkpty() | 
 | 4725 | ; return 0; } | 
 | 4726 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4727 | if { (eval echo configure:4728: \"$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] | 4728 |   rm -rf conftest* | 
 | 4729 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 4730 | else | 
 | 4731 |   echo "configure: failed program was:" >&5 | 
 | 4732 |   cat conftest.$ac_ext >&5 | 
 | 4733 |   rm -rf conftest* | 
 | 4734 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 4735 | fi | 
 | 4736 | rm -f conftest* | 
 | 4737 | LIBS="$ac_save_LIBS" | 
 | 4738 |  | 
 | 4739 | fi | 
 | 4740 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 4741 |   echo "$ac_t""yes" 1>&6 | 
 | 4742 |   cat >> confdefs.h <<\EOF | 
 | 4743 | #define HAVE_FORKPTY 1 | 
 | 4744 | EOF | 
 | 4745 |  LIBS="$LIBS -lutil" | 
 | 4746 | else | 
 | 4747 |   echo "$ac_t""no" 1>&6 | 
 | 4748 | fi | 
 | 4749 |  | 
 | 4750 | fi | 
 | 4751 | done | 
 | 4752 |  | 
 | 4753 |  | 
 | 4754 | # check for long file support functions | 
 | 4755 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
 | 4756 | do | 
 | 4757 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4758 | echo "configure:4759: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4759 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4760 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4761 | else | 
 | 4762 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4763 | #line 4764 "configure" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4764 | #include "confdefs.h" | 
 | 4765 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 4766 |     which can conflict with char $ac_func(); below.  */ | 
 | 4767 | #include <assert.h> | 
 | 4768 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4769 | /* We use char because int might match the return type of a gcc2 | 
 | 4770 |     builtin and then its argument prototype would still apply.  */ | 
 | 4771 | char $ac_func(); | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4772 |  | 
 | 4773 | int main() { | 
 | 4774 |  | 
 | 4775 | /* The GNU C library defines this for functions which it implements | 
 | 4776 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 4777 |     something starting with __ and the normal name is an alias.  */ | 
 | 4778 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 4779 | choke me | 
 | 4780 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4781 | $ac_func(); | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4782 | #endif | 
 | 4783 |  | 
 | 4784 | ; return 0; } | 
 | 4785 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4786 | if { (eval echo configure:4787: \"$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] | 4787 |   rm -rf conftest* | 
 | 4788 |   eval "ac_cv_func_$ac_func=yes" | 
 | 4789 | else | 
 | 4790 |   echo "configure: failed program was:" >&5 | 
 | 4791 |   cat conftest.$ac_ext >&5 | 
 | 4792 |   rm -rf conftest* | 
 | 4793 |   eval "ac_cv_func_$ac_func=no" | 
 | 4794 | fi | 
 | 4795 | rm -f conftest* | 
 | 4796 | fi | 
 | 4797 |  | 
 | 4798 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 4799 |   echo "$ac_t""yes" 1>&6 | 
 | 4800 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 4801 |   cat >> confdefs.h <<EOF | 
 | 4802 | #define $ac_tr_func 1 | 
 | 4803 | EOF | 
 | 4804 |   | 
 | 4805 | else | 
 | 4806 |   echo "$ac_t""no" 1>&6 | 
 | 4807 | fi | 
 | 4808 | done | 
 | 4809 |  | 
 | 4810 |  | 
 | 4811 | for ac_func in dup2 getcwd strdup strerror memmove | 
 | 4812 | do | 
 | 4813 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4814 | echo "configure:4815: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4815 | 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] | 4816 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4817 | else | 
 | 4818 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4819 | #line 4820 "configure" | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4820 | #include "confdefs.h" | 
 | 4821 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 4822 |     which can conflict with char $ac_func(); below.  */ | 
 | 4823 | #include <assert.h> | 
 | 4824 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4825 | /* We use char because int might match the return type of a gcc2 | 
 | 4826 |     builtin and then its argument prototype would still apply.  */ | 
 | 4827 | char $ac_func(); | 
 | 4828 |  | 
 | 4829 | int main() { | 
 | 4830 |  | 
 | 4831 | /* The GNU C library defines this for functions which it implements | 
 | 4832 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 4833 |     something starting with __ and the normal name is an alias.  */ | 
 | 4834 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 4835 | choke me | 
 | 4836 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4837 | $ac_func(); | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4838 | #endif | 
 | 4839 |  | 
 | 4840 | ; return 0; } | 
 | 4841 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4842 | if { (eval echo configure:4843: \"$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] | 4843 |   rm -rf conftest* | 
 | 4844 |   eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4845 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4846 |   echo "configure: failed program was:" >&5 | 
 | 4847 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4848 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4849 |   eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4850 | fi | 
 | 4851 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4852 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4853 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4854 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4855 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4856 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 4857 |   cat >> confdefs.h <<EOF | 
 | 4858 | #define $ac_tr_func 1 | 
 | 4859 | EOF | 
 | 4860 |   | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4861 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4862 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4863 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4864 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4865 | done | 
 | 4866 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4867 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4868 | for ac_func in getpgrp | 
 | 4869 | do | 
 | 4870 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4871 | echo "configure:4872: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4872 | 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] | 4873 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4874 | else | 
 | 4875 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4876 | #line 4877 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4877 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4878 | /* System header to define __stub macros and hopefully few prototypes, | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4879 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4880 | #include <assert.h> | 
 | 4881 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4882 | /* We use char because int might match the return type of a gcc2 | 
 | 4883 |     builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4884 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4885 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4886 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4887 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4888 | /* The GNU C library defines this for functions which it implements | 
 | 4889 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 4890 |     something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4891 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4892 | choke me | 
 | 4893 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4894 | $ac_func(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4895 | #endif | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4896 |  | 
 | 4897 | ; return 0; } | 
 | 4898 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4899 | if { (eval echo configure:4900: \"$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] | 4900 |   rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4901 |   eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4902 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4903 |   echo "configure: failed program was:" >&5 | 
 | 4904 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4905 |   rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4906 |   eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4907 | fi | 
 | 4908 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4909 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4910 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4911 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4912 |   echo "$ac_t""yes" 1>&6 | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4913 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 4914 |   cat >> confdefs.h <<EOF | 
 | 4915 | #define $ac_tr_func 1 | 
 | 4916 | EOF | 
 | 4917 |  cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4918 | #line 4919 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4919 | #include "confdefs.h" | 
 | 4920 | #include <unistd.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4921 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4922 | getpgrp(0); | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4923 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4924 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4925 | if { (eval echo configure:4926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4926 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4927 |   cat >> confdefs.h <<\EOF | 
 | 4928 | #define GETPGRP_HAVE_ARG 1 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4929 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4930 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4931 | else | 
 | 4932 |   echo "configure: failed program was:" >&5 | 
 | 4933 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4934 | fi | 
 | 4935 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4936 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4937 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4938 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4939 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4940 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4941 | for ac_func in setpgrp | 
 | 4942 | do | 
 | 4943 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4944 | echo "configure:4945: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4945 | 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] | 4946 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4947 | else | 
 | 4948 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4949 | #line 4950 "configure" | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4950 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4951 | /* System header to define __stub macros and hopefully few prototypes, | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4952 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4953 | #include <assert.h> | 
 | 4954 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4955 | /* We use char because int might match the return type of a gcc2 | 
 | 4956 |     builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4957 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4958 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4959 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4960 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4961 | /* The GNU C library defines this for functions which it implements | 
 | 4962 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 4963 |     something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4964 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4965 | choke me | 
 | 4966 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4967 | $ac_func(); | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4968 | #endif | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4969 |  | 
 | 4970 | ; return 0; } | 
 | 4971 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4972 | if { (eval echo configure:4973: \"$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] | 4973 |   rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4974 |   eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4975 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4976 |   echo "configure: failed program was:" >&5 | 
 | 4977 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4978 |   rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4979 |   eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4980 | fi | 
 | 4981 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4982 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4983 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4984 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4985 |   echo "$ac_t""yes" 1>&6 | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4986 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 4987 |   cat >> confdefs.h <<EOF | 
 | 4988 | #define $ac_tr_func 1 | 
 | 4989 | EOF | 
 | 4990 |  cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4991 | #line 4992 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4992 | #include "confdefs.h" | 
 | 4993 | #include <unistd.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4994 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4995 | setpgrp(0,0); | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4996 | ; return 0; } | 
 | 4997 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 4998 | if { (eval echo configure:4999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4999 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5000 |   cat >> confdefs.h <<\EOF | 
 | 5001 | #define SETPGRP_HAVE_ARG 1 | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5002 | EOF | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5003 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5004 | else | 
 | 5005 |   echo "configure: failed program was:" >&5 | 
 | 5006 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5007 | fi | 
 | 5008 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5009 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5010 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5011 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5012 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5013 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5014 | for ac_func in gettimeofday | 
 | 5015 | do | 
 | 5016 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5017 | echo "configure:5018: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5018 | 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] | 5019 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5020 | else | 
 | 5021 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5022 | #line 5023 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5023 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5024 | /* System header to define __stub macros and hopefully few prototypes, | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5025 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5026 | #include <assert.h> | 
 | 5027 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5028 | /* We use char because int might match the return type of a gcc2 | 
 | 5029 |     builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5030 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5031 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5032 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5033 |  | 
 | 5034 | /* The GNU C library defines this for functions which it implements | 
 | 5035 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5036 |     something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5037 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5038 | choke me | 
 | 5039 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5040 | $ac_func(); | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5041 | #endif | 
 | 5042 |  | 
 | 5043 | ; return 0; } | 
 | 5044 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5045 | if { (eval echo configure:5046: \"$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] | 5046 |   rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5047 |   eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5048 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5049 |   echo "configure: failed program was:" >&5 | 
 | 5050 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5051 |   rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5052 |   eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5053 | fi | 
 | 5054 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5055 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5056 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5057 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5058 |   echo "$ac_t""yes" 1>&6 | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5059 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 5060 |   cat >> confdefs.h <<EOF | 
 | 5061 | #define $ac_tr_func 1 | 
 | 5062 | EOF | 
 | 5063 |  cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5064 | #line 5065 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5065 | #include "confdefs.h" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5066 | #include <sys/time.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5067 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5068 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
 | 5069 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5070 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5071 | if { (eval echo configure:5072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5072 |   : | 
 | 5073 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5074 |   echo "configure: failed program was:" >&5 | 
 | 5075 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5076 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5077 |   cat >> confdefs.h <<\EOF | 
 | 5078 | #define GETTIMEOFDAY_NO_TZ 1 | 
 | 5079 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5080 |  | 
 | 5081 | fi | 
 | 5082 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5083 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5084 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5085 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5086 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5087 |  | 
 | 5088 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5089 | for ac_func in getaddrinfo | 
 | 5090 | do | 
 | 5091 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5092 | echo "configure:5093: checking for $ac_func" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5093 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 5094 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5095 | else | 
 | 5096 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5097 | #line 5098 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5098 | #include "confdefs.h" | 
 | 5099 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 5100 |     which can conflict with char $ac_func(); below.  */ | 
 | 5101 | #include <assert.h> | 
 | 5102 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 5103 | /* We use char because int might match the return type of a gcc2 | 
 | 5104 |     builtin and then its argument prototype would still apply.  */ | 
 | 5105 | char $ac_func(); | 
 | 5106 |  | 
 | 5107 | int main() { | 
 | 5108 |  | 
 | 5109 | /* The GNU C library defines this for functions which it implements | 
 | 5110 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5111 |     something starting with __ and the normal name is an alias.  */ | 
 | 5112 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 5113 | choke me | 
 | 5114 | #else | 
 | 5115 | $ac_func(); | 
 | 5116 | #endif | 
 | 5117 |  | 
 | 5118 | ; return 0; } | 
 | 5119 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5120 | if { (eval echo configure:5121: \"$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] | 5121 |   rm -rf conftest* | 
 | 5122 |   eval "ac_cv_func_$ac_func=yes" | 
 | 5123 | else | 
 | 5124 |   echo "configure: failed program was:" >&5 | 
 | 5125 |   cat conftest.$ac_ext >&5 | 
 | 5126 |   rm -rf conftest* | 
 | 5127 |   eval "ac_cv_func_$ac_func=no" | 
 | 5128 | fi | 
 | 5129 | rm -f conftest* | 
 | 5130 | fi | 
 | 5131 |  | 
 | 5132 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 5133 |   echo "$ac_t""yes" 1>&6 | 
 | 5134 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 5135 |   cat >> confdefs.h <<EOF | 
 | 5136 | #define $ac_tr_func 1 | 
 | 5137 | EOF | 
 | 5138 |  echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5139 | echo "configure:5140: checking getaddrinfo bug" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5140 | if test "$cross_compiling" = yes; then | 
 | 5141 |   echo "$ac_t""buggy" 1>&6 | 
 | 5142 | buggygetaddrinfo=yes | 
 | 5143 | else | 
 | 5144 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5145 | #line 5146 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5146 | #include "confdefs.h" | 
 | 5147 |  | 
 | 5148 | #include <sys/types.h> | 
 | 5149 | #include <netdb.h> | 
 | 5150 | #include <string.h> | 
 | 5151 | #include <sys/socket.h> | 
 | 5152 | #include <netinet/in.h> | 
 | 5153 |  | 
 | 5154 | main() | 
 | 5155 | { | 
 | 5156 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 5157 |   struct addrinfo hints, *ai, *aitop; | 
 | 5158 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 5159 |  | 
 | 5160 |   for (passive = 0; passive <= 1; passive++) { | 
 | 5161 |     memset(&hints, 0, sizeof(hints)); | 
 | 5162 |     hints.ai_family = AF_UNSPEC; | 
 | 5163 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 5164 |     hints.ai_socktype = SOCK_STREAM; | 
 | 5165 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 5166 |       (void)gai_strerror(gaierr); | 
 | 5167 |       goto bad; | 
 | 5168 |     } | 
 | 5169 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 5170 |       if (ai->ai_addr == NULL || | 
 | 5171 |           ai->ai_addrlen == 0 || | 
 | 5172 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 5173 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 5174 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 5175 |         goto bad; | 
 | 5176 |       } | 
 | 5177 |       switch (ai->ai_family) { | 
 | 5178 |       case AF_INET: | 
 | 5179 |         if (strcmp(strport, "54321") != 0) { | 
 | 5180 |           goto bad; | 
 | 5181 |         } | 
 | 5182 |         if (passive) { | 
 | 5183 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 5184 |             goto bad; | 
 | 5185 |           } | 
 | 5186 |         } else { | 
 | 5187 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 5188 |             goto bad; | 
 | 5189 |           } | 
 | 5190 |         } | 
 | 5191 |         inet4++; | 
 | 5192 |         break; | 
 | 5193 |       case AF_INET6: | 
 | 5194 |         if (strcmp(strport, "54321") != 0) { | 
 | 5195 |           goto bad; | 
 | 5196 |         } | 
 | 5197 |         if (passive) { | 
 | 5198 |           if (strcmp(straddr, "::") != 0) { | 
 | 5199 |             goto bad; | 
 | 5200 |           } | 
 | 5201 |         } else { | 
 | 5202 |           if (strcmp(straddr, "::1") != 0) { | 
 | 5203 |             goto bad; | 
 | 5204 |           } | 
 | 5205 |         } | 
 | 5206 |         inet6++; | 
 | 5207 |         break; | 
 | 5208 |       case AF_UNSPEC: | 
 | 5209 |         goto bad; | 
 | 5210 |         break; | 
 | 5211 |       default: | 
 | 5212 |         /* another family support? */ | 
 | 5213 |         break; | 
 | 5214 |       } | 
 | 5215 |     } | 
 | 5216 |   } | 
 | 5217 |  | 
 | 5218 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 5219 |     goto bad; | 
 | 5220 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 5221 |     goto bad; | 
 | 5222 |  | 
 | 5223 |   if (aitop) | 
 | 5224 |     freeaddrinfo(aitop); | 
 | 5225 |   exit(0); | 
 | 5226 |  | 
 | 5227 |  bad: | 
 | 5228 |   if (aitop) | 
 | 5229 |     freeaddrinfo(aitop); | 
 | 5230 |   exit(1); | 
 | 5231 | } | 
 | 5232 |  | 
 | 5233 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5234 | if { (eval echo configure:5235: \"$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] | 5235 | then | 
 | 5236 |   echo "$ac_t""good" 1>&6 | 
 | 5237 | buggygetaddrinfo=no | 
 | 5238 | else | 
 | 5239 |   echo "configure: failed program was:" >&5 | 
 | 5240 |   cat conftest.$ac_ext >&5 | 
 | 5241 |   rm -fr conftest* | 
 | 5242 |   echo "$ac_t""buggy" 1>&6 | 
 | 5243 | buggygetaddrinfo=yes | 
 | 5244 | fi | 
 | 5245 | rm -fr conftest* | 
 | 5246 | fi | 
 | 5247 |  | 
 | 5248 | else | 
 | 5249 |   echo "$ac_t""no" 1>&6 | 
 | 5250 | buggygetaddrinfo=yes | 
 | 5251 | fi | 
 | 5252 | done | 
 | 5253 |  | 
 | 5254 |  | 
 | 5255 | if test "$buggygetaddrinfo" = "yes"; then | 
 | 5256 | 	if test "$ipv6" = "yes"; then | 
 | 5257 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 5258 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 5259 | 		exit 1 | 
 | 5260 | 	fi | 
 | 5261 | fi | 
 | 5262 | for ac_func in getaddrinfo getnameinfo | 
 | 5263 | do | 
 | 5264 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5265 | echo "configure:5266: checking for $ac_func" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5266 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 5267 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5268 | else | 
 | 5269 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5270 | #line 5271 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5271 | #include "confdefs.h" | 
 | 5272 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 5273 |     which can conflict with char $ac_func(); below.  */ | 
 | 5274 | #include <assert.h> | 
 | 5275 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 5276 | /* We use char because int might match the return type of a gcc2 | 
 | 5277 |     builtin and then its argument prototype would still apply.  */ | 
 | 5278 | char $ac_func(); | 
 | 5279 |  | 
 | 5280 | int main() { | 
 | 5281 |  | 
 | 5282 | /* The GNU C library defines this for functions which it implements | 
 | 5283 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5284 |     something starting with __ and the normal name is an alias.  */ | 
 | 5285 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 5286 | choke me | 
 | 5287 | #else | 
 | 5288 | $ac_func(); | 
 | 5289 | #endif | 
 | 5290 |  | 
 | 5291 | ; return 0; } | 
 | 5292 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5293 | if { (eval echo configure:5294: \"$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] | 5294 |   rm -rf conftest* | 
 | 5295 |   eval "ac_cv_func_$ac_func=yes" | 
 | 5296 | else | 
 | 5297 |   echo "configure: failed program was:" >&5 | 
 | 5298 |   cat conftest.$ac_ext >&5 | 
 | 5299 |   rm -rf conftest* | 
 | 5300 |   eval "ac_cv_func_$ac_func=no" | 
 | 5301 | fi | 
 | 5302 | rm -f conftest* | 
 | 5303 | fi | 
 | 5304 |  | 
 | 5305 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 5306 |   echo "$ac_t""yes" 1>&6 | 
 | 5307 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 5308 |   cat >> confdefs.h <<EOF | 
 | 5309 | #define $ac_tr_func 1 | 
 | 5310 | EOF | 
 | 5311 |   | 
 | 5312 | else | 
 | 5313 |   echo "$ac_t""no" 1>&6 | 
 | 5314 | fi | 
 | 5315 | done | 
 | 5316 |  | 
 | 5317 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5318 | # checks for structures | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5319 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5320 | echo "configure:5321: 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] | 5321 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5322 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5323 | else | 
 | 5324 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5325 | #line 5326 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5326 | #include "confdefs.h" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5327 | #include <sys/types.h> | 
 | 5328 | #include <sys/time.h> | 
 | 5329 | #include <time.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5330 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5331 | struct tm *tp; | 
 | 5332 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5333 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5334 | if { (eval echo configure:5335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5335 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5336 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5337 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5338 |   echo "configure: failed program was:" >&5 | 
 | 5339 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5340 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5341 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5342 | fi | 
 | 5343 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5344 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5345 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5346 | echo "$ac_t""$ac_cv_header_time" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5347 | if test $ac_cv_header_time = yes; then | 
 | 5348 |   cat >> confdefs.h <<\EOF | 
 | 5349 | #define TIME_WITH_SYS_TIME 1 | 
 | 5350 | EOF | 
 | 5351 |  | 
 | 5352 | fi | 
 | 5353 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5354 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5355 | echo "configure:5356: 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] | 5356 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5357 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5358 | else | 
 | 5359 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5360 | #line 5361 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5361 | #include "confdefs.h" | 
 | 5362 | #include <sys/types.h> | 
 | 5363 | #include <time.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5364 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5365 | struct tm *tp; tp->tm_sec; | 
 | 5366 | ; return 0; } | 
 | 5367 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5368 | if { (eval echo configure:5369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5369 |   rm -rf conftest* | 
 | 5370 |   ac_cv_struct_tm=time.h | 
 | 5371 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5372 |   echo "configure: failed program was:" >&5 | 
 | 5373 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5374 |   rm -rf conftest* | 
 | 5375 |   ac_cv_struct_tm=sys/time.h | 
 | 5376 | fi | 
 | 5377 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5378 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5379 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5380 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5381 | if test $ac_cv_struct_tm = sys/time.h; then | 
 | 5382 |   cat >> confdefs.h <<\EOF | 
 | 5383 | #define TM_IN_SYS_TIME 1 | 
 | 5384 | EOF | 
 | 5385 |  | 
 | 5386 | fi | 
 | 5387 |  | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5388 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5389 | echo "configure:5390: checking for tm_zone in struct tm" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5390 | 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] | 5391 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5392 | else | 
 | 5393 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5394 | #line 5395 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5395 | #include "confdefs.h" | 
 | 5396 | #include <sys/types.h> | 
 | 5397 | #include <$ac_cv_struct_tm> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5398 | int main() { | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5399 | struct tm tm; tm.tm_zone; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5400 | ; return 0; } | 
 | 5401 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5402 | if { (eval echo configure:5403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5403 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5404 |   ac_cv_struct_tm_zone=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5405 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5406 |   echo "configure: failed program was:" >&5 | 
 | 5407 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5408 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5409 |   ac_cv_struct_tm_zone=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5410 | fi | 
 | 5411 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5412 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5413 |  | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5414 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | 
 | 5415 | if test "$ac_cv_struct_tm_zone" = yes; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5416 |   cat >> confdefs.h <<\EOF | 
 | 5417 | #define HAVE_TM_ZONE 1 | 
 | 5418 | EOF | 
 | 5419 |  | 
 | 5420 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5421 |   echo $ac_n "checking for tzname""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5422 | echo "configure:5423: checking for tzname" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5423 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5424 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5425 | else | 
 | 5426 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5427 | #line 5428 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5428 | #include "confdefs.h" | 
 | 5429 | #include <time.h> | 
 | 5430 | #ifndef tzname /* For SGI.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5431 | extern char *tzname[]; /* RS6000 and others reject char **tzname.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5432 | #endif | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5433 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5434 | atoi(*tzname); | 
 | 5435 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5436 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5437 | if { (eval echo configure:5438: \"$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] | 5438 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5439 |   ac_cv_var_tzname=yes | 
 | 5440 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5441 |   echo "configure: failed program was:" >&5 | 
 | 5442 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5443 |   rm -rf conftest* | 
 | 5444 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5445 | fi | 
 | 5446 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5447 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5448 |  | 
 | 5449 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5450 |   if test $ac_cv_var_tzname = yes; then | 
 | 5451 |     cat >> confdefs.h <<\EOF | 
 | 5452 | #define HAVE_TZNAME 1 | 
 | 5453 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5454 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5455 |   fi | 
 | 5456 | fi | 
 | 5457 |  | 
 | 5458 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5459 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5460 | echo "configure:5461: checking for time.h that defines altzone" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5461 | 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] | 5462 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5463 | else | 
 | 5464 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5465 | #line 5466 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5466 | #include "confdefs.h" | 
 | 5467 | #include <time.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5468 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5469 | return altzone; | 
 | 5470 | ; return 0; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5471 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5472 | if { (eval echo configure:5473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5473 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5474 |   ac_cv_header_time_altzone=yes | 
 | 5475 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5476 |   echo "configure: failed program was:" >&5 | 
 | 5477 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5478 |   rm -rf conftest* | 
 | 5479 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5480 | fi | 
 | 5481 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5482 | fi | 
 | 5483 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5484 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5485 | if test $ac_cv_header_time_altzone = yes; then | 
 | 5486 |   cat >> confdefs.h <<\EOF | 
 | 5487 | #define HAVE_ALTZONE 1 | 
 | 5488 | EOF | 
 | 5489 |  | 
 | 5490 | fi | 
 | 5491 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5492 | was_it_defined=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5493 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5494 | echo "configure:5495: 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] | 5495 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5496 | #line 5497 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5497 | #include "confdefs.h" | 
 | 5498 |  | 
 | 5499 | #include <sys/types.h> | 
 | 5500 | #include <sys/select.h> | 
 | 5501 | #include <sys/time.h> | 
 | 5502 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5503 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5504 | ; | 
 | 5505 | ; return 0; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5506 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5507 | if { (eval echo configure:5508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5508 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5509 |   cat >> confdefs.h <<\EOF | 
 | 5510 | #define SYS_SELECT_WITH_SYS_TIME 1 | 
 | 5511 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5512 |  was_it_defined=yes | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5513 | else | 
 | 5514 |   echo "configure: failed program was:" >&5 | 
 | 5515 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5516 | fi | 
 | 5517 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5518 | echo "$ac_t""$was_it_defined" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5519 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5520 | echo $ac_n "checking for addrinfo""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5521 | echo "configure:5522: checking for addrinfo" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5522 | if eval "test \"`echo '$''{'ac_cv_struct_addrinfo'+set}'`\" = set"; then | 
 | 5523 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5524 | else | 
 | 5525 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5526 | #line 5527 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5527 | #include "confdefs.h" | 
 | 5528 |  | 
 | 5529 | #		include <netdb.h> | 
 | 5530 | int main() { | 
 | 5531 | struct addrinfo a | 
 | 5532 | ; return 0; } | 
 | 5533 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5534 | if { (eval echo configure:5535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5535 |   rm -rf conftest* | 
 | 5536 |   ac_cv_struct_addrinfo=yes | 
 | 5537 | else | 
 | 5538 |   echo "configure: failed program was:" >&5 | 
 | 5539 |   cat conftest.$ac_ext >&5 | 
 | 5540 |   rm -rf conftest* | 
 | 5541 |   ac_cv_struct_addrinfo=no | 
 | 5542 | fi | 
 | 5543 | rm -f conftest* | 
 | 5544 | fi | 
 | 5545 |  | 
 | 5546 | echo "$ac_t""$ac_cv_struct_addrinfo" 1>&6 | 
 | 5547 | if test $ac_cv_struct_addrinfo = yes; then | 
 | 5548 | 	cat >> confdefs.h <<\EOF | 
 | 5549 | #define HAVE_ADDRINFO 1 | 
 | 5550 | EOF | 
 | 5551 |  | 
 | 5552 | fi | 
 | 5553 |  | 
 | 5554 | echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5555 | echo "configure:5556: checking for sockaddr_storage" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5556 | if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then | 
 | 5557 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5558 | else | 
 | 5559 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5560 | #line 5561 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5561 | #include "confdefs.h" | 
 | 5562 |  | 
 | 5563 | #		include <sys/types.h> | 
 | 5564 | #		include <sys/socket.h> | 
 | 5565 | int main() { | 
 | 5566 | struct sockaddr_storage s | 
 | 5567 | ; return 0; } | 
 | 5568 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5569 | if { (eval echo configure:5570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5570 |   rm -rf conftest* | 
 | 5571 |   ac_cv_struct_sockaddr_storage=yes | 
 | 5572 | else | 
 | 5573 |   echo "configure: failed program was:" >&5 | 
 | 5574 |   cat conftest.$ac_ext >&5 | 
 | 5575 |   rm -rf conftest* | 
 | 5576 |   ac_cv_struct_sockaddr_storage=no | 
 | 5577 | fi | 
 | 5578 | rm -f conftest* | 
 | 5579 | fi | 
 | 5580 |  | 
 | 5581 | echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6 | 
 | 5582 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
 | 5583 | 	cat >> confdefs.h <<\EOF | 
 | 5584 | #define HAVE_SOCKADDR_STORAGE 1 | 
 | 5585 | EOF | 
 | 5586 |  | 
 | 5587 | fi | 
 | 5588 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5589 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5590 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5591 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5592 | echo "configure:5593: checking whether char is unsigned" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5593 | 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] | 5594 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5595 | else | 
 | 5596 |   if test "$GCC" = yes; then | 
 | 5597 |   # GCC predefines this symbol on systems where it applies. | 
 | 5598 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5599 | #line 5600 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5600 | #include "confdefs.h" | 
 | 5601 | #ifdef __CHAR_UNSIGNED__ | 
 | 5602 |   yes | 
 | 5603 | #endif | 
 | 5604 |  | 
 | 5605 | EOF | 
 | 5606 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 5607 |   egrep "yes" >/dev/null 2>&1; then | 
 | 5608 |   rm -rf conftest* | 
 | 5609 |   ac_cv_c_char_unsigned=yes | 
 | 5610 | else | 
 | 5611 |   rm -rf conftest* | 
 | 5612 |   ac_cv_c_char_unsigned=no | 
 | 5613 | fi | 
 | 5614 | rm -f conftest* | 
 | 5615 |  | 
 | 5616 | else | 
 | 5617 | if test "$cross_compiling" = yes; then | 
 | 5618 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 5619 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5620 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5621 | #line 5622 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5622 | #include "confdefs.h" | 
 | 5623 | /* volatile prevents gcc2 from optimizing the test away on sparcs.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5624 | #if !defined(__STDC__) || __STDC__ != 1 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5625 | #define volatile | 
 | 5626 | #endif | 
 | 5627 | main() { | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5628 |   volatile char c = 255; exit(c < 0); | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5629 | } | 
 | 5630 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5631 | if { (eval echo configure:5632: \"$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] | 5632 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5633 |   ac_cv_c_char_unsigned=yes | 
 | 5634 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5635 |   echo "configure: failed program was:" >&5 | 
 | 5636 |   cat conftest.$ac_ext >&5 | 
 | 5637 |   rm -fr conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5638 |   ac_cv_c_char_unsigned=no | 
 | 5639 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5640 | rm -fr conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5641 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5642 |  | 
 | 5643 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5644 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5645 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5646 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5647 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
 | 5648 |   cat >> confdefs.h <<\EOF | 
 | 5649 | #define __CHAR_UNSIGNED__ 1 | 
 | 5650 | EOF | 
 | 5651 |  | 
 | 5652 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5653 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5654 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5655 | echo "configure:5656: checking for working const" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5656 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5657 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5658 | else | 
 | 5659 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5660 | #line 5661 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5661 | #include "confdefs.h" | 
 | 5662 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5663 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5664 |  | 
 | 5665 | /* Ultrix mips cc rejects this.  */ | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5666 | typedef int charset[2]; const charset x; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5667 | /* SunOS 4.1.1 cc rejects this.  */ | 
 | 5668 | char const *const *ccp; | 
 | 5669 | char **p; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5670 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 5671 | struct point {int x, y;}; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5672 | static struct point const zero = {0,0}; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5673 | /* AIX XL C 1.02.0.0 rejects this. | 
 | 5674 |    It does not let you subtract one const X* pointer from another in an arm | 
 | 5675 |    of an if-expression whose if-part is not a constant expression */ | 
 | 5676 | const char *g = "string"; | 
 | 5677 | ccp = &g + (g ? g-g : 0); | 
 | 5678 | /* HPUX 7.0 cc rejects these. */ | 
 | 5679 | ++ccp; | 
 | 5680 | p = (char**) ccp; | 
 | 5681 | ccp = (char const *const *) p; | 
 | 5682 | { /* SCO 3.2v4 cc rejects this.  */ | 
 | 5683 |   char *t; | 
 | 5684 |   char const *s = 0 ? (char *) 0 : (char const *) 0; | 
 | 5685 |  | 
 | 5686 |   *t++ = 0; | 
 | 5687 | } | 
 | 5688 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5689 |   int x[] = {25, 17}; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5690 |   const int *foo = &x[0]; | 
 | 5691 |   ++foo; | 
 | 5692 | } | 
 | 5693 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 5694 |   typedef const int *iptr; | 
 | 5695 |   iptr p = 0; | 
 | 5696 |   ++p; | 
 | 5697 | } | 
 | 5698 | { /* AIX XL C 1.02.0.0 rejects this saying | 
 | 5699 |      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
 | 5700 |   struct s { int j; const int *ap[3]; }; | 
 | 5701 |   struct s *b; b->j = 5; | 
 | 5702 | } | 
 | 5703 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 5704 |   const int foo = 10; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5705 | } | 
 | 5706 |  | 
 | 5707 | ; return 0; } | 
 | 5708 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5709 | if { (eval echo configure:5710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5710 |   rm -rf conftest* | 
 | 5711 |   ac_cv_c_const=yes | 
 | 5712 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5713 |   echo "configure: failed program was:" >&5 | 
 | 5714 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5715 |   rm -rf conftest* | 
 | 5716 |   ac_cv_c_const=no | 
 | 5717 | fi | 
 | 5718 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5719 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5720 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5721 | echo "$ac_t""$ac_cv_c_const" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5722 | if test $ac_cv_c_const = no; then | 
 | 5723 |   cat >> confdefs.h <<\EOF | 
 | 5724 | #define const  | 
 | 5725 | EOF | 
 | 5726 |  | 
 | 5727 | fi | 
 | 5728 |  | 
 | 5729 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5730 | works=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5731 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5732 | echo "configure:5733: checking for working volatile" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5733 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5734 | #line 5735 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5735 | #include "confdefs.h" | 
 | 5736 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5737 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5738 | volatile int x; x = 0; | 
 | 5739 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5740 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5741 | if { (eval echo configure:5742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5742 |   rm -rf conftest* | 
 | 5743 |   works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5744 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5745 |   echo "configure: failed program was:" >&5 | 
 | 5746 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5747 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5748 |   cat >> confdefs.h <<\EOF | 
 | 5749 | #define volatile  | 
 | 5750 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5751 |  | 
 | 5752 | fi | 
 | 5753 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5754 | echo "$ac_t""$works" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5755 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5756 | works=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5757 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5758 | echo "configure:5759: checking for working signed char" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5759 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5760 | #line 5761 "configure" | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5761 | #include "confdefs.h" | 
 | 5762 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5763 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5764 | signed char c; | 
 | 5765 | ; return 0; } | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5766 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5767 | if { (eval echo configure:5768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5768 |   rm -rf conftest* | 
 | 5769 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5770 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5771 |   echo "configure: failed program was:" >&5 | 
 | 5772 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5773 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5774 |   cat >> confdefs.h <<\EOF | 
 | 5775 | #define signed  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5776 | EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5777 |  | 
 | 5778 | fi | 
 | 5779 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5780 | echo "$ac_t""$works" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5781 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5782 | have_prototypes=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5783 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5784 | echo "configure:5785: checking for prototypes" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5785 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5786 | #line 5787 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5787 | #include "confdefs.h" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5788 | int foo(int x) { return 0; } | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5789 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5790 | return foo(10); | 
 | 5791 | ; return 0; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5792 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5793 | if { (eval echo configure:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5794 |   rm -rf conftest* | 
 | 5795 |   cat >> confdefs.h <<\EOF | 
 | 5796 | #define HAVE_PROTOTYPES 1 | 
 | 5797 | EOF | 
 | 5798 |  have_prototypes=yes | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5799 | else | 
 | 5800 |   echo "configure: failed program was:" >&5 | 
 | 5801 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5802 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5803 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5804 | echo "$ac_t""$have_prototypes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5805 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5806 | works=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5807 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5808 | echo "configure:5809: checking for variable length prototypes and stdarg.h" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5809 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5810 | #line 5811 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5811 | #include "confdefs.h" | 
 | 5812 |  | 
 | 5813 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5814 | int foo(int x, ...) { | 
 | 5815 | 	va_list va; | 
 | 5816 | 	va_start(va, x); | 
 | 5817 | 	va_arg(va, int); | 
 | 5818 | 	va_arg(va, char *); | 
 | 5819 | 	va_arg(va, double); | 
 | 5820 | 	return 0; | 
 | 5821 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5822 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5823 | int main() { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5824 | return foo(10, "", 3.14); | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5825 | ; return 0; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5826 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5827 | if { (eval echo configure:5828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5828 |   rm -rf conftest* | 
 | 5829 |   cat >> confdefs.h <<\EOF | 
 | 5830 | #define HAVE_STDARG_PROTOTYPES 1 | 
 | 5831 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5832 |  works=yes | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5833 | else | 
 | 5834 |   echo "configure: failed program was:" >&5 | 
 | 5835 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5836 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5837 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5838 | echo "$ac_t""$works" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5839 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5840 | if test "$have_prototypes" = yes; then | 
 | 5841 | bad_prototypes=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5842 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5843 | echo "configure:5844: checking for bad exec* prototypes" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5844 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5845 | #line 5846 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5846 | #include "confdefs.h" | 
 | 5847 | #include <unistd.h> | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5848 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5849 | char **t;execve("@",t,t); | 
 | 5850 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5851 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5852 | if { (eval echo configure:5853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5853 |   : | 
 | 5854 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5855 |   echo "configure: failed program was:" >&5 | 
 | 5856 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5857 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5858 |   cat >> confdefs.h <<\EOF | 
 | 5859 | #define BAD_EXEC_PROTOTYPES 1 | 
 | 5860 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5861 |  bad_prototypes=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5862 | fi | 
 | 5863 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5864 | echo "$ac_t""$bad_prototypes" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5865 | fi | 
 | 5866 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5867 | # check if sockaddr has sa_len member | 
 | 5868 | echo $ac_n "checking if sockaddr has sa_len member""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5869 | echo "configure:5870: checking if sockaddr has sa_len member" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5870 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5871 | #line 5872 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5872 | #include "confdefs.h" | 
 | 5873 | #include <sys/types.h> | 
 | 5874 | #include <sys/socket.h> | 
 | 5875 | int main() { | 
 | 5876 | struct sockaddr x; | 
 | 5877 | x.sa_len = 0; | 
 | 5878 | ; return 0; } | 
 | 5879 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5880 | if { (eval echo configure:5881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5881 |   rm -rf conftest* | 
 | 5882 |   echo "$ac_t""yes" 1>&6 | 
 | 5883 | 	cat >> confdefs.h <<\EOF | 
 | 5884 | #define HAVE_SOCKADDR_SA_LEN 1 | 
 | 5885 | EOF | 
 | 5886 |  | 
 | 5887 | else | 
 | 5888 |   echo "configure: failed program was:" >&5 | 
 | 5889 |   cat conftest.$ac_ext >&5 | 
 | 5890 |   rm -rf conftest* | 
 | 5891 |   echo "$ac_t""no" 1>&6 | 
 | 5892 | fi | 
 | 5893 | rm -f conftest* | 
 | 5894 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5895 | bad_forward=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5896 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5897 | echo "configure:5898: checking for bad static forward" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5898 | if test "$cross_compiling" = yes; then | 
 | 5899 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 5900 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5901 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5902 | #line 5903 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5903 | #include "confdefs.h" | 
 | 5904 |  | 
 | 5905 | struct s { int a; int b; }; | 
 | 5906 | static struct s foo; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5907 | int foobar() { | 
 | 5908 |  static int random; | 
 | 5909 |  random = (int) &foo; | 
 | 5910 |  return random; | 
 | 5911 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5912 | static struct s foo = { 1, 2 }; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5913 | main() { | 
 | 5914 |  exit(!((int)&foo == foobar())); | 
 | 5915 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5916 |  | 
 | 5917 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5918 | if { (eval echo configure:5919: \"$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] | 5919 | then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5920 |   : | 
 | 5921 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5922 |   echo "configure: failed program was:" >&5 | 
 | 5923 |   cat conftest.$ac_ext >&5 | 
 | 5924 |   rm -fr conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5925 |   cat >> confdefs.h <<\EOF | 
 | 5926 | #define BAD_STATIC_FORWARD 1 | 
 | 5927 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5928 |  bad_forward=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5929 | fi | 
 | 5930 | rm -fr conftest* | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5931 | fi | 
 | 5932 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5933 | echo "$ac_t""$bad_forward" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5934 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5935 | va_list_is_array=no | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5936 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5937 | echo "configure:5938: checking whether va_list is an array" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5938 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5939 | #line 5940 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5940 | #include "confdefs.h" | 
 | 5941 |  | 
 | 5942 | #ifdef HAVE_STDARG_PROTOTYPES | 
 | 5943 | #include <stdarg.h> | 
 | 5944 | #else | 
 | 5945 | #include <varargs.h> | 
 | 5946 | #endif | 
 | 5947 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5948 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5949 | va_list list1, list2; list1 = list2; | 
 | 5950 | ; return 0; } | 
 | 5951 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5952 | if { (eval echo configure:5953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5953 |   : | 
 | 5954 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5955 |   echo "configure: failed program was:" >&5 | 
 | 5956 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5957 |   rm -rf conftest* | 
 | 5958 |   cat >> confdefs.h <<\EOF | 
 | 5959 | #define VA_LIST_IS_ARRAY 1 | 
 | 5960 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5961 |  va_list_is_array=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5962 | fi | 
 | 5963 | rm -f conftest* | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5964 | echo "$ac_t""$va_list_is_array" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5965 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5966 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( | 
 | 5967 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5968 | echo "configure:5969: checking for gethostbyname_r" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5969 | 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] | 5970 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5971 | else | 
 | 5972 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5973 | #line 5974 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5974 | #include "confdefs.h" | 
 | 5975 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 5976 |     which can conflict with char gethostbyname_r(); below.  */ | 
 | 5977 | #include <assert.h> | 
 | 5978 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 5979 | /* We use char because int might match the return type of a gcc2 | 
 | 5980 |     builtin and then its argument prototype would still apply.  */ | 
 | 5981 | char gethostbyname_r(); | 
 | 5982 |  | 
 | 5983 | int main() { | 
 | 5984 |  | 
 | 5985 | /* The GNU C library defines this for functions which it implements | 
 | 5986 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5987 |     something starting with __ and the normal name is an alias.  */ | 
 | 5988 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) | 
 | 5989 | choke me | 
 | 5990 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5991 | gethostbyname_r(); | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5992 | #endif | 
 | 5993 |  | 
 | 5994 | ; return 0; } | 
 | 5995 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 5996 | if { (eval echo configure:5997: \"$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] | 5997 |   rm -rf conftest* | 
 | 5998 |   eval "ac_cv_func_gethostbyname_r=yes" | 
 | 5999 | else | 
 | 6000 |   echo "configure: failed program was:" >&5 | 
 | 6001 |   cat conftest.$ac_ext >&5 | 
 | 6002 |   rm -rf conftest* | 
 | 6003 |   eval "ac_cv_func_gethostbyname_r=no" | 
 | 6004 | fi | 
 | 6005 | rm -f conftest* | 
 | 6006 | fi | 
 | 6007 |  | 
 | 6008 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then | 
 | 6009 |   echo "$ac_t""yes" 1>&6 | 
 | 6010 |    | 
 | 6011 |   cat >> confdefs.h <<\EOF | 
 | 6012 | #define HAVE_GETHOSTBYNAME_R 1 | 
 | 6013 | EOF | 
 | 6014 |  | 
 | 6015 |   echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6016 | echo "configure:6017: checking gethostbyname_r with 6 args" >&5 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6017 |   OLD_CFLAGS=$CFLAGS | 
 | 6018 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
 | 6019 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6020 | #line 6021 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6021 | #include "confdefs.h" | 
 | 6022 |  | 
 | 6023 | #   include <netdb.h> | 
 | 6024 |    | 
 | 6025 | int main() { | 
 | 6026 |  | 
 | 6027 |     char *name; | 
 | 6028 |     struct hostent *he, *res; | 
 | 6029 |     char buffer[2048]; | 
 | 6030 |     int buflen = 2048; | 
 | 6031 |     int h_errnop; | 
 | 6032 |  | 
 | 6033 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
 | 6034 |    | 
 | 6035 | ; return 0; } | 
 | 6036 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6037 | if { (eval echo configure:6038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6038 |   rm -rf conftest* | 
 | 6039 |    | 
 | 6040 |     cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6041 | #define HAVE_GETHOSTBYNAME_R 1 | 
 | 6042 | EOF | 
 | 6043 |  | 
 | 6044 |     cat >> confdefs.h <<\EOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6045 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 | 
 | 6046 | EOF | 
 | 6047 |  | 
 | 6048 |     echo "$ac_t""yes" 1>&6 | 
 | 6049 |    | 
 | 6050 | else | 
 | 6051 |   echo "configure: failed program was:" >&5 | 
 | 6052 |   cat conftest.$ac_ext >&5 | 
 | 6053 |   rm -rf conftest* | 
 | 6054 |    | 
 | 6055 |     echo "$ac_t""no" 1>&6 | 
 | 6056 |     echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6057 | echo "configure:6058: checking gethostbyname_r with 5 args" >&5 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6058 |     cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6059 | #line 6060 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6060 | #include "confdefs.h" | 
 | 6061 |  | 
 | 6062 | #     include <netdb.h> | 
 | 6063 |      | 
 | 6064 | int main() { | 
 | 6065 |  | 
 | 6066 |       char *name; | 
 | 6067 |       struct hostent *he; | 
 | 6068 |       char buffer[2048]; | 
 | 6069 |       int buflen = 2048; | 
 | 6070 |       int h_errnop; | 
 | 6071 |  | 
 | 6072 |       (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
 | 6073 |      | 
 | 6074 | ; return 0; } | 
 | 6075 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6076 | if { (eval echo configure:6077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6077 |   rm -rf conftest* | 
 | 6078 |    | 
 | 6079 |       cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6080 | #define HAVE_GETHOSTBYNAME_R 1 | 
 | 6081 | EOF | 
 | 6082 |  | 
 | 6083 |       cat >> confdefs.h <<\EOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6084 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 | 
 | 6085 | EOF | 
 | 6086 |  | 
 | 6087 |       echo "$ac_t""yes" 1>&6 | 
 | 6088 |      | 
 | 6089 | else | 
 | 6090 |   echo "configure: failed program was:" >&5 | 
 | 6091 |   cat conftest.$ac_ext >&5 | 
 | 6092 |   rm -rf conftest* | 
 | 6093 |    | 
 | 6094 |       echo "$ac_t""no" 1>&6 | 
 | 6095 |       echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6096 | echo "configure:6097: checking gethostbyname_r with 3 args" >&5 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6097 |       cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6098 | #line 6099 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6099 | #include "confdefs.h" | 
 | 6100 |  | 
 | 6101 | #       include <netdb.h> | 
 | 6102 |        | 
 | 6103 | int main() { | 
 | 6104 |  | 
 | 6105 |         char *name; | 
 | 6106 |         struct hostent *he; | 
 | 6107 |         struct hostent_data data; | 
 | 6108 |  | 
 | 6109 |         (void) gethostbyname_r(name, he, &data); | 
 | 6110 |        | 
 | 6111 | ; return 0; } | 
 | 6112 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6113 | if { (eval echo configure:6114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6114 |   rm -rf conftest* | 
 | 6115 |    | 
 | 6116 |         cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6117 | #define HAVE_GETHOSTBYNAME_R 1 | 
 | 6118 | EOF | 
 | 6119 |  | 
 | 6120 |         cat >> confdefs.h <<\EOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6121 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 | 
 | 6122 | EOF | 
 | 6123 |  | 
 | 6124 |         echo "$ac_t""yes" 1>&6 | 
 | 6125 |        | 
 | 6126 | else | 
 | 6127 |   echo "configure: failed program was:" >&5 | 
 | 6128 |   cat conftest.$ac_ext >&5 | 
 | 6129 |   rm -rf conftest* | 
 | 6130 |    | 
 | 6131 |         echo "$ac_t""no" 1>&6 | 
 | 6132 |        | 
 | 6133 | fi | 
 | 6134 | rm -f conftest* | 
 | 6135 |      | 
 | 6136 | fi | 
 | 6137 | rm -f conftest* | 
 | 6138 |    | 
 | 6139 | fi | 
 | 6140 | rm -f conftest* | 
 | 6141 |   CFLAGS=$OLD_CFLAGS | 
 | 6142 |  | 
 | 6143 | else | 
 | 6144 |   echo "$ac_t""no" 1>&6 | 
 | 6145 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6146 |   for ac_func in gethostbyname | 
 | 6147 | do | 
 | 6148 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6149 | echo "configure:6150: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6150 | 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] | 6151 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 6152 | else | 
 | 6153 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6154 | #line 6155 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6155 | #include "confdefs.h" | 
 | 6156 | /* System header to define __stub macros and hopefully few prototypes, | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6157 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6158 | #include <assert.h> | 
 | 6159 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6160 | /* We use char because int might match the return type of a gcc2 | 
 | 6161 |     builtin and then its argument prototype would still apply.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6162 | char $ac_func(); | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6163 |  | 
 | 6164 | int main() { | 
 | 6165 |  | 
 | 6166 | /* The GNU C library defines this for functions which it implements | 
 | 6167 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 6168 |     something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6169 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6170 | choke me | 
 | 6171 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6172 | $ac_func(); | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6173 | #endif | 
 | 6174 |  | 
 | 6175 | ; return 0; } | 
 | 6176 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6177 | if { (eval echo configure:6178: \"$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] | 6178 |   rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6179 |   eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6180 | else | 
 | 6181 |   echo "configure: failed program was:" >&5 | 
 | 6182 |   cat conftest.$ac_ext >&5 | 
 | 6183 |   rm -rf conftest* | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6184 |   eval "ac_cv_func_$ac_func=no" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6185 | fi | 
 | 6186 | rm -f conftest* | 
 | 6187 | fi | 
 | 6188 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6189 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6190 |   echo "$ac_t""yes" 1>&6 | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6191 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 6192 |   cat >> confdefs.h <<EOF | 
 | 6193 | #define $ac_tr_func 1 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6194 | EOF | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6195 |   | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6196 | else | 
 | 6197 |   echo "$ac_t""no" 1>&6 | 
 | 6198 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6199 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6200 |  | 
 | 6201 |  | 
 | 6202 | fi | 
 | 6203 |  | 
 | 6204 |  | 
 | 6205 |  | 
 | 6206 |  | 
 | 6207 |  | 
 | 6208 |  | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6209 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6210 | # checks for system services | 
 | 6211 | # (none yet) | 
 | 6212 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6213 | # Linux requires this for correct f.p. operations | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6214 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6215 | echo "configure:6216: checking for __fpu_control" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6216 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6217 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 6218 | else | 
 | 6219 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6220 | #line 6221 "configure" | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6221 | #include "confdefs.h" | 
 | 6222 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 6223 |     which can conflict with char __fpu_control(); below.  */ | 
 | 6224 | #include <assert.h> | 
 | 6225 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6226 | /* We use char because int might match the return type of a gcc2 | 
 | 6227 |     builtin and then its argument prototype would still apply.  */ | 
 | 6228 | char __fpu_control(); | 
 | 6229 |  | 
 | 6230 | int main() { | 
 | 6231 |  | 
 | 6232 | /* The GNU C library defines this for functions which it implements | 
 | 6233 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 6234 |     something starting with __ and the normal name is an alias.  */ | 
 | 6235 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) | 
 | 6236 | choke me | 
 | 6237 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6238 | __fpu_control(); | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6239 | #endif | 
 | 6240 |  | 
 | 6241 | ; return 0; } | 
 | 6242 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6243 | if { (eval echo configure:6244: \"$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] | 6244 |   rm -rf conftest* | 
 | 6245 |   eval "ac_cv_func___fpu_control=yes" | 
 | 6246 | else | 
 | 6247 |   echo "configure: failed program was:" >&5 | 
 | 6248 |   cat conftest.$ac_ext >&5 | 
 | 6249 |   rm -rf conftest* | 
 | 6250 |   eval "ac_cv_func___fpu_control=no" | 
 | 6251 | fi | 
 | 6252 | rm -f conftest* | 
 | 6253 | fi | 
 | 6254 |  | 
 | 6255 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then | 
 | 6256 |   echo "$ac_t""yes" 1>&6 | 
 | 6257 |   : | 
 | 6258 | else | 
 | 6259 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6260 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6261 | echo "configure:6262: checking for __fpu_control in -lieee" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6262 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6263 | 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] | 6264 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6265 | else | 
 | 6266 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6267 | LIBS="-lieee  $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6268 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6269 | #line 6270 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6270 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6271 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6272 | /* We use char because int might match the return type of a gcc2 | 
 | 6273 |     builtin and then its argument prototype would still apply.  */ | 
 | 6274 | char __fpu_control(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6275 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6276 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6277 | __fpu_control() | 
 | 6278 | ; return 0; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6279 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6280 | if { (eval echo configure:6281: \"$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] | 6281 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6282 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6283 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6284 |   echo "configure: failed program was:" >&5 | 
 | 6285 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6286 |   rm -rf conftest* | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6287 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6288 | fi | 
 | 6289 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6290 | LIBS="$ac_save_LIBS" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6291 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6292 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6293 | 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] | 6294 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6295 |     ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 
 | 6296 |     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6297 |   cat >> confdefs.h <<EOF | 
 | 6298 | #define $ac_tr_lib 1 | 
 | 6299 | EOF | 
 | 6300 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6301 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6302 |  | 
 | 6303 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6304 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6305 | fi | 
 | 6306 |  | 
 | 6307 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6308 | fi | 
 | 6309 |  | 
 | 6310 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6311 | # Check for --with-fpectl | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6312 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6313 | echo "configure:6314: checking for --with-fpectl" >&5 | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6314 | # Check whether --with-fpectl or --without-fpectl was given. | 
 | 6315 | if test "${with_fpectl+set}" = set; then | 
 | 6316 |   withval="$with_fpectl" | 
 | 6317 |    | 
 | 6318 | if test "$withval" != no | 
 | 6319 | then cat >> confdefs.h <<\EOF | 
 | 6320 | #define WANT_SIGFPE_HANDLER 1 | 
 | 6321 | EOF | 
 | 6322 |  echo "$ac_t""yes" 1>&6 | 
 | 6323 | else echo "$ac_t""no" 1>&6 | 
 | 6324 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6325 | else | 
 | 6326 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6327 | fi | 
 | 6328 |  | 
 | 6329 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6330 | # check for --with-libm=... | 
 | 6331 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6332 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 6333 | Darwin) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6334 | next) ;; | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6335 | BeOS) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6336 | *) LIBM=-lm | 
 | 6337 | esac | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6338 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6339 | echo "configure:6340: checking for --with-libm=STRING" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6340 | # Check whether --with-libm or --without-libm was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6341 | if test "${with_libm+set}" = set; then | 
 | 6342 |   withval="$with_libm" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6343 |    | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6344 | if test "$withval" = no | 
 | 6345 | then LIBM= | 
 | 6346 |      echo "$ac_t""force LIBM empty" 1>&6 | 
 | 6347 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6348 | then LIBM=$withval | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6349 |      echo "$ac_t""set LIBM=\"$withval\"" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6350 | 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] | 6351 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6352 | else | 
 | 6353 |   echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6354 | fi | 
 | 6355 |  | 
 | 6356 |  | 
 | 6357 | # check for --with-libc=... | 
 | 6358 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6359 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6360 | echo "configure:6361: checking for --with-libc=STRING" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6361 | # Check whether --with-libc or --without-libc was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6362 | if test "${with_libc+set}" = set; then | 
 | 6363 |   withval="$with_libc" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6364 |    | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6365 | if test "$withval" = no | 
 | 6366 | then LIBC= | 
 | 6367 |      echo "$ac_t""force LIBC empty" 1>&6 | 
 | 6368 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6369 | then LIBC=$withval | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6370 |      echo "$ac_t""set LIBC=\"$withval\"" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6371 | 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] | 6372 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6373 | else | 
 | 6374 |   echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6375 | fi | 
 | 6376 |  | 
 | 6377 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6378 | # check for hypot() in math library | 
 | 6379 | LIBS_SAVE=$LIBS | 
 | 6380 | LIBS="$LIBS $LIBM" | 
 | 6381 | for ac_func in hypot | 
 | 6382 | do | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6383 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6384 | echo "configure:6385: checking for $ac_func" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6385 | 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] | 6386 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6387 | else | 
 | 6388 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6389 | #line 6390 "configure" | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6390 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6391 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 6392 |     which can conflict with char $ac_func(); below.  */ | 
 | 6393 | #include <assert.h> | 
 | 6394 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6395 | /* We use char because int might match the return type of a gcc2 | 
 | 6396 |     builtin and then its argument prototype would still apply.  */ | 
 | 6397 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6398 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6399 | int main() { | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6400 |  | 
 | 6401 | /* The GNU C library defines this for functions which it implements | 
 | 6402 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 6403 |     something starting with __ and the normal name is an alias.  */ | 
 | 6404 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 6405 | choke me | 
 | 6406 | #else | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6407 | $ac_func(); | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6408 | #endif | 
 | 6409 |  | 
 | 6410 | ; return 0; } | 
 | 6411 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6412 | if { (eval echo configure:6413: \"$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] | 6413 |   rm -rf conftest* | 
 | 6414 |   eval "ac_cv_func_$ac_func=yes" | 
 | 6415 | else | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6416 |   echo "configure: failed program was:" >&5 | 
 | 6417 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6418 |   rm -rf conftest* | 
 | 6419 |   eval "ac_cv_func_$ac_func=no" | 
 | 6420 | fi | 
 | 6421 | rm -f conftest* | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6422 | fi | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6423 |  | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6424 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 6425 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6426 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 6427 |   cat >> confdefs.h <<EOF | 
 | 6428 | #define $ac_tr_func 1 | 
 | 6429 | EOF | 
 | 6430 |   | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6431 | else | 
 | 6432 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6433 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6434 | fi | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6435 | done | 
 | 6436 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6437 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6438 | LIBS=$LIBS_SAVE | 
 | 6439 |  | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6440 | # check whether malloc(0) returns NULL or not | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6441 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6442 | echo "configure:6443: checking what malloc(0) returns" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6443 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6444 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 6445 | else | 
 | 6446 |   if test "$cross_compiling" = yes; then | 
 | 6447 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 6448 | else | 
 | 6449 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6450 | #line 6451 "configure" | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6451 | #include "confdefs.h" | 
 | 6452 | #include <stdio.h> | 
 | 6453 | #ifdef HAVE_STDLIB | 
 | 6454 | #include <stdlib.h> | 
 | 6455 | #else | 
 | 6456 | char *malloc(), *realloc(); | 
 | 6457 | int *free(); | 
 | 6458 | #endif | 
 | 6459 | main() { | 
 | 6460 | 	char *p; | 
 | 6461 | 	p = malloc(0); | 
 | 6462 | 	if (p == NULL) exit(1); | 
 | 6463 | 	p = realloc(p, 0); | 
 | 6464 | 	if (p == NULL) exit(1); | 
 | 6465 | 	free(p); | 
 | 6466 | 	exit(0); | 
 | 6467 | } | 
 | 6468 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6469 | if { (eval echo configure:6470: \"$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] | 6470 | then | 
 | 6471 |   ac_cv_malloc_zero=nonnull | 
 | 6472 | else | 
 | 6473 |   echo "configure: failed program was:" >&5 | 
 | 6474 |   cat conftest.$ac_ext >&5 | 
 | 6475 |   rm -fr conftest* | 
 | 6476 |   ac_cv_malloc_zero=null | 
 | 6477 | fi | 
 | 6478 | rm -fr conftest* | 
 | 6479 | fi | 
 | 6480 |  | 
 | 6481 | fi | 
 | 6482 |  | 
 | 6483 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 | 
 | 6484 | if test "$ac_cv_malloc_zero" = null | 
 | 6485 | then | 
 | 6486 |   cat >> confdefs.h <<\EOF | 
 | 6487 | #define MALLOC_ZERO_RETURNS_NULL 1 | 
 | 6488 | EOF | 
 | 6489 |  | 
 | 6490 | fi | 
 | 6491 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6492 | # check for wchar.h | 
 | 6493 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` | 
 | 6494 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6495 | echo "configure:6496: checking for wchar.h" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6496 | 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] | 6497 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 6498 | else | 
 | 6499 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6500 | #line 6501 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6501 | #include "confdefs.h" | 
 | 6502 | #include <wchar.h> | 
 | 6503 | EOF | 
 | 6504 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6505 | { (eval echo configure:6506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6506 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 6507 | if test -z "$ac_err"; then | 
 | 6508 |   rm -rf conftest* | 
 | 6509 |   eval "ac_cv_header_$ac_safe=yes" | 
 | 6510 | else | 
 | 6511 |   echo "$ac_err" >&5 | 
 | 6512 |   echo "configure: failed program was:" >&5 | 
 | 6513 |   cat conftest.$ac_ext >&5 | 
 | 6514 |   rm -rf conftest* | 
 | 6515 |   eval "ac_cv_header_$ac_safe=no" | 
 | 6516 | fi | 
 | 6517 | rm -f conftest* | 
 | 6518 | fi | 
 | 6519 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 6520 |   echo "$ac_t""yes" 1>&6 | 
 | 6521 |   cat >> confdefs.h <<\EOF | 
 | 6522 | #define HAVE_WCHAR_H 1 | 
 | 6523 | EOF | 
 | 6524 |  wchar_h="yes" | 
 | 6525 | else | 
 | 6526 |   echo "$ac_t""no" 1>&6 | 
 | 6527 | wchar_h="no" | 
 | 6528 |  | 
 | 6529 | fi | 
 | 6530 |  | 
 | 6531 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6532 | # determine wchar_t size | 
 | 6533 | if test "$wchar_h" = yes | 
 | 6534 | then | 
 | 6535 |   echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6536 | echo "configure:6537: checking size of wchar_t" >&5 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6537 | if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then | 
 | 6538 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 6539 | else | 
 | 6540 |   if test "$cross_compiling" = yes; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6541 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 6542 | else | 
 | 6543 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6544 | #line 6545 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6545 | #include "confdefs.h" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6546 | #include <stdio.h> | 
 | 6547 | main() | 
 | 6548 | { | 
 | 6549 |   FILE *f=fopen("conftestval", "w"); | 
 | 6550 |   if (!f) exit(1); | 
 | 6551 |   fprintf(f, "%d\n", sizeof(wchar_t)); | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6552 |   exit(0); | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6553 | } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6554 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6555 | if { (eval echo configure:6556: \"$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] | 6556 | then | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6557 |   ac_cv_sizeof_wchar_t=`cat conftestval` | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6558 | else | 
 | 6559 |   echo "configure: failed program was:" >&5 | 
 | 6560 |   cat conftest.$ac_ext >&5 | 
 | 6561 |   rm -fr conftest* | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6562 |   ac_cv_sizeof_wchar_t=0 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6563 | fi | 
 | 6564 | rm -fr conftest* | 
 | 6565 | fi | 
 | 6566 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6567 | fi | 
 | 6568 | echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 | 
 | 6569 | cat >> confdefs.h <<EOF | 
 | 6570 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
 | 6571 | EOF | 
 | 6572 |  | 
 | 6573 |  | 
 | 6574 | fi | 
 | 6575 |  | 
 | 6576 | echo $ac_n "checking what type to use for unicode""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6577 | echo "configure:6578: checking what type to use for unicode" >&5 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6578 | # Check whether --enable-unicode or --disable-unicode was given. | 
 | 6579 | if test "${enable_unicode+set}" = set; then | 
 | 6580 |   enableval="$enable_unicode" | 
 | 6581 |   : | 
 | 6582 | else | 
 | 6583 |   enable_unicode=yes | 
 | 6584 | fi | 
 | 6585 |  | 
 | 6586 |  | 
 | 6587 | if test $enable_unicode = yes | 
 | 6588 | then | 
| Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 6589 |   # Without any arguments, Py_UNICODE defaults to two-byte mode | 
 | 6590 |   enable_unicode="ucs2" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6591 | fi | 
 | 6592 |  | 
 | 6593 | case "$enable_unicode" in | 
 | 6594 | ucs2) unicode_size="2" | 
 | 6595 |       cat >> confdefs.h <<\EOF | 
 | 6596 | #define Py_UNICODE_SIZE 2 | 
 | 6597 | EOF | 
 | 6598 |  | 
 | 6599 |       ;; | 
 | 6600 | ucs4) unicode_size="4" | 
 | 6601 |       cat >> confdefs.h <<\EOF | 
 | 6602 | #define Py_UNICODE_SIZE 4 | 
 | 6603 | EOF | 
 | 6604 |  | 
 | 6605 |       ;; | 
 | 6606 | esac | 
 | 6607 |  | 
 | 6608 | if test "$enable_unicode" = "no" | 
 | 6609 | then | 
 | 6610 |   echo "$ac_t""not used" 1>&6 | 
 | 6611 | else | 
 | 6612 |   cat >> confdefs.h <<\EOF | 
 | 6613 | #define Py_USING_UNICODE 1 | 
 | 6614 | EOF | 
 | 6615 |  | 
 | 6616 |   if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" | 
 | 6617 |   then | 
 | 6618 |     PY_UNICODE_TYPE="wchar_t" | 
 | 6619 |     cat >> confdefs.h <<\EOF | 
 | 6620 | #define HAVE_USABLE_WCHAR_T 1 | 
 | 6621 | EOF | 
 | 6622 |  | 
 | 6623 |     cat >> confdefs.h <<\EOF | 
 | 6624 | #define PY_UNICODE_TYPE wchar_t | 
 | 6625 | EOF | 
 | 6626 |  | 
 | 6627 |   elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
 | 6628 |   then | 
 | 6629 |        PY_UNICODE_TYPE="unsigned short" | 
 | 6630 |        cat >> confdefs.h <<\EOF | 
 | 6631 | #define PY_UNICODE_TYPE unsigned short | 
 | 6632 | EOF | 
 | 6633 |  | 
 | 6634 |   elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
 | 6635 |   then | 
 | 6636 |        PY_UNICODE_TYPE="unsigned long" | 
 | 6637 |        cat >> confdefs.h <<\EOF | 
 | 6638 | #define PY_UNICODE_TYPE unsigned long | 
 | 6639 | EOF | 
 | 6640 |  | 
 | 6641 |   else | 
 | 6642 |        PY_UNICODE_TYPE="no type found" | 
 | 6643 |   fi | 
 | 6644 |   echo "$ac_t""$PY_UNICODE_TYPE" 1>&6 | 
 | 6645 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6646 |  | 
 | 6647 | # check for endianness | 
 | 6648 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6649 | echo "configure:6650: checking whether byte ordering is bigendian" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6650 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6651 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 6652 | else | 
 | 6653 |   ac_cv_c_bigendian=unknown | 
 | 6654 | # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 6655 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6656 | #line 6657 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6657 | #include "confdefs.h" | 
 | 6658 | #include <sys/types.h> | 
 | 6659 | #include <sys/param.h> | 
 | 6660 | int main() { | 
 | 6661 |  | 
 | 6662 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
 | 6663 |  bogus endian macros | 
 | 6664 | #endif | 
 | 6665 | ; return 0; } | 
 | 6666 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6667 | if { (eval echo configure:6668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6668 |   rm -rf conftest* | 
 | 6669 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
 | 6670 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6671 | #line 6672 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6672 | #include "confdefs.h" | 
 | 6673 | #include <sys/types.h> | 
 | 6674 | #include <sys/param.h> | 
 | 6675 | int main() { | 
 | 6676 |  | 
 | 6677 | #if BYTE_ORDER != BIG_ENDIAN | 
 | 6678 |  not big endian | 
 | 6679 | #endif | 
 | 6680 | ; return 0; } | 
 | 6681 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6682 | if { (eval echo configure:6683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6683 |   rm -rf conftest* | 
 | 6684 |   ac_cv_c_bigendian=yes | 
 | 6685 | else | 
 | 6686 |   echo "configure: failed program was:" >&5 | 
 | 6687 |   cat conftest.$ac_ext >&5 | 
 | 6688 |   rm -rf conftest* | 
 | 6689 |   ac_cv_c_bigendian=no | 
 | 6690 | fi | 
 | 6691 | rm -f conftest* | 
 | 6692 | else | 
 | 6693 |   echo "configure: failed program was:" >&5 | 
 | 6694 |   cat conftest.$ac_ext >&5 | 
 | 6695 | fi | 
 | 6696 | rm -f conftest* | 
 | 6697 | if test $ac_cv_c_bigendian = unknown; then | 
 | 6698 | if test "$cross_compiling" = yes; then | 
 | 6699 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 6700 | else | 
 | 6701 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6702 | #line 6703 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6703 | #include "confdefs.h" | 
 | 6704 | main () { | 
 | 6705 |   /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 6706 |   union | 
 | 6707 |   { | 
 | 6708 |     long l; | 
 | 6709 |     char c[sizeof (long)]; | 
 | 6710 |   } u; | 
 | 6711 |   u.l = 1; | 
 | 6712 |   exit (u.c[sizeof (long) - 1] == 1); | 
 | 6713 | } | 
 | 6714 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6715 | if { (eval echo configure:6716: \"$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] | 6716 | then | 
 | 6717 |   ac_cv_c_bigendian=no | 
 | 6718 | else | 
 | 6719 |   echo "configure: failed program was:" >&5 | 
 | 6720 |   cat conftest.$ac_ext >&5 | 
 | 6721 |   rm -fr conftest* | 
 | 6722 |   ac_cv_c_bigendian=yes | 
 | 6723 | fi | 
 | 6724 | rm -fr conftest* | 
 | 6725 | fi | 
 | 6726 |  | 
 | 6727 | fi | 
 | 6728 | fi | 
 | 6729 |  | 
 | 6730 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | 
 | 6731 | if test $ac_cv_c_bigendian = yes; then | 
 | 6732 |   cat >> confdefs.h <<\EOF | 
 | 6733 | #define WORDS_BIGENDIAN 1 | 
 | 6734 | EOF | 
 | 6735 |  | 
 | 6736 | fi | 
 | 6737 |  | 
 | 6738 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6739 | # Check whether right shifting a negative integer extends the sign bit | 
 | 6740 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
 | 6741 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6742 | echo "configure:6743: checking whether right shift extends the sign bit" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6743 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6744 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 6745 | else | 
 | 6746 |    | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6747 | if test "$cross_compiling" = yes; then | 
 | 6748 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 6749 | else | 
 | 6750 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6751 | #line 6752 "configure" | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6752 | #include "confdefs.h" | 
 | 6753 |  | 
 | 6754 | int main() | 
 | 6755 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6756 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6757 | } | 
 | 6758 |  | 
 | 6759 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6760 | if { (eval echo configure:6761: \"$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] | 6761 | then | 
 | 6762 |   ac_cv_rshift_extends_sign=yes | 
 | 6763 | else | 
 | 6764 |   echo "configure: failed program was:" >&5 | 
 | 6765 |   cat conftest.$ac_ext >&5 | 
 | 6766 |   rm -fr conftest* | 
 | 6767 |   ac_cv_rshift_extends_sign=no | 
 | 6768 | fi | 
 | 6769 | rm -fr conftest* | 
 | 6770 | fi | 
 | 6771 |  | 
 | 6772 | fi | 
 | 6773 |  | 
 | 6774 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 | 
 | 6775 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6776 | then | 
 | 6777 |   cat >> confdefs.h <<\EOF | 
 | 6778 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 | 
 | 6779 | EOF | 
 | 6780 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6781 | fi | 
 | 6782 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6783 | # check for getc_unlocked and related locking functions | 
 | 6784 | echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6785 | echo "configure:6786: checking for getc_unlocked() and friends" >&5 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6786 | if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then | 
 | 6787 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 6788 | else | 
 | 6789 |    | 
 | 6790 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6791 | #line 6792 "configure" | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6792 | #include "confdefs.h" | 
 | 6793 | #include <stdio.h> | 
 | 6794 | int main() { | 
 | 6795 |  | 
 | 6796 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 6797 | 	flockfile(f); | 
 | 6798 | 	getc_unlocked(f); | 
 | 6799 | 	funlockfile(f); | 
 | 6800 |  | 
 | 6801 | ; return 0; } | 
 | 6802 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6803 | if { (eval echo configure:6804: \"$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] | 6804 |   rm -rf conftest* | 
 | 6805 |   ac_cv_have_getc_unlocked=yes | 
 | 6806 | else | 
 | 6807 |   echo "configure: failed program was:" >&5 | 
 | 6808 |   cat conftest.$ac_ext >&5 | 
 | 6809 |   rm -rf conftest* | 
 | 6810 |   ac_cv_have_getc_unlocked=no | 
 | 6811 | fi | 
 | 6812 | rm -f conftest* | 
 | 6813 | fi | 
 | 6814 |  | 
 | 6815 | echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6 | 
 | 6816 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 6817 | then | 
 | 6818 |   cat >> confdefs.h <<\EOF | 
 | 6819 | #define HAVE_GETC_UNLOCKED 1 | 
 | 6820 | EOF | 
 | 6821 |  | 
 | 6822 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6823 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6824 | # check for readline 4.2 | 
 | 6825 | echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6826 | echo "configure:6827: checking for rl_completion_matches in -lreadline" >&5 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6827 | ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'` | 
 | 6828 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 6829 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 6830 | else | 
 | 6831 |   ac_save_LIBS="$LIBS" | 
 | 6832 | LIBS="-lreadline -ltermcap $LIBS" | 
 | 6833 | cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6834 | #line 6835 "configure" | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6835 | #include "confdefs.h" | 
 | 6836 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6837 | /* We use char because int might match the return type of a gcc2 | 
 | 6838 |     builtin and then its argument prototype would still apply.  */ | 
 | 6839 | char rl_completion_matches(); | 
 | 6840 |  | 
 | 6841 | int main() { | 
 | 6842 | rl_completion_matches() | 
 | 6843 | ; return 0; } | 
 | 6844 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6845 | if { (eval echo configure:6846: \"$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] | 6846 |   rm -rf conftest* | 
 | 6847 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 6848 | else | 
 | 6849 |   echo "configure: failed program was:" >&5 | 
 | 6850 |   cat conftest.$ac_ext >&5 | 
 | 6851 |   rm -rf conftest* | 
 | 6852 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 6853 | fi | 
 | 6854 | rm -f conftest* | 
 | 6855 | LIBS="$ac_save_LIBS" | 
 | 6856 |  | 
 | 6857 | fi | 
 | 6858 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 6859 |   echo "$ac_t""yes" 1>&6 | 
 | 6860 |   cat >> confdefs.h <<\EOF | 
 | 6861 | #define HAVE_RL_COMPLETION_MATCHES 1 | 
 | 6862 | EOF | 
 | 6863 |  | 
 | 6864 | else | 
 | 6865 |   echo "$ac_t""no" 1>&6 | 
 | 6866 | fi | 
 | 6867 |  | 
 | 6868 |  | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6869 | echo $ac_n "checking for broken nice()""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6870 | echo "configure:6871: checking for broken nice()" >&5 | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6871 | if eval "test \"`echo '$''{'ac_cv_broken_nice'+set}'`\" = set"; then | 
 | 6872 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 6873 | else | 
 | 6874 |    | 
 | 6875 | if test "$cross_compiling" = yes; then | 
 | 6876 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 6877 | else | 
 | 6878 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6879 | #line 6880 "configure" | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6880 | #include "confdefs.h" | 
 | 6881 |  | 
 | 6882 | int main() | 
 | 6883 | { | 
 | 6884 | 	int val1 = nice(1); | 
 | 6885 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 6886 | 		exit(0); | 
 | 6887 | 	exit(1); | 
 | 6888 | } | 
 | 6889 |  | 
 | 6890 | EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6891 | if { (eval echo configure:6892: \"$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] | 6892 | then | 
 | 6893 |   ac_cv_broken_nice=yes | 
 | 6894 | else | 
 | 6895 |   echo "configure: failed program was:" >&5 | 
 | 6896 |   cat conftest.$ac_ext >&5 | 
 | 6897 |   rm -fr conftest* | 
 | 6898 |   ac_cv_broken_nice=no | 
 | 6899 | fi | 
 | 6900 | rm -fr conftest* | 
 | 6901 | fi | 
 | 6902 |  | 
 | 6903 | fi | 
 | 6904 |  | 
 | 6905 | echo "$ac_t""$ac_cv_broken_nice" 1>&6 | 
 | 6906 | if test "$ac_cv_broken_nice" = yes | 
 | 6907 | then | 
 | 6908 |   cat >> confdefs.h <<\EOF | 
 | 6909 | #define HAVE_BROKEN_NICE 1 | 
 | 6910 | EOF | 
 | 6911 |  | 
 | 6912 | fi | 
 | 6913 |  | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6914 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! | 
 | 6915 | # Add sys/socket.h to confdefs.h | 
 | 6916 | cat >> confdefs.h <<\EOF | 
 | 6917 | #ifdef HAVE_SYS_SOCKET_H | 
 | 6918 | #include <sys/socket.h> | 
 | 6919 | #endif | 
 | 6920 | EOF | 
 | 6921 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6922 | echo "configure:6923: checking for socklen_t" >&5 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6923 | 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] | 6924 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 6925 | else | 
 | 6926 |   cat > conftest.$ac_ext <<EOF | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6927 | #line 6928 "configure" | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6928 | #include "confdefs.h" | 
 | 6929 | #include <sys/types.h> | 
 | 6930 | #if STDC_HEADERS | 
 | 6931 | #include <stdlib.h> | 
 | 6932 | #include <stddef.h> | 
 | 6933 | #endif | 
 | 6934 | EOF | 
 | 6935 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 6936 |   egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
 | 6937 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6938 |   ac_cv_type_socklen_t=yes | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6939 | else | 
 | 6940 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6941 |   ac_cv_type_socklen_t=no | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6942 | fi | 
 | 6943 | rm -f conftest* | 
 | 6944 |  | 
 | 6945 | fi | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6946 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 | 
 | 6947 | if test $ac_cv_type_socklen_t = no; then | 
 | 6948 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6949 | #define socklen_t int | 
 | 6950 | EOF | 
 | 6951 |  | 
 | 6952 | fi | 
 | 6953 |  | 
 | 6954 |  | 
| Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 6955 | # Add Python/ prefix to LIBOBJS | 
 | 6956 | libobjs=$LIBOBJS | 
 | 6957 | LIBOBJS= | 
 | 6958 | for obj in $libobjs; do | 
 | 6959 |     LIBOBJS="$LIBOBJS Python/$obj" | 
 | 6960 | done | 
 | 6961 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6962 | #AC_MSG_CHECKING(for Modules/Setup) | 
 | 6963 | #if test ! -f Modules/Setup ; then | 
 | 6964 | #    if test ! -d Modules ; then | 
 | 6965 | #        mkdir Modules | 
 | 6966 | #    fi | 
 | 6967 | #    cp "$srcdir/Modules/Setup.dist" Modules/Setup | 
 | 6968 | #    AC_MSG_RESULT(creating) | 
 | 6969 | #else | 
 | 6970 | #    AC_MSG_RESULT(already exists) | 
 | 6971 | #fi | 
 | 6972 |  | 
 | 6973 |  | 
| Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 6974 | SRCDIRS="Parser Grammar Objects Python Modules" | 
| Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 6975 | echo $ac_n "checking for build directories""... $ac_c" 1>&6 | 
| Martin v. Löwis | b926866 | 2001-07-18 16:24:30 +0000 | [diff] [blame] | 6976 | echo "configure:6977: checking for build directories" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6977 | for dir in $SRCDIRS; do | 
 | 6978 |     if test ! -d $dir; then | 
 | 6979 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 6980 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6981 | done | 
 | 6982 | echo "$ac_t""done" 1>&6 | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 6983 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6984 | # generate output files | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6985 | trap '' 1 2 15 | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6986 | cat > confcache <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6987 | # This file is a shell script that caches the results of configure | 
 | 6988 | # tests run on this system so they can be shared between configure | 
 | 6989 | # scripts and configure runs.  It is not useful on other systems. | 
 | 6990 | # If it contains results you don't want to keep, you may remove or edit it. | 
 | 6991 | # | 
 | 6992 | # By default, configure uses ./config.cache as the cache file, | 
 | 6993 | # creating it if it does not exist already.  You can give configure | 
 | 6994 | # the --cache-file=FILE option to use a different cache file; that is | 
 | 6995 | # what configure does when it calls configure scripts in | 
 | 6996 | # subdirectories, so they share the cache. | 
 | 6997 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
 | 6998 | # config.status only pays attention to the cache file if you give it the | 
 | 6999 | # --recheck option to rerun configure. | 
 | 7000 | # | 
 | 7001 | EOF | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7002 | # The following way of writing the cache mishandles newlines in values, | 
 | 7003 | # but we know of no workaround that is simple, portable, and efficient. | 
 | 7004 | # So, don't put newlines in cache variables' values. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7005 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 7006 | # 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] | 7007 | (set) 2>&1 | | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7008 |   case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7009 |   *ac_space=\ *) | 
 | 7010 |     # `set' does not quote correctly, so add quotes (double-quote substitution | 
 | 7011 |     # turns \\\\ into \\, and sed turns \\ into \). | 
 | 7012 |     sed -n \ | 
 | 7013 |       -e "s/'/'\\\\''/g" \ | 
 | 7014 |       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
 | 7015 |     ;; | 
 | 7016 |   *) | 
 | 7017 |     # `set' quotes correctly as required by POSIX, so do not add quotes. | 
 | 7018 |     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
 | 7019 |     ;; | 
 | 7020 |   esac >> confcache | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7021 | if cmp -s $cache_file confcache; then | 
 | 7022 |   : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7023 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7024 |   if test -w $cache_file; then | 
 | 7025 |     echo "updating cache $cache_file" | 
 | 7026 |     cat confcache > $cache_file | 
 | 7027 |   else | 
 | 7028 |     echo "not updating unwritable cache $cache_file" | 
 | 7029 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7030 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7031 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7032 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7033 | 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] | 7034 |  | 
 | 7035 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 7036 | # Let make expand exec_prefix. | 
 | 7037 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7038 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7039 | # Any assignment to VPATH causes Sun make to only execute | 
 | 7040 | # the first set of double-colon rules, so remove it if not needed. | 
 | 7041 | # If there is a colon in the path, we need to keep it. | 
 | 7042 | if test "x$srcdir" = x.; then | 
 | 7043 |   ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d' | 
 | 7044 | fi | 
 | 7045 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7046 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7047 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7048 | DEFS=-DHAVE_CONFIG_H | 
 | 7049 |  | 
 | 7050 | # Without the "./", some shells look in PATH for config.status. | 
 | 7051 | : ${CONFIG_STATUS=./config.status} | 
 | 7052 |  | 
 | 7053 | echo creating $CONFIG_STATUS | 
 | 7054 | rm -f $CONFIG_STATUS | 
 | 7055 | cat > $CONFIG_STATUS <<EOF | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7056 | #! /bin/sh | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7057 | # Generated automatically by configure. | 
 | 7058 | # Run this file to recreate the current configuration. | 
 | 7059 | # This directory was configured as follows, | 
 | 7060 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 7061 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7062 | # $0 $ac_configure_args | 
 | 7063 | # | 
 | 7064 | # Compiler output produced by configure, useful for debugging | 
 | 7065 | # configure, is in ./config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7066 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7067 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7068 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7069 | do | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7070 |   case "\$ac_option" in | 
 | 7071 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7072 |     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | 
 | 7073 |     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] | 7074 |   -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7075 |     echo "$CONFIG_STATUS generated by autoconf version 2.13" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7076 |     exit 0 ;; | 
 | 7077 |   -help | --help | --hel | --he | --h) | 
 | 7078 |     echo "\$ac_cs_usage"; exit 0 ;; | 
 | 7079 |   *) echo "\$ac_cs_usage"; exit 1 ;; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7080 |   esac | 
 | 7081 | done | 
 | 7082 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7083 | ac_given_srcdir=$srcdir | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7084 | ac_given_INSTALL="$INSTALL" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7085 |  | 
| Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 7086 | trap 'rm -fr `echo "Makefile.pre Modules/Setup.config config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7087 | EOF | 
 | 7088 | cat >> $CONFIG_STATUS <<EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7089 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7090 | # Protect against being on the right side of a sed subst in config.status. | 
 | 7091 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | 
 | 7092 |  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7093 | $ac_vpsub | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7094 | $extrasub | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7095 | s%@SHELL@%$SHELL%g | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7096 | s%@CFLAGS@%$CFLAGS%g | 
 | 7097 | s%@CPPFLAGS@%$CPPFLAGS%g | 
 | 7098 | s%@CXXFLAGS@%$CXXFLAGS%g | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7099 | s%@FFLAGS@%$FFLAGS%g | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7100 | s%@DEFS@%$DEFS%g | 
 | 7101 | s%@LDFLAGS@%$LDFLAGS%g | 
 | 7102 | s%@LIBS@%$LIBS%g | 
 | 7103 | s%@exec_prefix@%$exec_prefix%g | 
 | 7104 | s%@prefix@%$prefix%g | 
 | 7105 | s%@program_transform_name@%$program_transform_name%g | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7106 | s%@bindir@%$bindir%g | 
 | 7107 | s%@sbindir@%$sbindir%g | 
 | 7108 | s%@libexecdir@%$libexecdir%g | 
 | 7109 | s%@datadir@%$datadir%g | 
 | 7110 | s%@sysconfdir@%$sysconfdir%g | 
 | 7111 | s%@sharedstatedir@%$sharedstatedir%g | 
 | 7112 | s%@localstatedir@%$localstatedir%g | 
 | 7113 | s%@libdir@%$libdir%g | 
 | 7114 | s%@includedir@%$includedir%g | 
 | 7115 | s%@oldincludedir@%$oldincludedir%g | 
 | 7116 | s%@infodir@%$infodir%g | 
 | 7117 | s%@mandir@%$mandir%g | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 7118 | s%@VERSION@%$VERSION%g | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 7119 | s%@CONFIG_ARGS@%$CONFIG_ARGS%g | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 7120 | s%@MACHDEP@%$MACHDEP%g | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7121 | s%@SGI_ABI@%$SGI_ABI%g | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 7122 | s%@CXX@%$CXX%g | 
| Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 7123 | s%@MAINOBJ@%$MAINOBJ%g | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7124 | s%@CC@%$CC%g | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7125 | s%@EXEEXT@%$EXEEXT%g | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7126 | s%@LIBRARY@%$LIBRARY%g | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7127 | s%@LDLIBRARY@%$LDLIBRARY%g | 
| Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 7128 | s%@DLLLIBRARY@%$DLLLIBRARY%g | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 7129 | s%@LINKCC@%$LINKCC%g | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7130 | s%@RANLIB@%$RANLIB%g | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7131 | s%@AR@%$AR%g | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7132 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7133 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7134 | s%@INSTALL_DATA@%$INSTALL_DATA%g | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7135 | s%@LN@%$LN%g | 
| Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 7136 | s%@OPT@%$OPT%g | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7137 | s%@CPP@%$CPP%g | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7138 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7139 | s%@SO@%$SO%g | 
 | 7140 | s%@LDSHARED@%$LDSHARED%g | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7141 | s%@BLDSHARED@%$BLDSHARED%g | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7142 | s%@CCSHARED@%$CCSHARED%g | 
 | 7143 | s%@LINKFORSHARED@%$LINKFORSHARED%g | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7144 | s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7145 | s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g | 
 | 7146 | s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 7147 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 7148 | s%@LDLAST@%$LDLAST%g | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 7149 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7150 | s%@DLINCLDIR@%$DLINCLDIR%g | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 7151 | s%@DYNLOADFILE@%$DYNLOADFILE%g | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 7152 | s%@MACHDEP_OBJS@%$MACHDEP_OBJS%g | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7153 | s%@LIBOBJS@%$LIBOBJS%g | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 7154 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g | 
 | 7155 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g | 
 | 7156 | 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] | 7157 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 7158 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7159 | s%@LIBM@%$LIBM%g | 
 | 7160 | s%@LIBC@%$LIBC%g | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7161 | s%@SRCDIRS@%$SRCDIRS%g | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7162 |  | 
 | 7163 | CEOF | 
 | 7164 | EOF | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7165 |  | 
 | 7166 | cat >> $CONFIG_STATUS <<\EOF | 
 | 7167 |  | 
 | 7168 | # Split the substitutions into bite-sized pieces for seds with | 
 | 7169 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
 | 7170 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | 
 | 7171 | ac_file=1 # Number of current file. | 
 | 7172 | ac_beg=1 # First line for current file. | 
 | 7173 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | 
 | 7174 | ac_more_lines=: | 
 | 7175 | ac_sed_cmds="" | 
 | 7176 | while $ac_more_lines; do | 
 | 7177 |   if test $ac_beg -gt 1; then | 
 | 7178 |     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | 
 | 7179 |   else | 
 | 7180 |     sed "${ac_end}q" conftest.subs > conftest.s$ac_file | 
 | 7181 |   fi | 
 | 7182 |   if test ! -s conftest.s$ac_file; then | 
 | 7183 |     ac_more_lines=false | 
 | 7184 |     rm -f conftest.s$ac_file | 
 | 7185 |   else | 
 | 7186 |     if test -z "$ac_sed_cmds"; then | 
 | 7187 |       ac_sed_cmds="sed -f conftest.s$ac_file" | 
 | 7188 |     else | 
 | 7189 |       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | 
 | 7190 |     fi | 
 | 7191 |     ac_file=`expr $ac_file + 1` | 
 | 7192 |     ac_beg=$ac_end | 
 | 7193 |     ac_end=`expr $ac_end + $ac_max_sed_cmds` | 
 | 7194 |   fi | 
 | 7195 | done | 
 | 7196 | if test -z "$ac_sed_cmds"; then | 
 | 7197 |   ac_sed_cmds=cat | 
 | 7198 | fi | 
 | 7199 | EOF | 
 | 7200 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7201 | cat >> $CONFIG_STATUS <<EOF | 
 | 7202 |  | 
| Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 7203 | CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"} | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7204 | EOF | 
 | 7205 | cat >> $CONFIG_STATUS <<\EOF | 
 | 7206 | 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] | 7207 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7208 |   case "$ac_file" in | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7209 |   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7210 |        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
 | 7211 |   *) ac_file_in="${ac_file}.in" ;; | 
 | 7212 |   esac | 
 | 7213 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7214 |   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7215 |  | 
 | 7216 |   # Remove last slash and all that follows it.  Not all systems have dirname. | 
 | 7217 |   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
 | 7218 |   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
 | 7219 |     # The file is in a subdirectory. | 
 | 7220 |     test ! -d "$ac_dir" && mkdir "$ac_dir" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7221 |     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7222 |     # A "../" for each directory in $ac_dir_suffix. | 
 | 7223 |     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | 
 | 7224 |   else | 
 | 7225 |     ac_dir_suffix= ac_dots= | 
 | 7226 |   fi | 
 | 7227 |  | 
 | 7228 |   case "$ac_given_srcdir" in | 
 | 7229 |   .)  srcdir=. | 
 | 7230 |       if test -z "$ac_dots"; then top_srcdir=. | 
 | 7231 |       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | 
 | 7232 |   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | 
 | 7233 |   *) # Relative path. | 
 | 7234 |     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | 
 | 7235 |     top_srcdir="$ac_dots$ac_given_srcdir" ;; | 
 | 7236 |   esac | 
 | 7237 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7238 |   case "$ac_given_INSTALL" in | 
 | 7239 |   [/$]*) INSTALL="$ac_given_INSTALL" ;; | 
 | 7240 |   *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 
 | 7241 |   esac | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7242 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7243 |   echo creating "$ac_file" | 
 | 7244 |   rm -f "$ac_file" | 
 | 7245 |   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | 
 | 7246 |   case "$ac_file" in | 
 | 7247 |   *Makefile*) ac_comsub="1i\\ | 
 | 7248 | # $configure_input" ;; | 
 | 7249 |   *) ac_comsub= ;; | 
 | 7250 |   esac | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7251 |  | 
 | 7252 |   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] | 7253 |   sed -e "$ac_comsub | 
 | 7254 | s%@configure_input@%$configure_input%g | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7255 | s%@srcdir@%$srcdir%g | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7256 | s%@top_srcdir@%$top_srcdir%g | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7257 | s%@INSTALL@%$INSTALL%g | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7258 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7259 | fi; done | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7260 | rm -f conftest.s* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7261 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7262 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
 | 7263 | # 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] | 7264 | # | 
 | 7265 | # ac_d sets the value in "#define NAME VALUE" lines. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7266 | ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)' | 
 | 7267 | ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7268 | ac_dC='\3' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7269 | ac_dD='%g' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7270 | # 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] | 7271 | ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)' | 
 | 7272 | ac_uB='\([ 	]\)%\1#\2define\3' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7273 | ac_uC=' ' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7274 | ac_uD='\4%g' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7275 | # 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] | 7276 | ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)' | 
 | 7277 | ac_eB='$%\1#\2define\3' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7278 | ac_eC=' ' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7279 | ac_eD='%g' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7280 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7281 | if test "${CONFIG_HEADERS+set}" != set; then | 
 | 7282 | EOF | 
 | 7283 | cat >> $CONFIG_STATUS <<EOF | 
 | 7284 |   CONFIG_HEADERS="config.h" | 
 | 7285 | EOF | 
 | 7286 | cat >> $CONFIG_STATUS <<\EOF | 
 | 7287 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7288 | 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] | 7289 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7290 |   case "$ac_file" in | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7291 |   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7292 |        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
 | 7293 |   *) ac_file_in="${ac_file}.in" ;; | 
 | 7294 |   esac | 
 | 7295 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7296 |   echo creating $ac_file | 
 | 7297 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7298 |   rm -f conftest.frag conftest.in conftest.out | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7299 |   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | 
 | 7300 |   cat $ac_file_inputs > conftest.in | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7301 |  | 
 | 7302 | EOF | 
 | 7303 |  | 
 | 7304 | # Transform confdefs.h into a sed script conftest.vals that substitutes | 
 | 7305 | # 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] | 7306 | # 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] | 7307 | # Protect against being in an unquoted here document in config.status. | 
 | 7308 | rm -f conftest.vals | 
 | 7309 | cat > conftest.hdr <<\EOF | 
 | 7310 | s/[\\&%]/\\&/g | 
 | 7311 | s%[\\$`]%\\&%g | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7312 | 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] | 7313 | s%ac_d%ac_u%gp | 
 | 7314 | s%ac_u%ac_e%gp | 
 | 7315 | EOF | 
 | 7316 | sed -n -f conftest.hdr confdefs.h > conftest.vals | 
 | 7317 | rm -f conftest.hdr | 
 | 7318 |  | 
 | 7319 | # This sed command replaces #undef with comments.  This is necessary, for | 
 | 7320 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
 | 7321 | # on some systems where configure will not decide to define it. | 
 | 7322 | cat >> conftest.vals <<\EOF | 
 | 7323 | s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | 
 | 7324 | EOF | 
 | 7325 |  | 
 | 7326 | # Break up conftest.vals because some shells have a limit on | 
 | 7327 | # 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] | 7328 |  | 
 | 7329 | rm -f conftest.tail | 
 | 7330 | while : | 
 | 7331 | do | 
 | 7332 |   ac_lines=`grep -c . conftest.vals` | 
 | 7333 |   # grep -c gives empty output for an empty file on some AIX systems. | 
 | 7334 |   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | 
 | 7335 |   # Write a limited-size here document to conftest.frag. | 
 | 7336 |   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | 
 | 7337 |   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | 
 | 7338 |   echo 'CEOF | 
 | 7339 |   sed -f conftest.frag conftest.in > conftest.out | 
 | 7340 |   rm -f conftest.in | 
 | 7341 |   mv conftest.out conftest.in | 
 | 7342 | ' >> $CONFIG_STATUS | 
 | 7343 |   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | 
 | 7344 |   rm -f conftest.vals | 
 | 7345 |   mv conftest.tail conftest.vals | 
 | 7346 | done | 
 | 7347 | rm -f conftest.vals | 
 | 7348 |  | 
 | 7349 | cat >> $CONFIG_STATUS <<\EOF | 
 | 7350 |   rm -f conftest.frag conftest.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7351 |   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7352 |   cat conftest.in >> conftest.h | 
 | 7353 |   rm -f conftest.in | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7354 |   if cmp -s $ac_file conftest.h 2>/dev/null; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7355 |     echo "$ac_file is unchanged" | 
 | 7356 |     rm -f conftest.h | 
 | 7357 |   else | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7358 |     # Remove last slash and all that follows it.  Not all systems have dirname. | 
 | 7359 |       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
 | 7360 |       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
 | 7361 |       # The file is in a subdirectory. | 
 | 7362 |       test ! -d "$ac_dir" && mkdir "$ac_dir" | 
 | 7363 |     fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7364 |     rm -f $ac_file | 
 | 7365 |     mv conftest.h $ac_file | 
 | 7366 |   fi | 
 | 7367 | fi; done | 
 | 7368 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7369 | EOF | 
 | 7370 | cat >> $CONFIG_STATUS <<EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7371 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7372 | EOF | 
 | 7373 | cat >> $CONFIG_STATUS <<\EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7374 |  | 
 | 7375 | exit 0 | 
 | 7376 | EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7377 | chmod +x $CONFIG_STATUS | 
 | 7378 | rm -fr confdefs* $ac_clean_files | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7379 | 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] | 7380 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7381 |  | 
 | 7382 | echo "creating Setup" | 
 | 7383 | if test ! -f Modules/Setup | 
 | 7384 | then | 
 | 7385 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 7386 | fi | 
 | 7387 |  | 
 | 7388 | echo "creating Setup.local" | 
 | 7389 | if test ! -f Modules/Setup.local | 
 | 7390 | then | 
 | 7391 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 7392 | fi | 
 | 7393 |  | 
 | 7394 | echo "creating Makefile" | 
 | 7395 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
 | 7396 | 			-s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 7397 | 			Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7398 | mv config.c Modules |