blob: 8f6beb2477ad78b50142c3b76da9fd9a3c1e50e4 [file] [log] [blame]
Guido van Rossum7f43da71994-08-01 12:15:30 +00001#!/bin/sh
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002
Guido van Rossumda88dad1995-01-26 00:46:29 +00003# From configure.in Revision: 1.18
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004
Guido van Rossum627b2d71993-12-24 10:39:16 +00005# Guess values for system-dependent variables and create Makefiles.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006# Generated automatically using autoconf version 2.0
7# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Guido van Rossum627b2d71993-12-24 10:39:16 +000011
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012# Defaults:
13ac_help=
14ac_default_prefix=/usr/local
15# Any additions from configure.in:
16ac_help="$ac_help
17--without-gcc never use gcc"
18ac_help="$ac_help
19--with-readline=DIRECTORY GNU readline"
20ac_help="$ac_help
21--with-thread[=DIRECTORY] make interpreter thread-safe"
22ac_help="$ac_help
23--with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
24ac_help="$ac_help
25--with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
26ac_help="$ac_help
27--with-libm=STRING math library"
28ac_help="$ac_help
29--with-libc=STRING C library"
Guido van Rossum627b2d71993-12-24 10:39:16 +000030
Guido van Rossum76be6ed1995-01-02 18:33:54 +000031# Omit some internal or obsolete options to make the list less imposing.
Guido van Rossum7f43da71994-08-01 12:15:30 +000032ac_usage="Usage: configure [options] [host]
33Options: [defaults in brackets after descriptions]
Guido van Rossum76be6ed1995-01-02 18:33:54 +000034Configuration:
35 --cache-file=FILE cache test results in FILE
36 --help print this message
37 --no-create do not create output files
38 --quiet, --silent do not print \`checking...' messages
39 --version print the version of autoconf that created configure
40Directory and file names:
41 --prefix=PREFIX install architecture-independent files in PREFIX
42 [$ac_default_prefix]
43 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
44 [same as prefix]
45 --srcdir=DIR find the sources in DIR [configure dir or ..]
46 --program-prefix=PREFIX prepend PREFIX to installed program names
47 --program-suffix=SUFFIX append SUFFIX to installed program names
48 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
49Host type:
50 --build=BUILD configure for building on BUILD [BUILD=HOST]
51 --host=HOST configure for HOST [guessed]
52 --target=TARGET configure for TARGET [TARGET=HOST]
53Features and packages:
54 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
55 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
56 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
57 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
58 --x-includes=DIR X include files are in DIR
59 --x-libraries=DIR X library files are in DIR
60--enable and --with options recognized:$ac_help"
Guido van Rossum7f43da71994-08-01 12:15:30 +000061
62# Initialize some variables set by options.
63# The variables have the same names as the options, with
64# dashes changed to underlines.
65build=NONE
Guido van Rossum76be6ed1995-01-02 18:33:54 +000066cache_file=./config.cache
67exec_prefix=NONE
Guido van Rossum7f43da71994-08-01 12:15:30 +000068host=NONE
69no_create=
70nonopt=NONE
Guido van Rossum76be6ed1995-01-02 18:33:54 +000071no_recursion=
72prefix=NONE
73program_prefix=NONE
74program_suffix=NONE
75program_transform_name=s,x,x,
Guido van Rossum7f43da71994-08-01 12:15:30 +000076silent=
Guido van Rossum76be6ed1995-01-02 18:33:54 +000077site=
Guido van Rossum7f43da71994-08-01 12:15:30 +000078srcdir=
79target=NONE
80verbose=
Guido van Rossum76be6ed1995-01-02 18:33:54 +000081x_includes=NONE
82x_libraries=NONE
83
84# Initialize some other variables.
85subdirs=
Guido van Rossum7f43da71994-08-01 12:15:30 +000086
87ac_prev=
88for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16 +000089do
Guido van Rossum627b2d71993-12-24 10:39:16 +000090
Guido van Rossum7f43da71994-08-01 12:15:30 +000091 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
94 ac_prev=
95 continue
Guido van Rossum627b2d71993-12-24 10:39:16 +000096 fi
Guido van Rossum7f43da71994-08-01 12:15:30 +000097
Guido van Rossum7f43da71994-08-01 12:15:30 +000098 case "$ac_option" in
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 *) ac_optarg= ;;
101 esac
102
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000103 # Accept the important Cygnus configure options, so we can diagnose typos.
104
Guido van Rossum7f43da71994-08-01 12:15:30 +0000105 case "$ac_option" in
106
107 -build | --build | --buil | --bui | --bu | --b)
108 ac_prev=build ;;
109 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
110 build="$ac_optarg" ;;
111
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
118
Guido van Rossum7f43da71994-08-01 12:15:30 +0000119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000121 # Reject names that are not valid shell variable names.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000124 fi
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
127
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000130 # Reject names that are not valid shell variable names.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000133 fi
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 case "$ac_option" in
136 *=*) ;;
137 *) ac_optarg=yes ;;
138 esac
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
140
Guido van Rossum7f43da71994-08-01 12:15:30 +0000141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
149
150 -gas | --gas | --ga | --g)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000151 # Obsolete; use --with-gas.
152 with_gas=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000153
154 -help | --help | --hel | --he)
155 cat << EOF
156$ac_usage
157EOF
158 exit 0 ;;
159
160 -host | --host | --hos | --ho)
161 ac_prev=host ;;
162 -host=* | --host=* | --hos=* | --ho=*)
163 host="$ac_optarg" ;;
164
165 -nfp | --nfp | --nf)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000166 # Obsolete; use --without-fp.
167 with_fp=no ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000168
169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
170 | --no-cr | --no-c)
171 no_create=yes ;;
172
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
175 no_recursion=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000176
177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
178 ac_prev=prefix ;;
179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
180 prefix="$ac_optarg" ;;
181
182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
183 | --program-pre | --program-pr | --program-p)
184 ac_prev=program_prefix ;;
185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
187 program_prefix="$ac_optarg" ;;
188
189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
190 | --program-suf | --program-su | --program-s)
191 ac_prev=program_suffix ;;
192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
194 program_suffix="$ac_optarg" ;;
195
196 -program-transform-name | --program-transform-name \
197 | --program-transform-nam | --program-transform-na \
198 | --program-transform-n | --program-transform- \
199 | --program-transform | --program-transfor \
200 | --program-transfo | --program-transf \
201 | --program-trans | --program-tran \
202 | --progr-tra | --program-tr | --program-t)
203 ac_prev=program_transform_name ;;
204 -program-transform-name=* | --program-transform-name=* \
205 | --program-transform-nam=* | --program-transform-na=* \
206 | --program-transform-n=* | --program-transform-=* \
207 | --program-transform=* | --program-transfor=* \
208 | --program-transfo=* | --program-transf=* \
209 | --program-trans=* | --program-tran=* \
210 | --progr-tra=* | --program-tr=* | --program-t=*)
211 program_transform_name="$ac_optarg" ;;
212
213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
214 | -silent | --silent | --silen | --sile | --sil)
215 silent=yes ;;
216
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000217 -site | --site | --sit)
218 ac_prev=site ;;
219 -site=* | --site=* | --sit=*)
220 site="$ac_optarg" ;;
221
Guido van Rossum7f43da71994-08-01 12:15:30 +0000222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
223 ac_prev=srcdir ;;
224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
225 srcdir="$ac_optarg" ;;
226
227 -target | --target | --targe | --targ | --tar | --ta | --t)
228 ac_prev=target ;;
229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
230 target="$ac_optarg" ;;
231
232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
233 verbose=yes ;;
234
235 -version | --version | --versio | --versi | --vers)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000236 echo "configure generated by autoconf version 2.0"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000237 exit 0 ;;
238
239 -with-* | --with-*)
240 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000241 # Reject names that are not valid shell variable names.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000242 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000243 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000244 fi
245 ac_package=`echo $ac_package| sed 's/-/_/g'`
246 case "$ac_option" in
247 *=*) ;;
248 *) ac_optarg=yes ;;
249 esac
250 eval "with_${ac_package}='$ac_optarg'" ;;
251
252 -without-* | --without-*)
253 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000254 # Reject names that are not valid shell variable names.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000255 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000256 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000257 fi
258 ac_package=`echo $ac_package| sed 's/-/_/g'`
259 eval "with_${ac_package}=no" ;;
260
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000261 --x)
262 # Obsolete; use --with-x.
263 with_x=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000264
265 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
266 | --x-incl | --x-inc | --x-in | --x-i)
267 ac_prev=x_includes ;;
268 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
269 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
270 x_includes="$ac_optarg" ;;
271
272 -x-libraries | --x-libraries | --x-librarie | --x-librari \
273 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
274 ac_prev=x_libraries ;;
275 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
276 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
277 x_libraries="$ac_optarg" ;;
278
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000279 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000280 ;;
281
282 *)
Guido van Rossum0a516c91994-09-12 10:58:40 +0000283 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000284 echo "configure: warning: $ac_option: invalid host type" 1>&2
Guido van Rossum7f43da71994-08-01 12:15:30 +0000285 fi
Guido van Rossum0a516c91994-09-12 10:58:40 +0000286 if test "x$nonopt" != xNONE; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000287 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000288 fi
289 nonopt="$ac_option"
290 ;;
291
292 esac
Guido van Rossum627b2d71993-12-24 10:39:16 +0000293done
294
Guido van Rossum7f43da71994-08-01 12:15:30 +0000295if test -n "$ac_prev"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000296 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000297fi
298
299trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
Guido van Rossum7f43da71994-08-01 12:15:30 +0000300
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000301# File descriptor usage:
302# 0 unused; standard input
303# 1 file creation
304# 2 errors and warnings
305# 3 unused; some systems may open it to /dev/tty
306# 4 checking for... messages and results
307# 5 compiler messages saved in config.log
308if test "$silent" = yes; then
309 exec 4>/dev/null
310else
311 exec 4>&1
312fi
313exec 5>./config.log
314
315echo "\
316This file contains any messages produced by compilers while
317running configure, to aid debugging if configure makes a mistake.
318" 1>&5
319
320# Strip out --no-create and --no-recursion so they do not pile up.
321# Also quote any args containing shell metacharacters.
322ac_configure_args=
323for ac_arg
324do
Guido van Rossum7f43da71994-08-01 12:15:30 +0000325 case "$ac_arg" in
326 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 | --no-cr | --no-c) ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
330 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
331 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
332 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000333 esac
334done
Guido van Rossum627b2d71993-12-24 10:39:16 +0000335
336# NLS nuisances.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000337# Only set LANG and LC_ALL to C if already set.
Guido van Rossum627b2d71993-12-24 10:39:16 +0000338# These must not be set unconditionally because not all systems understand
339# e.g. LANG=C (notably SCO).
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000340if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
341if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000342
Guido van Rossum7f43da71994-08-01 12:15:30 +0000343# confdefs.h avoids OS command line length limits that DEFS can exceed.
344rm -rf conftest* confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:16 +0000345# AIX cpp loses on an empty file, so make sure it contains at least a newline.
346echo > confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:16 +0000347
348# A filename unique to this package, relative to the directory that
349# configure is in, which we can look for to find out if srcdir is correct.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000350ac_unique_file=Include/object.h
Guido van Rossum627b2d71993-12-24 10:39:16 +0000351
352# Find the source files, if location was not specified.
353if test -z "$srcdir"; then
Guido van Rossum7f43da71994-08-01 12:15:30 +0000354 ac_srcdir_defaulted=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000355 # Try the directory containing this script, then its parent.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000356 ac_prog=$0
357 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
358 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
359 srcdir=$ac_confdir
360 if test ! -r $srcdir/$ac_unique_file; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000361 srcdir=..
362 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000363else
364 ac_srcdir_defaulted=no
Guido van Rossum627b2d71993-12-24 10:39:16 +0000365fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000366if test ! -r $srcdir/$ac_unique_file; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000367 if test "$ac_srcdir_defaulted" = yes; then
368 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
Guido van Rossum627b2d71993-12-24 10:39:16 +0000369 else
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000370 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
Guido van Rossum627b2d71993-12-24 10:39:16 +0000371 fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000372fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000373srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
374
375# Prefer explicitly selected file to automatically selected ones.
376if test -z "$CONFIG_SITE"; then
377 if test "x$prefix" != xNONE; then
378 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
379 else
380 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
381 fi
382fi
383for ac_site_file in $CONFIG_SITE; do
384 if test -r "$ac_site_file"; then
385 echo "loading site script $ac_site_file"
386 . "$ac_site_file"
387 fi
388done
389
390if test -r "$cache_file"; then
391 echo "loading cache $cache_file"
392 . $cache_file
393else
394 echo "creating cache $cache_file"
395 > $cache_file
396fi
397
Guido van Rossum7f43da71994-08-01 12:15:30 +0000398ac_ext=c
Guido van Rossum0a516c91994-09-12 10:58:40 +0000399# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000400ac_cpp='$CPP $CPPFLAGS'
401ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
402ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
403
404if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
405 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
406 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
407 ac_n= ac_c='
408' ac_t=' '
409 else
410 ac_n=-n ac_c= ac_t=
411 fi
412else
413 ac_n= ac_c='\c' ac_t=
414fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000415
Guido van Rossum0a516c91994-09-12 10:58:40 +0000416
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000417
Guido van Rossum627b2d71993-12-24 10:39:16 +0000418
419# checks for alternative programs
Guido van Rossumda88dad1995-01-26 00:46:29 +0000420echo $ac_n "checking for --without-gcc""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000421# Check whether --with-gcc or --without-gcc was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000422withval="$with_gcc"
423if test -n "$withval"; then
424
425 case $withval in
Guido van Rossumda88dad1995-01-26 00:46:29 +0000426 no) CC=cc
427 without_gcc=yes;;
428 yes) CC=gcc
429 without_gcc=no;;
430 *) CC=$withval
431 without_gcc=$withval;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000432 esac
Guido van Rossumda88dad1995-01-26 00:46:29 +0000433else
434 without_gcc=no
Guido van Rossum7f43da71994-08-01 12:15:30 +0000435fi
436
Guido van Rossumda88dad1995-01-26 00:46:29 +0000437echo "$ac_t""$without_gcc" 1>&4
438
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000439# Extract the first word of "gcc", so it can be a program name with args.
440set dummy gcc; ac_word=$2
441echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
442if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
443 echo $ac_n "(cached) $ac_c" 1>&4
444else
445 if test -n "$CC"; then
446 ac_cv_prog_CC="$CC" # Let the user override the test.
447else
Guido van Rossum7f43da71994-08-01 12:15:30 +0000448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
449 for ac_dir in $PATH; do
450 test -z "$ac_dir" && ac_dir=.
451 if test -f $ac_dir/$ac_word; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000452 ac_cv_prog_CC="gcc"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000453 break
454 fi
455 done
Guido van Rossum7f43da71994-08-01 12:15:30 +0000456 IFS="$ac_save_ifs"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000457 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000458fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000459fi
460CC="$ac_cv_prog_CC"
461if test -n "$CC"; then
462 echo "$ac_t""$CC" 1>&4
463else
464 echo "$ac_t""no" 1>&4
465fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000466
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000467
468echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
469if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
470 echo $ac_n "(cached) $ac_c" 1>&4
471else
472 cat > conftest.c <<EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +0000473#ifdef __GNUC__
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000474 yes;
Guido van Rossum627b2d71993-12-24 10:39:16 +0000475#endif
476EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000477if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
478 ac_cv_prog_gcc=yes
479else
480 ac_cv_prog_gcc=no
481fi
482fi
483echo "$ac_t""$ac_cv_prog_gcc" 1>&4
484if test $ac_cv_prog_gcc = yes; then
485 GCC=yes
486 if test "${CFLAGS+set}" != set; then
487 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
488if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
489 echo $ac_n "(cached) $ac_c" 1>&4
490else
491 echo 'void f(){}' > conftest.c
492if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
493 ac_cv_prog_gcc_g=yes
494else
495 ac_cv_prog_gcc_g=no
Guido van Rossum627b2d71993-12-24 10:39:16 +0000496fi
497rm -f conftest*
498
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000499fi
500 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
501 if test $ac_cv_prog_gcc_g = yes; then
502 CFLAGS="-g -O"
503 else
504 CFLAGS="-O"
505 fi
506 fi
507else
508 GCC=
509 test "${CFLAGS+set}" = set || CFLAGS="-g"
510fi
511
512# Extract the first word of "ranlib", so it can be a program name with args.
513set dummy ranlib; ac_word=$2
514echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
515if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
516 echo $ac_n "(cached) $ac_c" 1>&4
517else
518 if test -n "$RANLIB"; then
519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
520else
Guido van Rossum7f43da71994-08-01 12:15:30 +0000521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
522 for ac_dir in $PATH; do
523 test -z "$ac_dir" && ac_dir=.
524 if test -f $ac_dir/$ac_word; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000525 ac_cv_prog_RANLIB="ranlib"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000526 break
527 fi
528 done
Guido van Rossum7f43da71994-08-01 12:15:30 +0000529 IFS="$ac_save_ifs"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000530 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000531fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000532fi
533RANLIB="$ac_cv_prog_RANLIB"
534if test -n "$RANLIB"; then
535 echo "$ac_t""$RANLIB" 1>&4
536else
537 echo "$ac_t""no" 1>&4
538fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000539
540
Guido van Rossum7f43da71994-08-01 12:15:30 +0000541for ac_prog in ar aal
542do
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000543# Extract the first word of "$ac_prog", so it can be a program name with args.
544set dummy $ac_prog; ac_word=$2
545echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
546if eval "test \"`echo '${'ac_cv_prog_AR'+set}'`\" = set"; then
547 echo $ac_n "(cached) $ac_c" 1>&4
548else
549 if test -n "$AR"; then
550 ac_cv_prog_AR="$AR" # Let the user override the test.
551else
Guido van Rossum7f43da71994-08-01 12:15:30 +0000552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
553 for ac_dir in $PATH; do
554 test -z "$ac_dir" && ac_dir=.
555 if test -f $ac_dir/$ac_word; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000556 ac_cv_prog_AR="$ac_prog"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000557 break
558 fi
559 done
560 IFS="$ac_save_ifs"
561fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000562fi
563AR="$ac_cv_prog_AR"
564if test -n "$AR"; then
565 echo "$ac_t""$AR" 1>&4
566else
567 echo "$ac_t""no" 1>&4
568fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000569
570test -n "$AR" && break
571done
572test -n "$AR" || AR="ar"
573
574
Guido van Rossumda88dad1995-01-26 00:46:29 +0000575
576
Guido van Rossumb1ba03f1994-08-19 15:34:50 +0000577# Install just never works :-(
578if test -z "$INSTALL"
Guido van Rossumda88dad1995-01-26 00:46:29 +0000579then
580 INSTALL=cp
581 INSTALL_PROGRAM=cp
582 INSTALL_DATA=cp
583else
584 INSTALL_PROGRAM="$INSTALL"
585 INSTALL_DATA="$INSTALL -m 644"
Guido van Rossumb1ba03f1994-08-19 15:34:50 +0000586fi
587
588# Optimizer/debugger flags passed between Makefiles
589if test -z "$OPT"
590then OPT=-O
591fi
592
Guido van Rossum627b2d71993-12-24 10:39:16 +0000593# checks for UNIX variants that set C preprocessor variables
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000594echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
595# On Suns, sometimes $CPP names a directory.
596if test -n "$CPP" && test -d "$CPP"; then
597 CPP=
598fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000599if test -z "$CPP"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000600if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&4
602else
603 # This must be in double quotes, not single quotes, because CPP may get
604 # substituted into the Makefile and "${CC-cc}" will confuse make.
Guido van Rossum627b2d71993-12-24 10:39:16 +0000605 CPP="${CC-cc} -E"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000606 # On the NeXT, cc -E runs the code through the compiler's parser,
607 # not just through cpp.
608 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000609#line 610 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000610#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000611#include <assert.h>
Guido van Rossum627b2d71993-12-24 10:39:16 +0000612Syntax Error
613EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000614eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
615ac_err=`grep -v '^ *+' conftest.out`
Guido van Rossum7f43da71994-08-01 12:15:30 +0000616if test -z "$ac_err"; then
617 :
618else
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000619 echo "$ac_err" >&5
Guido van Rossum7f43da71994-08-01 12:15:30 +0000620 rm -rf conftest*
621 CPP="${CC-cc} -E -traditional-cpp"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000622 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000623#line 624 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000624#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000625#include <assert.h>
Guido van Rossum7f43da71994-08-01 12:15:30 +0000626Syntax Error
627EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000628eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
629ac_err=`grep -v '^ *+' conftest.out`
Guido van Rossum7f43da71994-08-01 12:15:30 +0000630if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000631 :
632else
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000633 echo "$ac_err" >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +0000634 rm -rf conftest*
635 CPP=/lib/cpp
636fi
637rm -f conftest*
638fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000639rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000640 ac_cv_prog_CPP="$CPP"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000641fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000642fi
643CPP="$ac_cv_prog_CPP"
644echo "$ac_t""$CPP" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +0000645
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000646echo $ac_n "checking for AIX""... $ac_c" 1>&4
647cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000648#line 649 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000649#include "confdefs.h"
650#ifdef _AIX
651 yes
652#endif
653
654EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
656 egrep "yes" >/dev/null 2>&1; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000657 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000658 echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
659#define _ALL_SOURCE 1
660EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +0000661
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000662else
663 rm -rf conftest*
664 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +0000665fi
666rm -f conftest*
667
668
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000669echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +0000670if test -d /etc/conf/kconfig.d &&
671 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
672then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000673 echo "$ac_t""yes" 1>&4
674 ISC=yes # If later tests want to check for ISC.
675 cat >> confdefs.h <<\EOF
676#define _POSIX_SOURCE 1
677EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +0000678
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000679 if test "$GCC" = yes; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000680 CC="$CC -posix"
681 else
682 CC="$CC -Xp"
683 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000684else
685 echo "$ac_t""no" 1>&4
686 ISC=
Guido van Rossum627b2d71993-12-24 10:39:16 +0000687fi
688
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000689ac_safe=`echo "minix/config.h" | tr './\055' '___'`
690echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
691if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&4
693else
694 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000695#line 696 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000696#include "confdefs.h"
697#include <minix/config.h>
698EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000699eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
700ac_err=`grep -v '^ *+' conftest.out`
Guido van Rossum7f43da71994-08-01 12:15:30 +0000701if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000702 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000703 eval "ac_cv_header_$ac_safe=yes"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000704else
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000705 echo "$ac_err" >&5
706 rm -rf conftest*
707 eval "ac_cv_header_$ac_safe=no"
708fi
709rm -f conftest*
710fi
711if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
712 echo "$ac_t""yes" 1>&4
713 MINIX=yes
714else
715 echo "$ac_t""no" 1>&4
716MINIX=
Guido van Rossum627b2d71993-12-24 10:39:16 +0000717fi
718
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000719if test "$MINIX" = yes; then
720 cat >> confdefs.h <<\EOF
721#define _POSIX_SOURCE 1
722EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +0000723
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000724 cat >> confdefs.h <<\EOF
725#define _POSIX_1_SOURCE 2
726EOF
727
728 cat >> confdefs.h <<\EOF
729#define _MINIX 1
730EOF
731
732fi
733
Guido van Rossumda88dad1995-01-26 00:46:29 +0000734
735was_it_defined=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000736# If we cannot run a trivial program, we must be cross compiling.
737echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
738if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&4
740else
741 if test "$cross_compiling" = yes; then
742 ac_cv_cross=yes
743else
744cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000745#line 746 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000746#include "confdefs.h"
747main(){return(0);}
748EOF
749eval $ac_link
750if test -s conftest && (./conftest; exit) 2>/dev/null; then
751 ac_cv_c_cross=no
752else
753 ac_cv_c_cross=yes
754fi
755fi
756rm -fr conftest*
757fi
758cross_compiling=$ac_cv_c_cross
759echo "$ac_t""$ac_cv_c_cross" 1>&4
760
761if test "$cross_compiling" = yes; then
762 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
763else
764cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000765#line 766 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000766#include "confdefs.h"
767
768#ifdef _NEXT_SOURCE
769main() { exit(0); }
770#endif
771
772EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000773eval $ac_link
Guido van Rossum7f43da71994-08-01 12:15:30 +0000774if test -s conftest && (./conftest; exit) 2>/dev/null; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000775 cat >> confdefs.h <<\EOF
776#define _POSIX_SOURCE 1
777EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +0000778
779CC="$CC -posix"; was_it_defined=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000780fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000781fi
782rm -fr conftest*
Guido van Rossumda88dad1995-01-26 00:46:29 +0000783echo $ac_n "checking for NeXT""... $ac_c" 1>&4
784echo "$ac_t""$was_it_defined" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +0000785
786# checks for header files
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000787echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
788if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&4
790else
791 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +0000792#line 793 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000793#include "confdefs.h"
794#include <stdlib.h>
795#include <stdarg.h>
796#include <string.h>
797#include <float.h>
798EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000799eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
800ac_err=`grep -v '^ *+' conftest.out`
Guido van Rossum7f43da71994-08-01 12:15:30 +0000801if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000802 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000803 ac_cv_header_stdc=yes
804else
805 echo "$ac_err" >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +0000806 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000807 ac_cv_header_stdc=no
808fi
809rm -f conftest*
810
811if test $ac_cv_header_stdc = yes; then
812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
813cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +0000814#line 815 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000815#include "confdefs.h"
816#include <string.h>
817EOF
818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
819 egrep "memchr" >/dev/null 2>&1; then
820 :
821else
822 rm -rf conftest*
823 ac_cv_header_stdc=no
824fi
825rm -f conftest*
826
827fi
828
829if test $ac_cv_header_stdc = yes; then
830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
831cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +0000832#line 833 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000833#include "confdefs.h"
834#include <stdlib.h>
835EOF
836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
837 egrep "free" >/dev/null 2>&1; then
838 :
839else
840 rm -rf conftest*
841 ac_cv_header_stdc=no
842fi
843rm -f conftest*
844
845fi
846
847if test $ac_cv_header_stdc = yes; then
848 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
849if test "$cross_compiling" = yes; then
850 ac_cv_header_stdc=no
851else
852cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +0000853#line 854 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000854#include "confdefs.h"
855#include <ctype.h>
856#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
857#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000858#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Guido van Rossum627b2d71993-12-24 10:39:16 +0000859int main () { int i; for (i = 0; i < 256; i++)
860if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
861exit (0); }
862
863EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000864eval $ac_link
Guido van Rossum627b2d71993-12-24 10:39:16 +0000865if test -s conftest && (./conftest; exit) 2>/dev/null; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000866 :
867else
868 ac_cv_header_stdc=no
Guido van Rossum627b2d71993-12-24 10:39:16 +0000869fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000870fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000871rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000872fi
873fi
874echo "$ac_t""$ac_cv_header_stdc" 1>&4
875if test $ac_cv_header_stdc = yes; then
876 cat >> confdefs.h <<\EOF
877#define STDC_HEADERS 1
878EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +0000879
880fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000881
Guido van Rossum8eee56f1994-10-20 22:18:37 +0000882for ac_hdr in dlfcn.h fcntl.h limits.h signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h sys/audioio.h sys/param.h sys/select.h sys/time.h sys/times.h sys/un.h sys/utsname.h
Guido van Rossum627b2d71993-12-24 10:39:16 +0000883do
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000884ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
885echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
886if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&4
888else
889 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +0000890#line 891 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000891#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000892#include <$ac_hdr>
Guido van Rossum627b2d71993-12-24 10:39:16 +0000893EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000894eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
895ac_err=`grep -v '^ *+' conftest.out`
Guido van Rossum7f43da71994-08-01 12:15:30 +0000896if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000897 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000898 eval "ac_cv_header_$ac_safe=yes"
899else
900 echo "$ac_err" >&5
901 rm -rf conftest*
902 eval "ac_cv_header_$ac_safe=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000903fi
904rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000905fi
906if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
907 echo "$ac_t""yes" 1>&4
908 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
909 cat >> confdefs.h <<EOF
910#define $ac_tr_hdr 1
911EOF
912
913else
914 echo "$ac_t""no" 1>&4
915fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000916done
917
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000918ac_header_dirent=no
919for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
920do
921ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
922echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
923if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +0000925else
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000926 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +0000927#line 928 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000928#include "confdefs.h"
929#include <sys/types.h>
930#include <$ac_hdr>
931int main() { return 0; }
932int t() {
933DIR *dirp = 0;
934; return 0; }
935EOF
936if eval $ac_compile; then
937 rm -rf conftest*
938 eval "ac_cv_header_dirent_$ac_safe=yes"
939else
940 rm -rf conftest*
941 eval "ac_cv_header_dirent_$ac_safe=no"
942fi
943rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:16 +0000944
945fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000946if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
947 echo "$ac_t""yes" 1>&4
948 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
949 cat >> confdefs.h <<EOF
950#define $ac_tr_hdr 1
951EOF
952 ac_header_dirent=$ac_hdr; break
953else
954 echo "$ac_t""no" 1>&4
955fi
956done
957# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
958if test $ac_header_dirent = dirent.h; then
959echo $ac_n "checking for -ldir""... $ac_c" 1>&4
960if eval "test \"`echo '${'ac_cv_lib_dir'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&4
962else
963 ac_save_LIBS="$LIBS"
964LIBS="$LIBS -ldir "
965cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +0000966#line 967 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000967#include "confdefs.h"
968
969int main() { return 0; }
970int t() {
971opendir()
972; return 0; }
973EOF
974if eval $ac_link; then
975 rm -rf conftest*
976 eval "ac_cv_lib_dir=yes"
977else
978 rm -rf conftest*
979 eval "ac_cv_lib_dir=no"
980fi
981rm -f conftest*
982LIBS="$ac_save_LIBS"
983
984fi
985if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
986 echo "$ac_t""yes" 1>&4
987 LIBS="$LIBS -ldir"
988else
989 echo "$ac_t""no" 1>&4
990fi
991
992else
993echo $ac_n "checking for -lx""... $ac_c" 1>&4
994if eval "test \"`echo '${'ac_cv_lib_x'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&4
996else
997 ac_save_LIBS="$LIBS"
998LIBS="$LIBS -lx "
999cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001000#line 1001 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001001#include "confdefs.h"
1002
1003int main() { return 0; }
1004int t() {
1005opendir()
1006; return 0; }
1007EOF
1008if eval $ac_link; then
1009 rm -rf conftest*
1010 eval "ac_cv_lib_x=yes"
1011else
1012 rm -rf conftest*
1013 eval "ac_cv_lib_x=no"
1014fi
1015rm -f conftest*
1016LIBS="$ac_save_LIBS"
1017
1018fi
1019if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
1020 echo "$ac_t""yes" 1>&4
1021 LIBS="$LIBS -lx"
1022else
1023 echo "$ac_t""no" 1>&4
1024fi
1025
1026fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001027
1028
1029# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:29 +00001030was_it_defined=no
1031echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001032cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001033#line 1034 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001034#include "confdefs.h"
1035#include <time.h>
1036EOF
1037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1038 egrep "clock_t" >/dev/null 2>&1; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00001039 rm -rf conftest*
1040 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001041else
1042 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001043 cat >> confdefs.h <<\EOF
1044#define clock_t long
1045EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001046
1047fi
1048rm -f conftest*
1049
Guido van Rossumda88dad1995-01-26 00:46:29 +00001050echo "$ac_t""$was_it_defined" 1>&4
1051
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001052echo $ac_n "checking for mode_t""... $ac_c" 1>&4
1053if eval "test \"`echo '${'ac_cv_type_mode_t'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&4
1055else
1056 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001057#line 1058 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001058#include "confdefs.h"
1059#include <sys/types.h>
1060#if STDC_HEADERS
1061#include <stdlib.h>
1062#endif
1063EOF
1064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1065 egrep "mode_t" >/dev/null 2>&1; then
1066 rm -rf conftest*
1067 ac_cv_type_mode_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001068else
1069 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001070 ac_cv_type_mode_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001071fi
1072rm -f conftest*
1073
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001074fi
1075echo "$ac_t""$ac_cv_type_mode_t" 1>&4
1076if test $ac_cv_type_mode_t = no; then
1077 cat >> confdefs.h <<\EOF
1078#define mode_t int
1079EOF
1080
1081fi
1082
1083echo $ac_n "checking for off_t""... $ac_c" 1>&4
1084if eval "test \"`echo '${'ac_cv_type_off_t'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&4
1086else
1087 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001088#line 1089 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001089#include "confdefs.h"
1090#include <sys/types.h>
1091#if STDC_HEADERS
1092#include <stdlib.h>
1093#endif
1094EOF
1095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1096 egrep "off_t" >/dev/null 2>&1; then
1097 rm -rf conftest*
1098 ac_cv_type_off_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001099else
1100 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001101 ac_cv_type_off_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001102fi
1103rm -f conftest*
1104
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001105fi
1106echo "$ac_t""$ac_cv_type_off_t" 1>&4
1107if test $ac_cv_type_off_t = no; then
1108 cat >> confdefs.h <<\EOF
1109#define off_t long
1110EOF
1111
1112fi
1113
1114echo $ac_n "checking for pid_t""... $ac_c" 1>&4
1115if eval "test \"`echo '${'ac_cv_type_pid_t'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&4
1117else
1118 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001119#line 1120 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001120#include "confdefs.h"
1121#include <sys/types.h>
1122#if STDC_HEADERS
1123#include <stdlib.h>
1124#endif
1125EOF
1126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1127 egrep "pid_t" >/dev/null 2>&1; then
1128 rm -rf conftest*
1129 ac_cv_type_pid_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001130else
1131 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001132 ac_cv_type_pid_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001133fi
1134rm -f conftest*
1135
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001136fi
1137echo "$ac_t""$ac_cv_type_pid_t" 1>&4
1138if test $ac_cv_type_pid_t = no; then
1139 cat >> confdefs.h <<\EOF
1140#define pid_t int
1141EOF
1142
1143fi
1144
1145echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&4
1146if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&4
1148else
1149 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001150#line 1151 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001151#include "confdefs.h"
1152#include <sys/types.h>
1153#include <signal.h>
1154#ifdef signal
1155#undef signal
1156#endif
1157extern void (*signal ()) ();
Guido van Rossum7f43da71994-08-01 12:15:30 +00001158int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001159int t() {
1160int i;
1161; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001162EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001163if eval $ac_compile; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001164 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001165 ac_cv_type_signal=void
Guido van Rossum627b2d71993-12-24 10:39:16 +00001166else
1167 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001168 ac_cv_type_signal=int
Guido van Rossum627b2d71993-12-24 10:39:16 +00001169fi
1170rm -f conftest*
1171
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001172fi
1173echo "$ac_t""$ac_cv_type_signal" 1>&4
1174cat >> confdefs.h <<EOF
1175#define RETSIGTYPE $ac_cv_type_signal
1176EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001177
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001178
1179echo $ac_n "checking for size_t""... $ac_c" 1>&4
1180if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&4
1182else
1183 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001184#line 1185 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001185#include "confdefs.h"
1186#include <sys/types.h>
1187#if STDC_HEADERS
1188#include <stdlib.h>
1189#endif
1190EOF
1191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1192 egrep "size_t" >/dev/null 2>&1; then
1193 rm -rf conftest*
1194 ac_cv_type_size_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001195else
1196 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001197 ac_cv_type_size_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001198fi
1199rm -f conftest*
1200
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001201fi
1202echo "$ac_t""$ac_cv_type_size_t" 1>&4
1203if test $ac_cv_type_size_t = no; then
1204 cat >> confdefs.h <<\EOF
1205#define size_t unsigned
1206EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001207
1208fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001209
1210echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&4
1211if eval "test \"`echo '${'ac_cv_type_uid_t'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&4
1213else
1214 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001215#line 1216 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001216#include "confdefs.h"
1217#include <sys/types.h>
1218EOF
1219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1220 egrep "uid_t" >/dev/null 2>&1; then
1221 rm -rf conftest*
1222 ac_cv_type_uid_t=yes
1223else
1224 rm -rf conftest*
1225 ac_cv_type_uid_t=no
1226fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001227rm -f conftest*
1228
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001229fi
1230echo "$ac_t""$ac_cv_type_uid_t" 1>&4
1231if test $ac_cv_type_uid_t = no; then
1232 cat >> confdefs.h <<\EOF
1233#define uid_t int
1234EOF
1235
1236 cat >> confdefs.h <<\EOF
1237#define gid_t int
1238EOF
1239
1240fi
1241
Guido van Rossum627b2d71993-12-24 10:39:16 +00001242
Guido van Rossum0a516c91994-09-12 10:58:40 +00001243# Set name for machine-dependent library files
1244
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001245echo $ac_n "checking MACHDEP""... $ac_c" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001246if test -z "$MACHDEP"
1247then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001248 ac_sys_system=`uname -s | tr -d ' ' | tr '[A-Z]' '[a-z]'`
1249 ac_sys_release=`uname -r | tr -d ' ' | sed 's/\..*//'`
1250 MACHDEP="$ac_sys_system$ac_sys_release"
Guido van Rossum0a516c91994-09-12 10:58:40 +00001251 case MACHDEP in
1252 '') MACHDEP=unknown;;
1253 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00001254fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001255echo "$ac_t""$MACHDEP" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001256
1257# Set info about shared libraries.
1258# XXX This should try things out instead of testing uname!
1259
1260
1261
1262
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001263ac_sys_system=`uname -s`
1264ac_sys_release=`uname -r`
Guido van Rossum0a516c91994-09-12 10:58:40 +00001265# SO is the extension of shared libraries `(including the dot!)
1266# -- usually .so, .sl on HP-UX
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001267echo $ac_n "checking SO""... $ac_c" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001268if test -z "$SO"
1269then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001270 case $ac_sys_system in
Guido van Rossum0a516c91994-09-12 10:58:40 +00001271 hp*|HP*) SO=.sl;;
1272 *) SO=.so;;
1273 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00001274fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001275echo "$ac_t""$SO" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001276# LDSHARED is the ld *command* used to create shared library
1277# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001278echo $ac_n "checking LDSHARED""... $ac_c" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001279if test -z "$LDSHARED"
1280then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001281 case $ac_sys_system/$ac_sys_release in
Guido van Rossum0a516c91994-09-12 10:58:40 +00001282 IRIX*) LDSHARED="ld -shared";;
1283 SunOS/4*) LDSHARED="ld";;
1284 SunOS/5*) LDSHARED="ld -G";;
1285 hp*|HP*) LDSHARED="ld -b";;
Guido van Rossumda88dad1995-01-26 00:46:29 +00001286 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
1287 DYNIX/ptx*) LDSHARED="ld -G";;
Guido van Rossum0a516c91994-09-12 10:58:40 +00001288 *) LDSHARED="ld";;
1289 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00001290fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001291echo "$ac_t""$LDSHARED" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001292# CCSHARED are the C *flags* used to create objects to go into a shared
1293# library -- this is only needed for HP-UX
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001294echo $ac_n "checking CCSHARED""... $ac_c" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001295if test -z "$CCSHARED"
1296then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001297 case $ac_sys_system in
Guido van Rossumaf07a441995-02-13 19:45:27 +00001298 hp*|HP*) if test "$GCC" = yes;
1299 then CCSHARED="-fpic";
1300 else CCSHARED="+z";
1301 fi;;
Guido van Rossum0a516c91994-09-12 10:58:40 +00001302 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00001303fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001304echo "$ac_t""$CCSHARED" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001305# LINKFORSHARED are the flags passed to the $(CC) command that links
1306# the python executable -- this is only needed for HP-UX
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001307echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001308if test -z "$LINKFORSHARED"
1309then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001310 case $ac_sys_system in
Guido van Rossum0a516c91994-09-12 10:58:40 +00001311 hp*|HP*) LINKFORSHARED="-Wl,-E";;
1312 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00001313fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001314echo "$ac_t""$LINKFORSHARED" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001315
Guido van Rossum627b2d71993-12-24 10:39:16 +00001316# checks for libraries
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001317echo $ac_n "checking for -ldl""... $ac_c" 1>&4
1318if eval "test \"`echo '${'ac_cv_lib_dl'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&4
1320else
1321 ac_save_LIBS="$LIBS"
1322LIBS="$LIBS -ldl "
1323cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001324#line 1325 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001325#include "confdefs.h"
1326
Guido van Rossum7f43da71994-08-01 12:15:30 +00001327int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001328int t() {
1329dlopen()
1330; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001331EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001332if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001333 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001334 eval "ac_cv_lib_dl=yes"
1335else
1336 rm -rf conftest*
1337 eval "ac_cv_lib_dl=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001338fi
1339rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001340LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001341
Guido van Rossum627b2d71993-12-24 10:39:16 +00001342fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001343if eval "test \"`echo '$ac_cv_lib_'dl`\" = yes"; then
1344 echo "$ac_t""yes" 1>&4
1345 ac_tr_lib=HAVE_LIB`echo dl | tr '[a-z]' '[A-Z]'`
1346 cat >> confdefs.h <<EOF
1347#define $ac_tr_lib 1
1348EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001349
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001350 LIBS="$LIBS -ldl"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001351
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001352else
1353 echo "$ac_t""no" 1>&4
1354fi
1355 # Dynamic linking for SunOS/Solaris and SYSV
1356echo $ac_n "checking for -ldld""... $ac_c" 1>&4
1357if eval "test \"`echo '${'ac_cv_lib_dld'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&4
1359else
1360 ac_save_LIBS="$LIBS"
1361LIBS="$LIBS -ldld "
1362cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001363#line 1364 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001364#include "confdefs.h"
1365
Guido van Rossum7f43da71994-08-01 12:15:30 +00001366int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001367int t() {
1368shl_load()
1369; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001370EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001371if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001372 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001373 eval "ac_cv_lib_dld=yes"
1374else
1375 rm -rf conftest*
1376 eval "ac_cv_lib_dld=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001377fi
1378rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001379LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001380
Guido van Rossum627b2d71993-12-24 10:39:16 +00001381fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001382if eval "test \"`echo '$ac_cv_lib_'dld`\" = yes"; then
1383 echo "$ac_t""yes" 1>&4
1384 ac_tr_lib=HAVE_LIB`echo dld | tr '[a-z]' '[A-Z]'`
1385 cat >> confdefs.h <<EOF
1386#define $ac_tr_lib 1
1387EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001388
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001389 LIBS="$LIBS -ldld"
1390
1391else
1392 echo "$ac_t""no" 1>&4
1393fi
1394 # Dynamic linking for HP-UX
1395echo $ac_n "checking for -lsun""... $ac_c" 1>&4
1396if eval "test \"`echo '${'ac_cv_lib_sun'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&4
1398else
1399 ac_save_LIBS="$LIBS"
1400LIBS="$LIBS -lsun "
1401cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001402#line 1403 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001403#include "confdefs.h"
1404
1405int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001406int t() {
1407getpwnam()
1408; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001409EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001410if eval $ac_link; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00001411 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001412 eval "ac_cv_lib_sun=yes"
1413else
1414 rm -rf conftest*
1415 eval "ac_cv_lib_sun=no"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001416fi
1417rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001418LIBS="$ac_save_LIBS"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001419
Guido van Rossum7f43da71994-08-01 12:15:30 +00001420fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001421if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
1422 echo "$ac_t""yes" 1>&4
1423 ac_tr_lib=HAVE_LIB`echo sun | tr '[a-z]' '[A-Z]'`
1424 cat >> confdefs.h <<EOF
1425#define $ac_tr_lib 1
1426EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001427
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001428 LIBS="$LIBS -lsun"
1429
1430else
1431 echo "$ac_t""no" 1>&4
1432fi
1433 # NIS (== YP) interface for IRIX 4
Guido van Rossumda88dad1995-01-26 00:46:29 +00001434# The following three (nsl,inet,socket) are needed on Sequent;
1435# the order of checking must be this. Most SVR4 platforms will
1436# need -lsocket and -lnsl. However on SGI IRIX 5, these exist but
1437# broken. I see no elegant solution (probably CHECK_LIB should be
1438# fixed to only add the library if the given entry point is not
1439# satisfied without it).
1440if test "`uname -s`" != IRIX
1441then
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001442echo $ac_n "checking for -lnsl""... $ac_c" 1>&4
1443if eval "test \"`echo '${'ac_cv_lib_nsl'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&4
1445else
1446 ac_save_LIBS="$LIBS"
1447LIBS="$LIBS -lnsl "
1448cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001449#line 1450 "configure"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001450#include "confdefs.h"
1451
1452int main() { return 0; }
1453int t() {
Guido van Rossum0ddb0281995-01-17 16:46:14 +00001454t_open()
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001455; return 0; }
1456EOF
1457if eval $ac_link; then
1458 rm -rf conftest*
1459 eval "ac_cv_lib_nsl=yes"
1460else
1461 rm -rf conftest*
1462 eval "ac_cv_lib_nsl=no"
1463fi
1464rm -f conftest*
1465LIBS="$ac_save_LIBS"
1466
1467fi
1468if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
1469 echo "$ac_t""yes" 1>&4
1470 LIBS="-lnsl $LIBS"
1471else
1472 echo "$ac_t""no" 1>&4
1473fi
Guido van Rossum0ddb0281995-01-17 16:46:14 +00001474 # SVR4
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001475echo $ac_n "checking for -linet""... $ac_c" 1>&4
1476if eval "test \"`echo '${'ac_cv_lib_inet'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&4
1478else
1479 ac_save_LIBS="$LIBS"
Guido van Rossum0ddb0281995-01-17 16:46:14 +00001480LIBS="$LIBS -linet -lnsl"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001481cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001482#line 1483 "configure"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001483#include "confdefs.h"
1484
1485int main() { return 0; }
1486int t() {
Guido van Rossum0ddb0281995-01-17 16:46:14 +00001487gethostbyname()
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001488; return 0; }
1489EOF
1490if eval $ac_link; then
1491 rm -rf conftest*
1492 eval "ac_cv_lib_inet=yes"
1493else
1494 rm -rf conftest*
1495 eval "ac_cv_lib_inet=no"
1496fi
1497rm -f conftest*
1498LIBS="$ac_save_LIBS"
1499
1500fi
1501if eval "test \"`echo '$ac_cv_lib_'inet`\" = yes"; then
1502 echo "$ac_t""yes" 1>&4
1503 LIBS="-linet $LIBS"
1504else
1505 echo "$ac_t""no" 1>&4
1506fi
Guido van Rossum0ddb0281995-01-17 16:46:14 +00001507 # Sequent
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001508echo $ac_n "checking for -lsocket""... $ac_c" 1>&4
1509if eval "test \"`echo '${'ac_cv_lib_socket'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&4
1511else
1512 ac_save_LIBS="$LIBS"
Guido van Rossum0ddb0281995-01-17 16:46:14 +00001513LIBS="$LIBS -lsocket $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001514cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001515#line 1516 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001516#include "confdefs.h"
1517
1518int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001519int t() {
1520socket()
1521; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001522EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001523if eval $ac_link; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00001524 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001525 eval "ac_cv_lib_socket=yes"
1526else
1527 rm -rf conftest*
1528 eval "ac_cv_lib_socket=no"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001529fi
1530rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001531LIBS="$ac_save_LIBS"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001532
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001533fi
1534if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
1535 echo "$ac_t""yes" 1>&4
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001536 LIBS="-lsocket $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001537else
1538 echo "$ac_t""no" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00001539fi
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001540 # SVR4 sockets
Guido van Rossumda88dad1995-01-26 00:46:29 +00001541fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00001542
Guido van Rossumda88dad1995-01-26 00:46:29 +00001543echo $ac_n "checking for --with-readline""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001544# Check whether --with-readline or --without-readline was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00001545withval="$with_readline"
1546if test -n "$withval"; then
1547
Guido van Rossumda88dad1995-01-26 00:46:29 +00001548echo "$ac_t""$withval" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001549cat >> confdefs.h <<\EOF
1550#define WITH_READLINE 1
1551EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001552
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00001553if test ! -d "$withval"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001554then { echo "configure: error: proper usage is --with-readline=DIRECTORY" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001555fi
1556termcap=
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001557echo $ac_n "checking for -ltermcap""... $ac_c" 1>&4
1558if eval "test \"`echo '${'ac_cv_lib_termcap'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&4
1560else
1561 ac_save_LIBS="$LIBS"
1562LIBS="$LIBS -ltermcap "
1563cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001564#line 1565 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001565#include "confdefs.h"
1566
Guido van Rossum7f43da71994-08-01 12:15:30 +00001567int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001568int t() {
1569tgetent()
1570; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001571EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001572if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001573 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001574 eval "ac_cv_lib_termcap=yes"
1575else
1576 rm -rf conftest*
1577 eval "ac_cv_lib_termcap=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001578fi
1579rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001580LIBS="$ac_save_LIBS"
1581
1582fi
1583if eval "test \"`echo '$ac_cv_lib_'termcap`\" = yes"; then
1584 echo "$ac_t""yes" 1>&4
1585 termcap=termcap
Guido van Rossum7f43da71994-08-01 12:15:30 +00001586else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001587 echo "$ac_t""no" 1>&4
1588
1589echo $ac_n "checking for -ltermlib""... $ac_c" 1>&4
1590if eval "test \"`echo '${'ac_cv_lib_termlib'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&4
1592else
1593 ac_save_LIBS="$LIBS"
1594LIBS="$LIBS -ltermlib "
1595cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001596#line 1597 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001597#include "confdefs.h"
1598
1599int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001600int t() {
1601tgetent()
1602; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001603EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001604if eval $ac_link; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00001605 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001606 eval "ac_cv_lib_termlib=yes"
1607else
1608 rm -rf conftest*
1609 eval "ac_cv_lib_termlib=no"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001610fi
1611rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001612LIBS="$ac_save_LIBS"
1613
1614fi
1615if eval "test \"`echo '$ac_cv_lib_'termlib`\" = yes"; then
1616 echo "$ac_t""yes" 1>&4
1617 termcap=termlib
Guido van Rossum7f43da71994-08-01 12:15:30 +00001618else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001619 echo "$ac_t""no" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00001620fi
1621
1622fi
1623
1624if test ! -z "$termcap"
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00001625then LIBS="$LIBS $withval/libreadline.a"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001626 # Avoid possible conflict between shared libraries termcap and gl
1627 # on IRIX 5: both contain a routine called clear.
1628 if test -f /usr/lib/lib$termcap.a
1629 then LIBS="$LIBS /usr/lib/lib$termcap.a"
1630 else LIBS="$LIBS -l$termcap"
1631 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001632else { echo "configure: error: no working termcap/termlib" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001633fi
Guido van Rossumda88dad1995-01-26 00:46:29 +00001634else
1635 echo "$ac_t""no" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00001636fi
1637
1638
Guido van Rossumda88dad1995-01-26 00:46:29 +00001639echo $ac_n "checking for --with-thread""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001640# Check whether --with-thread or --without-thread was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00001641withval="$with_thread"
1642if test -n "$withval"; then
1643
Guido van Rossumda88dad1995-01-26 00:46:29 +00001644echo "$ac_t""$withval" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00001645if test -d "$withval"
1646then LIBS="$LIBS -L$withval"
1647fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001648echo $ac_n "checking for -lpthreads""... $ac_c" 1>&4
1649if eval "test \"`echo '${'ac_cv_lib_pthreads'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&4
1651else
1652 ac_save_LIBS="$LIBS"
1653LIBS="$LIBS -lpthreads "
1654cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001655#line 1656 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001656#include "confdefs.h"
1657
1658int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001659int t() {
1660pthread_create()
1661; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001662EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001663if eval $ac_link; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00001664 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001665 eval "ac_cv_lib_pthreads=yes"
1666else
1667 rm -rf conftest*
1668 eval "ac_cv_lib_pthreads=no"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001669fi
1670rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001671LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001672
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001673fi
1674if eval "test \"`echo '$ac_cv_lib_'pthreads`\" = yes"; then
1675 echo "$ac_t""yes" 1>&4
1676 cat >> confdefs.h <<\EOF
1677#define WITH_THREAD 1
1678EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001679
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001680cat >> confdefs.h <<\EOF
1681#define _POSIX_THREADS 1
1682EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001683
1684LIBS="$LIBS -lpthreads"
1685LIBOBJS="$LIBOBJS thread.o"
1686else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001687 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00001688fi
1689
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001690echo $ac_n "checking for -lmpc""... $ac_c" 1>&4
1691if eval "test \"`echo '${'ac_cv_lib_mpc'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&4
1693else
1694 ac_save_LIBS="$LIBS"
1695LIBS="$LIBS -lmpc "
1696cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001697#line 1698 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001698#include "confdefs.h"
1699
Guido van Rossum7f43da71994-08-01 12:15:30 +00001700int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001701int t() {
1702usconfig()
1703; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001704EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001705if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001706 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001707 eval "ac_cv_lib_mpc=yes"
1708else
1709 rm -rf conftest*
1710 eval "ac_cv_lib_mpc=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001711fi
1712rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001713LIBS="$ac_save_LIBS"
1714
1715fi
1716if eval "test \"`echo '$ac_cv_lib_'mpc`\" = yes"; then
1717 echo "$ac_t""yes" 1>&4
1718 cat >> confdefs.h <<\EOF
1719#define WITH_THREAD 1
1720EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001721
Guido van Rossum7f43da71994-08-01 12:15:30 +00001722LIBS="$LIBS -lmpc"
1723LIBOBJS="$LIBOBJS thread.o"
1724else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001725 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00001726fi
1727
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001728echo $ac_n "checking for -lthread""... $ac_c" 1>&4
1729if eval "test \"`echo '${'ac_cv_lib_thread'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&4
1731else
1732 ac_save_LIBS="$LIBS"
1733LIBS="$LIBS -lthread "
1734cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001735#line 1736 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001736#include "confdefs.h"
1737
Guido van Rossum7f43da71994-08-01 12:15:30 +00001738int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001739int t() {
1740thr_create()
1741; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001742EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001743if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001744 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001745 eval "ac_cv_lib_thread=yes"
1746else
1747 rm -rf conftest*
1748 eval "ac_cv_lib_thread=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001749fi
1750rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001751LIBS="$ac_save_LIBS"
1752
1753fi
1754if eval "test \"`echo '$ac_cv_lib_'thread`\" = yes"; then
1755 echo "$ac_t""yes" 1>&4
1756 cat >> confdefs.h <<\EOF
1757#define WITH_THREAD 1
1758EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001759
Guido van Rossum7f43da71994-08-01 12:15:30 +00001760LIBS="$LIBS -lthread"
1761LIBOBJS="$LIBOBJS thread.o"
1762else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001763 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00001764fi
1765
Guido van Rossum7f43da71994-08-01 12:15:30 +00001766
Guido van Rossumda88dad1995-01-26 00:46:29 +00001767else
1768 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00001769fi
1770
Guido van Rossum7f43da71994-08-01 12:15:30 +00001771
1772# -I${DLINCLDIR} is added to the compile rule for import.o
1773
1774DLINCLDIR=/
1775
Guido van Rossumda88dad1995-01-26 00:46:29 +00001776echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001777# Check whether --with-sgi-dl or --without-sgi-dl was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00001778withval="$with_sgi_dl"
1779if test -n "$withval"; then
1780
Guido van Rossumda88dad1995-01-26 00:46:29 +00001781echo "$ac_t""$withval" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001782cat >> confdefs.h <<\EOF
1783#define WITH_SGI_DL 1
1784EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001785
1786dldir=$withval
1787if test -d "$dldir"
1788then LIBS="$LIBS -L$dldir"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001789else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001790fi
1791DLINCLDIR=${dldir}
1792LIBS="$LIBS -ldl -lmld"
Guido van Rossumda88dad1995-01-26 00:46:29 +00001793else
1794 echo "$ac_t""no" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00001795fi
1796
1797
Guido van Rossumda88dad1995-01-26 00:46:29 +00001798echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001799# Check whether --with-dl-dld or --without-dl-dld was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00001800withval="$with_dl_dld"
1801if test -n "$withval"; then
1802
Guido van Rossumda88dad1995-01-26 00:46:29 +00001803echo "$ac_t""$withval" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001804cat >> confdefs.h <<\EOF
1805#define WITH_DL_DLD 1
1806EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001807
1808dldir=`echo "$withval" | sed 's/,.*//'`
1809dlddir=`echo "$withval" | sed 's/.*,//'`
1810if test -d "$dldir" -a -d "$dlddir"
1811then LIBS="$LIBS -L$dldir -L$dlddir"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001812else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001813fi
1814DLINCLDIR=${dldir}
1815LIBS="$LIBS -ldl -ldld"
Guido van Rossumda88dad1995-01-26 00:46:29 +00001816else
1817 echo "$ac_t""no" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00001818fi
1819
1820
Guido van Rossum627b2d71993-12-24 10:39:16 +00001821# checks for library functions
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001822for ac_func in chown clock dlopen ftime ftruncate gethostname_r gettimeofday getpeername getpgrp getpid getwd link lstat nice readlink select setgid setuid setsid setpgid setpgrp setvbuf siginterrupt symlink tcgetpgrp tcsetpgrp times truncate uname waitpid
Guido van Rossum627b2d71993-12-24 10:39:16 +00001823do
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001824echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
1825if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&4
1827else
1828 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001829#line 1830 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001830#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001831#include <ctype.h> /* Arbitrary system header to define __stub macros. */
Guido van Rossum7f43da71994-08-01 12:15:30 +00001832int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001833int t() {
1834
Guido van Rossum627b2d71993-12-24 10:39:16 +00001835/* The GNU C library defines this for functions which it implements
1836 to always fail with ENOSYS. Some functions are actually named
1837 something starting with __ and the normal name is an alias. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum627b2d71993-12-24 10:39:16 +00001839choke me
1840#else
1841/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001842char $ac_func(); $ac_func();
Guido van Rossum627b2d71993-12-24 10:39:16 +00001843#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001844
Guido van Rossum7f43da71994-08-01 12:15:30 +00001845; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001846EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001847if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001848 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001849 eval "ac_cv_func_$ac_func=yes"
1850else
1851 rm -rf conftest*
1852 eval "ac_cv_func_$ac_func=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001853fi
1854rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001855
1856fi
1857if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1858 echo "$ac_t""yes" 1>&4
1859 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
1860 cat >> confdefs.h <<EOF
1861#define $ac_tr_func 1
1862EOF
1863
1864else
1865 echo "$ac_t""no" 1>&4
1866fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001867done
1868
Guido van Rossum7f43da71994-08-01 12:15:30 +00001869for ac_func in dup2 getcwd strerror memmove
Guido van Rossum627b2d71993-12-24 10:39:16 +00001870do
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001871echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
1872if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&4
1874else
1875 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001876#line 1877 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001877#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001878#include <ctype.h> /* Arbitrary system header to define __stub macros. */
Guido van Rossum7f43da71994-08-01 12:15:30 +00001879int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001880int t() {
1881
Guido van Rossum627b2d71993-12-24 10:39:16 +00001882/* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001885#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum627b2d71993-12-24 10:39:16 +00001886choke me
1887#else
1888/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001889char $ac_func(); $ac_func();
Guido van Rossum627b2d71993-12-24 10:39:16 +00001890#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001891
Guido van Rossum7f43da71994-08-01 12:15:30 +00001892; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001893EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001894if eval $ac_link; then
1895 rm -rf conftest*
1896 eval "ac_cv_func_$ac_func=yes"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001897else
1898 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001899 eval "ac_cv_func_$ac_func=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001900fi
1901rm -f conftest*
1902
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001903fi
1904if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1905 echo "$ac_t""yes" 1>&4
1906 :
1907else
1908 echo "$ac_t""no" 1>&4
1909LIBOBJS="$LIBOBJS ${ac_func}.o"
1910fi
1911
Guido van Rossum627b2d71993-12-24 10:39:16 +00001912done
1913
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001914echo $ac_n "checking for getpgrp""... $ac_c" 1>&4
1915if eval "test \"`echo '${'ac_cv_func_getpgrp'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&4
1917else
1918 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001919#line 1920 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001920#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001921#include <ctype.h> /* Arbitrary system header to define __stub macros. */
Guido van Rossum7f43da71994-08-01 12:15:30 +00001922int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001923int t() {
1924
Guido van Rossum627b2d71993-12-24 10:39:16 +00001925/* The GNU C library defines this for functions which it implements
1926 to always fail with ENOSYS. Some functions are actually named
1927 something starting with __ and the normal name is an alias. */
1928#if defined (__stub_getpgrp) || defined (__stub___getpgrp)
1929choke me
1930#else
1931/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001932char getpgrp(); getpgrp();
Guido van Rossum627b2d71993-12-24 10:39:16 +00001933#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001934
1935; return 0; }
1936EOF
1937if eval $ac_link; then
1938 rm -rf conftest*
1939 eval "ac_cv_func_getpgrp=yes"
1940else
1941 rm -rf conftest*
1942 eval "ac_cv_func_getpgrp=no"
1943fi
1944rm -f conftest*
1945
1946fi
1947if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then
1948 echo "$ac_t""yes" 1>&4
1949 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001950#line 1951 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001951#include "confdefs.h"
1952#include <unistd.h>
1953int main() { return 0; }
1954int t() {
1955getpgrp(0);
Guido van Rossum7f43da71994-08-01 12:15:30 +00001956; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001957EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001958if eval $ac_compile; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001959 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001960 cat >> confdefs.h <<\EOF
1961#define GETPGRP_HAVE_ARG 1
Guido van Rossum627b2d71993-12-24 10:39:16 +00001962EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001963
1964fi
1965rm -f conftest*
1966
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001967else
1968 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00001969fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001970
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001971echo $ac_n "checking for setpgrp""... $ac_c" 1>&4
1972if eval "test \"`echo '${'ac_cv_func_setpgrp'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&4
1974else
1975 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00001976#line 1977 "configure"
Guido van Rossum8eee56f1994-10-20 22:18:37 +00001977#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001978#include <ctype.h> /* Arbitrary system header to define __stub macros. */
Guido van Rossum8eee56f1994-10-20 22:18:37 +00001979int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001980int t() {
1981
Guido van Rossum8eee56f1994-10-20 22:18:37 +00001982/* The GNU C library defines this for functions which it implements
1983 to always fail with ENOSYS. Some functions are actually named
1984 something starting with __ and the normal name is an alias. */
1985#if defined (__stub_setpgrp) || defined (__stub___setpgrp)
1986choke me
1987#else
1988/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001989char setpgrp(); setpgrp();
Guido van Rossum8eee56f1994-10-20 22:18:37 +00001990#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001991
1992; return 0; }
1993EOF
1994if eval $ac_link; then
1995 rm -rf conftest*
1996 eval "ac_cv_func_setpgrp=yes"
1997else
1998 rm -rf conftest*
1999 eval "ac_cv_func_setpgrp=no"
2000fi
2001rm -f conftest*
2002
2003fi
2004if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then
2005 echo "$ac_t""yes" 1>&4
2006 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002007#line 2008 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002008#include "confdefs.h"
2009#include <unistd.h>
2010int main() { return 0; }
2011int t() {
2012setpgrp(0,0);
Guido van Rossum8eee56f1994-10-20 22:18:37 +00002013; return 0; }
2014EOF
2015if eval $ac_compile; then
2016 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002017 cat >> confdefs.h <<\EOF
2018#define SETPGRP_HAVE_ARG 1
Guido van Rossum8eee56f1994-10-20 22:18:37 +00002019EOF
Guido van Rossum8eee56f1994-10-20 22:18:37 +00002020
2021fi
2022rm -f conftest*
2023
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002024else
2025 echo "$ac_t""no" 1>&4
Guido van Rossum8eee56f1994-10-20 22:18:37 +00002026fi
Guido van Rossum8eee56f1994-10-20 22:18:37 +00002027
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002028echo $ac_n "checking for gettimeofday""... $ac_c" 1>&4
2029if eval "test \"`echo '${'ac_cv_func_gettimeofday'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&4
2031else
2032 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002033#line 2034 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002034#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002035#include <ctype.h> /* Arbitrary system header to define __stub macros. */
2036int main() { return 0; }
2037int t() {
2038
2039/* The GNU C library defines this for functions which it implements
2040 to always fail with ENOSYS. Some functions are actually named
2041 something starting with __ and the normal name is an alias. */
2042#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
2043choke me
2044#else
2045/* Override any gcc2 internal prototype to avoid an error. */
2046char gettimeofday(); gettimeofday();
2047#endif
2048
2049; return 0; }
2050EOF
2051if eval $ac_link; then
2052 rm -rf conftest*
2053 eval "ac_cv_func_gettimeofday=yes"
2054else
2055 rm -rf conftest*
2056 eval "ac_cv_func_gettimeofday=no"
2057fi
2058rm -f conftest*
2059
2060fi
2061if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
2062 echo "$ac_t""yes" 1>&4
2063 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002064#line 2065 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002065#include "confdefs.h"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002066#include <sys/time.h>
Guido van Rossum7f43da71994-08-01 12:15:30 +00002067int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002068int t() {
2069gettimeofday((struct timeval*)0,(struct timezone*)0);
2070; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002071EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00002072if eval $ac_compile; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00002073 :
2074else
2075 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002076 cat >> confdefs.h <<\EOF
2077#define GETTIMEOFDAY_NO_TZ 1
2078EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002079
2080fi
2081rm -f conftest*
2082
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002083else
2084 echo "$ac_t""no" 1>&4
2085fi
2086
2087
2088# checks for structures
2089echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&4
2090if eval "test \"`echo '${'ac_cv_header_time'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&4
2092else
2093 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002094#line 2095 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002095#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002096#include <sys/types.h>
2097#include <sys/time.h>
2098#include <time.h>
Guido van Rossum7f43da71994-08-01 12:15:30 +00002099int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002100int t() {
2101struct tm *tp;
2102; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002103EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00002104if eval $ac_compile; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00002105 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002106 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002107else
2108 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002109 ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00002110fi
2111rm -f conftest*
2112
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002113fi
2114echo "$ac_t""$ac_cv_header_time" 1>&4
2115if test $ac_cv_header_time = yes; then
2116 cat >> confdefs.h <<\EOF
2117#define TIME_WITH_SYS_TIME 1
2118EOF
2119
2120fi
2121
2122echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&4
2123if eval "test \"`echo '${'ac_cv_struct_tm'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&4
2125else
2126 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002127#line 2128 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002128#include "confdefs.h"
2129#include <sys/types.h>
2130#include <time.h>
2131int main() { return 0; }
2132int t() {
2133struct tm *tp; tp->tm_sec;
2134; return 0; }
2135EOF
2136if eval $ac_compile; then
2137 rm -rf conftest*
2138 ac_cv_struct_tm=time.h
2139else
2140 rm -rf conftest*
2141 ac_cv_struct_tm=sys/time.h
2142fi
2143rm -f conftest*
2144
2145fi
2146echo "$ac_t""$ac_cv_struct_tm" 1>&4
2147if test $ac_cv_struct_tm = sys/time.h; then
2148 cat >> confdefs.h <<\EOF
2149#define TM_IN_SYS_TIME 1
2150EOF
2151
2152fi
2153
2154echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&4
2155if eval "test \"`echo '${'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&4
2157else
2158 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002159#line 2160 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002160#include "confdefs.h"
2161#include <sys/types.h>
2162#include <$ac_cv_struct_tm>
2163int main() { return 0; }
2164int t() {
2165struct tm tm; tm.tm_zone;
2166; return 0; }
2167EOF
2168if eval $ac_compile; then
2169 rm -rf conftest*
2170 ac_cv_struct_tm_zone=yes
2171else
2172 rm -rf conftest*
2173 ac_cv_struct_tm_zone=no
2174fi
2175rm -f conftest*
2176
2177fi
2178echo "$ac_t""$ac_cv_struct_tm_zone" 1>&4
2179if test "$ac_cv_struct_tm_zone" = yes; then
2180 cat >> confdefs.h <<\EOF
2181#define HAVE_TM_ZONE 1
2182EOF
2183
2184else
2185 echo $ac_n "checking for tzname""... $ac_c" 1>&4
2186if eval "test \"`echo '${'ac_cv_var_tzname'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&4
2188else
2189 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002190#line 2191 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002191#include "confdefs.h"
2192#include <time.h>
2193#ifndef tzname /* For SGI. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002194extern char *tzname[]; /* RS6000 and others reject char **tzname. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00002195#endif
Guido van Rossum7f43da71994-08-01 12:15:30 +00002196int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002197int t() {
2198atoi(*tzname);
2199; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002200EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002201if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00002202 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002203 ac_cv_var_tzname=yes
2204else
2205 rm -rf conftest*
2206 ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00002207fi
2208rm -f conftest*
2209
2210fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002211 echo "$ac_t""$ac_cv_var_tzname" 1>&4
2212 if test $ac_cv_var_tzname = yes; then
2213 cat >> confdefs.h <<\EOF
2214#define HAVE_TZNAME 1
2215EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002216
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002217 fi
2218fi
2219
2220
2221echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&4
2222if eval "test \"`echo '${'ac_cv_header_time_altzone'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&4
2224else
2225 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002226#line 2227 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002227#include "confdefs.h"
2228#include <time.h>
2229int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002230int t() {
2231return altzone;
2232; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002233EOF
2234if eval $ac_compile; then
2235 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002236 ac_cv_header_time_altzone=yes
2237else
2238 rm -rf conftest*
2239 ac_cv_header_time_altzone=no
Guido van Rossum7f43da71994-08-01 12:15:30 +00002240fi
2241rm -f conftest*
2242
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002243fi
2244
2245echo "$ac_t""$ac_cv_header_time_altzone" 1>&4
2246if test $ac_cv_header_time_altzone = yes; then
2247 cat >> confdefs.h <<\EOF
2248#define HAVE_ALTZONE 1
2249EOF
2250
2251fi
2252
Guido van Rossumda88dad1995-01-26 00:46:29 +00002253was_it_defined=no
2254echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002255cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002256#line 2257 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002257#include "confdefs.h"
2258
2259#include <sys/types.h>
2260#include <sys/select.h>
2261#include <sys/time.h>
2262
2263int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002264int t() {
2265;
2266; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002267EOF
2268if eval $ac_compile; then
2269 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002270 cat >> confdefs.h <<\EOF
2271#define SYS_SELECT_WITH_SYS_TIME 1
2272EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002273 was_it_defined=yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00002274fi
2275rm -f conftest*
2276
Guido van Rossumda88dad1995-01-26 00:46:29 +00002277echo "$ac_t""$was_it_defined" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00002278
2279# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:30 +00002280
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002281echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&4
2282if eval "test \"`echo '${'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&4
2284else
2285 if test "$GCC" = yes; then
2286 # GCC predefines this symbol on systems where it applies.
2287cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002288#line 2289 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002289#include "confdefs.h"
2290#ifdef __CHAR_UNSIGNED__
2291 yes
2292#endif
2293
2294EOF
2295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2296 egrep "yes" >/dev/null 2>&1; then
2297 rm -rf conftest*
2298 ac_cv_c_char_unsigned=yes
2299else
2300 rm -rf conftest*
2301 ac_cv_c_char_unsigned=no
2302fi
2303rm -f conftest*
2304
2305else
2306if test "$cross_compiling" = yes; then
2307 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2308else
2309cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002310#line 2311 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002311#include "confdefs.h"
2312/* volatile prevents gcc2 from optimizing the test away on sparcs. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002313#if !defined(__STDC__) || __STDC__ != 1
Guido van Rossum7f43da71994-08-01 12:15:30 +00002314#define volatile
2315#endif
2316main() {
Guido van Rossum7f43da71994-08-01 12:15:30 +00002317 volatile char c = 255; exit(c < 0);
Guido van Rossum7f43da71994-08-01 12:15:30 +00002318}
2319EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002320eval $ac_link
Guido van Rossum7f43da71994-08-01 12:15:30 +00002321if test -s conftest && (./conftest; exit) 2>/dev/null; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002322 ac_cv_c_char_unsigned=yes
2323else
2324 ac_cv_c_char_unsigned=no
2325fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00002326fi
2327rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002328fi
2329fi
2330echo "$ac_t""$ac_cv_c_char_unsigned" 1>&4
2331if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2332 cat >> confdefs.h <<\EOF
2333#define __CHAR_UNSIGNED__ 1
2334EOF
2335
2336fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00002337
2338
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002339echo $ac_n "checking for working const""... $ac_c" 1>&4
2340if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&4
2342else
2343 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002344#line 2345 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002345#include "confdefs.h"
2346
2347int main() { return 0; }
2348int t() {
2349
2350/* Ultrix mips cc rejects this. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00002351typedef int charset[2]; const charset x;
2352/* SunOS 4.1.1 cc rejects this. */
2353char const *const *ccp;
2354char **p;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002355/* NEC SVR4.0.2 mips cc rejects this. */
2356struct point {int x, y;};
2357static struct point const zero;
Guido van Rossum627b2d71993-12-24 10:39:16 +00002358/* AIX XL C 1.02.0.0 rejects this.
2359 It does not let you subtract one const X* pointer from another in an arm
2360 of an if-expression whose if-part is not a constant expression */
2361const char *g = "string";
2362ccp = &g + (g ? g-g : 0);
2363/* HPUX 7.0 cc rejects these. */
2364++ccp;
2365p = (char**) ccp;
2366ccp = (char const *const *) p;
2367{ /* SCO 3.2v4 cc rejects this. */
2368 char *t;
2369 char const *s = 0 ? (char *) 0 : (char const *) 0;
2370
2371 *t++ = 0;
2372}
2373{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002374 int x[] = {25, 17};
Guido van Rossum627b2d71993-12-24 10:39:16 +00002375 const int *foo = &x[0];
2376 ++foo;
2377}
2378{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2379 typedef const int *iptr;
2380 iptr p = 0;
2381 ++p;
2382}
2383{ /* AIX XL C 1.02.0.0 rejects this saying
2384 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2385 struct s { int j; const int *ap[3]; };
2386 struct s *b; b->j = 5;
2387}
2388{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2389 const int foo = 10;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002390}
2391
2392; return 0; }
2393EOF
2394if eval $ac_compile; then
2395 rm -rf conftest*
2396 ac_cv_c_const=yes
2397else
2398 rm -rf conftest*
2399 ac_cv_c_const=no
2400fi
2401rm -f conftest*
2402
2403fi
2404echo "$ac_t""$ac_cv_c_const" 1>&4
2405if test $ac_cv_c_const = no; then
2406 cat >> confdefs.h <<\EOF
2407#define const
2408EOF
2409
2410fi
2411
2412
Guido van Rossumda88dad1995-01-26 00:46:29 +00002413works=no
2414echo $ac_n "checking for working volatile""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002415cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002416#line 2417 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002417#include "confdefs.h"
2418
Guido van Rossum7f43da71994-08-01 12:15:30 +00002419int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002420int t() {
2421volatile int x; x = 0;
2422; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002423EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00002424if eval $ac_compile; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00002425 rm -rf conftest*
2426 works=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002427else
2428 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002429 cat >> confdefs.h <<\EOF
2430#define volatile
2431EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002432
2433fi
2434rm -f conftest*
2435
Guido van Rossumda88dad1995-01-26 00:46:29 +00002436echo "$ac_t""$works" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00002437
Guido van Rossumda88dad1995-01-26 00:46:29 +00002438works=no
2439echo $ac_n "checking for working signed char""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002440cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002441#line 2442 "configure"
Guido van Rossumdabb11b1994-10-11 15:04:27 +00002442#include "confdefs.h"
2443
2444int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002445int t() {
2446signed char c;
2447; return 0; }
Guido van Rossumdabb11b1994-10-11 15:04:27 +00002448EOF
2449if eval $ac_compile; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00002450 rm -rf conftest*
2451 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:27 +00002452else
2453 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002454 cat >> confdefs.h <<\EOF
2455#define signed
Guido van Rossum627b2d71993-12-24 10:39:16 +00002456EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00002457
2458fi
2459rm -f conftest*
2460
Guido van Rossumda88dad1995-01-26 00:46:29 +00002461echo "$ac_t""$works" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00002462
Guido van Rossumda88dad1995-01-26 00:46:29 +00002463have_prototypes=no
2464echo $ac_n "checking for prototypes""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002465cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002466#line 2467 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002467#include "confdefs.h"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002468int foo(int x) { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002469int main() { return 0; }
2470int t() {
2471return foo(10);
2472; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002473EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002474if eval $ac_compile; then
2475 rm -rf conftest*
2476 cat >> confdefs.h <<\EOF
2477#define HAVE_PROTOTYPES 1
2478EOF
2479 have_prototypes=yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00002480fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002481rm -f conftest*
Guido van Rossum7f43da71994-08-01 12:15:30 +00002482
Guido van Rossumda88dad1995-01-26 00:46:29 +00002483echo "$ac_t""$have_prototypes" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002484
Guido van Rossumda88dad1995-01-26 00:46:29 +00002485works=no
2486echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002487cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002488#line 2489 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002489#include "confdefs.h"
2490
2491#include <stdarg.h>
2492int foo(int x, ...) { return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002493
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002494int main() { return 0; }
2495int t() {
2496return foo(10, 11, 12);
2497; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002498EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002499if eval $ac_compile; then
2500 rm -rf conftest*
2501 cat >> confdefs.h <<\EOF
2502#define HAVE_STDARG_PROTOTYPES 1
2503EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002504 works=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002505fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002506rm -f conftest*
2507
Guido van Rossumda88dad1995-01-26 00:46:29 +00002508echo "$ac_t""$works" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002509
Guido van Rossumda88dad1995-01-26 00:46:29 +00002510if test "$have_prototypes" = yes; then
2511bad_prototypes=no
2512echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002513cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002514#line 2515 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002515#include "confdefs.h"
2516#include <unistd.h>
Guido van Rossum7f43da71994-08-01 12:15:30 +00002517int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002518int t() {
2519char **t;execve("@",t,t);
2520; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002521EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00002522if eval $ac_compile; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00002523 :
2524else
2525 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002526 cat >> confdefs.h <<\EOF
2527#define BAD_EXEC_PROTOTYPES 1
2528EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002529 bad_prototypes=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002530fi
2531rm -f conftest*
2532
Guido van Rossumda88dad1995-01-26 00:46:29 +00002533echo "$ac_t""$bad_prototypes" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00002534fi
2535
Guido van Rossumda88dad1995-01-26 00:46:29 +00002536bad_forward=no
2537echo $ac_n "checking for bad static forward""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002538if test "$cross_compiling" = yes; then
2539 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2540else
2541cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002542#line 2543 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002543#include "confdefs.h"
2544
2545struct s { int a; int b; };
2546static struct s foo;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002547int foobar() {
2548 static int random;
2549 random = (int) &foo;
2550 return random;
2551}
Guido van Rossum7f43da71994-08-01 12:15:30 +00002552static struct s foo = { 1, 2 };
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002553main() {
2554 exit(!((int)&foo == foobar()));
2555}
Guido van Rossum7f43da71994-08-01 12:15:30 +00002556
2557EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002558eval $ac_link
Guido van Rossum7f43da71994-08-01 12:15:30 +00002559if test -s conftest && (./conftest; exit) 2>/dev/null; then
2560 :
2561else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002562 cat >> confdefs.h <<\EOF
2563#define BAD_STATIC_FORWARD 1
2564EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002565 bad_forward=yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00002566fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002567fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00002568rm -fr conftest*
Guido van Rossumda88dad1995-01-26 00:46:29 +00002569echo "$ac_t""$bad_forward" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00002570
Guido van Rossumda88dad1995-01-26 00:46:29 +00002571va_list_is_array=no
2572echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002573cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002574#line 2575 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002575#include "confdefs.h"
2576
2577#ifdef HAVE_STDARG_PROTOTYPES
2578#include <stdarg.h>
2579#else
2580#include <varargs.h>
2581#endif
2582
2583int main() { return 0; }
2584int t() {
2585va_list list1, list2; list1 = list2;
2586; return 0; }
2587EOF
2588if eval $ac_compile; then
2589 :
2590else
2591 rm -rf conftest*
2592 cat >> confdefs.h <<\EOF
2593#define VA_LIST_IS_ARRAY 1
2594EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002595 va_list_is_array=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002596fi
2597rm -f conftest*
2598
Guido van Rossumda88dad1995-01-26 00:46:29 +00002599echo "$ac_t""$va_list_is_array" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002600
Guido van Rossum627b2d71993-12-24 10:39:16 +00002601# checks for system services
2602# (none yet)
2603
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002604# Linux requires this for correct f.p. operations
2605echo $ac_n "checking for -lieee""... $ac_c" 1>&4
2606if eval "test \"`echo '${'ac_cv_lib_ieee'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&4
2608else
2609 ac_save_LIBS="$LIBS"
2610LIBS="$LIBS -lieee "
2611cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002612#line 2613 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002613#include "confdefs.h"
2614
Guido van Rossum7f43da71994-08-01 12:15:30 +00002615int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002616int t() {
2617__fpu_control()
2618; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002619EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002620if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00002621 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002622 eval "ac_cv_lib_ieee=yes"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002623else
Guido van Rossum627b2d71993-12-24 10:39:16 +00002624 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002625 eval "ac_cv_lib_ieee=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002626fi
2627rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002628LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002629
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002630fi
2631if eval "test \"`echo '$ac_cv_lib_'ieee`\" = yes"; then
2632 echo "$ac_t""yes" 1>&4
2633 ac_tr_lib=HAVE_LIB`echo ieee | tr '[a-z]' '[A-Z]'`
2634 cat >> confdefs.h <<EOF
2635#define $ac_tr_lib 1
2636EOF
2637
2638 LIBS="$LIBS -lieee"
2639
2640else
2641 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00002642fi
2643
2644
Guido van Rossum7f43da71994-08-01 12:15:30 +00002645# check for --with-libm=...
2646
2647LIBM=-lm
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002648# Check whether --with-libm or --without-libm was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00002649withval="$with_libm"
2650if test -n "$withval"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002651
2652if test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00002653then LIBM=$withval
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002654else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002655fi
2656fi
2657
2658
2659# check for --with-libc=...
2660
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002661# Check whether --with-libc or --without-libc was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00002662withval="$with_libc"
2663if test -n "$withval"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002664
2665if test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00002666then LIBC=$withval
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002667else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002668fi
2669fi
2670
2671
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00002672# check for hypot() in math library
2673LIBS_SAVE=$LIBS
2674LIBS="$LIBS $LIBM"
2675for ac_func in hypot
2676do
2677echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
2678if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&4
2680else
2681 cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002682#line 2683 "configure"
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00002683#include "confdefs.h"
2684#include <ctype.h> /* Arbitrary system header to define __stub macros. */
2685int main() { return 0; }
2686int t() {
2687
2688/* The GNU C library defines this for functions which it implements
2689 to always fail with ENOSYS. Some functions are actually named
2690 something starting with __ and the normal name is an alias. */
2691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2692choke me
2693#else
2694/* Override any gcc2 internal prototype to avoid an error. */
2695char $ac_func(); $ac_func();
2696#endif
2697
2698; return 0; }
2699EOF
2700if eval $ac_link; then
2701 rm -rf conftest*
2702 eval "ac_cv_func_$ac_func=yes"
2703else
2704 rm -rf conftest*
2705 eval "ac_cv_func_$ac_func=no"
2706fi
2707rm -f conftest*
2708
2709fi
2710if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2711 echo "$ac_t""yes" 1>&4
2712 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
2713 cat >> confdefs.h <<EOF
2714#define $ac_tr_func 1
2715EOF
2716
2717else
2718 echo "$ac_t""no" 1>&4
2719fi
2720done
2721
2722LIBS=$LIBS_SAVE
2723
Guido van Rossumda88dad1995-01-26 00:46:29 +00002724# check for getopt
2725echo $ac_n "checking for genuine getopt""... $ac_c" 1>&4
2726if eval "test \"`echo '${'ac_cv_func_getopt'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&4
2728else
2729 if test "$cross_compiling" = yes; then
2730 ac_cv_func_getopt=no
2731else
2732cat > conftest.$ac_ext <<EOF
Guido van Rossumaf07a441995-02-13 19:45:27 +00002733#line 2734 "configure"
Guido van Rossumda88dad1995-01-26 00:46:29 +00002734#include "confdefs.h"
2735#include <stdio.h>
2736extern int optind, opterr, getopt();
2737extern char* optarg;
2738int main() {
2739 char* av[] = { "testprog", "parameter", "-fFlag", NULL };
2740 opterr = 0;
2741 if (getopt(3, av, "f:") == 'f') { exit(1); }
2742 exit(0);
2743}
2744EOF
2745eval $ac_link
2746if test -s conftest && (./conftest; exit) 2>/dev/null; then
2747 ac_cv_func_getopt=yes
2748else
2749 ac_cv_func_getopt=no
2750fi
2751fi
2752rm -fr conftest*
2753fi
2754echo "$ac_t""$ac_cv_func_getopt" 1>&4
2755test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o"
2756
Guido van Rossum627b2d71993-12-24 10:39:16 +00002757# generate output files
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002758trap '' 1 2 15
2759if test -w $cache_file; then
2760echo "updating cache $cache_file"
2761cat > $cache_file <<\EOF
2762# This file is a shell script that caches the results of configure
2763# tests run on this system so they can be shared between configure
2764# scripts and configure runs. It is not useful on other systems.
2765# If it contains results you don't want to keep, you may remove or edit it.
2766#
2767# By default, configure uses ./config.cache as the cache file,
2768# creating it if it does not exist already. You can give configure
2769# the --cache-file=FILE option to use a different cache file; that is
2770# what configure does when it calls configure scripts in
2771# subdirectories, so they share the cache.
2772# Giving --cache-file=/dev/null disables caching, for debugging configure.
2773# config.status only pays attention to the cache file if you give it the
2774# --recheck option to rerun configure.
2775#
2776EOF
2777# Ultrix sh set writes to stderr and can't be redirected directly.
2778(set) 2>&1 |
2779 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
2780 >> $cache_file
2781else
2782echo "not updating unwritable cache $cache_file"
2783fi
Guido van Rossum0a516c91994-09-12 10:58:40 +00002784
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002785trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
2786
2787test "x$prefix" = xNONE && prefix=$ac_default_prefix
2788# Let make expand exec_prefix.
2789test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:40 +00002790
Guido van Rossum7f43da71994-08-01 12:15:30 +00002791# Any assignment to VPATH causes Sun make to only execute
2792# the first set of double-colon rules, so remove it if not needed.
2793# If there is a colon in the path, we need to keep it.
2794if test "x$srcdir" = x.; then
2795 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2796fi
2797
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002798trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
Guido van Rossum627b2d71993-12-24 10:39:16 +00002799
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002800DEFS=-DHAVE_CONFIG_H
2801
2802# Without the "./", some shells look in PATH for config.status.
2803: ${CONFIG_STATUS=./config.status}
2804
2805echo creating $CONFIG_STATUS
2806rm -f $CONFIG_STATUS
2807cat > $CONFIG_STATUS <<EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002808#!/bin/sh
2809# Generated automatically by configure.
2810# Run this file to recreate the current configuration.
2811# This directory was configured as follows,
2812# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2813#
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002814# $0 $ac_configure_args
2815#
2816# Compiler output produced by configure, useful for debugging
2817# configure, is in ./config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:16 +00002818
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002819ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002820for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16 +00002821do
Guido van Rossum7f43da71994-08-01 12:15:30 +00002822 case "\$ac_option" in
2823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002824 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2825 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00002826 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002827 echo "$CONFIG_STATUS generated by autoconf version 2.0"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002828 exit 0 ;;
2829 -help | --help | --hel | --he | --h)
2830 echo "\$ac_cs_usage"; exit 0 ;;
2831 *) echo "\$ac_cs_usage"; exit 1 ;;
Guido van Rossum627b2d71993-12-24 10:39:16 +00002832 esac
2833done
2834
Guido van Rossum7f43da71994-08-01 12:15:30 +00002835ac_given_srcdir=$srcdir
Guido van Rossum627b2d71993-12-24 10:39:16 +00002836
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002837trap 'rm -fr Makefile Objects/Makefile Parser/Makefile Python/Makefile Modules/Makefile.pre config.h conftest*; exit 1' 1 2 15
Guido van Rossum7f43da71994-08-01 12:15:30 +00002838
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002839# Protect against being on the right side of a sed subst in config.status.
2840sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2841 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00002842$ac_vpsub
Guido van Rossum627b2d71993-12-24 10:39:16 +00002843$extrasub
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002844s%@CFLAGS@%$CFLAGS%g
2845s%@CPPFLAGS@%$CPPFLAGS%g
2846s%@CXXFLAGS@%$CXXFLAGS%g
2847s%@DEFS@%$DEFS%g
2848s%@LDFLAGS@%$LDFLAGS%g
2849s%@LIBS@%$LIBS%g
2850s%@exec_prefix@%$exec_prefix%g
2851s%@prefix@%$prefix%g
2852s%@program_transform_name@%$program_transform_name%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00002853s%@CC@%$CC%g
2854s%@RANLIB@%$RANLIB%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00002855s%@AR@%$AR%g
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00002856s%@INSTALL@%$INSTALL%g
Guido van Rossumda88dad1995-01-26 00:46:29 +00002857s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2858s%@INSTALL_DATA@%$INSTALL_DATA%g
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00002859s%@OPT@%$OPT%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00002860s%@CPP@%$CPP%g
Guido van Rossum0a516c91994-09-12 10:58:40 +00002861s%@MACHDEP@%$MACHDEP%g
2862s%@SO@%$SO%g
2863s%@LDSHARED@%$LDSHARED%g
2864s%@CCSHARED@%$CCSHARED%g
2865s%@LINKFORSHARED@%$LINKFORSHARED%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00002866s%@DLINCLDIR@%$DLINCLDIR%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00002867s%@LIBOBJS@%$LIBOBJS%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00002868s%@LIBM@%$LIBM%g
2869s%@LIBC@%$LIBC%g
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002870
2871CEOF
2872EOF
2873cat >> $CONFIG_STATUS <<EOF
2874
2875CONFIG_FILES=\${CONFIG_FILES-"Makefile Objects/Makefile Parser/Makefile Python/Makefile Modules/Makefile.pre"}
2876EOF
2877cat >> $CONFIG_STATUS <<\EOF
2878for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2879 # Support "outfile[:infile]", defaulting infile="outfile.in".
2880 case "$ac_file" in
2881 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2882 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2883 *) ac_file_in="${ac_file}.in" ;;
2884 esac
2885
2886 # Adjust relative srcdir, etc. for subdirectories.
2887
2888 # Remove last slash and all that follows it. Not all systems have dirname.
2889 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2890 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2891 # The file is in a subdirectory.
2892 test ! -d "$ac_dir" && mkdir "$ac_dir"
2893 ac_dir_suffix="/$ac_dir"
2894 # A "../" for each directory in $ac_dir_suffix.
2895 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2896 else
2897 ac_dir_suffix= ac_dots=
2898 fi
2899
2900 case "$ac_given_srcdir" in
2901 .) srcdir=.
2902 if test -z "$ac_dots"; then top_srcdir=.
2903 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2904 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2905 *) # Relative path.
2906 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2907 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2908 esac
2909
2910 echo creating "$ac_file"
2911 rm -f "$ac_file"
2912 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2913 case "$ac_file" in
2914 *Makefile*) ac_comsub="1i\\
2915# $configure_input" ;;
2916 *) ac_comsub= ;;
2917 esac
2918 sed -e "$ac_comsub
2919s%@configure_input@%$configure_input%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00002920s%@srcdir@%$srcdir%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00002921s%@top_srcdir@%$top_srcdir%g
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002922" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
Guido van Rossum627b2d71993-12-24 10:39:16 +00002923fi; done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002924rm -f conftest.subs
Guido van Rossum627b2d71993-12-24 10:39:16 +00002925
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002926# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2927# NAME is the cpp macro being defined and VALUE is the value it is being given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00002928#
2929# ac_d sets the value in "#define NAME VALUE" lines.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002930ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2931ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
Guido van Rossum7f43da71994-08-01 12:15:30 +00002932ac_dC='\3'
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002933ac_dD='%g'
Guido van Rossum7f43da71994-08-01 12:15:30 +00002934# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002935ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2936ac_uB='\([ ]\)%\1#\2define\3'
Guido van Rossum7f43da71994-08-01 12:15:30 +00002937ac_uC=' '
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002938ac_uD='\4%g'
Guido van Rossum7f43da71994-08-01 12:15:30 +00002939# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002940ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2941ac_eB='$%\1#\2define\3'
Guido van Rossum7f43da71994-08-01 12:15:30 +00002942ac_eC=' '
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002943ac_eD='%g'
Guido van Rossum7f43da71994-08-01 12:15:30 +00002944
2945CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002946for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2947 # Support "outfile[:infile]", defaulting infile="outfile.in".
2948 case "$ac_file" in
2949 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2950 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2951 *) ac_file_in="${ac_file}.in" ;;
2952 esac
2953
Guido van Rossum7f43da71994-08-01 12:15:30 +00002954 echo creating $ac_file
2955
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002956 rm -f conftest.frag conftest.in conftest.out
2957 cp $ac_given_srcdir/$ac_file_in conftest.in
2958
2959EOF
2960
2961# Transform confdefs.h into a sed script conftest.vals that substitutes
2962# the proper values into config.h.in to produce config.h. And first:
2963# Protect against being on the right side of a sed subst in config.status.
2964# Protect against being in an unquoted here document in config.status.
2965rm -f conftest.vals
2966cat > conftest.hdr <<\EOF
2967s/[\\&%]/\\&/g
2968s%[\\$`]%\\&%g
2969s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2970s%ac_d%ac_u%gp
2971s%ac_u%ac_e%gp
2972EOF
2973sed -n -f conftest.hdr confdefs.h > conftest.vals
2974rm -f conftest.hdr
2975
2976# This sed command replaces #undef with comments. This is necessary, for
2977# example, in the case of _POSIX_SOURCE, which is predefined and required
2978# on some systems where configure will not decide to define it.
2979cat >> conftest.vals <<\EOF
2980s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2981EOF
2982
2983# Break up conftest.vals because some shells have a limit on
2984# the size of here documents, and old seds have small limits too.
2985# Maximum number of lines to put in a single here document.
2986ac_max_here_lines=12
2987
2988rm -f conftest.tail
2989while :
2990do
2991 ac_lines=`grep -c . conftest.vals`
2992 # grep -c gives empty output for an empty file on some AIX systems.
2993 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2994 # Write a limited-size here document to conftest.frag.
2995 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2996 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2997 echo 'CEOF
2998 sed -f conftest.frag conftest.in > conftest.out
2999 rm -f conftest.in
3000 mv conftest.out conftest.in
3001' >> $CONFIG_STATUS
3002 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3003 rm -f conftest.vals
3004 mv conftest.tail conftest.vals
3005done
3006rm -f conftest.vals
3007
3008cat >> $CONFIG_STATUS <<\EOF
3009 rm -f conftest.frag conftest.h
Guido van Rossum7f43da71994-08-01 12:15:30 +00003010 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003011 cat conftest.in >> conftest.h
3012 rm -f conftest.in
Guido van Rossum7f43da71994-08-01 12:15:30 +00003013 if cmp -s $ac_file conftest.h 2>/dev/null; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00003014 echo "$ac_file is unchanged"
3015 rm -f conftest.h
3016 else
3017 rm -f $ac_file
3018 mv conftest.h $ac_file
3019 fi
3020fi; done
3021
3022
Guido van Rossum627b2d71993-12-24 10:39:16 +00003023
3024exit 0
3025EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003026chmod +x $CONFIG_STATUS
3027rm -fr confdefs* $ac_clean_files
3028test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
Guido van Rossum627b2d71993-12-24 10:39:16 +00003029