*** empty log message ***
[bpt/guile.git] / configure
CommitLineData
0f2d19dd
JB
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
733943b9 4# Generated automatically using autoconf version 2.12
087d2a6f 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
0f2d19dd
JB
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
15ae1bee
MD
14ac_help="$ac_help
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
3a629497
JB
17ac_help="$ac_help
18 --disable-debug Don't include debugging support"
19ac_help="$ac_help
20 --enable-dynamic-linking Include support for dynamic linking"
21ac_help="$ac_help
22 --enable-guile-debug Include internal debugging functions"
757cfb94
MD
23ac_help="$ac_help
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
3a629497
JB
25ac_help="$ac_help
26 --enable-shared build shared libraries [default=yes]"
7c86ae05
JB
27ac_help="$ac_help
28 --enable-static build static libraries [default=yes]"
0f2d19dd
JB
29
30# Initialize some variables set by options.
31# The variables have the same names as the options, with
32# dashes changed to underlines.
33build=NONE
34cache_file=./config.cache
35exec_prefix=NONE
36host=NONE
37no_create=
38nonopt=NONE
39no_recursion=
40prefix=NONE
41program_prefix=NONE
42program_suffix=NONE
43program_transform_name=s,x,x,
44silent=
45site=
46srcdir=
47target=NONE
48verbose=
49x_includes=NONE
50x_libraries=NONE
51bindir='${exec_prefix}/bin'
52sbindir='${exec_prefix}/sbin'
53libexecdir='${exec_prefix}/libexec'
54datadir='${prefix}/share'
55sysconfdir='${prefix}/etc'
56sharedstatedir='${prefix}/com'
57localstatedir='${prefix}/var'
58libdir='${exec_prefix}/lib'
59includedir='${prefix}/include'
60oldincludedir='/usr/include'
61infodir='${prefix}/info'
62mandir='${prefix}/man'
63
64# Initialize some other variables.
65subdirs=
66MFLAGS= MAKEFLAGS=
733943b9
TT
67# Maximum number of lines to put in a shell here document.
68ac_max_here_lines=12
0f2d19dd
JB
69
70ac_prev=
71for ac_option
72do
73
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
77 ac_prev=
78 continue
79 fi
80
81 case "$ac_option" in
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83 *) ac_optarg= ;;
84 esac
85
86 # Accept the important Cygnus configure options, so we can diagnose typos.
87
88 case "$ac_option" in
89
90 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 ac_prev=bindir ;;
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
94
95 -build | --build | --buil | --bui | --bu)
96 ac_prev=build ;;
97 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98 build="$ac_optarg" ;;
99
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
106
107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 ac_prev=datadir ;;
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 | --da=*)
111 datadir="$ac_optarg" ;;
112
113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 fi
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
121
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 fi
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 case "$ac_option" in
130 *=*) ;;
131 *) ac_optarg=yes ;;
132 esac
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
134
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
143
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
146 with_gas=yes ;;
147
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
151 cat << EOF
152Usage: configure [options] [host]
153Options: [defaults in brackets after descriptions]
154Configuration:
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
162 [$ac_default_prefix]
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 [same as prefix]
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
169 [PREFIX/share]
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 [PREFIX/com]
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
184EOF
185 cat << EOF
186Host type:
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
197EOF
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
200 fi
201 exit 0 ;;
202
203 -host | --host | --hos | --ho)
204 ac_prev=host ;;
205 -host=* | --host=* | --hos=* | --ho=*)
206 host="$ac_optarg" ;;
207
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
214
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 ac_prev=infodir ;;
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
219
220 -libdir | --libdir | --libdi | --libd)
221 ac_prev=libdir ;;
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
224
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
231
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
240
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 ac_prev=mandir ;;
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
245
246 -nfp | --nfp | --nf)
247 # Obsolete; use --without-fp.
248 with_fp=no ;;
249
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 | --no-cr | --no-c)
252 no_create=yes ;;
253
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 no_recursion=yes ;;
257
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
266
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 ac_prev=prefix ;;
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
271
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
278
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
285
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
302
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
305 silent=yes ;;
306
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 ac_prev=sbindir ;;
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 | --sbi=* | --sb=*)
311 sbindir="$ac_optarg" ;;
312
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
316 | --sha | --sh)
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 | --sha=* | --sh=*)
322 sharedstatedir="$ac_optarg" ;;
323
324 -site | --site | --sit)
325 ac_prev=site ;;
326 -site=* | --site=* | --sit=*)
327 site="$ac_optarg" ;;
328
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 ac_prev=srcdir ;;
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
333
334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
340
341 -target | --target | --targe | --targ | --tar | --ta | --t)
342 ac_prev=target ;;
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
345
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 verbose=yes ;;
348
349 -version | --version | --versio | --versi | --vers)
733943b9 350 echo "configure generated by autoconf version 2.12"
0f2d19dd
JB
351 exit 0 ;;
352
353 -with-* | --with-*)
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 fi
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 case "$ac_option" in
361 *=*) ;;
362 *) ac_optarg=yes ;;
363 esac
364 eval "with_${ac_package}='$ac_optarg'" ;;
365
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 fi
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
374
375 --x)
376 # Obsolete; use --with-x.
377 with_x=yes ;;
378
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
385
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
392
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
394 ;;
395
396 *)
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 fi
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 fi
403 nonopt="$ac_option"
404 ;;
405
406 esac
407done
408
409if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411fi
412
413trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414
415# File descriptor usage:
416# 0 standard input
417# 1 file creation
418# 2 errors and warnings
419# 3 some systems may open it to /dev/tty
420# 4 used on the Kubota Titan
421# 6 checking for... messages and results
422# 5 compiler messages saved in config.log
423if test "$silent" = yes; then
424 exec 6>/dev/null
425else
426 exec 6>&1
427fi
428exec 5>./config.log
429
430echo "\
431This file contains any messages produced by compilers while
432running configure, to aid debugging if configure makes a mistake.
433" 1>&5
434
435# Strip out --no-create and --no-recursion so they do not pile up.
436# Also quote any args containing shell metacharacters.
437ac_configure_args=
438for ac_arg
439do
440 case "$ac_arg" in
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 esac
449done
450
451# NLS nuisances.
733943b9
TT
452# Only set these to C if already set. These must not be set unconditionally
453# because not all systems understand e.g. LANG=C (notably SCO).
454# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455# Non-C LC_CTYPE values break the ctype check.
0f2d19dd 456if test "${LANG+set}" = set; then LANG=C; export LANG; fi
733943b9
TT
457if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
0f2d19dd
JB
460
461# confdefs.h avoids OS command line length limits that DEFS can exceed.
462rm -rf conftest* confdefs.h
463# AIX cpp loses on an empty file, so make sure it contains at least a newline.
464echo > confdefs.h
465
466# A filename unique to this package, relative to the directory that
467# configure is in, which we can look for to find out if srcdir is correct.
468ac_unique_file=Makefile.in
469
470# Find the source files, if location was not specified.
471if test -z "$srcdir"; then
472 ac_srcdir_defaulted=yes
473 # Try the directory containing this script, then its parent.
474 ac_prog=$0
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 srcdir=$ac_confdir
478 if test ! -r $srcdir/$ac_unique_file; then
479 srcdir=..
480 fi
481else
482 ac_srcdir_defaulted=no
483fi
484if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 else
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 fi
490fi
491srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492
493# Prefer explicitly selected file to automatically selected ones.
494if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 else
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 fi
500fi
501for ac_site_file in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
504 . "$ac_site_file"
505 fi
506done
507
508if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
510 . $cache_file
511else
512 echo "creating cache $cache_file"
513 > $cache_file
514fi
515
516ac_ext=c
517# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
087d2a6f
JB
518ac_cpp='$CPP $CPPFLAGS'
519ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
733943b9 521cross_compiling=$ac_cv_prog_cc_cross
0f2d19dd
JB
522
523if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='
527' ac_t=' '
528 else
529 ac_n=-n ac_c= ac_t=
530 fi
531else
532 ac_n= ac_c='\c' ac_t=
533fi
534
535
2d26def0 536. $srcdir/GUILE-VERSION
e63710da
JB
537ac_aux_dir=
538for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
539 if test -f $ac_dir/install-sh; then
540 ac_aux_dir=$ac_dir
541 ac_install_sh="$ac_aux_dir/install-sh -c"
542 break
543 elif test -f $ac_dir/install.sh; then
544 ac_aux_dir=$ac_dir
545 ac_install_sh="$ac_aux_dir/install.sh -c"
546 break
547 fi
548done
549if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
551fi
552ac_config_guess=$ac_aux_dir/config.guess
553ac_config_sub=$ac_aux_dir/config.sub
554ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555
733943b9
TT
556# Find a good install program. We prefer a C program (faster),
557# so one script is as good as another. But avoid the broken or
558# incompatible versions:
559# SysV /etc/install, /usr/sbin/install
560# SunOS /usr/etc/install
561# IRIX /sbin/install
562# AIX /bin/install
563# AFS /usr/afsws/bin/install, which mishandles nonexistent args
564# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
565# ./install, which can be erroneously created by make from ./install.sh.
566echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7c86ae05 567echo "configure:568: checking for a BSD compatible install" >&5
733943b9
TT
568if test -z "$INSTALL"; then
569if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
86789f9b
JB
570 echo $ac_n "(cached) $ac_c" 1>&6
571else
733943b9 572 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
86789f9b 573 for ac_dir in $PATH; do
733943b9
TT
574 # Account for people who put trailing slashes in PATH elements.
575 case "$ac_dir/" in
576 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
577 *)
578 # OSF1 and SCO ODT 3.0 have their own names for install.
579 for ac_prog in ginstall installbsd scoinst install; do
580 if test -f $ac_dir/$ac_prog; then
581 if test $ac_prog = install &&
582 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
583 # AIX install. It has an incompatible calling convention.
584 # OSF/1 installbsd also uses dspmsg, but is usable.
585 :
586 else
587 ac_cv_path_install="$ac_dir/$ac_prog -c"
588 break 2
589 fi
590 fi
591 done
592 ;;
593 esac
86789f9b 594 done
733943b9 595 IFS="$ac_save_IFS"
86789f9b 596
087d2a6f 597fi
733943b9
TT
598 if test "${ac_cv_path_install+set}" = set; then
599 INSTALL="$ac_cv_path_install"
600 else
601 # As a last resort, use the slow shell script. We don't cache a
602 # path for INSTALL within a source directory, because that will
603 # break other packages using the cache if that directory is
604 # removed, or if the path is relative.
605 INSTALL="$ac_install_sh"
606 fi
087d2a6f 607fi
733943b9 608echo "$ac_t""$INSTALL" 1>&6
087d2a6f 609
733943b9
TT
610# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
611# It thinks the first close brace ends the variable substitution.
612test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
86789f9b 613
733943b9 614test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
86789f9b 615
86789f9b 616
733943b9 617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
86789f9b 618
86789f9b 619
733943b9 620PACKAGE=$PACKAGE
86789f9b 621
1dc9c5b0
JB
622VERSION=$VERSION
623
c7b6463e
JB
624if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
625 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
626fi
5ffdd374 627
733943b9 628echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
7c86ae05 629echo "configure:630: checking whether build environment is sane" >&5
1dc9c5b0
JB
630# Just in case
631sleep 1
733943b9 632echo timestamp > conftestfile
1dc9c5b0
JB
633# Do `set' in a subshell so we don't clobber the current shell's
634# arguments. Must try -L first in case configure is actually a
635# symlink; some systems play weird games with the mod time of symlinks
636# (eg FreeBSD returns the mod time of the symlink's containing
637# directory).
638if (
639 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
640 if test "" = "X"; then
641 # -L didn't work.
642 set X `ls -t $srcdir/configure conftestfile`
643 fi
644 test "$2" = conftestfile
645 )
733943b9
TT
646then
647 # Ok.
648 :
5ffdd374 649else
733943b9
TT
650 { echo "configure: error: newly created file is older than distributed files!
651Check your system clock" 1>&2; exit 1; }
5ffdd374 652fi
733943b9
TT
653rm -f conftest*
654echo "$ac_t""yes" 1>&6
655if test "$program_transform_name" = s,x,x,; then
656 program_transform_name=
657else
658 # Double any \ or $. echo might interpret backslashes.
659 cat <<\EOF_SED > conftestsed
660s,\\,\\\\,g; s,\$,$$,g
661EOF_SED
662 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
663 rm -f conftestsed
664fi
665test "$program_prefix" != NONE &&
666 program_transform_name="s,^,${program_prefix},; $program_transform_name"
667# Use a double $ so make ignores it.
668test "$program_suffix" != NONE &&
669 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
670
671# sed with no file args requires a program.
672test "$program_transform_name" = "" && program_transform_name="s,x,x,"
673
1dc9c5b0
JB
674missing_dir=`cd $ac_aux_dir && pwd`
675echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
7c86ae05 676echo "configure:677: checking for working aclocal" >&5
1dc9c5b0
JB
677# Run test in a subshell; some versions of sh will print an error if
678# an executable is not found, even if stderr is redirected.
c7b6463e
JB
679# Redirect stdin to placate older versions of autoconf. Sigh.
680if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1dc9c5b0
JB
681 ACLOCAL=aclocal
682 echo "$ac_t""found" 1>&6
683else
684 ACLOCAL="$missing_dir/missing aclocal"
685 echo "$ac_t""missing" 1>&6
686fi
687
688echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
7c86ae05 689echo "configure:690: checking for working autoconf" >&5
1dc9c5b0
JB
690# Run test in a subshell; some versions of sh will print an error if
691# an executable is not found, even if stderr is redirected.
c7b6463e
JB
692# Redirect stdin to placate older versions of autoconf. Sigh.
693if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1dc9c5b0
JB
694 AUTOCONF=autoconf
695 echo "$ac_t""found" 1>&6
696else
697 AUTOCONF="$missing_dir/missing autoconf"
698 echo "$ac_t""missing" 1>&6
699fi
700
701echo $ac_n "checking for working automake""... $ac_c" 1>&6
7c86ae05 702echo "configure:703: checking for working automake" >&5
1dc9c5b0
JB
703# Run test in a subshell; some versions of sh will print an error if
704# an executable is not found, even if stderr is redirected.
c7b6463e
JB
705# Redirect stdin to placate older versions of autoconf. Sigh.
706if (automake --version) < /dev/null > /dev/null 2>&1; then
1dc9c5b0
JB
707 AUTOMAKE=automake
708 echo "$ac_t""found" 1>&6
709else
710 AUTOMAKE="$missing_dir/missing automake"
711 echo "$ac_t""missing" 1>&6
712fi
713
714echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
7c86ae05 715echo "configure:716: checking for working autoheader" >&5
1dc9c5b0
JB
716# Run test in a subshell; some versions of sh will print an error if
717# an executable is not found, even if stderr is redirected.
c7b6463e
JB
718# Redirect stdin to placate older versions of autoconf. Sigh.
719if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1dc9c5b0
JB
720 AUTOHEADER=autoheader
721 echo "$ac_t""found" 1>&6
722else
723 AUTOHEADER="$missing_dir/missing autoheader"
724 echo "$ac_t""missing" 1>&6
725fi
726
727echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
7c86ae05 728echo "configure:729: checking for working makeinfo" >&5
1dc9c5b0
JB
729# Run test in a subshell; some versions of sh will print an error if
730# an executable is not found, even if stderr is redirected.
c7b6463e
JB
731# Redirect stdin to placate older versions of autoconf. Sigh.
732if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1dc9c5b0
JB
733 MAKEINFO=makeinfo
734 echo "$ac_t""found" 1>&6
735else
736 MAKEINFO="$missing_dir/missing makeinfo"
737 echo "$ac_t""missing" 1>&6
738fi
739
733943b9 740echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
7c86ae05 741echo "configure:742: checking whether ${MAKE-make} sets \${MAKE}" >&5
733943b9
TT
742set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
743if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
86789f9b
JB
744 echo $ac_n "(cached) $ac_c" 1>&6
745else
733943b9
TT
746 cat > conftestmake <<\EOF
747all:
748 @echo 'ac_maketemp="${MAKE}"'
86789f9b 749EOF
733943b9
TT
750# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
751eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
752if test -n "$ac_maketemp"; then
753 eval ac_cv_prog_make_${ac_make}_set=yes
86789f9b 754else
733943b9 755 eval ac_cv_prog_make_${ac_make}_set=no
86789f9b 756fi
733943b9 757rm -f conftestmake
86789f9b 758fi
733943b9 759if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
86789f9b 760 echo "$ac_t""yes" 1>&6
733943b9 761 SET_MAKE=
86789f9b
JB
762else
763 echo "$ac_t""no" 1>&6
733943b9 764 SET_MAKE="MAKE=${MAKE-make}"
86789f9b
JB
765fi
766
15ae1bee 767echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7c86ae05 768echo "configure:769: checking whether to enable maintainer-specific portions of Makefiles" >&5
15ae1bee
MD
769 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
770if test "${enable_maintainer_mode+set}" = set; then
771 enableval="$enable_maintainer_mode"
772 USE_MAINTAINER_MODE=$enableval
773else
774 USE_MAINTAINER_MODE=no
775fi
776
777 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
778 if test $USE_MAINTAINER_MODE = yes; then
779 MAINT=
780 else
781 MAINT='#M#'
782 fi
783
784
86789f9b 785
733943b9 786
2d26def0 787
e63710da 788
3a629497 789#--------------------------------------------------------------------
0f2d19dd 790#
3a629497 791# User options
0f2d19dd 792#
3a629497
JB
793#--------------------------------------------------------------------
794
795# Check whether --enable-debug or --disable-debug was given.
796if test "${enable_debug+set}" = set; then
797 enableval="$enable_debug"
0f2d19dd 798 :
0f2d19dd 799fi
0f2d19dd 800
3a629497
JB
801if test "$enableval" != n && test "$enableval" != no; then
802 cat >> confdefs.h <<\EOF
803#define DEBUG_EXTENSIONS 1
804EOF
0f2d19dd 805
3a629497
JB
806 cat >> confdefs.h <<\EOF
807#define READER_EXTENSIONS 1
808EOF
0f2d19dd 809
3a629497 810 LIBOBJS="backtrace.o stacks.o debug.o srcprop.o $LIBOBJS"
0f2d19dd
JB
811fi
812
3a629497
JB
813# Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
814if test "${enable_dynamic_linking+set}" = set; then
815 enableval="$enable_dynamic_linking"
816 :
af8865f7
JB
817else
818 enable_dynamic_linking=yes
3a629497 819fi
0f2d19dd 820
0f2d19dd 821
3a629497
JB
822# Check whether --enable-guile-debug or --disable-guile-debug was given.
823if test "${enable_guile_debug+set}" = set; then
824 enableval="$enable_guile_debug"
825 :
826fi
0f2d19dd 827
3a629497
JB
828if test "$enableval" = y || test "$enableval" = yes; then
829 cat >> confdefs.h <<\EOF
830#define GUILE_DEBUG 1
831EOF
0f2d19dd 832
3a629497 833fi
0f2d19dd 834
3a629497 835#--------------------------------------------------------------------
0f2d19dd 836
3a629497
JB
837# Extract the first word of "gcc", so it can be a program name with args.
838set dummy gcc; ac_word=$2
839echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c86ae05 840echo "configure:841: checking for $ac_word" >&5
3a629497
JB
841if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
843else
844 if test -n "$CC"; then
845 ac_cv_prog_CC="$CC" # Let the user override the test.
846else
847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
848 for ac_dir in $PATH; do
849 test -z "$ac_dir" && ac_dir=.
850 if test -f $ac_dir/$ac_word; then
851 ac_cv_prog_CC="gcc"
852 break
853 fi
854 done
855 IFS="$ac_save_ifs"
856fi
857fi
858CC="$ac_cv_prog_CC"
859if test -n "$CC"; then
860 echo "$ac_t""$CC" 1>&6
861else
862 echo "$ac_t""no" 1>&6
863fi
0f2d19dd 864
3a629497
JB
865if test -z "$CC"; then
866 # Extract the first word of "cc", so it can be a program name with args.
867set dummy cc; ac_word=$2
868echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c86ae05 869echo "configure:870: checking for $ac_word" >&5
3a629497
JB
870if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
872else
873 if test -n "$CC"; then
874 ac_cv_prog_CC="$CC" # Let the user override the test.
875else
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
877 ac_prog_rejected=no
878 for ac_dir in $PATH; do
879 test -z "$ac_dir" && ac_dir=.
880 if test -f $ac_dir/$ac_word; then
881 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
882 ac_prog_rejected=yes
883 continue
884 fi
885 ac_cv_prog_CC="cc"
886 break
887 fi
888 done
889 IFS="$ac_save_ifs"
890if test $ac_prog_rejected = yes; then
891 # We found a bogon in the path, so make sure we never use it.
892 set dummy $ac_cv_prog_CC
893 shift
894 if test $# -gt 0; then
895 # We chose a different compiler from the bogus one.
896 # However, it has the same basename, so the bogon will be chosen
897 # first if we set CC to just the basename; use the full file name.
898 shift
899 set dummy "$ac_dir/$ac_word" "$@"
900 shift
901 ac_cv_prog_CC="$@"
902 fi
903fi
904fi
905fi
906CC="$ac_cv_prog_CC"
907if test -n "$CC"; then
908 echo "$ac_t""$CC" 1>&6
909else
910 echo "$ac_t""no" 1>&6
911fi
0f2d19dd 912
3a629497
JB
913 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
914fi
0f2d19dd 915
3a629497 916echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7c86ae05 917echo "configure:918: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
733943b9 918
3a629497
JB
919ac_ext=c
920# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
921ac_cpp='$CPP $CPPFLAGS'
922ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
923ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
924cross_compiling=$ac_cv_prog_cc_cross
733943b9 925
3a629497 926cat > conftest.$ac_ext <<EOF
7c86ae05 927#line 928 "configure"
3a629497
JB
928#include "confdefs.h"
929main(){return(0);}
930EOF
7c86ae05 931if { (eval echo configure:932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497
JB
932 ac_cv_prog_cc_works=yes
933 # If we can't run a trivial program, we are probably using a cross compiler.
934 if (./conftest; exit) 2>/dev/null; then
935 ac_cv_prog_cc_cross=no
733943b9 936 else
3a629497 937 ac_cv_prog_cc_cross=yes
733943b9 938 fi
3a629497
JB
939else
940 echo "configure: failed program was:" >&5
941 cat conftest.$ac_ext >&5
942 ac_cv_prog_cc_works=no
733943b9 943fi
3a629497 944rm -fr conftest*
733943b9 945
3a629497
JB
946echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
947if test $ac_cv_prog_cc_works = no; then
948 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
949fi
950echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7c86ae05 951echo "configure:952: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
3a629497
JB
952echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
953cross_compiling=$ac_cv_prog_cc_cross
0f2d19dd 954
3a629497 955echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7c86ae05 956echo "configure:957: checking whether we are using GNU C" >&5
3a629497
JB
957if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
959else
960 cat > conftest.c <<EOF
961#ifdef __GNUC__
962 yes;
963#endif
0f2d19dd 964EOF
7c86ae05 965if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3a629497
JB
966 ac_cv_prog_gcc=yes
967else
968 ac_cv_prog_gcc=no
969fi
970fi
0f2d19dd 971
3a629497 972echo "$ac_t""$ac_cv_prog_gcc" 1>&6
0f2d19dd 973
3a629497
JB
974if test $ac_cv_prog_gcc = yes; then
975 GCC=yes
976 ac_test_CFLAGS="${CFLAGS+set}"
977 ac_save_CFLAGS="$CFLAGS"
978 CFLAGS=
979 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7c86ae05 980echo "configure:981: checking whether ${CC-cc} accepts -g" >&5
3a629497
JB
981if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
983else
984 echo 'void f(){}' > conftest.c
985if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
986 ac_cv_prog_cc_g=yes
987else
988 ac_cv_prog_cc_g=no
989fi
990rm -f conftest*
991
992fi
993
994echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
995 if test "$ac_test_CFLAGS" = set; then
996 CFLAGS="$ac_save_CFLAGS"
997 elif test $ac_cv_prog_cc_g = yes; then
998 CFLAGS="-g -O2"
0f2d19dd 999 else
3a629497 1000 CFLAGS="-O2"
0f2d19dd 1001 fi
3a629497
JB
1002else
1003 GCC=
1004 test "${CFLAGS+set}" = set || CFLAGS="-g"
1005fi
0f2d19dd 1006
3a629497 1007echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7c86ae05 1008echo "configure:1009: checking how to run the C preprocessor" >&5
3a629497
JB
1009# On Suns, sometimes $CPP names a directory.
1010if test -n "$CPP" && test -d "$CPP"; then
1011 CPP=
1012fi
1013if test -z "$CPP"; then
1014if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1016else
1017 # This must be in double quotes, not single quotes, because CPP may get
1018 # substituted into the Makefile and "${CC-cc}" will confuse make.
1019 CPP="${CC-cc} -E"
1020 # On the NeXT, cc -E runs the code through the compiler's parser,
1021 # not just through cpp.
1022 cat > conftest.$ac_ext <<EOF
7c86ae05 1023#line 1024 "configure"
3a629497
JB
1024#include "confdefs.h"
1025#include <assert.h>
1026Syntax Error
1027EOF
1028ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7c86ae05 1029{ (eval echo configure:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a629497
JB
1030ac_err=`grep -v '^ *+' conftest.out`
1031if test -z "$ac_err"; then
1032 :
1033else
1034 echo "$ac_err" >&5
1035 echo "configure: failed program was:" >&5
1036 cat conftest.$ac_ext >&5
1037 rm -rf conftest*
1038 CPP="${CC-cc} -E -traditional-cpp"
1039 cat > conftest.$ac_ext <<EOF
7c86ae05 1040#line 1041 "configure"
3a629497
JB
1041#include "confdefs.h"
1042#include <assert.h>
1043Syntax Error
1044EOF
1045ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7c86ae05 1046{ (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a629497
JB
1047ac_err=`grep -v '^ *+' conftest.out`
1048if test -z "$ac_err"; then
1049 :
1050else
1051 echo "$ac_err" >&5
1052 echo "configure: failed program was:" >&5
1053 cat conftest.$ac_ext >&5
1054 rm -rf conftest*
1055 CPP=/lib/cpp
1056fi
1057rm -f conftest*
1058fi
1059rm -f conftest*
1060 ac_cv_prog_CPP="$CPP"
1061fi
1062 CPP="$ac_cv_prog_CPP"
1063else
1064 ac_cv_prog_CPP="$CPP"
1065fi
1066echo "$ac_t""$CPP" 1>&6
1067
1068
1069# Make sure we can run config.sub.
1070if $ac_config_sub sun4 >/dev/null 2>&1; then :
1071else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1072fi
1073
1074echo $ac_n "checking host system type""... $ac_c" 1>&6
7c86ae05 1075echo "configure:1076: checking host system type" >&5
3a629497
JB
1076
1077host_alias=$host
1078case "$host_alias" in
1079NONE)
1080 case $nonopt in
1081 NONE)
1082 if host_alias=`$ac_config_guess`; then :
1083 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1084 fi ;;
1085 *) host_alias=$nonopt ;;
1086 esac ;;
1087esac
1088
1089host=`$ac_config_sub $host_alias`
1090host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1091host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1092host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1093echo "$ac_t""$host" 1>&6
1094
1095# Extract the first word of "ranlib", so it can be a program name with args.
1096set dummy ranlib; ac_word=$2
1097echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7c86ae05 1098echo "configure:1099: checking for $ac_word" >&5
3a629497
JB
1099if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101else
1102 if test -n "$RANLIB"; then
1103 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1104else
1105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1106 for ac_dir in $PATH; do
1107 test -z "$ac_dir" && ac_dir=.
1108 if test -f $ac_dir/$ac_word; then
1109 ac_cv_prog_RANLIB="ranlib"
1110 break
1111 fi
1112 done
1113 IFS="$ac_save_ifs"
1114 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1115fi
1116fi
1117RANLIB="$ac_cv_prog_RANLIB"
1118if test -n "$RANLIB"; then
1119 echo "$ac_t""$RANLIB" 1>&6
1120else
1121 echo "$ac_t""no" 1>&6
1122fi
1123
757cfb94
MD
1124# Check whether --with-gnu-ld or --without-gnu-ld was given.
1125if test "${with_gnu_ld+set}" = set; then
1126 withval="$with_gnu_ld"
1127 test "$withval" = no || with_gnu_ld=yes
1128else
1129 with_gnu_ld=no
1130fi
3a629497 1131
757cfb94
MD
1132if test "$with_gnu_ld" = yes; then
1133 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1134echo "configure:1135: checking for GNU ld" >&5
1135else
1136 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1137echo "configure:1138: checking for non-GNU ld" >&5
1138fi
1139if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
7c86ae05
JB
1140 echo $ac_n "(cached) $ac_c" 1>&6
1141else
1142 case "$LD" in
1143 /*)
f4e5b810 1144 ac_cv_path_LD="$LD" # Let the user override the test with a path.
7c86ae05
JB
1145 ;;
1146 *)
1147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1148 for ac_dir in $PATH; do
1149 test -z "$ac_dir" && ac_dir=.
1150 if test -f "$ac_dir/ld"; then
757cfb94 1151 ac_cv_path_LD="$ac_dir/ld"
7c86ae05
JB
1152 # Check to see if the program is GNU ld. I'd rather use --version,
1153 # but apparently some GNU ld's only accept -v.
757cfb94
MD
1154 # Break only if it was the GNU/non-GNU ld that we prefer.
1155 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
1156 test "$with_gnu_ld" = yes && break
7c86ae05 1157 else
757cfb94 1158 test "$with_gnu_ld" != yes && break
7c86ae05
JB
1159 fi
1160 fi
1161 done
1162 IFS="$ac_save_ifs"
1163 ;;
1164esac
1165fi
1166
757cfb94 1167LD="$ac_cv_path_LD"
7c86ae05
JB
1168if test -n "$LD"; then
1169 echo "$ac_t""$LD" 1>&6
1170else
1171 echo "$ac_t""no" 1>&6
1172fi
1173test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1174
757cfb94
MD
1175echo $ac_n "checking whether we are using GNU ld""... $ac_c" 1>&6
1176echo "configure:1177: checking whether we are using GNU ld" >&5
1177if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1179else
1180 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1181if $LD -v 2>&1 </dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
1182 ac_cv_prog_gnu_ld=yes
1183else
1184 ac_cv_prog_gnu_ld=no
1185fi
1186fi
1187
1188echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1189
1190
1191echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1192echo "configure:1193: checking whether ln -s works" >&5
1193if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1195else
1196 rm -f conftestdata
1197if ln -s X conftestdata 2>/dev/null
1198then
1199 rm -f conftestdata
1200 ac_cv_prog_LN_S="ln -s"
1201else
1202 ac_cv_prog_LN_S=ln
1203fi
1204fi
1205LN_S="$ac_cv_prog_LN_S"
1206if test "$ac_cv_prog_LN_S" = "ln -s"; then
1207 echo "$ac_t""yes" 1>&6
1208else
1209 echo "$ac_t""no" 1>&6
1210fi
1211
7c86ae05
JB
1212
1213
1214
3a629497
JB
1215
1216
1217
1218# Always use our own libtool.
1219LIBTOOL='$(top_builddir)/libtool'
1220
1221
1222# Check whether --enable-shared or --disable-shared was given.
1223if test "${enable_shared+set}" = set; then
1224 enableval="$enable_shared"
1225 test "$enableval" = no && libtool_shared=" --disable-shared"
1226else
1227 libtool_shared=
1228fi
1229
1230
7c86ae05
JB
1231# Check whether --enable-static or --disable-static was given.
1232if test "${enable_static+set}" = set; then
1233 enableval="$enable_static"
1234 test "$enableval" = no && libtool_static=" --disable-static"
1235else
1236 libtool_static=
1237fi
1238
1239
1240libtool_flags="$libtool_shared$libtool_static"
3a629497
JB
1241test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1242test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
757cfb94 1243test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3a629497 1244
7c86ae05
JB
1245# Some flags need to be propagated to the compiler or linker for good
1246# libtool support.
3a629497
JB
1247case "$host" in
1248*-*-irix6*)
7c86ae05
JB
1249 for f in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
1250 if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then
1251 LD="${LD-ld} $f"
1252 fi
1253 done
3a629497
JB
1254 ;;
1255
1256*-*-sco3.2v5*)
1257 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1258 CFLAGS="$CFLAGS -belf"
1259 ;;
1260esac
1261
1262# Actually configure libtool. ac_aux_dir is where install-sh is found.
757cfb94
MD
1263CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1264LD="$LD" RANLIB="$RANLIB" LN_S="$LN_S" \
3a629497
JB
1265${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1266$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1267|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1268
1269
1270echo $ac_n "checking for AIX""... $ac_c" 1>&6
757cfb94 1271echo "configure:1272: checking for AIX" >&5
3a629497 1272cat > conftest.$ac_ext <<EOF
757cfb94 1273#line 1274 "configure"
3a629497
JB
1274#include "confdefs.h"
1275#ifdef _AIX
1276 yes
1277#endif
1278
1279EOF
1280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1281 egrep "yes" >/dev/null 2>&1; then
1282 rm -rf conftest*
1283 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1284#define _ALL_SOURCE 1
1285EOF
1286
1287else
1288 rm -rf conftest*
1289 echo "$ac_t""no" 1>&6
1290fi
1291rm -f conftest*
1292
1293
1294echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
757cfb94 1295echo "configure:1296: checking for POSIXized ISC" >&5
3a629497
JB
1296if test -d /etc/conf/kconfig.d &&
1297 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1298then
1299 echo "$ac_t""yes" 1>&6
1300 ISC=yes # If later tests want to check for ISC.
1301 cat >> confdefs.h <<\EOF
1302#define _POSIX_SOURCE 1
1303EOF
1304
1305 if test "$GCC" = yes; then
1306 CC="$CC -posix"
1307 else
1308 CC="$CC -Xp"
1309 fi
1310else
1311 echo "$ac_t""no" 1>&6
1312 ISC=
1313fi
1314
1315ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1316echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
757cfb94 1317echo "configure:1318: checking for minix/config.h" >&5
3a629497
JB
1318if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1320else
1321 cat > conftest.$ac_ext <<EOF
757cfb94 1322#line 1323 "configure"
3a629497
JB
1323#include "confdefs.h"
1324#include <minix/config.h>
1325EOF
1326ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
757cfb94 1327{ (eval echo configure:1328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a629497
JB
1328ac_err=`grep -v '^ *+' conftest.out`
1329if test -z "$ac_err"; then
1330 rm -rf conftest*
1331 eval "ac_cv_header_$ac_safe=yes"
1332else
1333 echo "$ac_err" >&5
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1336 rm -rf conftest*
1337 eval "ac_cv_header_$ac_safe=no"
1338fi
1339rm -f conftest*
1340fi
1341if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1342 echo "$ac_t""yes" 1>&6
1343 MINIX=yes
1344else
1345 echo "$ac_t""no" 1>&6
1346MINIX=
1347fi
1348
1349if test "$MINIX" = yes; then
1350 cat >> confdefs.h <<\EOF
1351#define _POSIX_SOURCE 1
1352EOF
1353
1354 cat >> confdefs.h <<\EOF
1355#define _POSIX_1_SOURCE 2
1356EOF
1357
1358 cat >> confdefs.h <<\EOF
1359#define _MINIX 1
1360EOF
1361
1362fi
1363
1364
1365echo $ac_n "checking for working const""... $ac_c" 1>&6
757cfb94 1366echo "configure:1367: checking for working const" >&5
3a629497
JB
1367if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1369else
1370 cat > conftest.$ac_ext <<EOF
757cfb94 1371#line 1372 "configure"
3a629497
JB
1372#include "confdefs.h"
1373
1374int main() {
1375
1376/* Ultrix mips cc rejects this. */
1377typedef int charset[2]; const charset x;
1378/* SunOS 4.1.1 cc rejects this. */
1379char const *const *ccp;
1380char **p;
1381/* NEC SVR4.0.2 mips cc rejects this. */
1382struct point {int x, y;};
1383static struct point const zero = {0,0};
1384/* AIX XL C 1.02.0.0 rejects this.
1385 It does not let you subtract one const X* pointer from another in an arm
1386 of an if-expression whose if-part is not a constant expression */
1387const char *g = "string";
1388ccp = &g + (g ? g-g : 0);
1389/* HPUX 7.0 cc rejects these. */
1390++ccp;
1391p = (char**) ccp;
1392ccp = (char const *const *) p;
1393{ /* SCO 3.2v4 cc rejects this. */
1394 char *t;
1395 char const *s = 0 ? (char *) 0 : (char const *) 0;
1396
1397 *t++ = 0;
1398}
1399{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1400 int x[] = {25, 17};
1401 const int *foo = &x[0];
1402 ++foo;
1403}
1404{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1405 typedef const int *iptr;
1406 iptr p = 0;
1407 ++p;
1408}
1409{ /* AIX XL C 1.02.0.0 rejects this saying
1410 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1411 struct s { int j; const int *ap[3]; };
1412 struct s *b; b->j = 5;
1413}
1414{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1415 const int foo = 10;
1416}
1417
1418; return 0; }
1419EOF
757cfb94 1420if { (eval echo configure:1421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
1421 rm -rf conftest*
1422 ac_cv_c_const=yes
1423else
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1426 rm -rf conftest*
1427 ac_cv_c_const=no
1428fi
1429rm -f conftest*
1430fi
1431
1432echo "$ac_t""$ac_cv_c_const" 1>&6
1433if test $ac_cv_c_const = no; then
1434 cat >> confdefs.h <<\EOF
1435#define const
1436EOF
1437
1438fi
1439
1440
1441echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
757cfb94 1442echo "configure:1443: checking for ANSI C header files" >&5
3a629497
JB
1443if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1445else
1446 cat > conftest.$ac_ext <<EOF
757cfb94 1447#line 1448 "configure"
3a629497
JB
1448#include "confdefs.h"
1449#include <stdlib.h>
1450#include <stdarg.h>
1451#include <string.h>
1452#include <float.h>
1453EOF
1454ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
757cfb94 1455{ (eval echo configure:1456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a629497
JB
1456ac_err=`grep -v '^ *+' conftest.out`
1457if test -z "$ac_err"; then
1458 rm -rf conftest*
1459 ac_cv_header_stdc=yes
1460else
1461 echo "$ac_err" >&5
1462 echo "configure: failed program was:" >&5
1463 cat conftest.$ac_ext >&5
1464 rm -rf conftest*
1465 ac_cv_header_stdc=no
1466fi
1467rm -f conftest*
1468
1469if test $ac_cv_header_stdc = yes; then
1470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1471cat > conftest.$ac_ext <<EOF
757cfb94 1472#line 1473 "configure"
3a629497
JB
1473#include "confdefs.h"
1474#include <string.h>
1475EOF
1476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1477 egrep "memchr" >/dev/null 2>&1; then
1478 :
1479else
1480 rm -rf conftest*
1481 ac_cv_header_stdc=no
1482fi
1483rm -f conftest*
1484
1485fi
1486
1487if test $ac_cv_header_stdc = yes; then
1488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1489cat > conftest.$ac_ext <<EOF
757cfb94 1490#line 1491 "configure"
3a629497
JB
1491#include "confdefs.h"
1492#include <stdlib.h>
1493EOF
1494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1495 egrep "free" >/dev/null 2>&1; then
1496 :
1497else
1498 rm -rf conftest*
1499 ac_cv_header_stdc=no
1500fi
1501rm -f conftest*
1502
1503fi
1504
1505if test $ac_cv_header_stdc = yes; then
1506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1507if test "$cross_compiling" = yes; then
1508 :
1509else
1510 cat > conftest.$ac_ext <<EOF
757cfb94 1511#line 1512 "configure"
3a629497
JB
1512#include "confdefs.h"
1513#include <ctype.h>
1514#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1515#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1516#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1517int main () { int i; for (i = 0; i < 256; i++)
1518if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1519exit (0); }
1520
1521EOF
757cfb94 1522if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3a629497
JB
1523then
1524 :
1525else
1526 echo "configure: failed program was:" >&5
1527 cat conftest.$ac_ext >&5
1528 rm -fr conftest*
1529 ac_cv_header_stdc=no
1530fi
1531rm -fr conftest*
1532fi
1533
1534fi
1535fi
1536
1537echo "$ac_t""$ac_cv_header_stdc" 1>&6
1538if test $ac_cv_header_stdc = yes; then
1539 cat >> confdefs.h <<\EOF
1540#define STDC_HEADERS 1
1541EOF
1542
1543fi
1544
1545ac_header_dirent=no
1546for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1547do
1548ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1549echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
757cfb94 1550echo "configure:1551: checking for $ac_hdr that defines DIR" >&5
3a629497
JB
1551if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1553else
1554 cat > conftest.$ac_ext <<EOF
757cfb94 1555#line 1556 "configure"
3a629497
JB
1556#include "confdefs.h"
1557#include <sys/types.h>
1558#include <$ac_hdr>
1559int main() {
1560DIR *dirp = 0;
1561; return 0; }
1562EOF
757cfb94 1563if { (eval echo configure:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
1564 rm -rf conftest*
1565 eval "ac_cv_header_dirent_$ac_safe=yes"
1566else
1567 echo "configure: failed program was:" >&5
1568 cat conftest.$ac_ext >&5
1569 rm -rf conftest*
1570 eval "ac_cv_header_dirent_$ac_safe=no"
1571fi
1572rm -f conftest*
1573fi
1574if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1575 echo "$ac_t""yes" 1>&6
1576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1577 cat >> confdefs.h <<EOF
1578#define $ac_tr_hdr 1
1579EOF
1580 ac_header_dirent=$ac_hdr; break
1581else
1582 echo "$ac_t""no" 1>&6
1583fi
1584done
1585# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1586if test $ac_header_dirent = dirent.h; then
1587echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
757cfb94 1588echo "configure:1589: checking for opendir in -ldir" >&5
3a629497
JB
1589ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1590if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1592else
1593 ac_save_LIBS="$LIBS"
1594LIBS="-ldir $LIBS"
1595cat > conftest.$ac_ext <<EOF
757cfb94 1596#line 1597 "configure"
3a629497
JB
1597#include "confdefs.h"
1598/* Override any gcc2 internal prototype to avoid an error. */
1599/* We use char because int might match the return type of a gcc2
1600 builtin and then its argument prototype would still apply. */
1601char opendir();
1602
1603int main() {
1604opendir()
1605; return 0; }
1606EOF
757cfb94 1607if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497
JB
1608 rm -rf conftest*
1609 eval "ac_cv_lib_$ac_lib_var=yes"
1610else
1611 echo "configure: failed program was:" >&5
1612 cat conftest.$ac_ext >&5
1613 rm -rf conftest*
1614 eval "ac_cv_lib_$ac_lib_var=no"
1615fi
1616rm -f conftest*
1617LIBS="$ac_save_LIBS"
1618
1619fi
1620if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1621 echo "$ac_t""yes" 1>&6
1622 LIBS="$LIBS -ldir"
1623else
1624 echo "$ac_t""no" 1>&6
1625fi
1626
1627else
1628echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
757cfb94 1629echo "configure:1630: checking for opendir in -lx" >&5
3a629497
JB
1630ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1631if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1633else
1634 ac_save_LIBS="$LIBS"
1635LIBS="-lx $LIBS"
1636cat > conftest.$ac_ext <<EOF
757cfb94 1637#line 1638 "configure"
3a629497
JB
1638#include "confdefs.h"
1639/* Override any gcc2 internal prototype to avoid an error. */
1640/* We use char because int might match the return type of a gcc2
1641 builtin and then its argument prototype would still apply. */
1642char opendir();
1643
1644int main() {
1645opendir()
1646; return 0; }
1647EOF
757cfb94 1648if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497
JB
1649 rm -rf conftest*
1650 eval "ac_cv_lib_$ac_lib_var=yes"
1651else
1652 echo "configure: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1654 rm -rf conftest*
1655 eval "ac_cv_lib_$ac_lib_var=no"
1656fi
1657rm -f conftest*
1658LIBS="$ac_save_LIBS"
1659
1660fi
1661if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1662 echo "$ac_t""yes" 1>&6
1663 LIBS="$LIBS -lx"
1664else
1665 echo "$ac_t""no" 1>&6
1666fi
1667
1668fi
1669
1670echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
757cfb94 1671echo "configure:1672: checking whether time.h and sys/time.h may both be included" >&5
3a629497
JB
1672if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1674else
1675 cat > conftest.$ac_ext <<EOF
757cfb94 1676#line 1677 "configure"
3a629497
JB
1677#include "confdefs.h"
1678#include <sys/types.h>
1679#include <sys/time.h>
1680#include <time.h>
1681int main() {
1682struct tm *tp;
1683; return 0; }
1684EOF
757cfb94 1685if { (eval echo configure:1686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
1686 rm -rf conftest*
1687 ac_cv_header_time=yes
1688else
1689 echo "configure: failed program was:" >&5
1690 cat conftest.$ac_ext >&5
1691 rm -rf conftest*
1692 ac_cv_header_time=no
1693fi
1694rm -f conftest*
1695fi
1696
1697echo "$ac_t""$ac_cv_header_time" 1>&6
1698if test $ac_cv_header_time = yes; then
1699 cat >> confdefs.h <<\EOF
1700#define TIME_WITH_SYS_TIME 1
1701EOF
1702
1703fi
1704
1705echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
757cfb94 1706echo "configure:1707: checking for sys/wait.h that is POSIX.1 compatible" >&5
3a629497
JB
1707if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1709else
1710 cat > conftest.$ac_ext <<EOF
757cfb94 1711#line 1712 "configure"
3a629497
JB
1712#include "confdefs.h"
1713#include <sys/types.h>
1714#include <sys/wait.h>
1715#ifndef WEXITSTATUS
1716#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1717#endif
1718#ifndef WIFEXITED
1719#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1720#endif
1721int main() {
1722int s;
1723wait (&s);
1724s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1725; return 0; }
1726EOF
757cfb94 1727if { (eval echo configure:1728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
1728 rm -rf conftest*
1729 ac_cv_header_sys_wait_h=yes
1730else
1731 echo "configure: failed program was:" >&5
1732 cat conftest.$ac_ext >&5
1733 rm -rf conftest*
1734 ac_cv_header_sys_wait_h=no
1735fi
1736rm -f conftest*
1737fi
1738
1739echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1740if test $ac_cv_header_sys_wait_h = yes; then
1741 cat >> confdefs.h <<\EOF
1742#define HAVE_SYS_WAIT_H 1
1743EOF
1744
1745fi
1746
da88f0cb 1747for ac_hdr in libc.h limits.h malloc.h memory.h string.h regex.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/utime.h time.h unistd.h utime.h
3a629497
JB
1748do
1749ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1750echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
757cfb94 1751echo "configure:1752: checking for $ac_hdr" >&5
3a629497
JB
1752if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1754else
1755 cat > conftest.$ac_ext <<EOF
757cfb94 1756#line 1757 "configure"
3a629497
JB
1757#include "confdefs.h"
1758#include <$ac_hdr>
1759EOF
1760ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
757cfb94 1761{ (eval echo configure:1762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a629497
JB
1762ac_err=`grep -v '^ *+' conftest.out`
1763if test -z "$ac_err"; then
1764 rm -rf conftest*
1765 eval "ac_cv_header_$ac_safe=yes"
1766else
1767 echo "$ac_err" >&5
1768 echo "configure: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1770 rm -rf conftest*
1771 eval "ac_cv_header_$ac_safe=no"
1772fi
1773rm -f conftest*
1774fi
1775if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1778 cat >> confdefs.h <<EOF
1779#define $ac_tr_hdr 1
1780EOF
1781
1782else
1783 echo "$ac_t""no" 1>&6
1784fi
1785done
1786
1787
1788 for ac_hdr in libc.h unistd.h
1789do
1790ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1791echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
757cfb94 1792echo "configure:1793: checking for $ac_hdr" >&5
3a629497
JB
1793if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1795else
1796 cat > conftest.$ac_ext <<EOF
757cfb94 1797#line 1798 "configure"
3a629497
JB
1798#include "confdefs.h"
1799#include <$ac_hdr>
1800EOF
1801ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
757cfb94 1802{ (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a629497
JB
1803ac_err=`grep -v '^ *+' conftest.out`
1804if test -z "$ac_err"; then
1805 rm -rf conftest*
1806 eval "ac_cv_header_$ac_safe=yes"
1807else
1808 echo "$ac_err" >&5
1809 echo "configure: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1811 rm -rf conftest*
1812 eval "ac_cv_header_$ac_safe=no"
1813fi
1814rm -f conftest*
1815fi
1816if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1817 echo "$ac_t""yes" 1>&6
1818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1819 cat >> confdefs.h <<EOF
1820#define $ac_tr_hdr 1
1821EOF
1822
1823else
1824 echo "$ac_t""no" 1>&6
1825fi
1826done
1827
1828 echo $ac_n "checking "whether libc.h and unistd.h can be included together"""... $ac_c" 1>&6
757cfb94 1829echo "configure:1830: checking "whether libc.h and unistd.h can be included together"" >&5
3a629497
JB
1830if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1832else
1833
1834 if test "$ac_cv_header_libc_h" = "no"; then
1835 guile_cv_header_libc_with_unistd="no"
1836 elif test "$ac_cv_header_unistd.h" = "no"; then
1837 guile_cv_header_libc_with_unistd="yes"
1838 else
1839 cat > conftest.$ac_ext <<EOF
757cfb94 1840#line 1841 "configure"
3a629497
JB
1841#include "confdefs.h"
1842
1843# include <libc.h>
1844# include <unistd.h>
1845
1846int main() {
1847
1848; return 0; }
1849EOF
757cfb94 1850if { (eval echo configure:1851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
1851 rm -rf conftest*
1852 guile_cv_header_libc_with_unistd=yes
1853else
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1856 rm -rf conftest*
1857 guile_cv_header_libc_with_unistd=no
1858
1859fi
1860rm -f conftest*
1861 fi
1862
1863
1864fi
1865
1866echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
1867 if test "$guile_cv_header_libc_with_unistd" = yes; then
1868 cat >> confdefs.h <<\EOF
1869#define LIBC_H_WITH_UNISTD_H 1
1870EOF
1871
1872 fi
1873
1874
1875
1876echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
757cfb94 1877echo "configure:1878: checking for uid_t in sys/types.h" >&5
3a629497
JB
1878if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1880else
1881 cat > conftest.$ac_ext <<EOF
757cfb94 1882#line 1883 "configure"
3a629497
JB
1883#include "confdefs.h"
1884#include <sys/types.h>
1885EOF
1886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1887 egrep "uid_t" >/dev/null 2>&1; then
1888 rm -rf conftest*
1889 ac_cv_type_uid_t=yes
1890else
1891 rm -rf conftest*
1892 ac_cv_type_uid_t=no
1893fi
1894rm -f conftest*
1895
1896fi
1897
1898echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1899if test $ac_cv_type_uid_t = no; then
1900 cat >> confdefs.h <<\EOF
1901#define uid_t int
1902EOF
1903
1904 cat >> confdefs.h <<\EOF
1905#define gid_t int
1906EOF
1907
1908fi
1909
1910echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
757cfb94 1911echo "configure:1912: checking type of array argument to getgroups" >&5
3a629497
JB
1912if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914else
1915 if test "$cross_compiling" = yes; then
1916 ac_cv_type_getgroups=cross
1917else
1918 cat > conftest.$ac_ext <<EOF
757cfb94 1919#line 1920 "configure"
3a629497
JB
1920#include "confdefs.h"
1921
1922/* Thanks to Mike Rendell for this test. */
1923#include <sys/types.h>
1924#define NGID 256
1925#undef MAX
1926#define MAX(x, y) ((x) > (y) ? (x) : (y))
1927main()
1928{
1929 gid_t gidset[NGID];
1930 int i, n;
1931 union { gid_t gval; long lval; } val;
1932
1933 val.lval = -1;
1934 for (i = 0; i < NGID; i++)
1935 gidset[i] = val.gval;
1936 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1937 gidset);
1938 /* Exit non-zero if getgroups seems to require an array of ints. This
1939 happens when gid_t is short but getgroups modifies an array of ints. */
1940 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1941}
1942
1943EOF
757cfb94 1944if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3a629497
JB
1945then
1946 ac_cv_type_getgroups=gid_t
1947else
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1950 rm -fr conftest*
1951 ac_cv_type_getgroups=int
1952fi
1953rm -fr conftest*
1954fi
1955
1956if test $ac_cv_type_getgroups = cross; then
1957 cat > conftest.$ac_ext <<EOF
757cfb94 1958#line 1959 "configure"
3a629497
JB
1959#include "confdefs.h"
1960#include <unistd.h>
1961EOF
1962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1963 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
1964 rm -rf conftest*
1965 ac_cv_type_getgroups=gid_t
1966else
1967 rm -rf conftest*
1968 ac_cv_type_getgroups=int
1969fi
1970rm -f conftest*
1971
1972fi
1973fi
1974
1975echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1976cat >> confdefs.h <<EOF
1977#define GETGROUPS_T $ac_cv_type_getgroups
1978EOF
1979
1980
1981echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
757cfb94 1982echo "configure:1983: checking return type of signal handlers" >&5
3a629497
JB
1983if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1985else
1986 cat > conftest.$ac_ext <<EOF
757cfb94 1987#line 1988 "configure"
3a629497
JB
1988#include "confdefs.h"
1989#include <sys/types.h>
1990#include <signal.h>
1991#ifdef signal
1992#undef signal
1993#endif
1994#ifdef __cplusplus
1995extern "C" void (*signal (int, void (*)(int)))(int);
1996#else
1997void (*signal ()) ();
1998#endif
1999
2000int main() {
2001int i;
2002; return 0; }
2003EOF
757cfb94 2004if { (eval echo configure:2005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
2005 rm -rf conftest*
2006 ac_cv_type_signal=void
2007else
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2010 rm -rf conftest*
2011 ac_cv_type_signal=int
2012fi
2013rm -f conftest*
2014fi
2015
2016echo "$ac_t""$ac_cv_type_signal" 1>&6
2017cat >> confdefs.h <<EOF
2018#define RETSIGTYPE $ac_cv_type_signal
2019EOF
2020
2021
2022echo $ac_n "checking for mode_t""... $ac_c" 1>&6
757cfb94 2023echo "configure:2024: checking for mode_t" >&5
3a629497
JB
2024if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2026else
2027 cat > conftest.$ac_ext <<EOF
757cfb94 2028#line 2029 "configure"
3a629497
JB
2029#include "confdefs.h"
2030#include <sys/types.h>
2031#if STDC_HEADERS
2032#include <stdlib.h>
2033#include <stddef.h>
2034#endif
2035EOF
2036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2037 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2038 rm -rf conftest*
2039 ac_cv_type_mode_t=yes
2040else
2041 rm -rf conftest*
2042 ac_cv_type_mode_t=no
2043fi
2044rm -f conftest*
2045
2046fi
2047echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2048if test $ac_cv_type_mode_t = no; then
2049 cat >> confdefs.h <<\EOF
2050#define mode_t int
2051EOF
2052
2053fi
2054
2055
90fcac06 2056echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
757cfb94 2057echo "configure:2058: checking for main in -lm" >&5
90fcac06 2058ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
ede1d9bf
JB
2059if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2061else
2062 ac_save_LIBS="$LIBS"
90fcac06 2063LIBS="-lm $LIBS"
ede1d9bf 2064cat > conftest.$ac_ext <<EOF
757cfb94 2065#line 2066 "configure"
ede1d9bf 2066#include "confdefs.h"
ede1d9bf
JB
2067
2068int main() {
baf22c7e 2069main()
ede1d9bf
JB
2070; return 0; }
2071EOF
757cfb94 2072if { (eval echo configure:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
ede1d9bf
JB
2073 rm -rf conftest*
2074 eval "ac_cv_lib_$ac_lib_var=yes"
2075else
2076 echo "configure: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2078 rm -rf conftest*
2079 eval "ac_cv_lib_$ac_lib_var=no"
2080fi
2081rm -f conftest*
2082LIBS="$ac_save_LIBS"
2083
2084fi
2085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
90fcac06 2087 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
ede1d9bf
JB
2088 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2089 cat >> confdefs.h <<EOF
2090#define $ac_tr_lib 1
2091EOF
2092
90fcac06 2093 LIBS="-lm $LIBS"
ede1d9bf
JB
2094
2095else
2096 echo "$ac_t""no" 1>&6
2097fi
baf22c7e 2098
90fcac06 2099echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
757cfb94 2100echo "configure:2101: checking for main in -lrx" >&5
90fcac06 2101ac_lib_var=`echo rx'_'main | sed 'y%./+-%__p_%'`
5852c051
JB
2102if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2104else
2105 ac_save_LIBS="$LIBS"
90fcac06 2106LIBS="-lrx $LIBS"
5852c051 2107cat > conftest.$ac_ext <<EOF
757cfb94 2108#line 2109 "configure"
5852c051
JB
2109#include "confdefs.h"
2110
2111int main() {
2112main()
2113; return 0; }
2114EOF
757cfb94 2115if { (eval echo configure:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5852c051
JB
2116 rm -rf conftest*
2117 eval "ac_cv_lib_$ac_lib_var=yes"
2118else
2119 echo "configure: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2121 rm -rf conftest*
2122 eval "ac_cv_lib_$ac_lib_var=no"
2123fi
2124rm -f conftest*
2125LIBS="$ac_save_LIBS"
2126
2127fi
2128if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2129 echo "$ac_t""yes" 1>&6
90fcac06 2130 ac_tr_lib=HAVE_LIB`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5852c051
JB
2131 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2132 cat >> confdefs.h <<EOF
2133#define $ac_tr_lib 1
2134EOF
2135
90fcac06 2136 LIBS="-lrx $LIBS"
5852c051
JB
2137
2138else
2139 echo "$ac_t""no" 1>&6
2140fi
2141
2142echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
757cfb94 2143echo "configure:2144: checking for gethostbyname" >&5
5852c051 2144if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3a629497
JB
2145 echo $ac_n "(cached) $ac_c" 1>&6
2146else
2147 cat > conftest.$ac_ext <<EOF
757cfb94 2148#line 2149 "configure"
3a629497
JB
2149#include "confdefs.h"
2150/* System header to define __stub macros and hopefully few prototypes,
5852c051 2151 which can conflict with char gethostbyname(); below. */
3a629497
JB
2152#include <assert.h>
2153/* Override any gcc2 internal prototype to avoid an error. */
2154/* We use char because int might match the return type of a gcc2
2155 builtin and then its argument prototype would still apply. */
5852c051 2156char gethostbyname();
3a629497
JB
2157
2158int main() {
2159
2160/* The GNU C library defines this for functions which it implements
2161 to always fail with ENOSYS. Some functions are actually named
2162 something starting with __ and the normal name is an alias. */
5852c051 2163#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3a629497
JB
2164choke me
2165#else
5852c051 2166gethostbyname();
3a629497
JB
2167#endif
2168
2169; return 0; }
2170EOF
757cfb94 2171if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497 2172 rm -rf conftest*
5852c051 2173 eval "ac_cv_func_gethostbyname=yes"
3a629497
JB
2174else
2175 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2177 rm -rf conftest*
5852c051 2178 eval "ac_cv_func_gethostbyname=no"
3a629497
JB
2179fi
2180rm -f conftest*
2181fi
2182
5852c051 2183if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3a629497 2184 echo "$ac_t""yes" 1>&6
5852c051 2185 :
3a629497
JB
2186else
2187 echo "$ac_t""no" 1>&6
2188fi
3a629497 2189
5852c051
JB
2190if test $ac_cv_func_gethostbyname = no; then
2191 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
757cfb94 2192echo "configure:2193: checking for gethostbyname in -lnsl" >&5
5852c051
JB
2193ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2194if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
e1a191a8
GH
2195 echo $ac_n "(cached) $ac_c" 1>&6
2196else
5852c051
JB
2197 ac_save_LIBS="$LIBS"
2198LIBS="-lnsl $LIBS"
2199cat > conftest.$ac_ext <<EOF
757cfb94 2200#line 2201 "configure"
e1a191a8 2201#include "confdefs.h"
5852c051
JB
2202/* Override any gcc2 internal prototype to avoid an error. */
2203/* We use char because int might match the return type of a gcc2
2204 builtin and then its argument prototype would still apply. */
2205char gethostbyname();
2206
e1a191a8 2207int main() {
5852c051 2208gethostbyname()
e1a191a8
GH
2209; return 0; }
2210EOF
757cfb94 2211if { (eval echo configure:2212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
e1a191a8 2212 rm -rf conftest*
5852c051 2213 eval "ac_cv_lib_$ac_lib_var=yes"
e1a191a8
GH
2214else
2215 echo "configure: failed program was:" >&5
2216 cat conftest.$ac_ext >&5
2217 rm -rf conftest*
5852c051 2218 eval "ac_cv_lib_$ac_lib_var=no"
e1a191a8
GH
2219fi
2220rm -f conftest*
5852c051 2221LIBS="$ac_save_LIBS"
e1a191a8 2222
5852c051
JB
2223fi
2224if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2225 echo "$ac_t""yes" 1>&6
2226 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2227 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2228 cat >> confdefs.h <<EOF
2229#define $ac_tr_lib 1
e1a191a8
GH
2230EOF
2231
5852c051
JB
2232 LIBS="-lnsl $LIBS"
2233
2234else
2235 echo "$ac_t""no" 1>&6
e1a191a8
GH
2236fi
2237
5852c051
JB
2238fi
2239echo $ac_n "checking for connect""... $ac_c" 1>&6
757cfb94 2240echo "configure:2241: checking for connect" >&5
5852c051 2241if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3a629497
JB
2242 echo $ac_n "(cached) $ac_c" 1>&6
2243else
2244 cat > conftest.$ac_ext <<EOF
757cfb94 2245#line 2246 "configure"
3a629497
JB
2246#include "confdefs.h"
2247/* System header to define __stub macros and hopefully few prototypes,
5852c051 2248 which can conflict with char connect(); below. */
3a629497
JB
2249#include <assert.h>
2250/* Override any gcc2 internal prototype to avoid an error. */
2251/* We use char because int might match the return type of a gcc2
2252 builtin and then its argument prototype would still apply. */
5852c051 2253char connect();
3a629497
JB
2254
2255int main() {
2256
2257/* The GNU C library defines this for functions which it implements
2258 to always fail with ENOSYS. Some functions are actually named
2259 something starting with __ and the normal name is an alias. */
5852c051 2260#if defined (__stub_connect) || defined (__stub___connect)
3a629497
JB
2261choke me
2262#else
5852c051 2263connect();
3a629497
JB
2264#endif
2265
2266; return 0; }
2267EOF
757cfb94 2268if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497 2269 rm -rf conftest*
5852c051 2270 eval "ac_cv_func_connect=yes"
3a629497
JB
2271else
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2274 rm -rf conftest*
5852c051 2275 eval "ac_cv_func_connect=no"
3a629497
JB
2276fi
2277rm -f conftest*
2278fi
2279
5852c051 2280if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8e1bfcd0 2281 echo "$ac_t""yes" 1>&6
5852c051 2282 :
8e1bfcd0
JB
2283else
2284 echo "$ac_t""no" 1>&6
2285fi
8e1bfcd0 2286
5852c051
JB
2287if test $ac_cv_func_connect = no; then
2288 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
757cfb94 2289echo "configure:2290: checking for connect in -lsocket" >&5
5852c051
JB
2290ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8e1bfcd0
JB
2292 echo $ac_n "(cached) $ac_c" 1>&6
2293else
5852c051
JB
2294 ac_save_LIBS="$LIBS"
2295LIBS="-lsocket $LIBS"
2296cat > conftest.$ac_ext <<EOF
757cfb94 2297#line 2298 "configure"
8e1bfcd0 2298#include "confdefs.h"
8e1bfcd0
JB
2299/* Override any gcc2 internal prototype to avoid an error. */
2300/* We use char because int might match the return type of a gcc2
2301 builtin and then its argument prototype would still apply. */
5852c051 2302char connect();
8e1bfcd0
JB
2303
2304int main() {
5852c051 2305connect()
8e1bfcd0
JB
2306; return 0; }
2307EOF
757cfb94 2308if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8e1bfcd0 2309 rm -rf conftest*
5852c051 2310 eval "ac_cv_lib_$ac_lib_var=yes"
8e1bfcd0
JB
2311else
2312 echo "configure: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2314 rm -rf conftest*
5852c051 2315 eval "ac_cv_lib_$ac_lib_var=no"
8e1bfcd0
JB
2316fi
2317rm -f conftest*
5852c051 2318LIBS="$ac_save_LIBS"
8e1bfcd0 2319
5852c051
JB
2320fi
2321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3a629497 2322 echo "$ac_t""yes" 1>&6
5852c051
JB
2323 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3a629497 2325 cat >> confdefs.h <<EOF
5852c051 2326#define $ac_tr_lib 1
3a629497 2327EOF
5852c051
JB
2328
2329 LIBS="-lsocket $LIBS"
2330
3a629497
JB
2331else
2332 echo "$ac_t""no" 1>&6
3a629497 2333fi
3a629497 2334
5852c051 2335fi
3a629497 2336
90fcac06
JB
2337# Checks for dynamic linking
2338
5852c051 2339if test "$enable_dynamic_linking" = "yes"; then
3a629497 2340
5852c051 2341echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
757cfb94 2342echo "configure:2343: checking for dlopen in -ldl" >&5
5852c051
JB
2343ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2344if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a629497
JB
2345 echo $ac_n "(cached) $ac_c" 1>&6
2346else
5852c051
JB
2347 ac_save_LIBS="$LIBS"
2348LIBS="-ldl $LIBS"
2349cat > conftest.$ac_ext <<EOF
757cfb94 2350#line 2351 "configure"
3a629497 2351#include "confdefs.h"
5852c051
JB
2352/* Override any gcc2 internal prototype to avoid an error. */
2353/* We use char because int might match the return type of a gcc2
2354 builtin and then its argument prototype would still apply. */
2355char dlopen();
2356
3a629497 2357int main() {
5852c051 2358dlopen()
3a629497
JB
2359; return 0; }
2360EOF
757cfb94 2361if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497 2362 rm -rf conftest*
5852c051 2363 eval "ac_cv_lib_$ac_lib_var=yes"
3a629497
JB
2364else
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2367 rm -rf conftest*
5852c051 2368 eval "ac_cv_lib_$ac_lib_var=no"
3a629497
JB
2369fi
2370rm -f conftest*
5852c051 2371LIBS="$ac_save_LIBS"
3a629497 2372
5852c051
JB
2373fi
2374if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2376 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2377 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2378 cat >> confdefs.h <<EOF
2379#define $ac_tr_lib 1
3a629497
JB
2380EOF
2381
5852c051
JB
2382 LIBS="-ldl $LIBS"
2383
2384else
2385 echo "$ac_t""no" 1>&6
3a629497
JB
2386fi
2387
5852c051 2388if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5852c051
JB
2389 cat >> confdefs.h <<\EOF
2390#define DYNAMIC_LINKING 1
2391EOF
2392
2393else
2394echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
757cfb94 2395echo "configure:2396: checking for dld_link in -ldld" >&5
5852c051
JB
2396ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2397if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a629497
JB
2398 echo $ac_n "(cached) $ac_c" 1>&6
2399else
5852c051
JB
2400 ac_save_LIBS="$LIBS"
2401LIBS="-ldld $LIBS"
2402cat > conftest.$ac_ext <<EOF
757cfb94 2403#line 2404 "configure"
3a629497 2404#include "confdefs.h"
5852c051
JB
2405/* Override any gcc2 internal prototype to avoid an error. */
2406/* We use char because int might match the return type of a gcc2
2407 builtin and then its argument prototype would still apply. */
2408char dld_link();
3a629497
JB
2409
2410int main() {
5852c051 2411dld_link()
3a629497
JB
2412; return 0; }
2413EOF
757cfb94 2414if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497 2415 rm -rf conftest*
5852c051 2416 eval "ac_cv_lib_$ac_lib_var=yes"
3a629497
JB
2417else
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2420 rm -rf conftest*
5852c051 2421 eval "ac_cv_lib_$ac_lib_var=no"
3a629497
JB
2422fi
2423rm -f conftest*
5852c051 2424LIBS="$ac_save_LIBS"
3a629497
JB
2425
2426fi
5852c051
JB
2427if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2428 echo "$ac_t""yes" 1>&6
2429 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2430 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2431 cat >> confdefs.h <<EOF
2432#define $ac_tr_lib 1
3a629497
JB
2433EOF
2434
5852c051 2435 LIBS="-ldld $LIBS"
3a629497 2436
3a629497 2437else
5852c051 2438 echo "$ac_t""no" 1>&6
3a629497 2439fi
3a629497 2440
5852c051 2441if test "$ac_cv_lib_dld_dld_link" = "yes"; then
5852c051
JB
2442 cat >> confdefs.h <<\EOF
2443#define DYNAMIC_LINKING 1
2444EOF
3a629497 2445
5852c051
JB
2446else
2447for ac_func in shl_load
2448do
2449echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
757cfb94 2450echo "configure:2451: checking for $ac_func" >&5
3a629497
JB
2451if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2453else
2454 cat > conftest.$ac_ext <<EOF
757cfb94 2455#line 2456 "configure"
3a629497
JB
2456#include "confdefs.h"
2457/* System header to define __stub macros and hopefully few prototypes,
2458 which can conflict with char $ac_func(); below. */
2459#include <assert.h>
2460/* Override any gcc2 internal prototype to avoid an error. */
2461/* We use char because int might match the return type of a gcc2
2462 builtin and then its argument prototype would still apply. */
2463char $ac_func();
2464
2465int main() {
2466
2467/* The GNU C library defines this for functions which it implements
2468 to always fail with ENOSYS. Some functions are actually named
2469 something starting with __ and the normal name is an alias. */
2470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2471choke me
2472#else
2473$ac_func();
2474#endif
2475
2476; return 0; }
2477EOF
757cfb94 2478if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497
JB
2479 rm -rf conftest*
2480 eval "ac_cv_func_$ac_func=yes"
2481else
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2484 rm -rf conftest*
2485 eval "ac_cv_func_$ac_func=no"
2486fi
2487rm -f conftest*
2488fi
2489
2490if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2491 echo "$ac_t""yes" 1>&6
5852c051 2492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3a629497 2493 cat >> confdefs.h <<EOF
5852c051 2494#define $ac_tr_func 1
3a629497 2495EOF
5852c051 2496
3a629497
JB
2497else
2498 echo "$ac_t""no" 1>&6
2499fi
3a629497 2500done
3a629497 2501
5852c051
JB
2502if test "$ac_cv_func_shl_load" = "yes"; then
2503 cat >> confdefs.h <<\EOF
2504#define DYNAMIC_LINKING 1
3a629497 2505EOF
5852c051 2506
3a629497 2507fi
3a629497 2508fi
3a629497
JB
2509fi
2510
3a629497
JB
2511fi
2512
2513
5852c051
JB
2514for ac_func in ctermid ftime getcwd geteuid gethostent gettimeofday lstat mkdir mknod nice readlink rename rmdir select setegid seteuid setlocale setpgid setsid sigaction strftime strptime symlink sync tcgetpgrp tcsetpgrp times uname waitpid
2515do
2516echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
757cfb94 2517echo "configure:2518: checking for $ac_func" >&5
5852c051 2518if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3a629497
JB
2519 echo $ac_n "(cached) $ac_c" 1>&6
2520else
2521 cat > conftest.$ac_ext <<EOF
757cfb94 2522#line 2523 "configure"
3a629497 2523#include "confdefs.h"
5852c051
JB
2524/* System header to define __stub macros and hopefully few prototypes,
2525 which can conflict with char $ac_func(); below. */
2526#include <assert.h>
2527/* Override any gcc2 internal prototype to avoid an error. */
2528/* We use char because int might match the return type of a gcc2
2529 builtin and then its argument prototype would still apply. */
2530char $ac_func();
2531
3a629497 2532int main() {
5852c051
JB
2533
2534/* The GNU C library defines this for functions which it implements
2535 to always fail with ENOSYS. Some functions are actually named
2536 something starting with __ and the normal name is an alias. */
2537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2538choke me
2539#else
2540$ac_func();
2541#endif
2542
3a629497
JB
2543; return 0; }
2544EOF
757cfb94 2545if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497 2546 rm -rf conftest*
5852c051 2547 eval "ac_cv_func_$ac_func=yes"
3a629497
JB
2548else
2549 echo "configure: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2551 rm -rf conftest*
5852c051 2552 eval "ac_cv_func_$ac_func=no"
3a629497
JB
2553fi
2554rm -f conftest*
2555fi
2556
5852c051
JB
2557if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2558 echo "$ac_t""yes" 1>&6
2559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2560 cat >> confdefs.h <<EOF
2561#define $ac_tr_func 1
3a629497 2562EOF
5852c051
JB
2563
2564else
2565 echo "$ac_t""no" 1>&6
3a629497 2566fi
5852c051 2567done
3a629497 2568
5852c051 2569
da88f0cb
JB
2570
2571ac_safe=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
2572echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
757cfb94 2573echo "configure:2574: checking for sys/un.h" >&5
da88f0cb
JB
2574if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2576else
2577 cat > conftest.$ac_ext <<EOF
757cfb94 2578#line 2579 "configure"
da88f0cb
JB
2579#include "confdefs.h"
2580#include <sys/un.h>
2581EOF
2582ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
757cfb94 2583{ (eval echo configure:2584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
da88f0cb
JB
2584ac_err=`grep -v '^ *+' conftest.out`
2585if test -z "$ac_err"; then
2586 rm -rf conftest*
2587 eval "ac_cv_header_$ac_safe=yes"
2588else
2589 echo "$ac_err" >&5
2590 echo "configure: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2592 rm -rf conftest*
2593 eval "ac_cv_header_$ac_safe=no"
2594fi
2595rm -f conftest*
2596fi
2597if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2598 echo "$ac_t""yes" 1>&6
2599 have_sys_un_h=1
2600else
2601 echo "$ac_t""no" 1>&6
2602fi
2603
2604if test -n "$have_sys_un_h" ; then
2605cat >> confdefs.h <<\EOF
2606#define HAVE_UNIX_DOMAIN_SOCKETS 1
2607EOF
2608
2609fi
2610
2611for ac_func in socketpair getgroups setpwent pause tzset
2612do
2613echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
757cfb94 2614echo "configure:2615: checking for $ac_func" >&5
da88f0cb
JB
2615if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2617else
2618 cat > conftest.$ac_ext <<EOF
757cfb94 2619#line 2620 "configure"
da88f0cb
JB
2620#include "confdefs.h"
2621/* System header to define __stub macros and hopefully few prototypes,
2622 which can conflict with char $ac_func(); below. */
2623#include <assert.h>
2624/* Override any gcc2 internal prototype to avoid an error. */
2625/* We use char because int might match the return type of a gcc2
2626 builtin and then its argument prototype would still apply. */
2627char $ac_func();
2628
2629int main() {
2630
2631/* The GNU C library defines this for functions which it implements
2632 to always fail with ENOSYS. Some functions are actually named
2633 something starting with __ and the normal name is an alias. */
2634#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2635choke me
2636#else
2637$ac_func();
2638#endif
2639
2640; return 0; }
2641EOF
757cfb94 2642if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
da88f0cb
JB
2643 rm -rf conftest*
2644 eval "ac_cv_func_$ac_func=yes"
2645else
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 rm -rf conftest*
2649 eval "ac_cv_func_$ac_func=no"
2650fi
2651rm -f conftest*
2652fi
2653
2654if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2655 echo "$ac_t""yes" 1>&6
2656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2657 cat >> confdefs.h <<EOF
2658#define $ac_tr_func 1
2659EOF
2660
2661else
2662 echo "$ac_t""no" 1>&6
2663fi
2664done
2665
2666
f4e5b810
GH
2667
2668
2669
2670for ac_func in sethostent endhostent getnetent setnetent endnetent getprotoent endprotoent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof
2671do
2672echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
757cfb94 2673echo "configure:2674: checking for $ac_func" >&5
f4e5b810 2674if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
da88f0cb
JB
2675 echo $ac_n "(cached) $ac_c" 1>&6
2676else
2677 cat > conftest.$ac_ext <<EOF
757cfb94 2678#line 2679 "configure"
da88f0cb
JB
2679#include "confdefs.h"
2680/* System header to define __stub macros and hopefully few prototypes,
f4e5b810 2681 which can conflict with char $ac_func(); below. */
da88f0cb
JB
2682#include <assert.h>
2683/* Override any gcc2 internal prototype to avoid an error. */
2684/* We use char because int might match the return type of a gcc2
2685 builtin and then its argument prototype would still apply. */
f4e5b810 2686char $ac_func();
da88f0cb
JB
2687
2688int main() {
2689
2690/* The GNU C library defines this for functions which it implements
2691 to always fail with ENOSYS. Some functions are actually named
2692 something starting with __ and the normal name is an alias. */
f4e5b810 2693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
da88f0cb
JB
2694choke me
2695#else
f4e5b810 2696$ac_func();
da88f0cb
JB
2697#endif
2698
2699; return 0; }
2700EOF
757cfb94 2701if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
da88f0cb 2702 rm -rf conftest*
f4e5b810 2703 eval "ac_cv_func_$ac_func=yes"
da88f0cb
JB
2704else
2705 echo "configure: failed program was:" >&5
2706 cat conftest.$ac_ext >&5
2707 rm -rf conftest*
f4e5b810 2708 eval "ac_cv_func_$ac_func=no"
da88f0cb
JB
2709fi
2710rm -f conftest*
2711fi
2712
f4e5b810 2713if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
da88f0cb 2714 echo "$ac_t""yes" 1>&6
f4e5b810
GH
2715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2716 cat >> confdefs.h <<EOF
2717#define $ac_tr_func 1
2718EOF
2719
da88f0cb
JB
2720else
2721 echo "$ac_t""no" 1>&6
2722fi
da88f0cb 2723done
f4e5b810 2724
da88f0cb
JB
2725
2726
5852c051 2727echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
757cfb94 2728echo "configure:2729: checking for restartable system calls" >&5
5852c051 2729if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then
3a629497
JB
2730 echo $ac_n "(cached) $ac_c" 1>&6
2731else
5852c051
JB
2732 if test $ac_cv_func_sigaction = yes; then
2733 cat > conftest.$ac_ext <<EOF
757cfb94 2734#line 2735 "configure"
3a629497 2735#include "confdefs.h"
5852c051 2736#include <signal.h>
3a629497 2737int main() {
5852c051 2738int a = SA_RESTART
3a629497
JB
2739; return 0; }
2740EOF
757cfb94 2741if { (eval echo configure:2742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497 2742 rm -rf conftest*
5852c051 2743 scm_cv_restarts=yes
3a629497
JB
2744else
2745 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2747 rm -rf conftest*
5852c051 2748 scm_cv_restarts=no
3a629497
JB
2749fi
2750rm -f conftest*
5852c051
JB
2751 else
2752 scm_cv_restarts=no
2753 fi
3a629497
JB
2754fi
2755
5852c051
JB
2756echo "$ac_t""$scm_cv_restarts" 1>&6
2757if test $scm_cv_restarts = yes; then
2758 cat >> confdefs.h <<\EOF
2759#define HAVE_RESTARTS 1
3a629497
JB
2760EOF
2761
2762fi
2763
da88f0cb
JB
2764if test "$ac_cv_header_regex_h" = yes; then
2765 for ac_func in regcomp
5852c051
JB
2766do
2767echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
757cfb94 2768echo "configure:2769: checking for $ac_func" >&5
5852c051 2769if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3a629497
JB
2770 echo $ac_n "(cached) $ac_c" 1>&6
2771else
2772 cat > conftest.$ac_ext <<EOF
757cfb94 2773#line 2774 "configure"
3a629497 2774#include "confdefs.h"
5852c051
JB
2775/* System header to define __stub macros and hopefully few prototypes,
2776 which can conflict with char $ac_func(); below. */
2777#include <assert.h>
2778/* Override any gcc2 internal prototype to avoid an error. */
2779/* We use char because int might match the return type of a gcc2
2780 builtin and then its argument prototype would still apply. */
2781char $ac_func();
2782
3a629497 2783int main() {
5852c051
JB
2784
2785/* The GNU C library defines this for functions which it implements
2786 to always fail with ENOSYS. Some functions are actually named
2787 something starting with __ and the normal name is an alias. */
2788#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2789choke me
2790#else
2791$ac_func();
2792#endif
2793
3a629497
JB
2794; return 0; }
2795EOF
757cfb94 2796if { (eval echo configure:2797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497 2797 rm -rf conftest*
5852c051 2798 eval "ac_cv_func_$ac_func=yes"
3a629497
JB
2799else
2800 echo "configure: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 rm -rf conftest*
5852c051 2803 eval "ac_cv_func_$ac_func=no"
3a629497
JB
2804fi
2805rm -f conftest*
2806fi
2807
5852c051
JB
2808if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2809 echo "$ac_t""yes" 1>&6
2810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2811 cat >> confdefs.h <<EOF
2812#define $ac_tr_func 1
3a629497 2813EOF
5852c051
JB
2814 LIBOBJS="regex-posix.o $LIBOBJS"
2815else
2816 echo "$ac_t""no" 1>&6
3a629497 2817fi
5852c051 2818done
3a629497 2819
da88f0cb 2820fi
5852c051
JB
2821
2822for ac_func in inet_aton putenv strerror
2823do
2824echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
757cfb94 2825echo "configure:2826: checking for $ac_func" >&5
5852c051 2826if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3a629497
JB
2827 echo $ac_n "(cached) $ac_c" 1>&6
2828else
2829 cat > conftest.$ac_ext <<EOF
757cfb94 2830#line 2831 "configure"
3a629497 2831#include "confdefs.h"
5852c051
JB
2832/* System header to define __stub macros and hopefully few prototypes,
2833 which can conflict with char $ac_func(); below. */
2834#include <assert.h>
2835/* Override any gcc2 internal prototype to avoid an error. */
2836/* We use char because int might match the return type of a gcc2
2837 builtin and then its argument prototype would still apply. */
2838char $ac_func();
2839
3a629497 2840int main() {
5852c051
JB
2841
2842/* The GNU C library defines this for functions which it implements
2843 to always fail with ENOSYS. Some functions are actually named
2844 something starting with __ and the normal name is an alias. */
2845#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2846choke me
2847#else
2848$ac_func();
2849#endif
2850
3a629497
JB
2851; return 0; }
2852EOF
757cfb94 2853if { (eval echo configure:2854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497 2854 rm -rf conftest*
5852c051 2855 eval "ac_cv_func_$ac_func=yes"
3a629497
JB
2856else
2857 echo "configure: failed program was:" >&5
2858 cat conftest.$ac_ext >&5
2859 rm -rf conftest*
5852c051 2860 eval "ac_cv_func_$ac_func=no"
3a629497
JB
2861fi
2862rm -f conftest*
2863fi
2864
5852c051
JB
2865if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2866 echo "$ac_t""yes" 1>&6
2867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2868 cat >> confdefs.h <<EOF
2869#define $ac_tr_func 1
3a629497 2870EOF
5852c051 2871
3a629497 2872else
5852c051
JB
2873 echo "$ac_t""no" 1>&6
2874LIBOBJS="$LIBOBJS ${ac_func}.o"
3a629497 2875fi
5852c051 2876done
3a629497 2877
3a629497 2878
5852c051 2879
4a5fa91c
TP
2880# When testing for the presence of alloca, we need to add alloca.o
2881# explicitly to LIBOBJS to make sure that it is translated to
2882# `alloca.lo' for libtool later on. This can and should be done more cleanly.
5852c051
JB
2883# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2884# for constant arguments. Useless!
2885echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
757cfb94 2886echo "configure:2887: checking for working alloca.h" >&5
5852c051 2887if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3a629497
JB
2888 echo $ac_n "(cached) $ac_c" 1>&6
2889else
2890 cat > conftest.$ac_ext <<EOF
757cfb94 2891#line 2892 "configure"
3a629497 2892#include "confdefs.h"
5852c051 2893#include <alloca.h>
3a629497 2894int main() {
5852c051 2895char *p = alloca(2 * sizeof(int));
3a629497
JB
2896; return 0; }
2897EOF
757cfb94 2898if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497 2899 rm -rf conftest*
5852c051 2900 ac_cv_header_alloca_h=yes
3a629497
JB
2901else
2902 echo "configure: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2904 rm -rf conftest*
5852c051 2905 ac_cv_header_alloca_h=no
3a629497
JB
2906fi
2907rm -f conftest*
2908fi
2909
5852c051
JB
2910echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2911if test $ac_cv_header_alloca_h = yes; then
2912 cat >> confdefs.h <<\EOF
2913#define HAVE_ALLOCA_H 1
3a629497
JB
2914EOF
2915
3a629497
JB
2916fi
2917
5852c051 2918echo $ac_n "checking for alloca""... $ac_c" 1>&6
757cfb94 2919echo "configure:2920: checking for alloca" >&5
5852c051 2920if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3a629497
JB
2921 echo $ac_n "(cached) $ac_c" 1>&6
2922else
2923 cat > conftest.$ac_ext <<EOF
757cfb94 2924#line 2925 "configure"
3a629497
JB
2925#include "confdefs.h"
2926
5852c051
JB
2927#ifdef __GNUC__
2928# define alloca __builtin_alloca
3a629497 2929#else
5852c051
JB
2930# if HAVE_ALLOCA_H
2931# include <alloca.h>
2932# else
2933# ifdef _AIX
2934 #pragma alloca
2935# else
2936# ifndef alloca /* predefined by HP cc +Olibcalls */
2937char *alloca ();
2938# endif
2939# endif
2940# endif
3a629497 2941#endif
3a629497 2942
5852c051
JB
2943int main() {
2944char *p = (char *) alloca(1);
2945; return 0; }
3a629497 2946EOF
757cfb94 2947if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497 2948 rm -rf conftest*
5852c051 2949 ac_cv_func_alloca_works=yes
3a629497 2950else
3a629497
JB
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2953 rm -rf conftest*
5852c051 2954 ac_cv_func_alloca_works=no
3a629497
JB
2955fi
2956rm -f conftest*
2957fi
2958
5852c051
JB
2959echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2960if test $ac_cv_func_alloca_works = yes; then
2961 cat >> confdefs.h <<\EOF
2962#define HAVE_ALLOCA 1
3a629497
JB
2963EOF
2964
5852c051 2965fi
3a629497 2966
5852c051
JB
2967if test $ac_cv_func_alloca_works = no; then
2968 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2969 # that cause trouble. Some versions do not even contain alloca or
2970 # contain a buggy version. If you still want to use their alloca,
2971 # use ar to extract alloca.o from them instead of compiling alloca.c.
2972 ALLOCA=alloca.o
2973 cat >> confdefs.h <<\EOF
2974#define C_ALLOCA 1
2975EOF
3a629497
JB
2976
2977
5852c051 2978echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
757cfb94 2979echo "configure:2980: checking whether alloca needs Cray hooks" >&5
5852c051 2980if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3a629497
JB
2981 echo $ac_n "(cached) $ac_c" 1>&6
2982else
5852c051 2983 cat > conftest.$ac_ext <<EOF
757cfb94 2984#line 2985 "configure"
3a629497 2985#include "confdefs.h"
5852c051
JB
2986#if defined(CRAY) && ! defined(CRAY2)
2987webecray
2988#else
2989wenotbecray
2990#endif
3a629497 2991
3a629497 2992EOF
5852c051
JB
2993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2994 egrep "webecray" >/dev/null 2>&1; then
3a629497 2995 rm -rf conftest*
5852c051 2996 ac_cv_os_cray=yes
3a629497 2997else
3a629497 2998 rm -rf conftest*
5852c051 2999 ac_cv_os_cray=no
3a629497
JB
3000fi
3001rm -f conftest*
3a629497
JB
3002
3003fi
3a629497 3004
5852c051
JB
3005echo "$ac_t""$ac_cv_os_cray" 1>&6
3006if test $ac_cv_os_cray = yes; then
3007for ac_func in _getb67 GETB67 getb67; do
3008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
757cfb94 3009echo "configure:3010: checking for $ac_func" >&5
5852c051 3010if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
075edbde
JB
3011 echo $ac_n "(cached) $ac_c" 1>&6
3012else
3013 cat > conftest.$ac_ext <<EOF
757cfb94 3014#line 3015 "configure"
075edbde
JB
3015#include "confdefs.h"
3016/* System header to define __stub macros and hopefully few prototypes,
5852c051 3017 which can conflict with char $ac_func(); below. */
075edbde
JB
3018#include <assert.h>
3019/* Override any gcc2 internal prototype to avoid an error. */
3020/* We use char because int might match the return type of a gcc2
3021 builtin and then its argument prototype would still apply. */
5852c051 3022char $ac_func();
075edbde
JB
3023
3024int main() {
3025
3026/* The GNU C library defines this for functions which it implements
3027 to always fail with ENOSYS. Some functions are actually named
3028 something starting with __ and the normal name is an alias. */
5852c051 3029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
075edbde
JB
3030choke me
3031#else
5852c051 3032$ac_func();
075edbde
JB
3033#endif
3034
3035; return 0; }
3036EOF
757cfb94 3037if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
075edbde 3038 rm -rf conftest*
5852c051 3039 eval "ac_cv_func_$ac_func=yes"
075edbde
JB
3040else
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3043 rm -rf conftest*
5852c051 3044 eval "ac_cv_func_$ac_func=no"
075edbde
JB
3045fi
3046rm -f conftest*
3047fi
3048
5852c051 3049if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
075edbde 3050 echo "$ac_t""yes" 1>&6
5852c051
JB
3051 cat >> confdefs.h <<EOF
3052#define CRAY_STACKSEG_END $ac_func
3053EOF
3054
3055 break
075edbde
JB
3056else
3057 echo "$ac_t""no" 1>&6
3058fi
3059
5852c051
JB
3060done
3061fi
3062
3063echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
757cfb94 3064echo "configure:3065: checking stack direction for C alloca" >&5
5852c051 3065if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3a629497
JB
3066 echo $ac_n "(cached) $ac_c" 1>&6
3067else
5852c051
JB
3068 if test "$cross_compiling" = yes; then
3069 ac_cv_c_stack_direction=0
3070else
3071 cat > conftest.$ac_ext <<EOF
757cfb94 3072#line 3073 "configure"
3a629497 3073#include "confdefs.h"
5852c051
JB
3074find_stack_direction ()
3075{
3076 static char *addr = 0;
3077 auto char dummy;
3078 if (addr == 0)
3079 {
3080 addr = &dummy;
3081 return find_stack_direction ();
3082 }
3083 else
3084 return (&dummy > addr) ? 1 : -1;
3085}
3086main ()
3087{
3088 exit (find_stack_direction() < 0);
3089}
3090EOF
757cfb94 3091if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5852c051
JB
3092then
3093 ac_cv_c_stack_direction=1
3094else
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3097 rm -fr conftest*
3098 ac_cv_c_stack_direction=-1
3099fi
3100rm -fr conftest*
3101fi
3102
3103fi
3104
3105echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3106cat >> confdefs.h <<EOF
3107#define STACK_DIRECTION $ac_cv_c_stack_direction
3108EOF
3a629497 3109
5852c051
JB
3110fi
3111
4a5fa91c 3112if test "$ALLOCA" = "alloca.o"; then LIBOBJS="alloca.o $LIBOBJS"; fi
5852c051
JB
3113
3114echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
757cfb94 3115echo "configure:3116: checking for st_rdev in struct stat" >&5
5852c051
JB
3116if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3118else
3119 cat > conftest.$ac_ext <<EOF
757cfb94 3120#line 3121 "configure"
5852c051
JB
3121#include "confdefs.h"
3122#include <sys/types.h>
3123#include <sys/stat.h>
3a629497 3124int main() {
5852c051 3125struct stat s; s.st_rdev;
3a629497
JB
3126; return 0; }
3127EOF
757cfb94 3128if { (eval echo configure:3129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497 3129 rm -rf conftest*
5852c051 3130 ac_cv_struct_st_rdev=yes
3a629497
JB
3131else
3132 echo "configure: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3134 rm -rf conftest*
5852c051 3135 ac_cv_struct_st_rdev=no
3a629497
JB
3136fi
3137rm -f conftest*
3a629497 3138fi
3a629497 3139
5852c051
JB
3140echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3141if test $ac_cv_struct_st_rdev = yes; then
3142 cat >> confdefs.h <<\EOF
3143#define HAVE_ST_RDEV 1
3144EOF
075edbde 3145
075edbde 3146fi
3a629497 3147
5852c051 3148echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
757cfb94 3149echo "configure:3150: checking for st_blksize in struct stat" >&5
5852c051 3150if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
075edbde
JB
3151 echo $ac_n "(cached) $ac_c" 1>&6
3152else
3153 cat > conftest.$ac_ext <<EOF
757cfb94 3154#line 3155 "configure"
075edbde 3155#include "confdefs.h"
5852c051
JB
3156#include <sys/types.h>
3157#include <sys/stat.h>
075edbde 3158int main() {
5852c051 3159struct stat s; s.st_blksize;
075edbde
JB
3160; return 0; }
3161EOF
757cfb94 3162if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
075edbde 3163 rm -rf conftest*
5852c051 3164 ac_cv_struct_st_blksize=yes
075edbde
JB
3165else
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3168 rm -rf conftest*
5852c051 3169 ac_cv_struct_st_blksize=no
075edbde
JB
3170fi
3171rm -f conftest*
3172fi
3173
5852c051
JB
3174echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3175if test $ac_cv_struct_st_blksize = yes; then
3176 cat >> confdefs.h <<\EOF
3177#define HAVE_ST_BLKSIZE 1
3178EOF
3179
3a629497
JB
3180fi
3181
5852c051
JB
3182
3183# We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
3184# LIBOBJS, which we don't need. This seems more direct.
3185echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
757cfb94 3186echo "configure:3187: checking for st_blocks in struct stat" >&5
5852c051 3187if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3a629497
JB
3188 echo $ac_n "(cached) $ac_c" 1>&6
3189else
5852c051 3190 cat > conftest.$ac_ext <<EOF
757cfb94 3191#line 3192 "configure"
3a629497 3192#include "confdefs.h"
5852c051
JB
3193#include <sys/types.h>
3194#include <sys/stat.h>
3a629497 3195int main() {
5852c051 3196struct stat s; s.st_blocks;
3a629497
JB
3197; return 0; }
3198EOF
757cfb94 3199if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497 3200 rm -rf conftest*
5852c051 3201 ac_cv_struct_st_blocks=yes
3a629497
JB
3202else
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3205 rm -rf conftest*
5852c051 3206 ac_cv_struct_st_blocks=no
3a629497
JB
3207fi
3208rm -f conftest*
3a629497 3209fi
3a629497 3210
5852c051
JB
3211echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3212if test $ac_cv_struct_st_blocks = yes; then
3213 cat >> confdefs.h <<\EOF
3214#define HAVE_ST_BLOCKS 1
3215EOF
3a629497 3216
075edbde 3217fi
3a629497 3218
5852c051 3219echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
757cfb94 3220echo "configure:3221: checking whether struct tm is in sys/time.h or time.h" >&5
5852c051 3221if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3a629497
JB
3222 echo $ac_n "(cached) $ac_c" 1>&6
3223else
5852c051 3224 cat > conftest.$ac_ext <<EOF
757cfb94 3225#line 3226 "configure"
3a629497 3226#include "confdefs.h"
5852c051
JB
3227#include <sys/types.h>
3228#include <time.h>
3a629497 3229int main() {
5852c051 3230struct tm *tp; tp->tm_sec;
3a629497
JB
3231; return 0; }
3232EOF
757cfb94 3233if { (eval echo configure:3234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497 3234 rm -rf conftest*
5852c051 3235 ac_cv_struct_tm=time.h
3a629497
JB
3236else
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3239 rm -rf conftest*
5852c051 3240 ac_cv_struct_tm=sys/time.h
3a629497
JB
3241fi
3242rm -f conftest*
3a629497 3243fi
5852c051
JB
3244
3245echo "$ac_t""$ac_cv_struct_tm" 1>&6
3246if test $ac_cv_struct_tm = sys/time.h; then
3247 cat >> confdefs.h <<\EOF
3248#define TM_IN_SYS_TIME 1
3a629497
JB
3249EOF
3250
5852c051 3251fi
3a629497 3252
5852c051 3253echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
757cfb94 3254echo "configure:3255: checking for tm_zone in struct tm" >&5
5852c051
JB
3255if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3a629497 3257else
5852c051 3258 cat > conftest.$ac_ext <<EOF
757cfb94 3259#line 3260 "configure"
5852c051
JB
3260#include "confdefs.h"
3261#include <sys/types.h>
3262#include <$ac_cv_struct_tm>
3263int main() {
3264struct tm tm; tm.tm_zone;
3265; return 0; }
3266EOF
757cfb94 3267if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5852c051
JB
3268 rm -rf conftest*
3269 ac_cv_struct_tm_zone=yes
3270else
3271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3273 rm -rf conftest*
3274 ac_cv_struct_tm_zone=no
3275fi
3276rm -f conftest*
3a629497
JB
3277fi
3278
5852c051
JB
3279echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3280if test "$ac_cv_struct_tm_zone" = yes; then
3a629497 3281 cat >> confdefs.h <<\EOF
5852c051 3282#define HAVE_TM_ZONE 1
3a629497
JB
3283EOF
3284
3285else
5852c051 3286 echo $ac_n "checking for tzname""... $ac_c" 1>&6
757cfb94 3287echo "configure:3288: checking for tzname" >&5
5852c051 3288if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3a629497
JB
3289 echo $ac_n "(cached) $ac_c" 1>&6
3290else
5852c051 3291 cat > conftest.$ac_ext <<EOF
757cfb94 3292#line 3293 "configure"
3a629497 3293#include "confdefs.h"
5852c051
JB
3294#include <time.h>
3295#ifndef tzname /* For SGI. */
3296extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3297#endif
3a629497 3298int main() {
5852c051 3299atoi(*tzname);
3a629497
JB
3300; return 0; }
3301EOF
757cfb94 3302if { (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3a629497 3303 rm -rf conftest*
5852c051 3304 ac_cv_var_tzname=yes
3a629497
JB
3305else
3306 echo "configure: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3308 rm -rf conftest*
5852c051 3309 ac_cv_var_tzname=no
3a629497
JB
3310fi
3311rm -f conftest*
3a629497 3312fi
3a629497 3313
5852c051
JB
3314echo "$ac_t""$ac_cv_var_tzname" 1>&6
3315 if test $ac_cv_var_tzname = yes; then
3316 cat >> confdefs.h <<\EOF
3317#define HAVE_TZNAME 1
3318EOF
3a629497 3319
5852c051 3320 fi
3a629497
JB
3321fi
3322
3a629497 3323
5852c051 3324 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
757cfb94 3325echo "configure:3326: checking whether we need POSIX to get struct utimbuf" >&5
5852c051 3326if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
3a629497
JB
3327 echo $ac_n "(cached) $ac_c" 1>&6
3328else
3329 cat > conftest.$ac_ext <<EOF
757cfb94 3330#line 3331 "configure"
3a629497 3331#include "confdefs.h"
3a629497 3332
5852c051
JB
3333#ifdef __EMX__
3334#include <sys/utime.h>
3a629497 3335#else
5852c051 3336#include <utime.h>
3a629497 3337#endif
5852c051 3338struct utime blah;
3a629497 3339
3a629497 3340EOF
5852c051 3341ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
757cfb94 3342{ (eval echo configure:3343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5852c051
JB
3343ac_err=`grep -v '^ *+' conftest.out`
3344if test -z "$ac_err"; then
3a629497 3345 rm -rf conftest*
5852c051 3346 guile_cv_struct_utimbuf_needs_posix=no
3a629497 3347else
5852c051 3348 echo "$ac_err" >&5
3a629497
JB
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3351 rm -rf conftest*
5852c051 3352 guile_cv_struct_utimbuf_needs_posix=yes
3a629497
JB
3353fi
3354rm -f conftest*
3355fi
3356
5852c051
JB
3357echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
3358 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
3359 cat >> confdefs.h <<\EOF
3360#define UTIMBUF_NEEDS_POSIX 1
3a629497
JB
3361EOF
3362
5852c051 3363 fi
3a629497
JB
3364
3365#--------------------------------------------------------------------
3366#
3367# Which way does the stack grow?
3368#
3369#--------------------------------------------------------------------
3370
3371if test "$cross_compiling" = yes; then
3372 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
3373else
3374 cat > conftest.$ac_ext <<EOF
757cfb94 3375#line 3376 "configure"
3a629497
JB
3376#include "confdefs.h"
3377aux (l) unsigned long l;
3378 { int x; exit (l >= ((unsigned long)&x)); }
3379 main () { int q; aux((unsigned long)&q); }
3380EOF
757cfb94 3381if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3a629497
JB
3382then
3383 cat >> confdefs.h <<\EOF
3384#define SCM_STACK_GROWS_UP 1
3385EOF
3386
3387else
3388 echo "configure: failed program was:" >&5
3389 cat conftest.$ac_ext >&5
3390fi
3391rm -fr conftest*
3392fi
3393
3394
3395
3396if test "$cross_compiling" = yes; then
3397 cat >> confdefs.h <<\EOF
3398#define SCM_SINGLES 1
3399EOF
3400
3401 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
3402else
3403 cat > conftest.$ac_ext <<EOF
757cfb94 3404#line 3405 "configure"
3a629497
JB
3405#include "confdefs.h"
3406main () { exit (sizeof(float) != sizeof(long)); }
3407EOF
757cfb94 3408if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3a629497
JB
3409then
3410 cat >> confdefs.h <<\EOF
3411#define SCM_SINGLES 1
3412EOF
3413
3414else
3415 echo "configure: failed program was:" >&5
3416 cat conftest.$ac_ext >&5
3417fi
3418rm -fr conftest*
3419fi
3420
3421
3422echo $ac_n "checking for struct linger""... $ac_c" 1>&6
757cfb94 3423echo "configure:3424: checking for struct linger" >&5
3a629497
JB
3424if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3426else
3427 cat > conftest.$ac_ext <<EOF
757cfb94 3428#line 3429 "configure"
3a629497
JB
3429#include "confdefs.h"
3430
3431#include <sys/types.h>
3432#include <sys/socket.h>
3433int main() {
3434struct linger lgr; lgr.l_linger = 100
3435; return 0; }
3436EOF
757cfb94 3437if { (eval echo configure:3438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
3438 rm -rf conftest*
3439 scm_cv_struct_linger="yes"
3440else
3441 echo "configure: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3443 rm -rf conftest*
3444 scm_cv_struct_linger="no"
3445fi
3446rm -f conftest*
3447fi
3448
3449echo "$ac_t""$scm_cv_struct_linger" 1>&6
3450if test $scm_cv_struct_linger = yes; then
3451 cat >> confdefs.h <<\EOF
3452#define HAVE_STRUCT_LINGER 1
3453EOF
3454
3455fi
3456
3457#--------------------------------------------------------------------
3458#
3459# How can you violate a stdio abstraction by setting a stream's fd?
3460#
3461#--------------------------------------------------------------------
3462
3463echo $ac_n "checking how to set a stream file descriptor""... $ac_c" 1>&6
757cfb94 3464echo "configure:3465: checking how to set a stream file descriptor" >&5
3a629497
JB
3465if eval "test \"`echo '$''{'scm_cv_fd_setter'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3467else
3468 cat > conftest.$ac_ext <<EOF
757cfb94 3469#line 3470 "configure"
3a629497
JB
3470#include "confdefs.h"
3471#include <stdio.h>
3472int main() {
3473stdout->_file = 1
3474; return 0; }
3475EOF
757cfb94 3476if { (eval echo configure:3477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
3477 rm -rf conftest*
3478 scm_cv_fd_setter="_file"
3479else
3480 echo "configure: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3482 rm -rf conftest*
3483 cat > conftest.$ac_ext <<EOF
757cfb94 3484#line 3485 "configure"
3a629497
JB
3485#include "confdefs.h"
3486#include <stdio.h>
3487int main() {
3488stdout->_fileno = 1
3489; return 0; }
3490EOF
757cfb94 3491if { (eval echo configure:3492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
3492 rm -rf conftest*
3493 scm_cv_fd_setter="_fileno"
3494else
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3497 rm -rf conftest*
3498 scm_cv_fd_setter=""
3499fi
3500rm -f conftest*
3501fi
3502rm -f conftest*
3503fi
3504
3505
3506if test "$scm_cv_fd_setter"; then
3507 echo "$ac_t""$scm_cv_fd_setter" 1>&6
3508 cat >> confdefs.h <<EOF
3509#define FD_SETTER $scm_cv_fd_setter
3510EOF
3511
3512else
3513 echo "$ac_t""we couldn't do it!" 1>&6
3514fi
3515
3516#--------------------------------------------------------------------
3517# How to find out whether a FILE structure contains buffered data.
3518# From Tk we have the following list:
3519# _cnt: Most UNIX systems
3520# __cnt: HPUX
3521# _r: BSD
3522# readCount: Sprite
3523# Or, in GNU libc there are two fields, _gptr and _egptr, which
3524# have to be compared.
3525# These can also be known as _IO_read_ptr and _IO_read_end.
3526#--------------------------------------------------------------------
3527
3528echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
757cfb94 3529echo "configure:3530: checking how to get buffer char count from FILE structure" >&5
3a629497
JB
3530if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3532else
3533 cat > conftest.$ac_ext <<EOF
757cfb94 3534#line 3535 "configure"
3a629497
JB
3535#include "confdefs.h"
3536#include <stdio.h>
3537int main() {
3538FILE *f = stdin; f->_cnt = 0
3539; return 0; }
3540EOF
757cfb94 3541if { (eval echo configure:3542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
3542 rm -rf conftest*
3543 scm_cv_struct_file_count="_cnt"
3544else
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3547 rm -rf conftest*
3548 cat > conftest.$ac_ext <<EOF
757cfb94 3549#line 3550 "configure"
3a629497
JB
3550#include "confdefs.h"
3551#include <stdio.h>
3552int main() {
3553FILE *f = stdin; f->_r = 0
3554; return 0; }
3555EOF
757cfb94 3556if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
3557 rm -rf conftest*
3558 scm_cv_struct_file_count="_r"
3559else
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3562 rm -rf conftest*
3563 cat > conftest.$ac_ext <<EOF
757cfb94 3564#line 3565 "configure"
3a629497
JB
3565#include "confdefs.h"
3566#include <stdio.h>
3567int main() {
3568FILE *f = stdin; f->readCount = 0
3569; return 0; }
3570EOF
757cfb94 3571if { (eval echo configure:3572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
3572 rm -rf conftest*
3573 scm_cv_struct_file_count="readCount"
3574else
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3577 rm -rf conftest*
3578 scm_cv_struct_file_count=""
3579fi
3580rm -f conftest*
3581fi
3582rm -f conftest*
3583fi
3584rm -f conftest*
3585fi
3586
3587if test "$scm_cv_struct_file_count"; then
3588 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
3589 cat >> confdefs.h <<EOF
3590#define FILE_CNT_FIELD $scm_cv_struct_file_count
3591EOF
3592
3593else
3594if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3596else
3597 cat > conftest.$ac_ext <<EOF
757cfb94 3598#line 3599 "configure"
3a629497
JB
3599#include "confdefs.h"
3600#include <stdio.h>
3601int main() {
3602FILE *f = stdin; f->_gptr = f->egptr;
3603; return 0; }
3604EOF
757cfb94 3605if { (eval echo configure:3606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
3606 rm -rf conftest*
3607 scm_cv_struct_file_gptr=1
3608else
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3611 rm -rf conftest*
3612 scm_cv_struct_file_gptr=""
3613fi
3614rm -f conftest*
3615fi
3616
3617if test "$scm_cv_struct_gptr"; then
3618 echo "$ac_t""gptr" 1>&6
3619 cat >> confdefs.h <<EOF
3620#define FILE_CNT_GPTR $scm_cv_struct_file_gptr
3621EOF
3622
3623else
3624if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
3625 echo $ac_n "(cached) $ac_c" 1>&6
3626else
3627 cat > conftest.$ac_ext <<EOF
757cfb94 3628#line 3629 "configure"
3a629497
JB
3629#include "confdefs.h"
3630#include <stdio.h>
3631int main() {
3632FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
3633; return 0; }
3634EOF
757cfb94 3635if { (eval echo configure:3636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a629497
JB
3636 rm -rf conftest*
3637 scm_cv_struct_file_readptr=1
3638else
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3641fi
3642rm -f conftest*
3643fi
3644
3645if test "$scm_cv_struct_file_readptr"; then
3646 echo "$ac_t""read_ptr" 1>&6
3647 cat >> confdefs.h <<EOF
3648#define FILE_CNT_READPTR $scm_cv_struct_file_readptr
3649EOF
3650
3651else
3652 echo "$ac_t""we couldn't do it!" 1>&6
3653fi
3654fi
3655fi
3656
3657#--------------------------------------------------------------------
3658#
3659# Flags for thread support
3660#
3661#--------------------------------------------------------------------
3662
757cfb94 3663CY_AC_WITH_THREADS
3a629497
JB
3664CFLAGS="$CFLAGS $cy_cv_threads_cflags"
3665THREAD_LIBS="$cy_cv_threads_libs"
3666
3667
3668if test "$cy_cv_threads_package" = FSU; then
3669 cat >> confdefs.h <<\EOF
3670#define USE_FSU_PTHREADS 1
3671EOF
3672
3673 else if test "$cy_cv_threads_package" = COOP; then
3674 cat >> confdefs.h <<\EOF
3675#define USE_COOP_THREADS 1
3676EOF
3677
3678 else if test "$cy_cv_threads_package" = MIT; then
3679 cat >> confdefs.h <<\EOF
3680#define USE_MIT_PTHREADS 1
3681EOF
3682
3683 else if test "$cy_cv_threads_package" = PCthreads; then
3684 cat >> confdefs.h <<\EOF
3685#define USE_PCTHREADS_PTHREADS 1
3686EOF
3687
3688 else if test "$cy_cv_threads_package" = unknown; then
3689 { echo "configure: error: "cannot find threads installation"" 1>&2; exit 1; }
3690 fi
3691 fi
3692 fi
3693 fi
3694fi
3695
3696if test "$cy_cv_threads_package" != ""; then
3697 cat >> confdefs.h <<\EOF
3698#define USE_THREADS 1
3699EOF
3700
3701 LIBOBJS="$LIBOBJS threads.o"
3702fi
3703
3704## If we're using GCC, ask for aggressive warnings.
3705case "$GCC" in
3706 yes ) CFLAGS="$CFLAGS -Wall -Wpointer-arith" ;;
3707esac
3708
3709for ac_prog in mawk gawk nawk awk
3710do
3711# Extract the first word of "$ac_prog", so it can be a program name with args.
3712set dummy $ac_prog; ac_word=$2
3713echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757cfb94 3714echo "configure:3715: checking for $ac_word" >&5
3a629497
JB
3715if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3717else
3718 if test -n "$AWK"; then
3719 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3720else
3721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3722 for ac_dir in $PATH; do
3723 test -z "$ac_dir" && ac_dir=.
3724 if test -f $ac_dir/$ac_word; then
3725 ac_cv_prog_AWK="$ac_prog"
3726 break
3727 fi
3728 done
3729 IFS="$ac_save_ifs"
3730fi
3731fi
3732AWK="$ac_cv_prog_AWK"
3733if test -n "$AWK"; then
3734 echo "$ac_t""$AWK" 1>&6
3735else
3736 echo "$ac_t""no" 1>&6
3737fi
3738
3739test -n "$AWK" && break
3740done
3741
3742
3743## If we're creating a shared library (using libtool!), then we'll
3744## need to generate a list of .lo files corresponding to the .o files
3745## given in LIBOBJS. We'll call it LIBLOBJS.
3746LIBLOBJS="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
3747
3a629497 3748
3a629497 3749
7c86ae05
JB
3750
3751
3752GUILE_STAMP="`date`"
3a629497
JB
3753
3754
3755
3756
3757
3758
3759
3760threads_enabled=false
3761if test "$cy_cv_threads_package" = COOP; then
3762 threads_enabled=true
3763fi
3764
3765# Determine the host we are working on
3766
3767# Make sure we can run config.sub.
3768if $ac_config_sub sun4 >/dev/null 2>&1; then :
3769else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3770fi
3771
3772echo $ac_n "checking host system type""... $ac_c" 1>&6
757cfb94 3773echo "configure:3774: checking host system type" >&5
3a629497
JB
3774
3775host_alias=$host
3776case "$host_alias" in
3777NONE)
3778 case $nonopt in
3779 NONE)
3780 if host_alias=`$ac_config_guess`; then :
3781 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3782 fi ;;
3783 *) host_alias=$nonopt ;;
3784 esac ;;
3785esac
3786
3787host=`$ac_config_sub $host_alias`
3788host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3789host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3790host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3791echo "$ac_t""$host" 1>&6
3792
3793
77c7a433
JB
3794# How can we refer to the qt source directory from within the qt build
3795# directory? For headers, we can rely on the fact that the qt src
3796# directory appears in the #include path.
3797
3798qtsrcdir="`(cd $srcdir; pwd)`/qt"
3799
3a629497
JB
3800case "$host" in
3801i[3456]86-*-*)
77c7a433
JB
3802 qtmds_s=$qtsrcdir/md/i386.s
3803 qtmd_h=md/i386.h
3804 qtmdc_c=$qtsrcdir/md/null.c
3a629497
JB
3805 ;;
3806mips-sgi-irix5*)
77c7a433
JB
3807 qtmds_s=$qtsrcdir/md/mips-irix5.s
3808 qtmd_h=md/mips.h
3809 qtmdc_c=$qtsrcdir/md/null.c
3810 qtdmdb_s=$qtsrcdir/md/mips_b.s
3a629497
JB
3811 ;;
3812mips-*-*)
77c7a433
JB
3813 qtmds_s=$qtsrcdir/md/mips.s
3814 qtmd_h=md/mips.h
3815 qtmdc_c=$qtsrcdir/md/null.c
3816 qtdmdb_s=$qtsrcdir/md/mips_b.s
3a629497 3817 ;;
2a18e748 3818sparc-*-sunos*)
77c7a433
JB
3819 qtmd_h=md/sparc.h
3820 qtmdc_c=$qtsrcdir/md/null.c
2a18e748
JB
3821 qtmds_s=$qtsrcdir/md/_sparc.s
3822 qtdmdb_s=$qtsrcdir/md/_sparc_b.s
3a629497
JB
3823 ;;
3824sparc-*-*)
77c7a433
JB
3825 qtmd_h=md/sparc.h
3826 qtmdc_c=$qtsrcdir/md/null.c
2a18e748
JB
3827 qtmds_s=$qtsrcdir/md/sparc.s
3828 qtdmdb_s=$qtsrcdir/md/sparc_b.s
3a629497 3829 ;;
757cfb94
MD
3830alpha-*-*)
3831 qtmd_h=md/axp.h
3832 qtmdc_c=$qtsrcdir/md/null.c
3833 qtmds_s=$qtsrcdir/md/axp.s
3834 qtdmdb_s=$qtsrcdir/md/axp_b.s
3835 ;;
3a629497
JB
3836*)
3837 echo "Unknown configuration; threads package disabled"
3838 threads_enabled=false
3839 ;;
3840esac
3841
3842
3843
3844if $threads_enabled; then
3845 target_libs=libqt.a
3846else
3847 target_libs=
3848fi
3849
3850# Give the Makefile the names of the object files that will be
3851# generated by compiling $qtmdc_c and $qtmds_s.
3852qtmdc_o="`echo ${qtmdc_c} | sed -e 's:^.*/::' | sed -e 's:\.c$:\.o:'`"
3853qtmds_o="`echo ${qtmds_s} | sed -e 's:^.*/::' | sed -e 's:\.s$:\.o:'`"
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863trap '' 1 2 15
3864cat > confcache <<\EOF
3865# This file is a shell script that caches the results of configure
3866# tests run on this system so they can be shared between configure
3867# scripts and configure runs. It is not useful on other systems.
3868# If it contains results you don't want to keep, you may remove or edit it.
3869#
3870# By default, configure uses ./config.cache as the cache file,
3871# creating it if it does not exist already. You can give configure
3872# the --cache-file=FILE option to use a different cache file; that is
3873# what configure does when it calls configure scripts in
3874# subdirectories, so they share the cache.
3875# Giving --cache-file=/dev/null disables caching, for debugging configure.
3876# config.status only pays attention to the cache file if you give it the
3877# --recheck option to rerun configure.
3878#
3879EOF
3880# The following way of writing the cache mishandles newlines in values,
3881# but we know of no workaround that is simple, portable, and efficient.
3882# So, don't put newlines in cache variables' values.
3883# Ultrix sh set writes to stderr and can't be redirected directly,
3884# and sets the high bit in the cache file unless we assign to the vars.
3885(set) 2>&1 |
3886 case `(ac_space=' '; set) 2>&1` in
3887 *ac_space=\ *)
3888 # `set' does not quote correctly, so add quotes (double-quote substitution
3889 # turns \\\\ into \\, and sed turns \\ into \).
3890 sed -n \
3891 -e "s/'/'\\\\''/g" \
3892 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3893 ;;
3894 *)
3895 # `set' quotes correctly as required by POSIX, so do not add quotes.
3896 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3897 ;;
3898 esac >> confcache
3899if cmp -s $cache_file confcache; then
3900 :
3901else
3902 if test -w $cache_file; then
3903 echo "updating cache $cache_file"
3904 cat confcache > $cache_file
3905 else
3906 echo "not updating unwritable cache $cache_file"
3907 fi
3908fi
3909rm -f confcache
3910
3911trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3912
3913test "x$prefix" = xNONE && prefix=$ac_default_prefix
3914# Let make expand exec_prefix.
3915test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3916
3917# Any assignment to VPATH causes Sun make to only execute
3918# the first set of double-colon rules, so remove it if not needed.
3919# If there is a colon in the path, we need to keep it.
3920if test "x$srcdir" = x.; then
3921 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3922fi
3923
3924trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3925
3926DEFS=-DHAVE_CONFIG_H
3927
3928# Without the "./", some shells look in PATH for config.status.
3929: ${CONFIG_STATUS=./config.status}
3930
3931echo creating $CONFIG_STATUS
3932rm -f $CONFIG_STATUS
3933cat > $CONFIG_STATUS <<EOF
3934#! /bin/sh
3935# Generated automatically by configure.
3936# Run this file to recreate the current configuration.
3937# This directory was configured as follows,
3938# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3939#
3940# $0 $ac_configure_args
3941#
3942# Compiler output produced by configure, useful for debugging
3943# configure, is in ./config.log if it exists.
3944
3945ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3946for ac_option
3947do
3948 case "\$ac_option" in
3949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3950 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3951 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3952 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3953 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3954 exit 0 ;;
3955 -help | --help | --hel | --he | --h)
3956 echo "\$ac_cs_usage"; exit 0 ;;
3957 *) echo "\$ac_cs_usage"; exit 1 ;;
3958 esac
3959done
3960
3961ac_given_srcdir=$srcdir
3962ac_given_INSTALL="$INSTALL"
3963
7c86ae05 3964trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile libguile/scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3a629497
JB
3965EOF
3966cat >> $CONFIG_STATUS <<EOF
3967
3968# Protect against being on the right side of a sed subst in config.status.
3969sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3970 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3971$ac_vpsub
3972$extrasub
3973s%@CFLAGS@%$CFLAGS%g
3974s%@CPPFLAGS@%$CPPFLAGS%g
3975s%@CXXFLAGS@%$CXXFLAGS%g
3976s%@DEFS@%$DEFS%g
3977s%@LDFLAGS@%$LDFLAGS%g
3978s%@LIBS@%$LIBS%g
3979s%@exec_prefix@%$exec_prefix%g
3980s%@prefix@%$prefix%g
3981s%@program_transform_name@%$program_transform_name%g
3982s%@bindir@%$bindir%g
3983s%@sbindir@%$sbindir%g
3984s%@libexecdir@%$libexecdir%g
3985s%@datadir@%$datadir%g
3986s%@sysconfdir@%$sysconfdir%g
3987s%@sharedstatedir@%$sharedstatedir%g
3988s%@localstatedir@%$localstatedir%g
3989s%@libdir@%$libdir%g
3990s%@includedir@%$includedir%g
3991s%@oldincludedir@%$oldincludedir%g
3992s%@infodir@%$infodir%g
3993s%@mandir@%$mandir%g
3994s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3995s%@INSTALL_DATA@%$INSTALL_DATA%g
3996s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3997s%@PACKAGE@%$PACKAGE%g
3998s%@VERSION@%$VERSION%g
3999s%@ACLOCAL@%$ACLOCAL%g
4000s%@AUTOCONF@%$AUTOCONF%g
4001s%@AUTOMAKE@%$AUTOMAKE%g
4002s%@AUTOHEADER@%$AUTOHEADER%g
4003s%@MAKEINFO@%$MAKEINFO%g
4004s%@SET_MAKE@%$SET_MAKE%g
4005s%@MAINT@%$MAINT%g
4006s%@CC@%$CC%g
4007s%@CPP@%$CPP%g
4008s%@host@%$host%g
4009s%@host_alias@%$host_alias%g
4010s%@host_cpu@%$host_cpu%g
4011s%@host_vendor@%$host_vendor%g
4012s%@host_os@%$host_os%g
4013s%@RANLIB@%$RANLIB%g
7c86ae05 4014s%@LD@%$LD%g
757cfb94 4015s%@LN_S@%$LN_S%g
3a629497
JB
4016s%@LIBTOOL@%$LIBTOOL%g
4017s%@LIBOBJS@%$LIBOBJS%g
4018s%@ALLOCA@%$ALLOCA%g
3a629497
JB
4019s%@THREAD_LIBS@%$THREAD_LIBS%g
4020s%@AWK@%$AWK%g
7c86ae05
JB
4021s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
4022s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
4023s%@GUILE_VERSION@%$GUILE_VERSION%g
4024s%@GUILE_STAMP@%$GUILE_STAMP%g
3a629497
JB
4025s%@LIBLOBJS@%$LIBLOBJS%g
4026s%@target_libs@%$target_libs%g
4027s%@qtmd_h@%$qtmd_h%g
4028s%@qtmdc_c@%$qtmdc_c%g
4029s%@qtmdc_o@%$qtmdc_o%g
4030s%@qtmds_s@%$qtmds_s%g
4031s%@qtmds_o@%$qtmds_o%g
4032s%@qtmdb_s@%$qtmdb_s%g
4033
4034CEOF
4035EOF
4036
4037cat >> $CONFIG_STATUS <<\EOF
4038
4039# Split the substitutions into bite-sized pieces for seds with
4040# small command number limits, like on Digital OSF/1 and HP-UX.
4041ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4042ac_file=1 # Number of current file.
4043ac_beg=1 # First line for current file.
4044ac_end=$ac_max_sed_cmds # Line after last line for current file.
4045ac_more_lines=:
4046ac_sed_cmds=""
4047while $ac_more_lines; do
4048 if test $ac_beg -gt 1; then
4049 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4050 else
4051 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4052 fi
4053 if test ! -s conftest.s$ac_file; then
4054 ac_more_lines=false
4055 rm -f conftest.s$ac_file
4056 else
4057 if test -z "$ac_sed_cmds"; then
4058 ac_sed_cmds="sed -f conftest.s$ac_file"
4059 else
4060 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4061 fi
4062 ac_file=`expr $ac_file + 1`
4063 ac_beg=$ac_end
4064 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4065 fi
4066done
4067if test -z "$ac_sed_cmds"; then
4068 ac_sed_cmds=cat
4069fi
4070EOF
4071
4072cat >> $CONFIG_STATUS <<EOF
4073
7c86ae05 4074CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile"}
3a629497
JB
4075EOF
4076cat >> $CONFIG_STATUS <<\EOF
4077for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4078 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4079 case "$ac_file" in
4080 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4081 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4082 *) ac_file_in="${ac_file}.in" ;;
4083 esac
4084
4085 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4086
4087 # Remove last slash and all that follows it. Not all systems have dirname.
4088 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4089 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4090 # The file is in a subdirectory.
4091 test ! -d "$ac_dir" && mkdir "$ac_dir"
4092 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4093 # A "../" for each directory in $ac_dir_suffix.
4094 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4095 else
4096 ac_dir_suffix= ac_dots=
4097 fi
4098
4099 case "$ac_given_srcdir" in
4100 .) srcdir=.
4101 if test -z "$ac_dots"; then top_srcdir=.
4102 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
0f2d19dd
JB
4103 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4104 *) # Relative path.
4105 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4106 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4107 esac
4108
733943b9
TT
4109 case "$ac_given_INSTALL" in
4110 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4111 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4112 esac
4113
0f2d19dd
JB
4114 echo creating "$ac_file"
4115 rm -f "$ac_file"
4116 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4117 case "$ac_file" in
4118 *Makefile*) ac_comsub="1i\\
4119# $configure_input" ;;
4120 *) ac_comsub= ;;
4121 esac
733943b9
TT
4122
4123 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
0f2d19dd
JB
4124 sed -e "$ac_comsub
4125s%@configure_input@%$configure_input%g
4126s%@srcdir@%$srcdir%g
4127s%@top_srcdir@%$top_srcdir%g
733943b9
TT
4128s%@INSTALL@%$INSTALL%g
4129" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
0f2d19dd 4130fi; done
733943b9 4131rm -f conftest.s*
0f2d19dd 4132
3a629497
JB
4133# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4134# NAME is the cpp macro being defined and VALUE is the value it is being given.
4135#
4136# ac_d sets the value in "#define NAME VALUE" lines.
4137ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4138ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4139ac_dC='\3'
4140ac_dD='%g'
4141# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4142ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4143ac_uB='\([ ]\)%\1#\2define\3'
4144ac_uC=' '
4145ac_uD='\4%g'
4146# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4147ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4148ac_eB='$%\1#\2define\3'
4149ac_eC=' '
4150ac_eD='%g'
4151
4152if test "${CONFIG_HEADERS+set}" != set; then
733943b9
TT
4153EOF
4154cat >> $CONFIG_STATUS <<EOF
3a629497 4155 CONFIG_HEADERS="libguile/scmconfig.h"
733943b9
TT
4156EOF
4157cat >> $CONFIG_STATUS <<\EOF
3a629497
JB
4158fi
4159for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4161 case "$ac_file" in
4162 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4163 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4164 *) ac_file_in="${ac_file}.in" ;;
4165 esac
0f2d19dd 4166
3a629497 4167 echo creating $ac_file
0f2d19dd 4168
3a629497
JB
4169 rm -f conftest.frag conftest.in conftest.out
4170 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4171 cat $ac_file_inputs > conftest.in
0f2d19dd 4172
3a629497 4173EOF
0f2d19dd 4174
3a629497
JB
4175# Transform confdefs.h into a sed script conftest.vals that substitutes
4176# the proper values into config.h.in to produce config.h. And first:
4177# Protect against being on the right side of a sed subst in config.status.
4178# Protect against being in an unquoted here document in config.status.
4179rm -f conftest.vals
4180cat > conftest.hdr <<\EOF
4181s/[\\&%]/\\&/g
4182s%[\\$`]%\\&%g
4183s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4184s%ac_d%ac_u%gp
4185s%ac_u%ac_e%gp
4186EOF
4187sed -n -f conftest.hdr confdefs.h > conftest.vals
4188rm -f conftest.hdr
4189
4190# This sed command replaces #undef with comments. This is necessary, for
4191# example, in the case of _POSIX_SOURCE, which is predefined and required
4192# on some systems where configure will not decide to define it.
4193cat >> conftest.vals <<\EOF
4194s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4195EOF
0f2d19dd 4196
3a629497
JB
4197# Break up conftest.vals because some shells have a limit on
4198# the size of here documents, and old seds have small limits too.
733943b9 4199
3a629497
JB
4200rm -f conftest.tail
4201while :
4202do
4203 ac_lines=`grep -c . conftest.vals`
4204 # grep -c gives empty output for an empty file on some AIX systems.
4205 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4206 # Write a limited-size here document to conftest.frag.
4207 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4208 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4209 echo 'CEOF
4210 sed -f conftest.frag conftest.in > conftest.out
4211 rm -f conftest.in
4212 mv conftest.out conftest.in
4213' >> $CONFIG_STATUS
4214 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4215 rm -f conftest.vals
4216 mv conftest.tail conftest.vals
4217done
4218rm -f conftest.vals
0f2d19dd 4219
3a629497
JB
4220cat >> $CONFIG_STATUS <<\EOF
4221 rm -f conftest.frag conftest.h
4222 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4223 cat conftest.in >> conftest.h
4224 rm -f conftest.in
4225 if cmp -s $ac_file conftest.h 2>/dev/null; then
4226 echo "$ac_file is unchanged"
4227 rm -f conftest.h
4228 else
4229 # Remove last slash and all that follows it. Not all systems have dirname.
4230 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4231 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4232 # The file is in a subdirectory.
4233 test ! -d "$ac_dir" && mkdir "$ac_dir"
0f2d19dd 4234 fi
3a629497
JB
4235 rm -f $ac_file
4236 mv conftest.h $ac_file
4237 fi
4238fi; done
0f2d19dd 4239
3a629497
JB
4240EOF
4241cat >> $CONFIG_STATUS <<EOF
0f2d19dd 4242
dbcda102 4243
3a629497
JB
4244EOF
4245cat >> $CONFIG_STATUS <<\EOF
4246test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
4247chmod +x libguile/guile-snarf
4248exit 0
4249EOF
4250chmod +x $CONFIG_STATUS
4251rm -fr confdefs* $ac_clean_files
4252test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4253
0f2d19dd 4254