small manual stuff
[bpt/guile.git] / libguile / configure
... / ...
CommitLineData
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
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:
14ac_help="$ac_help
15 --disable-debug Don't include debugging support"
16ac_help="$ac_help
17 --enable-dynamic-linking Include support for dynamic linking"
18ac_help="$ac_help
19 --enable-shared build shared libraries [default=yes]"
20ac_help="$ac_help
21 --with-threads thread interface"
22
23# Initialize some variables set by options.
24# The variables have the same names as the options, with
25# dashes changed to underlines.
26build=NONE
27cache_file=./config.cache
28exec_prefix=NONE
29host=NONE
30no_create=
31nonopt=NONE
32no_recursion=
33prefix=NONE
34program_prefix=NONE
35program_suffix=NONE
36program_transform_name=s,x,x,
37silent=
38site=
39srcdir=
40target=NONE
41verbose=
42x_includes=NONE
43x_libraries=NONE
44bindir='${exec_prefix}/bin'
45sbindir='${exec_prefix}/sbin'
46libexecdir='${exec_prefix}/libexec'
47datadir='${prefix}/share'
48sysconfdir='${prefix}/etc'
49sharedstatedir='${prefix}/com'
50localstatedir='${prefix}/var'
51libdir='${exec_prefix}/lib'
52includedir='${prefix}/include'
53oldincludedir='/usr/include'
54infodir='${prefix}/info'
55mandir='${prefix}/man'
56
57# Initialize some other variables.
58subdirs=
59MFLAGS= MAKEFLAGS=
60# Maximum number of lines to put in a shell here document.
61ac_max_here_lines=12
62
63ac_prev=
64for ac_option
65do
66
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
70 ac_prev=
71 continue
72 fi
73
74 case "$ac_option" in
75 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 *) ac_optarg= ;;
77 esac
78
79 # Accept the important Cygnus configure options, so we can diagnose typos.
80
81 case "$ac_option" in
82
83 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 ac_prev=bindir ;;
85 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86 bindir="$ac_optarg" ;;
87
88 -build | --build | --buil | --bui | --bu)
89 ac_prev=build ;;
90 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91 build="$ac_optarg" ;;
92
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 ac_prev=cache_file ;;
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98 cache_file="$ac_optarg" ;;
99
100 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 ac_prev=datadir ;;
102 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 | --da=*)
104 datadir="$ac_optarg" ;;
105
106 -disable-* | --disable-*)
107 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 fi
112 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
114
115 -enable-* | --enable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 fi
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 case "$ac_option" in
123 *=*) ;;
124 *) ac_optarg=yes ;;
125 esac
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
127
128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130 | --exec | --exe | --ex)
131 ac_prev=exec_prefix ;;
132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134 | --exec=* | --exe=* | --ex=*)
135 exec_prefix="$ac_optarg" ;;
136
137 -gas | --gas | --ga | --g)
138 # Obsolete; use --with-gas.
139 with_gas=yes ;;
140
141 -help | --help | --hel | --he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
144 cat << EOF
145Usage: configure [options] [host]
146Options: [defaults in brackets after descriptions]
147Configuration:
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
155 [$ac_default_prefix]
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 [same as prefix]
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
162 [PREFIX/share]
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 [PREFIX/com]
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
177EOF
178 cat << EOF
179Host type:
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
190EOF
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
193 fi
194 exit 0 ;;
195
196 -host | --host | --hos | --ho)
197 ac_prev=host ;;
198 -host=* | --host=* | --hos=* | --ho=*)
199 host="$ac_optarg" ;;
200
201 -includedir | --includedir | --includedi | --included | --include \
202 | --includ | --inclu | --incl | --inc)
203 ac_prev=includedir ;;
204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205 | --includ=* | --inclu=* | --incl=* | --inc=*)
206 includedir="$ac_optarg" ;;
207
208 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 ac_prev=infodir ;;
210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211 infodir="$ac_optarg" ;;
212
213 -libdir | --libdir | --libdi | --libd)
214 ac_prev=libdir ;;
215 -libdir=* | --libdir=* | --libdi=* | --libd=*)
216 libdir="$ac_optarg" ;;
217
218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219 | --libexe | --libex | --libe)
220 ac_prev=libexecdir ;;
221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222 | --libexe=* | --libex=* | --libe=*)
223 libexecdir="$ac_optarg" ;;
224
225 -localstatedir | --localstatedir | --localstatedi | --localstated \
226 | --localstate | --localstat | --localsta | --localst \
227 | --locals | --local | --loca | --loc | --lo)
228 ac_prev=localstatedir ;;
229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232 localstatedir="$ac_optarg" ;;
233
234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 ac_prev=mandir ;;
236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237 mandir="$ac_optarg" ;;
238
239 -nfp | --nfp | --nf)
240 # Obsolete; use --without-fp.
241 with_fp=no ;;
242
243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 | --no-cr | --no-c)
245 no_create=yes ;;
246
247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249 no_recursion=yes ;;
250
251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253 | --oldin | --oldi | --old | --ol | --o)
254 ac_prev=oldincludedir ;;
255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258 oldincludedir="$ac_optarg" ;;
259
260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 ac_prev=prefix ;;
262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263 prefix="$ac_optarg" ;;
264
265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
266 | --program-pre | --program-pr | --program-p)
267 ac_prev=program_prefix ;;
268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270 program_prefix="$ac_optarg" ;;
271
272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
273 | --program-suf | --program-su | --program-s)
274 ac_prev=program_suffix ;;
275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277 program_suffix="$ac_optarg" ;;
278
279 -program-transform-name | --program-transform-name \
280 | --program-transform-nam | --program-transform-na \
281 | --program-transform-n | --program-transform- \
282 | --program-transform | --program-transfor \
283 | --program-transfo | --program-transf \
284 | --program-trans | --program-tran \
285 | --progr-tra | --program-tr | --program-t)
286 ac_prev=program_transform_name ;;
287 -program-transform-name=* | --program-transform-name=* \
288 | --program-transform-nam=* | --program-transform-na=* \
289 | --program-transform-n=* | --program-transform-=* \
290 | --program-transform=* | --program-transfor=* \
291 | --program-transfo=* | --program-transf=* \
292 | --program-trans=* | --program-tran=* \
293 | --progr-tra=* | --program-tr=* | --program-t=*)
294 program_transform_name="$ac_optarg" ;;
295
296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297 | -silent | --silent | --silen | --sile | --sil)
298 silent=yes ;;
299
300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 ac_prev=sbindir ;;
302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 | --sbi=* | --sb=*)
304 sbindir="$ac_optarg" ;;
305
306 -sharedstatedir | --sharedstatedir | --sharedstatedi \
307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308 | --sharedst | --shareds | --shared | --share | --shar \
309 | --sha | --sh)
310 ac_prev=sharedstatedir ;;
311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 | --sha=* | --sh=*)
315 sharedstatedir="$ac_optarg" ;;
316
317 -site | --site | --sit)
318 ac_prev=site ;;
319 -site=* | --site=* | --sit=*)
320 site="$ac_optarg" ;;
321
322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 ac_prev=srcdir ;;
324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325 srcdir="$ac_optarg" ;;
326
327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328 | --syscon | --sysco | --sysc | --sys | --sy)
329 ac_prev=sysconfdir ;;
330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332 sysconfdir="$ac_optarg" ;;
333
334 -target | --target | --targe | --targ | --tar | --ta | --t)
335 ac_prev=target ;;
336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337 target="$ac_optarg" ;;
338
339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 verbose=yes ;;
341
342 -version | --version | --versio | --versi | --vers)
343 echo "configure generated by autoconf version 2.12"
344 exit 0 ;;
345
346 -with-* | --with-*)
347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 fi
352 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 case "$ac_option" in
354 *=*) ;;
355 *) ac_optarg=yes ;;
356 esac
357 eval "with_${ac_package}='$ac_optarg'" ;;
358
359 -without-* | --without-*)
360 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 fi
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
367
368 --x)
369 # Obsolete; use --with-x.
370 with_x=yes ;;
371
372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373 | --x-incl | --x-inc | --x-in | --x-i)
374 ac_prev=x_includes ;;
375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377 x_includes="$ac_optarg" ;;
378
379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381 ac_prev=x_libraries ;;
382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384 x_libraries="$ac_optarg" ;;
385
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 ;;
388
389 *)
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 fi
393 if test "x$nonopt" != xNONE; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 fi
396 nonopt="$ac_option"
397 ;;
398
399 esac
400done
401
402if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404fi
405
406trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
408# File descriptor usage:
409# 0 standard input
410# 1 file creation
411# 2 errors and warnings
412# 3 some systems may open it to /dev/tty
413# 4 used on the Kubota Titan
414# 6 checking for... messages and results
415# 5 compiler messages saved in config.log
416if test "$silent" = yes; then
417 exec 6>/dev/null
418else
419 exec 6>&1
420fi
421exec 5>./config.log
422
423echo "\
424This file contains any messages produced by compilers while
425running configure, to aid debugging if configure makes a mistake.
426" 1>&5
427
428# Strip out --no-create and --no-recursion so they do not pile up.
429# Also quote any args containing shell metacharacters.
430ac_configure_args=
431for ac_arg
432do
433 case "$ac_arg" in
434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435 | --no-cr | --no-c) ;;
436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 esac
442done
443
444# NLS nuisances.
445# Only set these to C if already set. These must not be set unconditionally
446# because not all systems understand e.g. LANG=C (notably SCO).
447# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448# Non-C LC_CTYPE values break the ctype check.
449if test "${LANG+set}" = set; then LANG=C; export LANG; fi
450if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
452if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453
454# confdefs.h avoids OS command line length limits that DEFS can exceed.
455rm -rf conftest* confdefs.h
456# AIX cpp loses on an empty file, so make sure it contains at least a newline.
457echo > confdefs.h
458
459# A filename unique to this package, relative to the directory that
460# configure is in, which we can look for to find out if srcdir is correct.
461ac_unique_file=eval.c
462
463# Find the source files, if location was not specified.
464if test -z "$srcdir"; then
465 ac_srcdir_defaulted=yes
466 # Try the directory containing this script, then its parent.
467 ac_prog=$0
468 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 srcdir=$ac_confdir
471 if test ! -r $srcdir/$ac_unique_file; then
472 srcdir=..
473 fi
474else
475 ac_srcdir_defaulted=no
476fi
477if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 else
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 fi
483fi
484srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485
486# Prefer explicitly selected file to automatically selected ones.
487if test -z "$CONFIG_SITE"; then
488 if test "x$prefix" != xNONE; then
489 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490 else
491 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 fi
493fi
494for ac_site_file in $CONFIG_SITE; do
495 if test -r "$ac_site_file"; then
496 echo "loading site script $ac_site_file"
497 . "$ac_site_file"
498 fi
499done
500
501if test -r "$cache_file"; then
502 echo "loading cache $cache_file"
503 . $cache_file
504else
505 echo "creating cache $cache_file"
506 > $cache_file
507fi
508
509ac_ext=c
510# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511ac_cpp='$CPP $CPPFLAGS'
512ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514cross_compiling=$ac_cv_prog_cc_cross
515
516if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
517 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
519 ac_n= ac_c='
520' ac_t=' '
521 else
522 ac_n=-n ac_c= ac_t=
523 fi
524else
525 ac_n= ac_c='\c' ac_t=
526fi
527
528
529
530
531
532ac_aux_dir=
533for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
534 if test -f $ac_dir/install-sh; then
535 ac_aux_dir=$ac_dir
536 ac_install_sh="$ac_aux_dir/install-sh -c"
537 break
538 elif test -f $ac_dir/install.sh; then
539 ac_aux_dir=$ac_dir
540 ac_install_sh="$ac_aux_dir/install.sh -c"
541 break
542 fi
543done
544if test -z "$ac_aux_dir"; then
545 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
546fi
547ac_config_guess=$ac_aux_dir/config.guess
548ac_config_sub=$ac_aux_dir/config.sub
549ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
550
551# Find a good install program. We prefer a C program (faster),
552# so one script is as good as another. But avoid the broken or
553# incompatible versions:
554# SysV /etc/install, /usr/sbin/install
555# SunOS /usr/etc/install
556# IRIX /sbin/install
557# AIX /bin/install
558# AFS /usr/afsws/bin/install, which mishandles nonexistent args
559# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
560# ./install, which can be erroneously created by make from ./install.sh.
561echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
562echo "configure:563: checking for a BSD compatible install" >&5
563if test -z "$INSTALL"; then
564if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
565 echo $ac_n "(cached) $ac_c" 1>&6
566else
567 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
568 for ac_dir in $PATH; do
569 # Account for people who put trailing slashes in PATH elements.
570 case "$ac_dir/" in
571 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
572 *)
573 # OSF1 and SCO ODT 3.0 have their own names for install.
574 for ac_prog in ginstall installbsd scoinst install; do
575 if test -f $ac_dir/$ac_prog; then
576 if test $ac_prog = install &&
577 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
578 # AIX install. It has an incompatible calling convention.
579 # OSF/1 installbsd also uses dspmsg, but is usable.
580 :
581 else
582 ac_cv_path_install="$ac_dir/$ac_prog -c"
583 break 2
584 fi
585 fi
586 done
587 ;;
588 esac
589 done
590 IFS="$ac_save_IFS"
591
592fi
593 if test "${ac_cv_path_install+set}" = set; then
594 INSTALL="$ac_cv_path_install"
595 else
596 # As a last resort, use the slow shell script. We don't cache a
597 # path for INSTALL within a source directory, because that will
598 # break other packages using the cache if that directory is
599 # removed, or if the path is relative.
600 INSTALL="$ac_install_sh"
601 fi
602fi
603echo "$ac_t""$INSTALL" 1>&6
604
605# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
606# It thinks the first close brace ends the variable substitution.
607test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
608
609test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
610
611
612test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
613
614
615. $srcdir/../GUILE-VERSION
616
617PACKAGE=$PACKAGE
618
619cat >> confdefs.h <<EOF
620#define PACKAGE "$PACKAGE"
621EOF
622
623VERSION=$VERSION
624
625cat >> confdefs.h <<EOF
626#define VERSION "$VERSION"
627EOF
628
629echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
630echo "configure:631: checking whether build environment is sane" >&5
631echo timestamp > conftestfile
632# Do this in a subshell so we don't clobber the current shell's
633# arguments. FIXME: maybe try `-L' hack like GETLOADAVG test?
634if (set X `ls -t $srcdir/configure conftestfile`; test "$2" = conftestfile)
635then
636 # Ok.
637 :
638else
639 { echo "configure: error: newly created file is older than distributed files!
640Check your system clock" 1>&2; exit 1; }
641fi
642rm -f conftest*
643echo "$ac_t""yes" 1>&6
644if test "$program_transform_name" = s,x,x,; then
645 program_transform_name=
646else
647 # Double any \ or $. echo might interpret backslashes.
648 cat <<\EOF_SED > conftestsed
649s,\\,\\\\,g; s,\$,$$,g
650EOF_SED
651 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
652 rm -f conftestsed
653fi
654test "$program_prefix" != NONE &&
655 program_transform_name="s,^,${program_prefix},; $program_transform_name"
656# Use a double $ so make ignores it.
657test "$program_suffix" != NONE &&
658 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
659
660# sed with no file args requires a program.
661test "$program_transform_name" = "" && program_transform_name="s,x,x,"
662
663echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
664echo "configure:665: checking whether ${MAKE-make} sets \${MAKE}" >&5
665set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
666if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
668else
669 cat > conftestmake <<\EOF
670all:
671 @echo 'ac_maketemp="${MAKE}"'
672EOF
673# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
674eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
675if test -n "$ac_maketemp"; then
676 eval ac_cv_prog_make_${ac_make}_set=yes
677else
678 eval ac_cv_prog_make_${ac_make}_set=no
679fi
680rm -f conftestmake
681fi
682if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
683 echo "$ac_t""yes" 1>&6
684 SET_MAKE=
685else
686 echo "$ac_t""no" 1>&6
687 SET_MAKE="MAKE=${MAKE-make}"
688fi
689
690ac_aux_dir=
691for ac_dir in .. $srcdir/..; do
692 if test -f $ac_dir/install-sh; then
693 ac_aux_dir=$ac_dir
694 ac_install_sh="$ac_aux_dir/install-sh -c"
695 break
696 elif test -f $ac_dir/install.sh; then
697 ac_aux_dir=$ac_dir
698 ac_install_sh="$ac_aux_dir/install.sh -c"
699 break
700 fi
701done
702if test -z "$ac_aux_dir"; then
703 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
704fi
705ac_config_guess=$ac_aux_dir/config.guess
706ac_config_sub=$ac_aux_dir/config.sub
707ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
708
709module=libguile
710
711
712#--------------------------------------------------------------------
713#
714# User options
715#
716#--------------------------------------------------------------------
717
718# Check whether --enable-debug or --disable-debug was given.
719if test "${enable_debug+set}" = set; then
720 enableval="$enable_debug"
721 :
722fi
723
724if test "$enableval" != n && test "$enableval" != no; then
725 cat >> confdefs.h <<\EOF
726#define DEBUG_EXTENSIONS 1
727EOF
728
729 cat >> confdefs.h <<\EOF
730#define READER_EXTENSIONS 1
731EOF
732
733 LIBOBJS="backtrace.o stacks.o debug.o srcprop.o $LIBOBJS"
734fi
735
736# Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
737if test "${enable_dynamic_linking+set}" = set; then
738 enableval="$enable_dynamic_linking"
739 :
740fi
741
742
743#--------------------------------------------------------------------
744
745# Extract the first word of "gcc", so it can be a program name with args.
746set dummy gcc; ac_word=$2
747echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
748echo "configure:749: checking for $ac_word" >&5
749if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
751else
752 if test -n "$CC"; then
753 ac_cv_prog_CC="$CC" # Let the user override the test.
754else
755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
756 for ac_dir in $PATH; do
757 test -z "$ac_dir" && ac_dir=.
758 if test -f $ac_dir/$ac_word; then
759 ac_cv_prog_CC="gcc"
760 break
761 fi
762 done
763 IFS="$ac_save_ifs"
764fi
765fi
766CC="$ac_cv_prog_CC"
767if test -n "$CC"; then
768 echo "$ac_t""$CC" 1>&6
769else
770 echo "$ac_t""no" 1>&6
771fi
772
773if test -z "$CC"; then
774 # Extract the first word of "cc", so it can be a program name with args.
775set dummy cc; ac_word=$2
776echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777echo "configure:778: checking for $ac_word" >&5
778if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
780else
781 if test -n "$CC"; then
782 ac_cv_prog_CC="$CC" # Let the user override the test.
783else
784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
785 ac_prog_rejected=no
786 for ac_dir in $PATH; do
787 test -z "$ac_dir" && ac_dir=.
788 if test -f $ac_dir/$ac_word; then
789 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
790 ac_prog_rejected=yes
791 continue
792 fi
793 ac_cv_prog_CC="cc"
794 break
795 fi
796 done
797 IFS="$ac_save_ifs"
798if test $ac_prog_rejected = yes; then
799 # We found a bogon in the path, so make sure we never use it.
800 set dummy $ac_cv_prog_CC
801 shift
802 if test $# -gt 0; then
803 # We chose a different compiler from the bogus one.
804 # However, it has the same basename, so the bogon will be chosen
805 # first if we set CC to just the basename; use the full file name.
806 shift
807 set dummy "$ac_dir/$ac_word" "$@"
808 shift
809 ac_cv_prog_CC="$@"
810 fi
811fi
812fi
813fi
814CC="$ac_cv_prog_CC"
815if test -n "$CC"; then
816 echo "$ac_t""$CC" 1>&6
817else
818 echo "$ac_t""no" 1>&6
819fi
820
821 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
822fi
823
824echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
825echo "configure:826: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
826
827ac_ext=c
828# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
829ac_cpp='$CPP $CPPFLAGS'
830ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
831ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
832cross_compiling=$ac_cv_prog_cc_cross
833
834cat > conftest.$ac_ext <<EOF
835#line 836 "configure"
836#include "confdefs.h"
837main(){return(0);}
838EOF
839if { (eval echo configure:840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
840 ac_cv_prog_cc_works=yes
841 # If we can't run a trivial program, we are probably using a cross compiler.
842 if (./conftest; exit) 2>/dev/null; then
843 ac_cv_prog_cc_cross=no
844 else
845 ac_cv_prog_cc_cross=yes
846 fi
847else
848 echo "configure: failed program was:" >&5
849 cat conftest.$ac_ext >&5
850 ac_cv_prog_cc_works=no
851fi
852rm -fr conftest*
853
854echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
855if test $ac_cv_prog_cc_works = no; then
856 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
857fi
858echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
859echo "configure:860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
860echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
861cross_compiling=$ac_cv_prog_cc_cross
862
863echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
864echo "configure:865: checking whether we are using GNU C" >&5
865if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
867else
868 cat > conftest.c <<EOF
869#ifdef __GNUC__
870 yes;
871#endif
872EOF
873if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
874 ac_cv_prog_gcc=yes
875else
876 ac_cv_prog_gcc=no
877fi
878fi
879
880echo "$ac_t""$ac_cv_prog_gcc" 1>&6
881
882if test $ac_cv_prog_gcc = yes; then
883 GCC=yes
884 ac_test_CFLAGS="${CFLAGS+set}"
885 ac_save_CFLAGS="$CFLAGS"
886 CFLAGS=
887 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
888echo "configure:889: checking whether ${CC-cc} accepts -g" >&5
889if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
891else
892 echo 'void f(){}' > conftest.c
893if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
894 ac_cv_prog_cc_g=yes
895else
896 ac_cv_prog_cc_g=no
897fi
898rm -f conftest*
899
900fi
901
902echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
903 if test "$ac_test_CFLAGS" = set; then
904 CFLAGS="$ac_save_CFLAGS"
905 elif test $ac_cv_prog_cc_g = yes; then
906 CFLAGS="-g -O2"
907 else
908 CFLAGS="-O2"
909 fi
910else
911 GCC=
912 test "${CFLAGS+set}" = set || CFLAGS="-g"
913fi
914
915echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
916echo "configure:917: checking how to run the C preprocessor" >&5
917# On Suns, sometimes $CPP names a directory.
918if test -n "$CPP" && test -d "$CPP"; then
919 CPP=
920fi
921if test -z "$CPP"; then
922if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
924else
925 # This must be in double quotes, not single quotes, because CPP may get
926 # substituted into the Makefile and "${CC-cc}" will confuse make.
927 CPP="${CC-cc} -E"
928 # On the NeXT, cc -E runs the code through the compiler's parser,
929 # not just through cpp.
930 cat > conftest.$ac_ext <<EOF
931#line 932 "configure"
932#include "confdefs.h"
933#include <assert.h>
934Syntax Error
935EOF
936ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
937{ (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
938ac_err=`grep -v '^ *+' conftest.out`
939if test -z "$ac_err"; then
940 :
941else
942 echo "$ac_err" >&5
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
945 rm -rf conftest*
946 CPP="${CC-cc} -E -traditional-cpp"
947 cat > conftest.$ac_ext <<EOF
948#line 949 "configure"
949#include "confdefs.h"
950#include <assert.h>
951Syntax Error
952EOF
953ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
954{ (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
955ac_err=`grep -v '^ *+' conftest.out`
956if test -z "$ac_err"; then
957 :
958else
959 echo "$ac_err" >&5
960 echo "configure: failed program was:" >&5
961 cat conftest.$ac_ext >&5
962 rm -rf conftest*
963 CPP=/lib/cpp
964fi
965rm -f conftest*
966fi
967rm -f conftest*
968 ac_cv_prog_CPP="$CPP"
969fi
970 CPP="$ac_cv_prog_CPP"
971else
972 ac_cv_prog_CPP="$CPP"
973fi
974echo "$ac_t""$CPP" 1>&6
975
976
977# Make sure we can run config.sub.
978if $ac_config_sub sun4 >/dev/null 2>&1; then :
979else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
980fi
981
982echo $ac_n "checking host system type""... $ac_c" 1>&6
983echo "configure:984: checking host system type" >&5
984
985host_alias=$host
986case "$host_alias" in
987NONE)
988 case $nonopt in
989 NONE)
990 if host_alias=`$ac_config_guess`; then :
991 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
992 fi ;;
993 *) host_alias=$nonopt ;;
994 esac ;;
995esac
996
997host=`$ac_config_sub $host_alias`
998host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
999host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1000host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1001echo "$ac_t""$host" 1>&6
1002
1003# Extract the first word of "ranlib", so it can be a program name with args.
1004set dummy ranlib; ac_word=$2
1005echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1006echo "configure:1007: checking for $ac_word" >&5
1007if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1009else
1010 if test -n "$RANLIB"; then
1011 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1012else
1013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1014 for ac_dir in $PATH; do
1015 test -z "$ac_dir" && ac_dir=.
1016 if test -f $ac_dir/$ac_word; then
1017 ac_cv_prog_RANLIB="ranlib"
1018 break
1019 fi
1020 done
1021 IFS="$ac_save_ifs"
1022 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1023fi
1024fi
1025RANLIB="$ac_cv_prog_RANLIB"
1026if test -n "$RANLIB"; then
1027 echo "$ac_t""$RANLIB" 1>&6
1028else
1029 echo "$ac_t""no" 1>&6
1030fi
1031
1032
1033
1034
1035
1036# Always use our own libtool.
1037LIBTOOL='$(top_builddir)/libtool'
1038
1039
1040# Check whether --enable-shared or --disable-shared was given.
1041if test "${enable_shared+set}" = set; then
1042 enableval="$enable_shared"
1043 test "$enableval" = no && libtool_shared=" --disable-shared"
1044else
1045 libtool_shared=
1046fi
1047
1048
1049libtool_flags="$libtool_shared"
1050test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1051test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1052
1053# Actually configure libtool. ac_aux_dir is where install-sh is found.
1054CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LD="$LD" RANLIB="$RANLIB" \
1055$ac_aux_dir/ltconfig $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1056|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1057
1058
1059echo $ac_n "checking for AIX""... $ac_c" 1>&6
1060echo "configure:1061: checking for AIX" >&5
1061cat > conftest.$ac_ext <<EOF
1062#line 1063 "configure"
1063#include "confdefs.h"
1064#ifdef _AIX
1065 yes
1066#endif
1067
1068EOF
1069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1070 egrep "yes" >/dev/null 2>&1; then
1071 rm -rf conftest*
1072 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1073#define _ALL_SOURCE 1
1074EOF
1075
1076else
1077 rm -rf conftest*
1078 echo "$ac_t""no" 1>&6
1079fi
1080rm -f conftest*
1081
1082
1083echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1084echo "configure:1085: checking for POSIXized ISC" >&5
1085if test -d /etc/conf/kconfig.d &&
1086 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1087then
1088 echo "$ac_t""yes" 1>&6
1089 ISC=yes # If later tests want to check for ISC.
1090 cat >> confdefs.h <<\EOF
1091#define _POSIX_SOURCE 1
1092EOF
1093
1094 if test "$GCC" = yes; then
1095 CC="$CC -posix"
1096 else
1097 CC="$CC -Xp"
1098 fi
1099else
1100 echo "$ac_t""no" 1>&6
1101 ISC=
1102fi
1103
1104ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1105echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1106echo "configure:1107: checking for minix/config.h" >&5
1107if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1109else
1110 cat > conftest.$ac_ext <<EOF
1111#line 1112 "configure"
1112#include "confdefs.h"
1113#include <minix/config.h>
1114EOF
1115ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1116{ (eval echo configure:1117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1117ac_err=`grep -v '^ *+' conftest.out`
1118if test -z "$ac_err"; then
1119 rm -rf conftest*
1120 eval "ac_cv_header_$ac_safe=yes"
1121else
1122 echo "$ac_err" >&5
1123 echo "configure: failed program was:" >&5
1124 cat conftest.$ac_ext >&5
1125 rm -rf conftest*
1126 eval "ac_cv_header_$ac_safe=no"
1127fi
1128rm -f conftest*
1129fi
1130if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1131 echo "$ac_t""yes" 1>&6
1132 MINIX=yes
1133else
1134 echo "$ac_t""no" 1>&6
1135MINIX=
1136fi
1137
1138if test "$MINIX" = yes; then
1139 cat >> confdefs.h <<\EOF
1140#define _POSIX_SOURCE 1
1141EOF
1142
1143 cat >> confdefs.h <<\EOF
1144#define _POSIX_1_SOURCE 2
1145EOF
1146
1147 cat >> confdefs.h <<\EOF
1148#define _MINIX 1
1149EOF
1150
1151fi
1152
1153
1154
1155echo $ac_n "checking "threads package type"""... $ac_c" 1>&6
1156echo "configure:1157: checking "threads package type"" >&5
1157if eval "test \"`echo '$''{'cy_cv_threads_package'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1159else
1160
1161if eval "test \"`echo '$''{'cy_cv_threads_cflags'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1163else
1164
1165if eval "test \"`echo '$''{'cy_cv_threads_libs'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1167else
1168
1169use_threads=no;
1170# Check whether --with-threads or --without-threads was given.
1171if test "${with_threads+set}" = set; then
1172 withval="$with_threads"
1173 use_threads=$withval
1174else
1175 use_threads=no
1176fi
1177
1178test -n "$use_threads" || use_threads=qt
1179threads_package=unknown
1180if test "$use_threads" != no; then
1181 if test "$use_threads" = yes || test "$use_threads" = qt; then
1182 # Look for qt in source directory. This is a hack: we look in
1183 # "./qt" because this check might be run at the top level.
1184 if test -f $srcdir/../qt/qt.c || test -f $srcdir/qt/qt.c; then
1185 threads_package=COOP
1186 cy_cv_threads_cflags="-I$srcdir/../qt -I../qt"
1187 cy_cv_threads_libs="../threads/libthreads.a ../qt/libqt.a"
1188 fi
1189 else
1190 if test -f $use_threads/qt.c; then
1191 # FIXME seems as though we should try to use an installed qt here.
1192 threads_package=COOP
1193 cy_cv_threads_cflags="-I$use_threads -I../qt"
1194 cy_cv_threads_libs="../threads/libthreads.a ../qt/libqt.a"
1195 fi
1196 fi
1197 if test "$use_threads" = pthreads; then
1198 # Look for pthreads in srcdir. See above to understand why
1199 # we always set threads_package.
1200 if test -f $srcdir/../../pthreads/pthreads/queue.c \
1201 || test -f $srcdir/../pthreads/pthreads/queue.c; then
1202 threads_package=MIT
1203 cy_cv_threads_cflags="-I$srcdir/../../pthreads/include"
1204 cy_cv_threads_libs="-L../../pthreads/lib -lpthread"
1205 fi
1206 fi
1207 saved_CPP="$CPPFLAGS"
1208 saved_LD="$LDFLAGS"
1209 saved_LIBS="$LIBS"
1210 if test "$threads_package" = unknown; then
1211 CPPFLAGS="-I$use_threads/include"
1212 LDFLAGS="-L$use_threads/lib"
1213 LIBS="-lgthreads -lmalloc"
1214 cat > conftest.$ac_ext <<EOF
1215#line 1216 "configure"
1216#include "confdefs.h"
1217#include <pthread.h>
1218int main() {
1219
1220pthread_equal(NULL,NULL);
1221
1222; return 0; }
1223EOF
1224if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1225 rm -rf conftest*
1226 threads_package=FSU
1227else
1228 echo "configure: failed program was:" >&5
1229 cat conftest.$ac_ext >&5
1230fi
1231rm -f conftest*
1232 fi
1233 if test "$threads_package" = unknown; then
1234 LIBS="-lpthread"
1235 cat > conftest.$ac_ext <<EOF
1236#line 1237 "configure"
1237#include "confdefs.h"
1238#include <pthread.h>
1239int main() {
1240
1241pthread_equal(NULL,NULL);
1242
1243; return 0; }
1244EOF
1245if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1246 rm -rf conftest*
1247 threads_package=MIT
1248else
1249 echo "configure: failed program was:" >&5
1250 cat conftest.$ac_ext >&5
1251fi
1252rm -f conftest*
1253 fi
1254 if test "$threads_package" = unknown; then
1255 LIBS="-lpthreads"
1256 cat > conftest.$ac_ext <<EOF
1257#line 1258 "configure"
1258#include "confdefs.h"
1259#include <pthread.h>
1260int main() {
1261
1262pthread_equal(NULL,NULL);
1263
1264; return 0; }
1265EOF
1266if { (eval echo configure:1267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1267 rm -rf conftest*
1268 threads_package=PCthreads
1269else
1270 echo "configure: failed program was:" >&5
1271 cat conftest.$ac_ext >&5
1272fi
1273rm -f conftest*
1274 fi
1275 cy_cv_threads_cflags="$CPPFLAGS $cy_cv_threads_cflags"
1276 cy_cv_threads_libs="$LDFLAGS $LIBS $cy_cv_threads_libs"
1277 cy_cv_threads_package=$threads_package
1278 CPPFLAGS="$saved_CPP"
1279 LDFLAGS="$saved_LD"
1280 LIBS="$saved_LIBS"
1281 if test "$threads_package" = unknown; then
1282 { echo "configure: error: "cannot find thread library installation"" 1>&2; exit 1; }
1283 fi
1284fi
1285
1286fi
1287
1288
1289fi
1290
1291
1292fi
1293
1294echo "$ac_t""$cy_cv_threads_package" 1>&6
1295
1296
1297echo $ac_n "checking for working const""... $ac_c" 1>&6
1298echo "configure:1299: checking for working const" >&5
1299if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301else
1302 cat > conftest.$ac_ext <<EOF
1303#line 1304 "configure"
1304#include "confdefs.h"
1305
1306int main() {
1307
1308/* Ultrix mips cc rejects this. */
1309typedef int charset[2]; const charset x;
1310/* SunOS 4.1.1 cc rejects this. */
1311char const *const *ccp;
1312char **p;
1313/* NEC SVR4.0.2 mips cc rejects this. */
1314struct point {int x, y;};
1315static struct point const zero = {0,0};
1316/* AIX XL C 1.02.0.0 rejects this.
1317 It does not let you subtract one const X* pointer from another in an arm
1318 of an if-expression whose if-part is not a constant expression */
1319const char *g = "string";
1320ccp = &g + (g ? g-g : 0);
1321/* HPUX 7.0 cc rejects these. */
1322++ccp;
1323p = (char**) ccp;
1324ccp = (char const *const *) p;
1325{ /* SCO 3.2v4 cc rejects this. */
1326 char *t;
1327 char const *s = 0 ? (char *) 0 : (char const *) 0;
1328
1329 *t++ = 0;
1330}
1331{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1332 int x[] = {25, 17};
1333 const int *foo = &x[0];
1334 ++foo;
1335}
1336{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1337 typedef const int *iptr;
1338 iptr p = 0;
1339 ++p;
1340}
1341{ /* AIX XL C 1.02.0.0 rejects this saying
1342 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1343 struct s { int j; const int *ap[3]; };
1344 struct s *b; b->j = 5;
1345}
1346{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1347 const int foo = 10;
1348}
1349
1350; return 0; }
1351EOF
1352if { (eval echo configure:1353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1353 rm -rf conftest*
1354 ac_cv_c_const=yes
1355else
1356 echo "configure: failed program was:" >&5
1357 cat conftest.$ac_ext >&5
1358 rm -rf conftest*
1359 ac_cv_c_const=no
1360fi
1361rm -f conftest*
1362fi
1363
1364echo "$ac_t""$ac_cv_c_const" 1>&6
1365if test $ac_cv_c_const = no; then
1366 cat >> confdefs.h <<\EOF
1367#define const
1368EOF
1369
1370fi
1371
1372
1373echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1374echo "configure:1375: checking for ANSI C header files" >&5
1375if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1377else
1378 cat > conftest.$ac_ext <<EOF
1379#line 1380 "configure"
1380#include "confdefs.h"
1381#include <stdlib.h>
1382#include <stdarg.h>
1383#include <string.h>
1384#include <float.h>
1385EOF
1386ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1387{ (eval echo configure:1388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1388ac_err=`grep -v '^ *+' conftest.out`
1389if test -z "$ac_err"; then
1390 rm -rf conftest*
1391 ac_cv_header_stdc=yes
1392else
1393 echo "$ac_err" >&5
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1396 rm -rf conftest*
1397 ac_cv_header_stdc=no
1398fi
1399rm -f conftest*
1400
1401if test $ac_cv_header_stdc = yes; then
1402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1403cat > conftest.$ac_ext <<EOF
1404#line 1405 "configure"
1405#include "confdefs.h"
1406#include <string.h>
1407EOF
1408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1409 egrep "memchr" >/dev/null 2>&1; then
1410 :
1411else
1412 rm -rf conftest*
1413 ac_cv_header_stdc=no
1414fi
1415rm -f conftest*
1416
1417fi
1418
1419if test $ac_cv_header_stdc = yes; then
1420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1421cat > conftest.$ac_ext <<EOF
1422#line 1423 "configure"
1423#include "confdefs.h"
1424#include <stdlib.h>
1425EOF
1426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1427 egrep "free" >/dev/null 2>&1; then
1428 :
1429else
1430 rm -rf conftest*
1431 ac_cv_header_stdc=no
1432fi
1433rm -f conftest*
1434
1435fi
1436
1437if test $ac_cv_header_stdc = yes; then
1438 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1439if test "$cross_compiling" = yes; then
1440 :
1441else
1442 cat > conftest.$ac_ext <<EOF
1443#line 1444 "configure"
1444#include "confdefs.h"
1445#include <ctype.h>
1446#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1447#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1448#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1449int main () { int i; for (i = 0; i < 256; i++)
1450if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1451exit (0); }
1452
1453EOF
1454if { (eval echo configure:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1455then
1456 :
1457else
1458 echo "configure: failed program was:" >&5
1459 cat conftest.$ac_ext >&5
1460 rm -fr conftest*
1461 ac_cv_header_stdc=no
1462fi
1463rm -fr conftest*
1464fi
1465
1466fi
1467fi
1468
1469echo "$ac_t""$ac_cv_header_stdc" 1>&6
1470if test $ac_cv_header_stdc = yes; then
1471 cat >> confdefs.h <<\EOF
1472#define STDC_HEADERS 1
1473EOF
1474
1475fi
1476
1477ac_header_dirent=no
1478for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1479do
1480ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1481echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1482echo "configure:1483: checking for $ac_hdr that defines DIR" >&5
1483if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1485else
1486 cat > conftest.$ac_ext <<EOF
1487#line 1488 "configure"
1488#include "confdefs.h"
1489#include <sys/types.h>
1490#include <$ac_hdr>
1491int main() {
1492DIR *dirp = 0;
1493; return 0; }
1494EOF
1495if { (eval echo configure:1496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1496 rm -rf conftest*
1497 eval "ac_cv_header_dirent_$ac_safe=yes"
1498else
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 rm -rf conftest*
1502 eval "ac_cv_header_dirent_$ac_safe=no"
1503fi
1504rm -f conftest*
1505fi
1506if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1507 echo "$ac_t""yes" 1>&6
1508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1509 cat >> confdefs.h <<EOF
1510#define $ac_tr_hdr 1
1511EOF
1512 ac_header_dirent=$ac_hdr; break
1513else
1514 echo "$ac_t""no" 1>&6
1515fi
1516done
1517# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1518if test $ac_header_dirent = dirent.h; then
1519echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1520echo "configure:1521: checking for opendir in -ldir" >&5
1521ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1522if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1524else
1525 ac_save_LIBS="$LIBS"
1526LIBS="-ldir $LIBS"
1527cat > conftest.$ac_ext <<EOF
1528#line 1529 "configure"
1529#include "confdefs.h"
1530/* Override any gcc2 internal prototype to avoid an error. */
1531/* We use char because int might match the return type of a gcc2
1532 builtin and then its argument prototype would still apply. */
1533char opendir();
1534
1535int main() {
1536opendir()
1537; return 0; }
1538EOF
1539if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1540 rm -rf conftest*
1541 eval "ac_cv_lib_$ac_lib_var=yes"
1542else
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1545 rm -rf conftest*
1546 eval "ac_cv_lib_$ac_lib_var=no"
1547fi
1548rm -f conftest*
1549LIBS="$ac_save_LIBS"
1550
1551fi
1552if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1554 LIBS="$LIBS -ldir"
1555else
1556 echo "$ac_t""no" 1>&6
1557fi
1558
1559else
1560echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1561echo "configure:1562: checking for opendir in -lx" >&5
1562ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1563if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1565else
1566 ac_save_LIBS="$LIBS"
1567LIBS="-lx $LIBS"
1568cat > conftest.$ac_ext <<EOF
1569#line 1570 "configure"
1570#include "confdefs.h"
1571/* Override any gcc2 internal prototype to avoid an error. */
1572/* We use char because int might match the return type of a gcc2
1573 builtin and then its argument prototype would still apply. */
1574char opendir();
1575
1576int main() {
1577opendir()
1578; return 0; }
1579EOF
1580if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1581 rm -rf conftest*
1582 eval "ac_cv_lib_$ac_lib_var=yes"
1583else
1584 echo "configure: failed program was:" >&5
1585 cat conftest.$ac_ext >&5
1586 rm -rf conftest*
1587 eval "ac_cv_lib_$ac_lib_var=no"
1588fi
1589rm -f conftest*
1590LIBS="$ac_save_LIBS"
1591
1592fi
1593if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1594 echo "$ac_t""yes" 1>&6
1595 LIBS="$LIBS -lx"
1596else
1597 echo "$ac_t""no" 1>&6
1598fi
1599
1600fi
1601
1602echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1603echo "configure:1604: checking whether time.h and sys/time.h may both be included" >&5
1604if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1606else
1607 cat > conftest.$ac_ext <<EOF
1608#line 1609 "configure"
1609#include "confdefs.h"
1610#include <sys/types.h>
1611#include <sys/time.h>
1612#include <time.h>
1613int main() {
1614struct tm *tp;
1615; return 0; }
1616EOF
1617if { (eval echo configure:1618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1618 rm -rf conftest*
1619 ac_cv_header_time=yes
1620else
1621 echo "configure: failed program was:" >&5
1622 cat conftest.$ac_ext >&5
1623 rm -rf conftest*
1624 ac_cv_header_time=no
1625fi
1626rm -f conftest*
1627fi
1628
1629echo "$ac_t""$ac_cv_header_time" 1>&6
1630if test $ac_cv_header_time = yes; then
1631 cat >> confdefs.h <<\EOF
1632#define TIME_WITH_SYS_TIME 1
1633EOF
1634
1635fi
1636
1637echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1638echo "configure:1639: checking for sys/wait.h that is POSIX.1 compatible" >&5
1639if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1641else
1642 cat > conftest.$ac_ext <<EOF
1643#line 1644 "configure"
1644#include "confdefs.h"
1645#include <sys/types.h>
1646#include <sys/wait.h>
1647#ifndef WEXITSTATUS
1648#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1649#endif
1650#ifndef WIFEXITED
1651#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1652#endif
1653int main() {
1654int s;
1655wait (&s);
1656s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1657; return 0; }
1658EOF
1659if { (eval echo configure:1660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1660 rm -rf conftest*
1661 ac_cv_header_sys_wait_h=yes
1662else
1663 echo "configure: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1665 rm -rf conftest*
1666 ac_cv_header_sys_wait_h=no
1667fi
1668rm -f conftest*
1669fi
1670
1671echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1672if test $ac_cv_header_sys_wait_h = yes; then
1673 cat >> confdefs.h <<\EOF
1674#define HAVE_SYS_WAIT_H 1
1675EOF
1676
1677fi
1678
1679for ac_hdr in libc.h limits.h malloc.h memory.h string.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
1680do
1681ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1682echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1683echo "configure:1684: checking for $ac_hdr" >&5
1684if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1686else
1687 cat > conftest.$ac_ext <<EOF
1688#line 1689 "configure"
1689#include "confdefs.h"
1690#include <$ac_hdr>
1691EOF
1692ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1693{ (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1694ac_err=`grep -v '^ *+' conftest.out`
1695if test -z "$ac_err"; then
1696 rm -rf conftest*
1697 eval "ac_cv_header_$ac_safe=yes"
1698else
1699 echo "$ac_err" >&5
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1702 rm -rf conftest*
1703 eval "ac_cv_header_$ac_safe=no"
1704fi
1705rm -f conftest*
1706fi
1707if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1708 echo "$ac_t""yes" 1>&6
1709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1710 cat >> confdefs.h <<EOF
1711#define $ac_tr_hdr 1
1712EOF
1713
1714else
1715 echo "$ac_t""no" 1>&6
1716fi
1717done
1718
1719
1720 for ac_hdr in libc.h unistd.h
1721do
1722ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1723echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1724echo "configure:1725: checking for $ac_hdr" >&5
1725if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1727else
1728 cat > conftest.$ac_ext <<EOF
1729#line 1730 "configure"
1730#include "confdefs.h"
1731#include <$ac_hdr>
1732EOF
1733ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1734{ (eval echo configure:1735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1735ac_err=`grep -v '^ *+' conftest.out`
1736if test -z "$ac_err"; then
1737 rm -rf conftest*
1738 eval "ac_cv_header_$ac_safe=yes"
1739else
1740 echo "$ac_err" >&5
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1743 rm -rf conftest*
1744 eval "ac_cv_header_$ac_safe=no"
1745fi
1746rm -f conftest*
1747fi
1748if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1751 cat >> confdefs.h <<EOF
1752#define $ac_tr_hdr 1
1753EOF
1754
1755else
1756 echo "$ac_t""no" 1>&6
1757fi
1758done
1759
1760 echo $ac_n "checking "whether libc.h and unistd.h can be included together"""... $ac_c" 1>&6
1761echo "configure:1762: checking "whether libc.h and unistd.h can be included together"" >&5
1762if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1764else
1765
1766 if test "$ac_cv_header_libc_h" = "no"; then
1767 guile_cv_header_libc_with_unistd="no"
1768 elif test "$ac_cv_header_unistd.h" = "no"; then
1769 guile_cv_header_libc_with_unistd="yes"
1770 else
1771 cat > conftest.$ac_ext <<EOF
1772#line 1773 "configure"
1773#include "confdefs.h"
1774
1775# include <libc.h>
1776# include <unistd.h>
1777
1778int main() {
1779
1780; return 0; }
1781EOF
1782if { (eval echo configure:1783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1783 rm -rf conftest*
1784 guile_cv_header_libc_with_unistd=yes
1785else
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1788 rm -rf conftest*
1789 guile_cv_header_libc_with_unistd=no
1790
1791fi
1792rm -f conftest*
1793 fi
1794
1795
1796fi
1797
1798echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
1799 if test "$guile_cv_header_libc_with_unistd" = yes; then
1800 cat >> confdefs.h <<\EOF
1801#define LIBC_H_WITH_UNISTD_H 1
1802EOF
1803
1804 fi
1805
1806
1807
1808echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1809echo "configure:1810: checking for uid_t in sys/types.h" >&5
1810if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1812else
1813 cat > conftest.$ac_ext <<EOF
1814#line 1815 "configure"
1815#include "confdefs.h"
1816#include <sys/types.h>
1817EOF
1818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1819 egrep "uid_t" >/dev/null 2>&1; then
1820 rm -rf conftest*
1821 ac_cv_type_uid_t=yes
1822else
1823 rm -rf conftest*
1824 ac_cv_type_uid_t=no
1825fi
1826rm -f conftest*
1827
1828fi
1829
1830echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1831if test $ac_cv_type_uid_t = no; then
1832 cat >> confdefs.h <<\EOF
1833#define uid_t int
1834EOF
1835
1836 cat >> confdefs.h <<\EOF
1837#define gid_t int
1838EOF
1839
1840fi
1841
1842echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1843echo "configure:1844: checking type of array argument to getgroups" >&5
1844if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846else
1847 if test "$cross_compiling" = yes; then
1848 ac_cv_type_getgroups=cross
1849else
1850 cat > conftest.$ac_ext <<EOF
1851#line 1852 "configure"
1852#include "confdefs.h"
1853
1854/* Thanks to Mike Rendell for this test. */
1855#include <sys/types.h>
1856#define NGID 256
1857#undef MAX
1858#define MAX(x, y) ((x) > (y) ? (x) : (y))
1859main()
1860{
1861 gid_t gidset[NGID];
1862 int i, n;
1863 union { gid_t gval; long lval; } val;
1864
1865 val.lval = -1;
1866 for (i = 0; i < NGID; i++)
1867 gidset[i] = val.gval;
1868 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1869 gidset);
1870 /* Exit non-zero if getgroups seems to require an array of ints. This
1871 happens when gid_t is short but getgroups modifies an array of ints. */
1872 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1873}
1874
1875EOF
1876if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1877then
1878 ac_cv_type_getgroups=gid_t
1879else
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1882 rm -fr conftest*
1883 ac_cv_type_getgroups=int
1884fi
1885rm -fr conftest*
1886fi
1887
1888if test $ac_cv_type_getgroups = cross; then
1889 cat > conftest.$ac_ext <<EOF
1890#line 1891 "configure"
1891#include "confdefs.h"
1892#include <unistd.h>
1893EOF
1894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1895 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
1896 rm -rf conftest*
1897 ac_cv_type_getgroups=gid_t
1898else
1899 rm -rf conftest*
1900 ac_cv_type_getgroups=int
1901fi
1902rm -f conftest*
1903
1904fi
1905fi
1906
1907echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1908cat >> confdefs.h <<EOF
1909#define GETGROUPS_T $ac_cv_type_getgroups
1910EOF
1911
1912
1913echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1914echo "configure:1915: checking return type of signal handlers" >&5
1915if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1917else
1918 cat > conftest.$ac_ext <<EOF
1919#line 1920 "configure"
1920#include "confdefs.h"
1921#include <sys/types.h>
1922#include <signal.h>
1923#ifdef signal
1924#undef signal
1925#endif
1926#ifdef __cplusplus
1927extern "C" void (*signal (int, void (*)(int)))(int);
1928#else
1929void (*signal ()) ();
1930#endif
1931
1932int main() {
1933int i;
1934; return 0; }
1935EOF
1936if { (eval echo configure:1937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1937 rm -rf conftest*
1938 ac_cv_type_signal=void
1939else
1940 echo "configure: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1942 rm -rf conftest*
1943 ac_cv_type_signal=int
1944fi
1945rm -f conftest*
1946fi
1947
1948echo "$ac_t""$ac_cv_type_signal" 1>&6
1949cat >> confdefs.h <<EOF
1950#define RETSIGTYPE $ac_cv_type_signal
1951EOF
1952
1953
1954echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1955echo "configure:1956: checking for mode_t" >&5
1956if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1958else
1959 cat > conftest.$ac_ext <<EOF
1960#line 1961 "configure"
1961#include "confdefs.h"
1962#include <sys/types.h>
1963#if STDC_HEADERS
1964#include <stdlib.h>
1965#include <stddef.h>
1966#endif
1967EOF
1968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1969 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1970 rm -rf conftest*
1971 ac_cv_type_mode_t=yes
1972else
1973 rm -rf conftest*
1974 ac_cv_type_mode_t=no
1975fi
1976rm -f conftest*
1977
1978fi
1979echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1980if test $ac_cv_type_mode_t = no; then
1981 cat >> confdefs.h <<\EOF
1982#define mode_t int
1983EOF
1984
1985fi
1986
1987
1988for ac_func in ctermid ftime getcwd geteuid lstat mkdir mknod nice putenv readlink rename rmdir select setegid seteuid setlocale setpgid setsid strftime strptime symlink sync tcgetpgrp tcsetpgrp times uname waitpid
1989do
1990echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1991echo "configure:1992: checking for $ac_func" >&5
1992if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1994else
1995 cat > conftest.$ac_ext <<EOF
1996#line 1997 "configure"
1997#include "confdefs.h"
1998/* System header to define __stub macros and hopefully few prototypes,
1999 which can conflict with char $ac_func(); below. */
2000#include <assert.h>
2001/* Override any gcc2 internal prototype to avoid an error. */
2002/* We use char because int might match the return type of a gcc2
2003 builtin and then its argument prototype would still apply. */
2004char $ac_func();
2005
2006int main() {
2007
2008/* The GNU C library defines this for functions which it implements
2009 to always fail with ENOSYS. Some functions are actually named
2010 something starting with __ and the normal name is an alias. */
2011#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2012choke me
2013#else
2014$ac_func();
2015#endif
2016
2017; return 0; }
2018EOF
2019if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2020 rm -rf conftest*
2021 eval "ac_cv_func_$ac_func=yes"
2022else
2023 echo "configure: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2025 rm -rf conftest*
2026 eval "ac_cv_func_$ac_func=no"
2027fi
2028rm -f conftest*
2029fi
2030
2031if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2032 echo "$ac_t""yes" 1>&6
2033 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2034 cat >> confdefs.h <<EOF
2035#define $ac_tr_func 1
2036EOF
2037
2038else
2039 echo "$ac_t""no" 1>&6
2040fi
2041done
2042
2043
2044for ac_func in inet_aton strerror
2045do
2046echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2047echo "configure:2048: checking for $ac_func" >&5
2048if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2050else
2051 cat > conftest.$ac_ext <<EOF
2052#line 2053 "configure"
2053#include "confdefs.h"
2054/* System header to define __stub macros and hopefully few prototypes,
2055 which can conflict with char $ac_func(); below. */
2056#include <assert.h>
2057/* Override any gcc2 internal prototype to avoid an error. */
2058/* We use char because int might match the return type of a gcc2
2059 builtin and then its argument prototype would still apply. */
2060char $ac_func();
2061
2062int main() {
2063
2064/* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2068choke me
2069#else
2070$ac_func();
2071#endif
2072
2073; return 0; }
2074EOF
2075if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2076 rm -rf conftest*
2077 eval "ac_cv_func_$ac_func=yes"
2078else
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2081 rm -rf conftest*
2082 eval "ac_cv_func_$ac_func=no"
2083fi
2084rm -f conftest*
2085fi
2086
2087if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2090 cat >> confdefs.h <<EOF
2091#define $ac_tr_func 1
2092EOF
2093
2094else
2095 echo "$ac_t""no" 1>&6
2096LIBOBJS="$LIBOBJS ${ac_func}.o"
2097fi
2098done
2099
2100
2101
2102echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2103echo "configure:2104: checking for st_rdev in struct stat" >&5
2104if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2106else
2107 cat > conftest.$ac_ext <<EOF
2108#line 2109 "configure"
2109#include "confdefs.h"
2110#include <sys/types.h>
2111#include <sys/stat.h>
2112int main() {
2113struct stat s; s.st_rdev;
2114; return 0; }
2115EOF
2116if { (eval echo configure:2117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2117 rm -rf conftest*
2118 ac_cv_struct_st_rdev=yes
2119else
2120 echo "configure: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2122 rm -rf conftest*
2123 ac_cv_struct_st_rdev=no
2124fi
2125rm -f conftest*
2126fi
2127
2128echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2129if test $ac_cv_struct_st_rdev = yes; then
2130 cat >> confdefs.h <<\EOF
2131#define HAVE_ST_RDEV 1
2132EOF
2133
2134fi
2135
2136echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
2137echo "configure:2138: checking for st_blksize in struct stat" >&5
2138if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140else
2141 cat > conftest.$ac_ext <<EOF
2142#line 2143 "configure"
2143#include "confdefs.h"
2144#include <sys/types.h>
2145#include <sys/stat.h>
2146int main() {
2147struct stat s; s.st_blksize;
2148; return 0; }
2149EOF
2150if { (eval echo configure:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2151 rm -rf conftest*
2152 ac_cv_struct_st_blksize=yes
2153else
2154 echo "configure: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2156 rm -rf conftest*
2157 ac_cv_struct_st_blksize=no
2158fi
2159rm -f conftest*
2160fi
2161
2162echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
2163if test $ac_cv_struct_st_blksize = yes; then
2164 cat >> confdefs.h <<\EOF
2165#define HAVE_ST_BLKSIZE 1
2166EOF
2167
2168fi
2169
2170echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
2171echo "configure:2172: checking for st_blocks in struct stat" >&5
2172if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2174else
2175 cat > conftest.$ac_ext <<EOF
2176#line 2177 "configure"
2177#include "confdefs.h"
2178#include <sys/types.h>
2179#include <sys/stat.h>
2180int main() {
2181struct stat s; s.st_blocks;
2182; return 0; }
2183EOF
2184if { (eval echo configure:2185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2185 rm -rf conftest*
2186 ac_cv_struct_st_blocks=yes
2187else
2188 echo "configure: failed program was:" >&5
2189 cat conftest.$ac_ext >&5
2190 rm -rf conftest*
2191 ac_cv_struct_st_blocks=no
2192fi
2193rm -f conftest*
2194fi
2195
2196echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
2197if test $ac_cv_struct_st_blocks = yes; then
2198 cat >> confdefs.h <<\EOF
2199#define HAVE_ST_BLOCKS 1
2200EOF
2201
2202else
2203 LIBOBJS="$LIBOBJS fileblocks.o"
2204fi
2205
2206
2207 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
2208echo "configure:2209: checking whether we need POSIX to get struct utimbuf" >&5
2209if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2211else
2212 cat > conftest.$ac_ext <<EOF
2213#line 2214 "configure"
2214#include "confdefs.h"
2215
2216#ifdef __EMX__
2217#include <sys/utime.h>
2218#else
2219#include <utime.h>
2220#endif
2221struct utime blah;
2222
2223EOF
2224ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2225{ (eval echo configure:2226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2226ac_err=`grep -v '^ *+' conftest.out`
2227if test -z "$ac_err"; then
2228 rm -rf conftest*
2229 guile_cv_struct_utimbuf_needs_posix=no
2230else
2231 echo "$ac_err" >&5
2232 echo "configure: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2234 rm -rf conftest*
2235 guile_cv_struct_utimbuf_needs_posix=yes
2236fi
2237rm -f conftest*
2238fi
2239
2240echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
2241 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
2242 cat >> confdefs.h <<\EOF
2243#define UTIMBUF_NEEDS_POSIX 1
2244EOF
2245
2246 fi
2247
2248# Checks for dynamic linking
2249
2250xtra_PLUGIN_guile_libs=""
2251
2252
2253if test "$enable_dynamic_linking" = "yes"; then
2254
2255echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2256echo "configure:2257: checking for dlopen in -ldl" >&5
2257ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2258if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2260else
2261 ac_save_LIBS="$LIBS"
2262LIBS="-ldl $LIBS"
2263cat > conftest.$ac_ext <<EOF
2264#line 2265 "configure"
2265#include "confdefs.h"
2266/* Override any gcc2 internal prototype to avoid an error. */
2267/* We use char because int might match the return type of a gcc2
2268 builtin and then its argument prototype would still apply. */
2269char dlopen();
2270
2271int main() {
2272dlopen()
2273; return 0; }
2274EOF
2275if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2276 rm -rf conftest*
2277 eval "ac_cv_lib_$ac_lib_var=yes"
2278else
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2281 rm -rf conftest*
2282 eval "ac_cv_lib_$ac_lib_var=no"
2283fi
2284rm -f conftest*
2285LIBS="$ac_save_LIBS"
2286
2287fi
2288if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2292 cat >> confdefs.h <<EOF
2293#define $ac_tr_lib 1
2294EOF
2295
2296 LIBS="-ldl $LIBS"
2297
2298else
2299 echo "$ac_t""no" 1>&6
2300fi
2301
2302if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2303 xtra_PLUGIN_guile_libs="-lguile -ldl"
2304 cat >> confdefs.h <<\EOF
2305#define DYNAMIC_LINKING 1
2306EOF
2307
2308else
2309echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2310echo "configure:2311: checking for dld_link in -ldld" >&5
2311ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2312if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2313 echo $ac_n "(cached) $ac_c" 1>&6
2314else
2315 ac_save_LIBS="$LIBS"
2316LIBS="-ldld $LIBS"
2317cat > conftest.$ac_ext <<EOF
2318#line 2319 "configure"
2319#include "confdefs.h"
2320/* Override any gcc2 internal prototype to avoid an error. */
2321/* We use char because int might match the return type of a gcc2
2322 builtin and then its argument prototype would still apply. */
2323char dld_link();
2324
2325int main() {
2326dld_link()
2327; return 0; }
2328EOF
2329if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2330 rm -rf conftest*
2331 eval "ac_cv_lib_$ac_lib_var=yes"
2332else
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2335 rm -rf conftest*
2336 eval "ac_cv_lib_$ac_lib_var=no"
2337fi
2338rm -f conftest*
2339LIBS="$ac_save_LIBS"
2340
2341fi
2342if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2343 echo "$ac_t""yes" 1>&6
2344 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2345 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2346 cat >> confdefs.h <<EOF
2347#define $ac_tr_lib 1
2348EOF
2349
2350 LIBS="-ldld $LIBS"
2351
2352else
2353 echo "$ac_t""no" 1>&6
2354fi
2355
2356if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2357 xtra_PLUGIN_guile_libs="-lguile -ldld"
2358 cat >> confdefs.h <<\EOF
2359#define DYNAMIC_LINKING 1
2360EOF
2361
2362else
2363for ac_func in shl_load
2364do
2365echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2366echo "configure:2367: checking for $ac_func" >&5
2367if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2369else
2370 cat > conftest.$ac_ext <<EOF
2371#line 2372 "configure"
2372#include "confdefs.h"
2373/* System header to define __stub macros and hopefully few prototypes,
2374 which can conflict with char $ac_func(); below. */
2375#include <assert.h>
2376/* Override any gcc2 internal prototype to avoid an error. */
2377/* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2379char $ac_func();
2380
2381int main() {
2382
2383/* The GNU C library defines this for functions which it implements
2384 to always fail with ENOSYS. Some functions are actually named
2385 something starting with __ and the normal name is an alias. */
2386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2387choke me
2388#else
2389$ac_func();
2390#endif
2391
2392; return 0; }
2393EOF
2394if { (eval echo configure:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2395 rm -rf conftest*
2396 eval "ac_cv_func_$ac_func=yes"
2397else
2398 echo "configure: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2400 rm -rf conftest*
2401 eval "ac_cv_func_$ac_func=no"
2402fi
2403rm -f conftest*
2404fi
2405
2406if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2407 echo "$ac_t""yes" 1>&6
2408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2409 cat >> confdefs.h <<EOF
2410#define $ac_tr_func 1
2411EOF
2412
2413else
2414 echo "$ac_t""no" 1>&6
2415fi
2416done
2417
2418if test "$ac_cv_func_shl_load" = "yes"; then
2419 cat >> confdefs.h <<\EOF
2420#define DYNAMIC_LINKING 1
2421EOF
2422
2423fi fi fi
2424
2425fi
2426
2427#--------------------------------------------------------------------
2428#
2429# Which way does the stack grow?
2430#
2431#--------------------------------------------------------------------
2432
2433if test "$cross_compiling" = yes; then
2434 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
2435else
2436 cat > conftest.$ac_ext <<EOF
2437#line 2438 "configure"
2438#include "confdefs.h"
2439aux (l) unsigned long l;
2440 { int x; exit (l >= ((unsigned long)&x)); }
2441 main () { int q; aux((unsigned long)&q); }
2442EOF
2443if { (eval echo configure:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2444then
2445 cat >> confdefs.h <<\EOF
2446#define SCM_STACK_GROWS_UP 1
2447EOF
2448
2449else
2450 echo "configure: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2452fi
2453rm -fr conftest*
2454fi
2455
2456
2457
2458if test "$cross_compiling" = yes; then
2459 cat >> confdefs.h <<\EOF
2460#define SCM_SINGLES 1
2461EOF
2462
2463 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
2464else
2465 cat > conftest.$ac_ext <<EOF
2466#line 2467 "configure"
2467#include "confdefs.h"
2468main () { exit (sizeof(float) != sizeof(long)); }
2469EOF
2470if { (eval echo configure:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2471then
2472 cat >> confdefs.h <<\EOF
2473#define SCM_SINGLES 1
2474EOF
2475
2476else
2477 echo "configure: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479fi
2480rm -fr conftest*
2481fi
2482
2483
2484echo $ac_n "checking for struct linger""... $ac_c" 1>&6
2485echo "configure:2486: checking for struct linger" >&5
2486if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2488else
2489 cat > conftest.$ac_ext <<EOF
2490#line 2491 "configure"
2491#include "confdefs.h"
2492
2493#include <sys/types.h>
2494#include <sys/socket.h>
2495int main() {
2496struct linger lgr; lgr.l_linger = 100
2497; return 0; }
2498EOF
2499if { (eval echo configure:2500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2500 rm -rf conftest*
2501 scm_cv_struct_linger="yes"
2502else
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2505 rm -rf conftest*
2506 scm_cv_struct_linger="no"
2507fi
2508rm -f conftest*
2509fi
2510
2511echo "$ac_t""$scm_cv_struct_linger" 1>&6
2512if test $scm_cv_struct_linger = yes; then
2513 cat >> confdefs.h <<\EOF
2514#define HAVE_STRUCT_LINGER 1
2515EOF
2516
2517fi
2518
2519#--------------------------------------------------------------------
2520#
2521# How can you violate a stdio abstraction by setting a stream's fd?
2522#
2523#--------------------------------------------------------------------
2524
2525FD_SETTER=""
2526
2527if test "x$FD_SETTER" = x; then
2528 cat > conftest.$ac_ext <<EOF
2529#line 2530 "configure"
2530#include "confdefs.h"
2531#include <stdio.h>
2532
2533int main() {
2534stdout->_file = 1
2535; return 0; }
2536EOF
2537if { (eval echo configure:2538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2538 rm -rf conftest*
2539 FD_SETTER="((F)->_file = (D))"
2540else
2541 echo "configure: failed program was:" >&5
2542 cat conftest.$ac_ext >&5
2543fi
2544rm -f conftest*
2545fi
2546
2547if test "x$FD_SETTER" = x; then
2548 cat > conftest.$ac_ext <<EOF
2549#line 2550 "configure"
2550#include "confdefs.h"
2551#include <stdio.h>
2552
2553int main() {
2554stdout->_fileno
2555; return 0; }
2556EOF
2557if { (eval echo configure:2558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2558 rm -rf conftest*
2559 FD_SETTER="((F)->_fileno = (D))"
2560else
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2563fi
2564rm -f conftest*
2565fi
2566
2567
2568test "x$FD_SETTER" != x && cat >> confdefs.h <<\EOF
2569#define HAVE_FD_SETTER 1
2570EOF
2571
2572
2573#--------------------------------------------------------------------
2574# How to find out whether a FILE structure contains buffered data.
2575# From Tk we have the following list:
2576# _cnt: Most UNIX systems
2577# __cnt: HPUX
2578# _r: BSD
2579# readCount: Sprite
2580# Or, in GNU libc there are two fields, _gptr and _egptr, which
2581# have to be compared.
2582# These can also be known as _IO_read_ptr and _IO_read_end.
2583#--------------------------------------------------------------------
2584
2585echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
2586echo "configure:2587: checking how to get buffer char count from FILE structure" >&5
2587if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2589else
2590 cat > conftest.$ac_ext <<EOF
2591#line 2592 "configure"
2592#include "confdefs.h"
2593#include <stdio.h>
2594int main() {
2595FILE *f = stdin; f->_cnt = 0
2596; return 0; }
2597EOF
2598if { (eval echo configure:2599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2599 rm -rf conftest*
2600 scm_cv_struct_file_count="_cnt"
2601else
2602 echo "configure: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2604 rm -rf conftest*
2605 cat > conftest.$ac_ext <<EOF
2606#line 2607 "configure"
2607#include "confdefs.h"
2608#include <stdio.h>
2609int main() {
2610FILE *f = stdin; f->_r = 0
2611; return 0; }
2612EOF
2613if { (eval echo configure:2614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2614 rm -rf conftest*
2615 scm_cv_struct_file_count="_r"
2616else
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2619 rm -rf conftest*
2620 cat > conftest.$ac_ext <<EOF
2621#line 2622 "configure"
2622#include "confdefs.h"
2623#include <stdio.h>
2624int main() {
2625FILE *f = stdin; f->readCount = 0
2626; return 0; }
2627EOF
2628if { (eval echo configure:2629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2629 rm -rf conftest*
2630 scm_cv_struct_file_count="readCount"
2631else
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 rm -rf conftest*
2635 scm_cv_struct_file_count=""
2636fi
2637rm -f conftest*
2638fi
2639rm -f conftest*
2640fi
2641rm -f conftest*
2642fi
2643
2644if test "$scm_cv_struct_file_count"; then
2645 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
2646 cat >> confdefs.h <<EOF
2647#define FILE_CNT_FIELD $scm_cv_struct_file_count
2648EOF
2649
2650else
2651if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2653else
2654 cat > conftest.$ac_ext <<EOF
2655#line 2656 "configure"
2656#include "confdefs.h"
2657#include <stdio.h>
2658int main() {
2659FILE *f = stdin; f->_gptr = f->egptr;
2660; return 0; }
2661EOF
2662if { (eval echo configure:2663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2663 rm -rf conftest*
2664 scm_cv_struct_file_gptr=1
2665else
2666 echo "configure: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2668 rm -rf conftest*
2669 scm_cv_struct_file_gptr=""
2670fi
2671rm -f conftest*
2672fi
2673
2674if test "$scm_cv_struct_gptr"; then
2675 echo "$ac_t""gptr" 1>&6
2676 cat >> confdefs.h <<EOF
2677#define FILE_CNT_GPTR $scm_cv_struct_file_gptr
2678EOF
2679
2680else
2681if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2683else
2684 cat > conftest.$ac_ext <<EOF
2685#line 2686 "configure"
2686#include "confdefs.h"
2687#include <stdio.h>
2688int main() {
2689FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
2690; return 0; }
2691EOF
2692if { (eval echo configure:2693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2693 rm -rf conftest*
2694 scm_cv_struct_file_readptr=1
2695else
2696 echo "configure: failed program was:" >&5
2697 cat conftest.$ac_ext >&5
2698fi
2699rm -f conftest*
2700fi
2701
2702if test "$scm_cv_struct_file_readptr"; then
2703 echo "$ac_t""read_ptr" 1>&6
2704 cat >> confdefs.h <<EOF
2705#define FILE_CNT_READPTR $scm_cv_struct_file_readptr
2706EOF
2707
2708fi
2709fi
2710fi
2711
2712#--------------------------------------------------------------------
2713#
2714# Flags for thread support
2715#
2716#--------------------------------------------------------------------
2717
2718if test "$cy_cv_threads_package" = FSU; then
2719 cat >> confdefs.h <<\EOF
2720#define USE_FSU_PTHREADS 1
2721EOF
2722
2723 else if test "$cy_cv_threads_package" = COOP; then
2724 cat >> confdefs.h <<\EOF
2725#define USE_COOP_THREADS 1
2726EOF
2727
2728 else if test "$cy_cv_threads_package" = MIT; then
2729 cat >> confdefs.h <<\EOF
2730#define USE_MIT_PTHREADS 1
2731EOF
2732
2733 else if test "$cy_cv_threads_package" = PCthreads; then
2734 cat >> confdefs.h <<\EOF
2735#define USE_PCTHREADS_PTHREADS 1
2736EOF
2737
2738 else if test "$cy_cv_threads_package" = unknown; then
2739 { echo "configure: error: "cannot find threads installation"" 1>&2; exit 1; }
2740 fi
2741 fi
2742 fi
2743 fi
2744fi
2745
2746if test "$cy_cv_threads_package" != ""; then
2747 cat >> confdefs.h <<\EOF
2748#define USE_THREADS 1
2749EOF
2750
2751fi
2752
2753## If we're using GCC, ask for aggressive warnings.
2754case "$GCC" in
2755 yes ) CFLAGS="$CFLAGS -Wall -Wpointer-arith" ;;
2756esac
2757
2758for ac_prog in mawk gawk nawk awk
2759do
2760# Extract the first word of "$ac_prog", so it can be a program name with args.
2761set dummy $ac_prog; ac_word=$2
2762echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2763echo "configure:2764: checking for $ac_word" >&5
2764if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2766else
2767 if test -n "$AWK"; then
2768 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2769else
2770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2771 for ac_dir in $PATH; do
2772 test -z "$ac_dir" && ac_dir=.
2773 if test -f $ac_dir/$ac_word; then
2774 ac_cv_prog_AWK="$ac_prog"
2775 break
2776 fi
2777 done
2778 IFS="$ac_save_ifs"
2779fi
2780fi
2781AWK="$ac_cv_prog_AWK"
2782if test -n "$AWK"; then
2783 echo "$ac_t""$AWK" 1>&6
2784else
2785 echo "$ac_t""no" 1>&6
2786fi
2787
2788test -n "$AWK" && break
2789done
2790
2791echo $ac_n "checking whether errno codes can be extracted from errno.h""... $ac_c" 1>&6
2792echo "configure:2793: checking whether errno codes can be extracted from errno.h" >&5
2793if test "$GCC" = yes ; then
2794 echo "$ac_t""yes" 1>&6
2795 ERRNO_EXTRACT="${CC-cc} -undef -dM -E $srcdir/errnos_get.c | egrep ' E.+' | cut -f2 -d' ' > errnos.list"
2796else
2797 ERRNO_EXTRACT="cp $srcdir/errnos.default errnos.list"
2798 echo "$ac_t""no, using default" 1>&6
2799fi
2800
2801cat >> confdefs.h <<EOF
2802#define GUILE_MAJOR_VERSION "$GUILE_MAJOR_VERSION"
2803EOF
2804
2805cat >> confdefs.h <<EOF
2806#define GUILE_MINOR_VERSION "$GUILE_MINOR_VERSION"
2807EOF
2808
2809cat >> confdefs.h <<EOF
2810#define GUILE_VERSION "$GUILE_VERSION"
2811EOF
2812
2813
2814
2815
2816
2817trap '' 1 2 15
2818cat > confcache <<\EOF
2819# This file is a shell script that caches the results of configure
2820# tests run on this system so they can be shared between configure
2821# scripts and configure runs. It is not useful on other systems.
2822# If it contains results you don't want to keep, you may remove or edit it.
2823#
2824# By default, configure uses ./config.cache as the cache file,
2825# creating it if it does not exist already. You can give configure
2826# the --cache-file=FILE option to use a different cache file; that is
2827# what configure does when it calls configure scripts in
2828# subdirectories, so they share the cache.
2829# Giving --cache-file=/dev/null disables caching, for debugging configure.
2830# config.status only pays attention to the cache file if you give it the
2831# --recheck option to rerun configure.
2832#
2833EOF
2834# The following way of writing the cache mishandles newlines in values,
2835# but we know of no workaround that is simple, portable, and efficient.
2836# So, don't put newlines in cache variables' values.
2837# Ultrix sh set writes to stderr and can't be redirected directly,
2838# and sets the high bit in the cache file unless we assign to the vars.
2839(set) 2>&1 |
2840 case `(ac_space=' '; set) 2>&1` in
2841 *ac_space=\ *)
2842 # `set' does not quote correctly, so add quotes (double-quote substitution
2843 # turns \\\\ into \\, and sed turns \\ into \).
2844 sed -n \
2845 -e "s/'/'\\\\''/g" \
2846 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2847 ;;
2848 *)
2849 # `set' quotes correctly as required by POSIX, so do not add quotes.
2850 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2851 ;;
2852 esac >> confcache
2853if cmp -s $cache_file confcache; then
2854 :
2855else
2856 if test -w $cache_file; then
2857 echo "updating cache $cache_file"
2858 cat confcache > $cache_file
2859 else
2860 echo "not updating unwritable cache $cache_file"
2861 fi
2862fi
2863rm -f confcache
2864
2865trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2866
2867test "x$prefix" = xNONE && prefix=$ac_default_prefix
2868# Let make expand exec_prefix.
2869test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2870
2871# Any assignment to VPATH causes Sun make to only execute
2872# the first set of double-colon rules, so remove it if not needed.
2873# If there is a colon in the path, we need to keep it.
2874if test "x$srcdir" = x.; then
2875 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2876fi
2877
2878trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2879
2880DEFS=-DHAVE_CONFIG_H
2881
2882# Without the "./", some shells look in PATH for config.status.
2883: ${CONFIG_STATUS=./config.status}
2884
2885echo creating $CONFIG_STATUS
2886rm -f $CONFIG_STATUS
2887cat > $CONFIG_STATUS <<EOF
2888#! /bin/sh
2889# Generated automatically by configure.
2890# Run this file to recreate the current configuration.
2891# This directory was configured as follows,
2892# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2893#
2894# $0 $ac_configure_args
2895#
2896# Compiler output produced by configure, useful for debugging
2897# configure, is in ./config.log if it exists.
2898
2899ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2900for ac_option
2901do
2902 case "\$ac_option" in
2903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2904 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2905 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2906 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2907 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2908 exit 0 ;;
2909 -help | --help | --hel | --he | --h)
2910 echo "\$ac_cs_usage"; exit 0 ;;
2911 *) echo "\$ac_cs_usage"; exit 1 ;;
2912 esac
2913done
2914
2915ac_given_srcdir=$srcdir
2916ac_given_INSTALL="$INSTALL"
2917
2918trap 'rm -fr `echo "Makefile fd.h guile-snarf PLUGIN/guile.libs scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2919EOF
2920cat >> $CONFIG_STATUS <<EOF
2921
2922# Protect against being on the right side of a sed subst in config.status.
2923sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2924 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2925$ac_vpsub
2926$extrasub
2927s%@CFLAGS@%$CFLAGS%g
2928s%@CPPFLAGS@%$CPPFLAGS%g
2929s%@CXXFLAGS@%$CXXFLAGS%g
2930s%@DEFS@%$DEFS%g
2931s%@LDFLAGS@%$LDFLAGS%g
2932s%@LIBS@%$LIBS%g
2933s%@exec_prefix@%$exec_prefix%g
2934s%@prefix@%$prefix%g
2935s%@program_transform_name@%$program_transform_name%g
2936s%@bindir@%$bindir%g
2937s%@sbindir@%$sbindir%g
2938s%@libexecdir@%$libexecdir%g
2939s%@datadir@%$datadir%g
2940s%@sysconfdir@%$sysconfdir%g
2941s%@sharedstatedir@%$sharedstatedir%g
2942s%@localstatedir@%$localstatedir%g
2943s%@libdir@%$libdir%g
2944s%@includedir@%$includedir%g
2945s%@oldincludedir@%$oldincludedir%g
2946s%@infodir@%$infodir%g
2947s%@mandir@%$mandir%g
2948s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2949s%@INSTALL_DATA@%$INSTALL_DATA%g
2950s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2951s%@PACKAGE@%$PACKAGE%g
2952s%@VERSION@%$VERSION%g
2953s%@SET_MAKE@%$SET_MAKE%g
2954s%@module@%$module%g
2955s%@CC@%$CC%g
2956s%@CPP@%$CPP%g
2957s%@host@%$host%g
2958s%@host_alias@%$host_alias%g
2959s%@host_cpu@%$host_cpu%g
2960s%@host_vendor@%$host_vendor%g
2961s%@host_os@%$host_os%g
2962s%@RANLIB@%$RANLIB%g
2963s%@LIBTOOL@%$LIBTOOL%g
2964s%@LIBOBJS@%$LIBOBJS%g
2965s%@xtra_PLUGIN_guile_libs@%$xtra_PLUGIN_guile_libs%g
2966s%@AWK@%$AWK%g
2967s%@FD_SETTER@%$FD_SETTER%g
2968s%@ERRNO_EXTRACT@%$ERRNO_EXTRACT%g
2969
2970CEOF
2971EOF
2972
2973cat >> $CONFIG_STATUS <<\EOF
2974
2975# Split the substitutions into bite-sized pieces for seds with
2976# small command number limits, like on Digital OSF/1 and HP-UX.
2977ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2978ac_file=1 # Number of current file.
2979ac_beg=1 # First line for current file.
2980ac_end=$ac_max_sed_cmds # Line after last line for current file.
2981ac_more_lines=:
2982ac_sed_cmds=""
2983while $ac_more_lines; do
2984 if test $ac_beg -gt 1; then
2985 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2986 else
2987 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2988 fi
2989 if test ! -s conftest.s$ac_file; then
2990 ac_more_lines=false
2991 rm -f conftest.s$ac_file
2992 else
2993 if test -z "$ac_sed_cmds"; then
2994 ac_sed_cmds="sed -f conftest.s$ac_file"
2995 else
2996 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2997 fi
2998 ac_file=`expr $ac_file + 1`
2999 ac_beg=$ac_end
3000 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3001 fi
3002done
3003if test -z "$ac_sed_cmds"; then
3004 ac_sed_cmds=cat
3005fi
3006EOF
3007
3008cat >> $CONFIG_STATUS <<EOF
3009
3010CONFIG_FILES=\${CONFIG_FILES-"Makefile fd.h guile-snarf PLUGIN/guile.libs"}
3011EOF
3012cat >> $CONFIG_STATUS <<\EOF
3013for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3014 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3015 case "$ac_file" in
3016 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3017 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3018 *) ac_file_in="${ac_file}.in" ;;
3019 esac
3020
3021 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3022
3023 # Remove last slash and all that follows it. Not all systems have dirname.
3024 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3025 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3026 # The file is in a subdirectory.
3027 test ! -d "$ac_dir" && mkdir "$ac_dir"
3028 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3029 # A "../" for each directory in $ac_dir_suffix.
3030 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3031 else
3032 ac_dir_suffix= ac_dots=
3033 fi
3034
3035 case "$ac_given_srcdir" in
3036 .) srcdir=.
3037 if test -z "$ac_dots"; then top_srcdir=.
3038 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3039 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3040 *) # Relative path.
3041 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3042 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3043 esac
3044
3045 case "$ac_given_INSTALL" in
3046 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3047 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3048 esac
3049
3050 echo creating "$ac_file"
3051 rm -f "$ac_file"
3052 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3053 case "$ac_file" in
3054 *Makefile*) ac_comsub="1i\\
3055# $configure_input" ;;
3056 *) ac_comsub= ;;
3057 esac
3058
3059 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3060 sed -e "$ac_comsub
3061s%@configure_input@%$configure_input%g
3062s%@srcdir@%$srcdir%g
3063s%@top_srcdir@%$top_srcdir%g
3064s%@INSTALL@%$INSTALL%g
3065" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3066fi; done
3067rm -f conftest.s*
3068
3069# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3070# NAME is the cpp macro being defined and VALUE is the value it is being given.
3071#
3072# ac_d sets the value in "#define NAME VALUE" lines.
3073ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3074ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3075ac_dC='\3'
3076ac_dD='%g'
3077# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3078ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3079ac_uB='\([ ]\)%\1#\2define\3'
3080ac_uC=' '
3081ac_uD='\4%g'
3082# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3083ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3084ac_eB='$%\1#\2define\3'
3085ac_eC=' '
3086ac_eD='%g'
3087
3088if test "${CONFIG_HEADERS+set}" != set; then
3089EOF
3090cat >> $CONFIG_STATUS <<EOF
3091 CONFIG_HEADERS="scmconfig.h"
3092EOF
3093cat >> $CONFIG_STATUS <<\EOF
3094fi
3095for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3096 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3097 case "$ac_file" in
3098 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3099 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3100 *) ac_file_in="${ac_file}.in" ;;
3101 esac
3102
3103 echo creating $ac_file
3104
3105 rm -f conftest.frag conftest.in conftest.out
3106 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3107 cat $ac_file_inputs > conftest.in
3108
3109EOF
3110
3111# Transform confdefs.h into a sed script conftest.vals that substitutes
3112# the proper values into config.h.in to produce config.h. And first:
3113# Protect against being on the right side of a sed subst in config.status.
3114# Protect against being in an unquoted here document in config.status.
3115rm -f conftest.vals
3116cat > conftest.hdr <<\EOF
3117s/[\\&%]/\\&/g
3118s%[\\$`]%\\&%g
3119s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3120s%ac_d%ac_u%gp
3121s%ac_u%ac_e%gp
3122EOF
3123sed -n -f conftest.hdr confdefs.h > conftest.vals
3124rm -f conftest.hdr
3125
3126# This sed command replaces #undef with comments. This is necessary, for
3127# example, in the case of _POSIX_SOURCE, which is predefined and required
3128# on some systems where configure will not decide to define it.
3129cat >> conftest.vals <<\EOF
3130s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3131EOF
3132
3133# Break up conftest.vals because some shells have a limit on
3134# the size of here documents, and old seds have small limits too.
3135
3136rm -f conftest.tail
3137while :
3138do
3139 ac_lines=`grep -c . conftest.vals`
3140 # grep -c gives empty output for an empty file on some AIX systems.
3141 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3142 # Write a limited-size here document to conftest.frag.
3143 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3144 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3145 echo 'CEOF
3146 sed -f conftest.frag conftest.in > conftest.out
3147 rm -f conftest.in
3148 mv conftest.out conftest.in
3149' >> $CONFIG_STATUS
3150 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3151 rm -f conftest.vals
3152 mv conftest.tail conftest.vals
3153done
3154rm -f conftest.vals
3155
3156cat >> $CONFIG_STATUS <<\EOF
3157 rm -f conftest.frag conftest.h
3158 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3159 cat conftest.in >> conftest.h
3160 rm -f conftest.in
3161 if cmp -s $ac_file conftest.h 2>/dev/null; then
3162 echo "$ac_file is unchanged"
3163 rm -f conftest.h
3164 else
3165 # Remove last slash and all that follows it. Not all systems have dirname.
3166 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3167 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3168 # The file is in a subdirectory.
3169 test ! -d "$ac_dir" && mkdir "$ac_dir"
3170 fi
3171 rm -f $ac_file
3172 mv conftest.h $ac_file
3173 fi
3174fi; done
3175
3176EOF
3177cat >> $CONFIG_STATUS <<EOF
3178
3179
3180EOF
3181cat >> $CONFIG_STATUS <<\EOF
3182test -z "$CONFIG_HEADER" || echo timestamp > stamp-h
3183chmod +x guile-snarf
3184exit 0
3185EOF
3186chmod +x $CONFIG_STATUS
3187rm -fr confdefs* $ac_clean_files
3188test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3189
3190