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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-debug Don't include debugging support"
20 --enable-dynamic-linking Include support for dynamic linking"
22 --enable-guile-debug Include internal debugging functions"
24 --with-threads thread interface"
26 # Initialize some variables set by options.
27 # The variables have the same names as the options, with
28 # dashes changed to underlines.
30 cache_file
=.
/config.cache
39 program_transform_name
=s
,x
,x
,
47 bindir
='${exec_prefix}/bin'
48 sbindir
='${exec_prefix}/sbin'
49 libexecdir
='${exec_prefix}/libexec'
50 datadir
='${prefix}/share'
51 sysconfdir
='${prefix}/etc'
52 sharedstatedir
='${prefix}/com'
53 localstatedir
='${prefix}/var'
54 libdir
='${exec_prefix}/lib'
55 includedir
='${prefix}/include'
56 oldincludedir
='/usr/include'
57 infodir
='${prefix}/info'
58 mandir
='${prefix}/man'
60 # Initialize some other variables.
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
88 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
89 bindir
="$ac_optarg" ;;
91 -build |
--build |
--buil |
--bui |
--bu)
93 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
96 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
97 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
99 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
100 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
101 cache_file
="$ac_optarg" ;;
103 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
105 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
107 datadir
="$ac_optarg" ;;
109 -disable-* |
--disable-*)
110 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* |
--enable-*)
119 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
132 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
133 |
--exec |
--exe |
--ex)
134 ac_prev
=exec_prefix
;;
135 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
136 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
137 |
--exec=* |
--exe=* |
--ex=*)
138 exec_prefix
="$ac_optarg" ;;
140 -gas |
--gas |
--ga |
--g)
141 # Obsolete; use --with-gas.
144 -help |
--help |
--hel |
--he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host |
--host |
--hos |
--ho)
201 -host=* |
--host=* |
--hos=* |
--ho=*)
204 -includedir |
--includedir |
--includedi |
--included |
--include \
205 |
--includ |
--inclu |
--incl |
--inc)
206 ac_prev
=includedir
;;
207 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
208 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
209 includedir
="$ac_optarg" ;;
211 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
213 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
214 infodir
="$ac_optarg" ;;
216 -libdir |
--libdir |
--libdi |
--libd)
218 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
219 libdir
="$ac_optarg" ;;
221 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
222 |
--libexe |
--libex |
--libe)
223 ac_prev
=libexecdir
;;
224 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
225 |
--libexe=* |
--libex=* |
--libe=*)
226 libexecdir
="$ac_optarg" ;;
228 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
229 |
--localstate |
--localstat |
--localsta |
--localst \
230 |
--locals |
--local |
--loca |
--loc |
--lo)
231 ac_prev
=localstatedir
;;
232 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
233 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
234 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
235 localstatedir
="$ac_optarg" ;;
237 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
239 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
240 mandir
="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
250 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
251 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
254 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
255 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
256 |
--oldin |
--oldi |
--old |
--ol |
--o)
257 ac_prev
=oldincludedir
;;
258 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
259 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
260 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
261 oldincludedir
="$ac_optarg" ;;
263 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
265 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
266 prefix
="$ac_optarg" ;;
268 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
269 |
--program-pre |
--program-pr |
--program-p)
270 ac_prev
=program_prefix
;;
271 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
272 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
273 program_prefix
="$ac_optarg" ;;
275 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
276 |
--program-suf |
--program-su |
--program-s)
277 ac_prev
=program_suffix
;;
278 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
279 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
280 program_suffix
="$ac_optarg" ;;
282 -program-transform-name |
--program-transform-name \
283 |
--program-transform-nam |
--program-transform-na \
284 |
--program-transform-n |
--program-transform- \
285 |
--program-transform |
--program-transfor \
286 |
--program-transfo |
--program-transf \
287 |
--program-trans |
--program-tran \
288 |
--progr-tra |
--program-tr |
--program-t)
289 ac_prev
=program_transform_name
;;
290 -program-transform-name=* |
--program-transform-name=* \
291 |
--program-transform-nam=* |
--program-transform-na=* \
292 |
--program-transform-n=* |
--program-transform-=* \
293 |
--program-transform=* |
--program-transfor=* \
294 |
--program-transfo=* |
--program-transf=* \
295 |
--program-trans=* |
--program-tran=* \
296 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
297 program_transform_name
="$ac_optarg" ;;
299 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
300 |
-silent |
--silent |
--silen |
--sile |
--sil)
303 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
305 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
307 sbindir
="$ac_optarg" ;;
309 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
310 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
311 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
313 ac_prev
=sharedstatedir
;;
314 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
315 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
316 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
318 sharedstatedir
="$ac_optarg" ;;
320 -site |
--site |
--sit)
322 -site=* |
--site=* |
--sit=*)
325 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
327 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
328 srcdir
="$ac_optarg" ;;
330 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
331 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
332 ac_prev
=sysconfdir
;;
333 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
334 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
335 sysconfdir
="$ac_optarg" ;;
337 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
339 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
340 target
="$ac_optarg" ;;
342 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
345 -version |
--version |
--versio |
--versi |
--vers)
346 echo "configure generated by autoconf version 2.12"
350 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package
=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}='$ac_optarg'" ;;
362 -without-* |
--without-*)
363 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package
=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
372 # Obsolete; use --with-x.
375 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
376 |
--x-incl |
--x-inc |
--x-in |
--x-i)
377 ac_prev
=x_includes
;;
378 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
379 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
380 x_includes
="$ac_optarg" ;;
382 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
383 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
384 ac_prev
=x_libraries
;;
385 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
386 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
387 x_libraries
="$ac_optarg" ;;
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
396 if test "x$nonopt" != xNONE
; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411 # File descriptor usage:
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
437 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
438 |
--no-cr |
--no-c) ;;
439 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
440 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
441 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest
* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file
=Makefile.
in
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted
=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted
=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE
; then
492 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file
in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp
='$CPP $CPPFLAGS'
515 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling
=$ac_cv_prog_cc_cross
519 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
520 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
528 ac_n
= ac_c
='\c' ac_t
=
532 .
$srcdir/GUILE-VERSION
534 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
535 if test -f $ac_dir/install-sh
; then
537 ac_install_sh
="$ac_aux_dir/install-sh -c"
539 elif test -f $ac_dir/install.sh
; then
541 ac_install_sh
="$ac_aux_dir/install.sh -c"
545 if test -z "$ac_aux_dir"; then
546 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
548 ac_config_guess
=$ac_aux_dir/config.guess
549 ac_config_sub
=$ac_aux_dir/config.sub
550 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
552 # Find a good install program. We prefer a C program (faster),
553 # so one script is as good as another. But avoid the broken or
554 # incompatible versions:
555 # SysV /etc/install, /usr/sbin/install
556 # SunOS /usr/etc/install
559 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
560 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
561 # ./install, which can be erroneously created by make from ./install.sh.
562 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
563 echo "configure:564: checking for a BSD compatible install" >&5
564 if test -z "$INSTALL"; then
565 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
569 for ac_dir
in $PATH; do
570 # Account for people who put trailing slashes in PATH elements.
572 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
574 # OSF1 and SCO ODT 3.0 have their own names for install.
575 for ac_prog
in ginstall installbsd scoinst
install; do
576 if test -f $ac_dir/$ac_prog; then
577 if test $ac_prog = install &&
578 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
579 # AIX install. It has an incompatible calling convention.
580 # OSF/1 installbsd also uses dspmsg, but is usable.
583 ac_cv_path_install
="$ac_dir/$ac_prog -c"
594 if test "${ac_cv_path_install+set}" = set; then
595 INSTALL
="$ac_cv_path_install"
597 # As a last resort, use the slow shell script. We don't cache a
598 # path for INSTALL within a source directory, because that will
599 # break other packages using the cache if that directory is
600 # removed, or if the path is relative.
601 INSTALL
="$ac_install_sh"
604 echo "$ac_t""$INSTALL" 1>&6
606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
607 # It thinks the first close brace ends the variable substitution.
608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
610 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
613 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
620 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
621 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
624 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
625 echo "configure:626: checking whether build environment is sane" >&5
628 echo timestamp
> conftestfile
629 # Do `set' in a subshell so we don't clobber the current shell's
630 # arguments. Must try -L first in case configure is actually a
631 # symlink; some systems play weird games with the mod time of symlinks
632 # (eg FreeBSD returns the mod time of the symlink's containing
635 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
636 if test "" = "X"; then
638 set X
`ls -t $srcdir/configure conftestfile`
640 test "$2" = conftestfile
646 { echo "configure: error: newly created file is older than distributed files!
647 Check your system clock" 1>&2; exit 1; }
650 echo "$ac_t""yes" 1>&6
651 if test "$program_transform_name" = s
,x
,x
,; then
652 program_transform_name
=
654 # Double any \ or $. echo might interpret backslashes.
655 cat <<\EOF_SED
> conftestsed
656 s
,\\,\\\\,g
; s
,\$
,$$
,g
658 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
661 test "$program_prefix" != NONE
&&
662 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
663 # Use a double $ so make ignores it.
664 test "$program_suffix" != NONE
&&
665 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
667 # sed with no file args requires a program.
668 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
670 missing_dir
=`cd $ac_aux_dir && pwd`
671 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
672 echo "configure:673: checking for working aclocal" >&5
673 # Run test in a subshell; some versions of sh will print an error if
674 # an executable is not found, even if stderr is redirected.
675 # Redirect stdin to placate older versions of autoconf. Sigh.
676 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
678 echo "$ac_t""found" 1>&6
680 ACLOCAL
="$missing_dir/missing aclocal"
681 echo "$ac_t""missing" 1>&6
684 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
685 echo "configure:686: checking for working autoconf" >&5
686 # Run test in a subshell; some versions of sh will print an error if
687 # an executable is not found, even if stderr is redirected.
688 # Redirect stdin to placate older versions of autoconf. Sigh.
689 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
691 echo "$ac_t""found" 1>&6
693 AUTOCONF
="$missing_dir/missing autoconf"
694 echo "$ac_t""missing" 1>&6
697 echo $ac_n "checking for working automake""... $ac_c" 1>&6
698 echo "configure:699: checking for working automake" >&5
699 # Run test in a subshell; some versions of sh will print an error if
700 # an executable is not found, even if stderr is redirected.
701 # Redirect stdin to placate older versions of autoconf. Sigh.
702 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
704 echo "$ac_t""found" 1>&6
706 AUTOMAKE
="$missing_dir/missing automake"
707 echo "$ac_t""missing" 1>&6
710 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
711 echo "configure:712: checking for working autoheader" >&5
712 # Run test in a subshell; some versions of sh will print an error if
713 # an executable is not found, even if stderr is redirected.
714 # Redirect stdin to placate older versions of autoconf. Sigh.
715 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
716 AUTOHEADER
=autoheader
717 echo "$ac_t""found" 1>&6
719 AUTOHEADER
="$missing_dir/missing autoheader"
720 echo "$ac_t""missing" 1>&6
723 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
724 echo "configure:725: checking for working makeinfo" >&5
725 # Run test in a subshell; some versions of sh will print an error if
726 # an executable is not found, even if stderr is redirected.
727 # Redirect stdin to placate older versions of autoconf. Sigh.
728 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
730 echo "$ac_t""found" 1>&6
732 MAKEINFO
="$missing_dir/missing makeinfo"
733 echo "$ac_t""missing" 1>&6
736 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
737 echo "configure:738: checking whether ${MAKE-make} sets \${MAKE}" >&5
738 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
739 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
742 cat > conftestmake
<<\EOF
744 @
echo 'ac_maketemp="${MAKE}"'
746 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
747 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
748 if test -n "$ac_maketemp"; then
749 eval ac_cv_prog_make_
${ac_make}_set
=yes
751 eval ac_cv_prog_make_
${ac_make}_set
=no
755 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
756 echo "$ac_t""yes" 1>&6
759 echo "$ac_t""no" 1>&6
760 SET_MAKE
="MAKE=${MAKE-make}"
763 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
764 echo "configure:765: checking whether to enable maintainer-specific portions of Makefiles" >&5
765 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
766 if test "${enable_maintainer_mode+set}" = set; then
767 enableval
="$enable_maintainer_mode"
768 USE_MAINTAINER_MODE
=$enableval
770 USE_MAINTAINER_MODE
=no
773 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
774 if test $USE_MAINTAINER_MODE = yes; then
785 #--------------------------------------------------------------------
789 #--------------------------------------------------------------------
791 # Check whether --enable-debug or --disable-debug was given.
792 if test "${enable_debug+set}" = set; then
793 enableval
="$enable_debug"
797 if test "$enableval" != n
&& test "$enableval" != no
; then
798 cat >> confdefs.h
<<\EOF
799 #define DEBUG_EXTENSIONS 1
802 cat >> confdefs.h
<<\EOF
803 #define READER_EXTENSIONS 1
806 LIBOBJS
="backtrace.o stacks.o debug.o srcprop.o $LIBOBJS"
809 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
810 if test "${enable_dynamic_linking+set}" = set; then
811 enableval
="$enable_dynamic_linking"
814 enable_dynamic_linking
=yes
818 # Check whether --enable-guile-debug or --disable-guile-debug was given.
819 if test "${enable_guile_debug+set}" = set; then
820 enableval
="$enable_guile_debug"
824 if test "$enableval" = y ||
test "$enableval" = yes; then
825 cat >> confdefs.h
<<\EOF
826 #define GUILE_DEBUG 1
831 #--------------------------------------------------------------------
833 # Extract the first word of "gcc", so it can be a program name with args.
834 set dummy gcc
; ac_word
=$2
835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
836 echo "configure:837: checking for $ac_word" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 if test -n "$CC"; then
841 ac_cv_prog_CC
="$CC" # Let the user override the test.
843 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
844 for ac_dir
in $PATH; do
845 test -z "$ac_dir" && ac_dir
=.
846 if test -f $ac_dir/$ac_word; then
855 if test -n "$CC"; then
856 echo "$ac_t""$CC" 1>&6
858 echo "$ac_t""no" 1>&6
861 if test -z "$CC"; then
862 # Extract the first word of "cc", so it can be a program name with args.
863 set dummy cc
; ac_word
=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
869 if test -n "$CC"; then
870 ac_cv_prog_CC
="$CC" # Let the user override the test.
872 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
874 for ac_dir
in $PATH; do
875 test -z "$ac_dir" && ac_dir
=.
876 if test -f $ac_dir/$ac_word; then
877 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
886 if test $ac_prog_rejected = yes; then
887 # We found a bogon in the path, so make sure we never use it.
888 set dummy
$ac_cv_prog_CC
890 if test $# -gt 0; then
891 # We chose a different compiler from the bogus one.
892 # However, it has the same basename, so the bogon will be chosen
893 # first if we set CC to just the basename; use the full file name.
895 set dummy
"$ac_dir/$ac_word" "$@"
903 if test -n "$CC"; then
904 echo "$ac_t""$CC" 1>&6
906 echo "$ac_t""no" 1>&6
909 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
912 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
913 echo "configure:914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
917 ac_cpp
='$CPP $CPPFLAGS'
918 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
919 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
920 cross_compiling
=$ac_cv_prog_cc_cross
922 cat > conftest.
$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
927 if { (eval echo configure
:928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
928 ac_cv_prog_cc_works
=yes
929 # If we can't run a trivial program, we are probably using a cross compiler.
930 if (.
/conftest
; exit) 2>/dev
/null
; then
931 ac_cv_prog_cc_cross
=no
933 ac_cv_prog_cc_cross
=yes
936 echo "configure: failed program was:" >&5
937 cat conftest.
$ac_ext >&5
938 ac_cv_prog_cc_works
=no
942 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
943 if test $ac_cv_prog_cc_works = no
; then
944 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
946 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
947 echo "configure:948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
948 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
949 cross_compiling
=$ac_cv_prog_cc_cross
951 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
952 echo "configure:953: checking whether we are using GNU C" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 cat > conftest.c
<<EOF
961 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
968 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
970 if test $ac_cv_prog_gcc = yes; then
972 ac_test_CFLAGS
="${CFLAGS+set}"
973 ac_save_CFLAGS
="$CFLAGS"
975 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
976 echo "configure:977: checking whether ${CC-cc} accepts -g" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 echo 'void f(){}' > conftest.c
981 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
990 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
991 if test "$ac_test_CFLAGS" = set; then
992 CFLAGS
="$ac_save_CFLAGS"
993 elif test $ac_cv_prog_cc_g = yes; then
1000 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1003 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1004 echo "configure:1005: checking how to run the C preprocessor" >&5
1005 # On Suns, sometimes $CPP names a directory.
1006 if test -n "$CPP" && test -d "$CPP"; then
1009 if test -z "$CPP"; then
1010 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 # This must be in double quotes, not single quotes, because CPP may get
1014 # substituted into the Makefile and "${CC-cc}" will confuse make.
1016 # On the NeXT, cc -E runs the code through the compiler's parser,
1017 # not just through cpp.
1018 cat > conftest.
$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1024 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1025 { (eval echo configure
:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1026 ac_err
=`grep -v '^ *+' conftest.out`
1027 if test -z "$ac_err"; then
1031 echo "configure: failed program was:" >&5
1032 cat conftest.
$ac_ext >&5
1034 CPP
="${CC-cc} -E -traditional-cpp"
1035 cat > conftest.
$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1041 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1042 { (eval echo configure
:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1043 ac_err
=`grep -v '^ *+' conftest.out`
1044 if test -z "$ac_err"; then
1048 echo "configure: failed program was:" >&5
1049 cat conftest.
$ac_ext >&5
1056 ac_cv_prog_CPP
="$CPP"
1058 CPP
="$ac_cv_prog_CPP"
1060 ac_cv_prog_CPP
="$CPP"
1062 echo "$ac_t""$CPP" 1>&6
1066 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1067 echo "configure:1068: checking for AIX" >&5
1068 cat > conftest.
$ac_ext <<EOF
1069 #line 1070 "configure"
1070 #include "confdefs.h"
1076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1077 egrep "yes" >/dev
/null
2>&1; then
1079 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1080 #define _ALL_SOURCE 1
1085 echo "$ac_t""no" 1>&6
1090 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1091 echo "configure:1092: checking for POSIXized ISC" >&5
1092 if test -d /etc
/conf
/kconfig.d
&&
1093 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1095 echo "$ac_t""yes" 1>&6
1096 ISC
=yes # If later tests want to check for ISC.
1097 cat >> confdefs.h
<<\EOF
1098 #define _POSIX_SOURCE 1
1101 if test "$GCC" = yes; then
1107 echo "$ac_t""no" 1>&6
1111 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1112 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1113 echo "configure:1114: checking for minix/config.h" >&5
1114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 cat > conftest.
$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1120 #include <minix/config.h>
1122 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1123 { (eval echo configure
:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1124 ac_err
=`grep -v '^ *+' conftest.out`
1125 if test -z "$ac_err"; then
1127 eval "ac_cv_header_$ac_safe=yes"
1130 echo "configure: failed program was:" >&5
1131 cat conftest.
$ac_ext >&5
1133 eval "ac_cv_header_$ac_safe=no"
1137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1138 echo "$ac_t""yes" 1>&6
1141 echo "$ac_t""no" 1>&6
1145 if test "$MINIX" = yes; then
1146 cat >> confdefs.h
<<\EOF
1147 #define _POSIX_SOURCE 1
1150 cat >> confdefs.h
<<\EOF
1151 #define _POSIX_1_SOURCE 2
1154 cat >> confdefs.h
<<\EOF
1161 echo $ac_n "checking for working const""... $ac_c" 1>&6
1162 echo "configure:1163: checking for working const" >&5
1163 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 cat > conftest.
$ac_ext <<EOF
1167 #line 1168 "configure"
1168 #include "confdefs.h"
1172 /* Ultrix mips cc rejects this. */
1173 typedef int charset[2]; const charset x;
1174 /* SunOS 4.1.1 cc rejects this. */
1175 char const *const *ccp;
1177 /* NEC SVR4.0.2 mips cc rejects this. */
1178 struct point {int x, y;};
1179 static struct point const zero = {0,0};
1180 /* AIX XL C 1.02.0.0 rejects this.
1181 It does not let you subtract one const X* pointer from another in an arm
1182 of an if-expression whose if-part is not a constant expression */
1183 const char *g = "string";
1184 ccp = &g + (g ? g-g : 0);
1185 /* HPUX 7.0 cc rejects these. */
1188 ccp = (char const *const *) p;
1189 { /* SCO 3.2v4 cc rejects this. */
1191 char const *s = 0 ? (char *) 0 : (char const *) 0;
1195 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1197 const int *foo = &x[0];
1200 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1201 typedef const int *iptr;
1205 { /* AIX XL C 1.02.0.0 rejects this saying
1206 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1207 struct s { int j; const int *ap[3]; };
1208 struct s *b; b->j = 5;
1210 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1216 if { (eval echo configure
:1217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1220 echo "configure: failed program was:" >&5
1221 cat conftest.
$ac_ext >&5
1228 echo "$ac_t""$ac_cv_c_const" 1>&6
1229 if test $ac_cv_c_const = no
; then
1230 cat >> confdefs.h
<<\EOF
1237 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1238 echo "configure:1239: checking for ANSI C header files" >&5
1239 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1242 cat > conftest.
$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1250 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1251 { (eval echo configure
:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1252 ac_err
=`grep -v '^ *+' conftest.out`
1253 if test -z "$ac_err"; then
1255 ac_cv_header_stdc
=yes
1258 echo "configure: failed program was:" >&5
1259 cat conftest.
$ac_ext >&5
1261 ac_cv_header_stdc
=no
1265 if test $ac_cv_header_stdc = yes; then
1266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1267 cat > conftest.
$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1273 egrep "memchr" >/dev
/null
2>&1; then
1277 ac_cv_header_stdc
=no
1283 if test $ac_cv_header_stdc = yes; then
1284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1285 cat > conftest.
$ac_ext <<EOF
1286 #line 1287 "configure"
1287 #include "confdefs.h"
1290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1291 egrep "free" >/dev
/null
2>&1; then
1295 ac_cv_header_stdc
=no
1301 if test $ac_cv_header_stdc = yes; then
1302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1303 if test "$cross_compiling" = yes; then
1306 cat > conftest.
$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1310 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1311 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1313 int main () { int i; for (i = 0; i < 256; i++)
1314 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1318 if { (eval echo configure
:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1322 echo "configure: failed program was:" >&5
1323 cat conftest.
$ac_ext >&5
1325 ac_cv_header_stdc
=no
1333 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1334 if test $ac_cv_header_stdc = yes; then
1335 cat >> confdefs.h
<<\EOF
1336 #define STDC_HEADERS 1
1342 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1344 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1345 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1346 echo "configure:1347: checking for $ac_hdr that defines DIR" >&5
1347 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 cat > conftest.
$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1353 #include <sys/types.h>
1359 if { (eval echo configure
:1360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1361 eval "ac_cv_header_dirent_$ac_safe=yes"
1363 echo "configure: failed program was:" >&5
1364 cat conftest.
$ac_ext >&5
1366 eval "ac_cv_header_dirent_$ac_safe=no"
1370 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1371 echo "$ac_t""yes" 1>&6
1372 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1373 cat >> confdefs.h
<<EOF
1374 #define $ac_tr_hdr 1
1376 ac_header_dirent
=$ac_hdr; break
1378 echo "$ac_t""no" 1>&6
1381 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1382 if test $ac_header_dirent = dirent.h
; then
1383 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1384 echo "configure:1385: checking for opendir in -ldir" >&5
1385 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 ac_save_LIBS
="$LIBS"
1391 cat > conftest.
$ac_ext <<EOF
1392 #line 1393 "configure"
1393 #include "confdefs.h"
1394 /* Override any gcc2 internal prototype to avoid an error. */
1395 /* We use char because int might match the return type of a gcc2
1396 builtin and then its argument prototype would still apply. */
1403 if { (eval echo configure
:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1405 eval "ac_cv_lib_$ac_lib_var=yes"
1407 echo "configure: failed program was:" >&5
1408 cat conftest.
$ac_ext >&5
1410 eval "ac_cv_lib_$ac_lib_var=no"
1413 LIBS
="$ac_save_LIBS"
1416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1417 echo "$ac_t""yes" 1>&6
1420 echo "$ac_t""no" 1>&6
1424 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1425 echo "configure:1426: checking for opendir in -lx" >&5
1426 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 ac_save_LIBS
="$LIBS"
1432 cat > conftest.
$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1435 /* Override any gcc2 internal prototype to avoid an error. */
1436 /* We use char because int might match the return type of a gcc2
1437 builtin and then its argument prototype would still apply. */
1444 if { (eval echo configure
:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1446 eval "ac_cv_lib_$ac_lib_var=yes"
1448 echo "configure: failed program was:" >&5
1449 cat conftest.
$ac_ext >&5
1451 eval "ac_cv_lib_$ac_lib_var=no"
1454 LIBS
="$ac_save_LIBS"
1457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1458 echo "$ac_t""yes" 1>&6
1461 echo "$ac_t""no" 1>&6
1466 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether time.h and sys/time.h may both be included" >&5
1468 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.
$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 #include <sys/types.h>
1475 #include <sys/time.h>
1481 if { (eval echo configure
:1482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1483 ac_cv_header_time
=yes
1485 echo "configure: failed program was:" >&5
1486 cat conftest.
$ac_ext >&5
1488 ac_cv_header_time
=no
1493 echo "$ac_t""$ac_cv_header_time" 1>&6
1494 if test $ac_cv_header_time = yes; then
1495 cat >> confdefs.h
<<\EOF
1496 #define TIME_WITH_SYS_TIME 1
1501 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1502 echo "configure:1503: checking for sys/wait.h that is POSIX.1 compatible" >&5
1503 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 cat > conftest.
$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1509 #include <sys/types.h>
1510 #include <sys/wait.h>
1512 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1515 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1520 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1523 if { (eval echo configure
:1524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1525 ac_cv_header_sys_wait_h
=yes
1527 echo "configure: failed program was:" >&5
1528 cat conftest.
$ac_ext >&5
1530 ac_cv_header_sys_wait_h
=no
1535 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1536 if test $ac_cv_header_sys_wait_h = yes; then
1537 cat >> confdefs.h
<<\EOF
1538 #define HAVE_SYS_WAIT_H 1
1543 for ac_hdr
in libc.h limits.h malloc.h memory.h string.h regex.h rxposix.h rx
/rxposix.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
1545 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1547 echo "configure:1548: checking for $ac_hdr" >&5
1548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1551 cat > conftest.
$ac_ext <<EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1556 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1557 { (eval echo configure
:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1558 ac_err
=`grep -v '^ *+' conftest.out`
1559 if test -z "$ac_err"; then
1561 eval "ac_cv_header_$ac_safe=yes"
1564 echo "configure: failed program was:" >&5
1565 cat conftest.
$ac_ext >&5
1567 eval "ac_cv_header_$ac_safe=no"
1571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1572 echo "$ac_t""yes" 1>&6
1573 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1574 cat >> confdefs.h
<<EOF
1575 #define $ac_tr_hdr 1
1579 echo "$ac_t""no" 1>&6
1584 for ac_hdr
in libc.h unistd.h
1586 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1588 echo "configure:1589: checking for $ac_hdr" >&5
1589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 cat > conftest.
$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1597 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1598 { (eval echo configure
:1599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1599 ac_err
=`grep -v '^ *+' conftest.out`
1600 if test -z "$ac_err"; then
1602 eval "ac_cv_header_$ac_safe=yes"
1605 echo "configure: failed program was:" >&5
1606 cat conftest.
$ac_ext >&5
1608 eval "ac_cv_header_$ac_safe=no"
1612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1613 echo "$ac_t""yes" 1>&6
1614 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1615 cat >> confdefs.h
<<EOF
1616 #define $ac_tr_hdr 1
1620 echo "$ac_t""no" 1>&6
1624 echo $ac_n "checking "whether libc.h and unistd.h can be included together
"""... $ac_c" 1>&6
1625 echo "configure:1626: checking "whether libc.h and unistd.h can be included together
"" >&5
1626 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1630 if test "$ac_cv_header_libc_h" = "no"; then
1631 guile_cv_header_libc_with_unistd
="no"
1632 elif test "$ac_cv_header_unistd.h" = "no"; then
1633 guile_cv_header_libc_with_unistd
="yes"
1635 cat > conftest.
$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1640 # include <unistd.h>
1646 if { (eval echo configure
:1647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1648 guile_cv_header_libc_with_unistd
=yes
1650 echo "configure: failed program was:" >&5
1651 cat conftest.
$ac_ext >&5
1653 guile_cv_header_libc_with_unistd
=no
1662 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
1663 if test "$guile_cv_header_libc_with_unistd" = yes; then
1664 cat >> confdefs.h
<<\EOF
1665 #define LIBC_H_WITH_UNISTD_H 1
1672 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1673 echo "configure:1674: checking for uid_t in sys/types.h" >&5
1674 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 cat > conftest.
$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1680 #include <sys/types.h>
1682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1683 egrep "uid_t" >/dev
/null
2>&1; then
1685 ac_cv_type_uid_t
=yes
1694 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1695 if test $ac_cv_type_uid_t = no
; then
1696 cat >> confdefs.h
<<\EOF
1700 cat >> confdefs.h
<<\EOF
1706 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1707 echo "configure:1708: checking type of array argument to getgroups" >&5
1708 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 if test "$cross_compiling" = yes; then
1712 ac_cv_type_getgroups
=cross
1714 cat > conftest.
$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1718 /* Thanks to Mike Rendell for this test. */
1719 #include <sys/types.h>
1722 #define MAX(x, y) ((x) > (y) ? (x) : (y))
1727 union { gid_t gval; long lval; } val;
1730 for (i = 0; i < NGID; i++)
1731 gidset[i] = val.gval;
1732 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1734 /* Exit non-zero if getgroups seems to require an array of ints. This
1735 happens when gid_t is short but getgroups modifies an array of ints. */
1736 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1740 if { (eval echo configure
:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1742 ac_cv_type_getgroups
=gid_t
1744 echo "configure: failed program was:" >&5
1745 cat conftest.
$ac_ext >&5
1747 ac_cv_type_getgroups
=int
1752 if test $ac_cv_type_getgroups = cross
; then
1753 cat > conftest.
$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1759 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
1761 ac_cv_type_getgroups
=gid_t
1764 ac_cv_type_getgroups
=int
1771 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1772 cat >> confdefs.h
<<EOF
1773 #define GETGROUPS_T $ac_cv_type_getgroups
1777 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1778 echo "configure:1779: checking return type of signal handlers" >&5
1779 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 cat > conftest.
$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1785 #include <sys/types.h>
1791 extern "C" void (*signal (int, void (*)(int)))(int);
1793 void (*signal ()) ();
1800 if { (eval echo configure
:1801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1802 ac_cv_type_signal
=void
1804 echo "configure: failed program was:" >&5
1805 cat conftest.
$ac_ext >&5
1807 ac_cv_type_signal
=int
1812 echo "$ac_t""$ac_cv_type_signal" 1>&6
1813 cat >> confdefs.h
<<EOF
1814 #define RETSIGTYPE $ac_cv_type_signal
1818 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1819 echo "configure:1820: checking for mode_t" >&5
1820 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 cat > conftest.
$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1826 #include <sys/types.h>
1832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1833 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1835 ac_cv_type_mode_t
=yes
1838 ac_cv_type_mode_t
=no
1843 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1844 if test $ac_cv_type_mode_t = no
; then
1845 cat >> confdefs.h
<<\EOF
1852 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1853 echo "configure:1854: checking for main in -lm" >&5
1854 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
1855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 ac_save_LIBS
="$LIBS"
1860 cat > conftest.
$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1868 if { (eval echo configure
:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1870 eval "ac_cv_lib_$ac_lib_var=yes"
1872 echo "configure: failed program was:" >&5
1873 cat conftest.
$ac_ext >&5
1875 eval "ac_cv_lib_$ac_lib_var=no"
1878 LIBS
="$ac_save_LIBS"
1881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1882 echo "$ac_t""yes" 1>&6
1883 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1884 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1885 cat >> confdefs.h
<<EOF
1886 #define $ac_tr_lib 1
1892 echo "$ac_t""no" 1>&6
1895 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1896 echo "configure:1897: checking for gethostbyname" >&5
1897 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 cat > conftest.
$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1903 /* System header to define __stub macros and hopefully few prototypes,
1904 which can conflict with char gethostbyname(); below. */
1906 /* Override any gcc2 internal prototype to avoid an error. */
1907 /* We use char because int might match the return type of a gcc2
1908 builtin and then its argument prototype would still apply. */
1909 char gethostbyname();
1913 /* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1924 if { (eval echo configure
:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1926 eval "ac_cv_func_gethostbyname=yes"
1928 echo "configure: failed program was:" >&5
1929 cat conftest.
$ac_ext >&5
1931 eval "ac_cv_func_gethostbyname=no"
1936 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1937 echo "$ac_t""yes" 1>&6
1940 echo "$ac_t""no" 1>&6
1943 if test $ac_cv_func_gethostbyname = no
; then
1944 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1945 echo "configure:1946: checking for gethostbyname in -lnsl" >&5
1946 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 ac_save_LIBS
="$LIBS"
1952 cat > conftest.
$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1955 /* Override any gcc2 internal prototype to avoid an error. */
1956 /* We use char because int might match the return type of a gcc2
1957 builtin and then its argument prototype would still apply. */
1958 char gethostbyname();
1964 if { (eval echo configure
:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1966 eval "ac_cv_lib_$ac_lib_var=yes"
1968 echo "configure: failed program was:" >&5
1969 cat conftest.
$ac_ext >&5
1971 eval "ac_cv_lib_$ac_lib_var=no"
1974 LIBS
="$ac_save_LIBS"
1977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1978 echo "$ac_t""yes" 1>&6
1979 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1980 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1981 cat >> confdefs.h
<<EOF
1982 #define $ac_tr_lib 1
1988 echo "$ac_t""no" 1>&6
1992 echo $ac_n "checking for connect""... $ac_c" 1>&6
1993 echo "configure:1994: checking for connect" >&5
1994 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 cat > conftest.
$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2000 /* System header to define __stub macros and hopefully few prototypes,
2001 which can conflict with char connect(); below. */
2003 /* Override any gcc2 internal prototype to avoid an error. */
2004 /* We use char because int might match the return type of a gcc2
2005 builtin and then its argument prototype would still apply. */
2010 /* The GNU C library defines this for functions which it implements
2011 to always fail with ENOSYS. Some functions are actually named
2012 something starting with __ and the normal name is an alias. */
2013 #if defined (__stub_connect) || defined (__stub___connect)
2021 if { (eval echo configure
:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2023 eval "ac_cv_func_connect=yes"
2025 echo "configure: failed program was:" >&5
2026 cat conftest.
$ac_ext >&5
2028 eval "ac_cv_func_connect=no"
2033 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2034 echo "$ac_t""yes" 1>&6
2037 echo "$ac_t""no" 1>&6
2040 if test $ac_cv_func_connect = no
; then
2041 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2042 echo "configure:2043: checking for connect in -lsocket" >&5
2043 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 ac_save_LIBS
="$LIBS"
2048 LIBS
="-lsocket $LIBS"
2049 cat > conftest.
$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2052 /* Override any gcc2 internal prototype to avoid an error. */
2053 /* We use char because int might match the return type of a gcc2
2054 builtin and then its argument prototype would still apply. */
2061 if { (eval echo configure
:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2063 eval "ac_cv_lib_$ac_lib_var=yes"
2065 echo "configure: failed program was:" >&5
2066 cat conftest.
$ac_ext >&5
2068 eval "ac_cv_lib_$ac_lib_var=no"
2071 LIBS
="$ac_save_LIBS"
2074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2075 echo "$ac_t""yes" 1>&6
2076 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2077 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2078 cat >> confdefs.h
<<EOF
2079 #define $ac_tr_lib 1
2082 LIBS
="-lsocket $LIBS"
2085 echo "$ac_t""no" 1>&6
2089 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
2090 echo "configure:2091: checking for tgoto in -ltermcap" >&5
2091 ac_lib_var
=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
2092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 ac_save_LIBS
="$LIBS"
2096 LIBS
="-ltermcap $LIBS"
2097 cat > conftest.
$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2100 /* Override any gcc2 internal prototype to avoid an error. */
2101 /* We use char because int might match the return type of a gcc2
2102 builtin and then its argument prototype would still apply. */
2109 if { (eval echo configure
:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2111 eval "ac_cv_lib_$ac_lib_var=yes"
2113 echo "configure: failed program was:" >&5
2114 cat conftest.
$ac_ext >&5
2116 eval "ac_cv_lib_$ac_lib_var=no"
2119 LIBS
="$ac_save_LIBS"
2122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2123 echo "$ac_t""yes" 1>&6
2124 ac_tr_lib
=HAVE_LIB
`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2126 cat >> confdefs.h
<<EOF
2127 #define $ac_tr_lib 1
2130 LIBS
="-ltermcap $LIBS"
2133 echo "$ac_t""no" 1>&6
2136 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2137 echo "configure:2138: checking for readline in -lreadline" >&5
2138 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 ac_save_LIBS
="$LIBS"
2143 LIBS
="-lreadline $LIBS"
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 /* Override any gcc2 internal prototype to avoid an error. */
2148 /* We use char because int might match the return type of a gcc2
2149 builtin and then its argument prototype would still apply. */
2156 if { (eval echo configure
:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2158 eval "ac_cv_lib_$ac_lib_var=yes"
2160 echo "configure: failed program was:" >&5
2161 cat conftest.
$ac_ext >&5
2163 eval "ac_cv_lib_$ac_lib_var=no"
2166 LIBS
="$ac_save_LIBS"
2169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2170 echo "$ac_t""yes" 1>&6
2171 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2172 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2173 cat >> confdefs.h
<<EOF
2174 #define $ac_tr_lib 1
2177 LIBS
="-lreadline $LIBS"
2180 echo "$ac_t""no" 1>&6
2184 # Checks for dynamic linking
2186 if test "$enable_dynamic_linking" = "yes"; then
2188 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2189 echo "configure:2190: checking for dlopen in -ldl" >&5
2190 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2194 ac_save_LIBS
="$LIBS"
2196 cat > conftest.
$ac_ext <<EOF
2197 #line 2198 "configure"
2198 #include "confdefs.h"
2199 /* Override any gcc2 internal prototype to avoid an error. */
2200 /* We use char because int might match the return type of a gcc2
2201 builtin and then its argument prototype would still apply. */
2208 if { (eval echo configure
:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2210 eval "ac_cv_lib_$ac_lib_var=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.
$ac_ext >&5
2215 eval "ac_cv_lib_$ac_lib_var=no"
2218 LIBS
="$ac_save_LIBS"
2221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2222 echo "$ac_t""yes" 1>&6
2223 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2224 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2225 cat >> confdefs.h
<<EOF
2226 #define $ac_tr_lib 1
2232 echo "$ac_t""no" 1>&6
2235 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2236 cat >> confdefs.h
<<\EOF
2237 #define DYNAMIC_LINKING 1
2241 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2242 echo "configure:2243: checking for dld_link in -ldld" >&5
2243 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 ac_save_LIBS
="$LIBS"
2249 cat > conftest.
$ac_ext <<EOF
2250 #line 2251 "configure"
2251 #include "confdefs.h"
2252 /* Override any gcc2 internal prototype to avoid an error. */
2253 /* We use char because int might match the return type of a gcc2
2254 builtin and then its argument prototype would still apply. */
2261 if { (eval echo configure
:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2263 eval "ac_cv_lib_$ac_lib_var=yes"
2265 echo "configure: failed program was:" >&5
2266 cat conftest.
$ac_ext >&5
2268 eval "ac_cv_lib_$ac_lib_var=no"
2271 LIBS
="$ac_save_LIBS"
2274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2277 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2278 cat >> confdefs.h
<<EOF
2279 #define $ac_tr_lib 1
2285 echo "$ac_t""no" 1>&6
2288 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2289 cat >> confdefs.h
<<\EOF
2290 #define DYNAMIC_LINKING 1
2294 for ac_func
in shl_load
2296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_func" >&5
2298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.
$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 /* System header to define __stub macros and hopefully few prototypes,
2305 which can conflict with char $ac_func(); below. */
2307 /* Override any gcc2 internal prototype to avoid an error. */
2308 /* We use char because int might match the return type of a gcc2
2309 builtin and then its argument prototype would still apply. */
2314 /* The GNU C library defines this for functions which it implements
2315 to always fail with ENOSYS. Some functions are actually named
2316 something starting with __ and the normal name is an alias. */
2317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2325 if { (eval echo configure
:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2327 eval "ac_cv_func_$ac_func=yes"
2329 echo "configure: failed program was:" >&5
2330 cat conftest.
$ac_ext >&5
2332 eval "ac_cv_func_$ac_func=no"
2337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2339 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2340 cat >> confdefs.h
<<EOF
2341 #define $ac_tr_func 1
2345 echo "$ac_t""no" 1>&6
2349 if test "$ac_cv_func_shl_load" = "yes"; then
2350 cat >> confdefs.h
<<\EOF
2351 #define DYNAMIC_LINKING 1
2355 for ac_func
in dlopen
2357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2358 echo "configure:2359: checking for $ac_func" >&5
2359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 cat > conftest.
$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2365 /* System header to define __stub macros and hopefully few prototypes,
2366 which can conflict with char $ac_func(); below. */
2368 /* Override any gcc2 internal prototype to avoid an error. */
2369 /* We use char because int might match the return type of a gcc2
2370 builtin and then its argument prototype would still apply. */
2375 /* The GNU C library defines this for functions which it implements
2376 to always fail with ENOSYS. Some functions are actually named
2377 something starting with __ and the normal name is an alias. */
2378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2386 if { (eval echo configure
:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2388 eval "ac_cv_func_$ac_func=yes"
2390 echo "configure: failed program was:" >&5
2391 cat conftest.
$ac_ext >&5
2393 eval "ac_cv_func_$ac_func=no"
2398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2399 echo "$ac_t""yes" 1>&6
2400 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2401 cat >> confdefs.h
<<EOF
2402 #define $ac_tr_func 1
2406 echo "$ac_t""no" 1>&6
2410 if test "$ac_cv_func_dlopen" = "yes"; then
2411 cat >> confdefs.h
<<\EOF
2412 #define DYNAMIC_LINKING 1
2423 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
2424 echo "configure:2425: checking for underscore before symbols" >&5
2425 if eval "test \"`echo '$''{'guile_cv_uscore'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2429 echo "main(){int i=1;}
2430 fnord(){int i=23; int ltuae=42;}" > conftest.c
2431 ${CC} conftest.c
> /dev
/null
2432 if (nm a.out |
grep _fnord
) > /dev
/null
; then
2439 echo "$ac_t""$guile_cv_uscore" 1>&6
2440 rm -f conftest.c a.out
2442 if test $guile_cv_uscore = yes; then
2443 cat >> confdefs.h
<<\EOF
2448 if test $ac_cv_func_dlopen = yes -o $ac_cv_lib_dl_dlopen = yes ; then
2449 echo $ac_n "checking whether dlsym always adds an underscore for us""... $ac_c" 1>&6
2450 echo "configure:2451: checking whether dlsym always adds an underscore for us" >&5
2451 if eval "test \"`echo '$''{'guile_cv_dlsym_adds_uscore'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 if test "$cross_compiling" = yes; then
2455 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2457 cat > conftest.
$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2463 fnord() { int i=42;}
2464 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
2465 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
2466 if(ptr1 && !ptr2) exit(0); } exit(1); }
2469 if { (eval echo configure
:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2471 guile_cv_dlsym_adds_uscore
=yes
2472 cat >> confdefs.h
<<\EOF
2473 #define DLSYM_ADDS_USCORE 1
2477 echo "configure: failed program was:" >&5
2478 cat conftest.
$ac_ext >&5
2480 guile_cv_dlsym_adds_uscore
=no
2488 echo "$ac_t""$guile_cv_dlsym_adds_uscore" 1>&6
2493 for ac_func
in ctermid ftime getcwd geteuid gethostent gettimeofday lstat mkdir mknod nice readlink rename
rmdir select setegid seteuid setlocale setpgid setsid sigaction strftime strptime symlink sync tcgetpgrp tcsetpgrp
times uname waitpid
2495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2496 echo "configure:2497: checking for $ac_func" >&5
2497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2500 cat > conftest.
$ac_ext <<EOF
2501 #line 2502 "configure"
2502 #include "confdefs.h"
2503 /* System header to define __stub macros and hopefully few prototypes,
2504 which can conflict with char $ac_func(); below. */
2506 /* Override any gcc2 internal prototype to avoid an error. */
2507 /* We use char because int might match the return type of a gcc2
2508 builtin and then its argument prototype would still apply. */
2513 /* The GNU C library defines this for functions which it implements
2514 to always fail with ENOSYS. Some functions are actually named
2515 something starting with __ and the normal name is an alias. */
2516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2524 if { (eval echo configure
:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2526 eval "ac_cv_func_$ac_func=yes"
2528 echo "configure: failed program was:" >&5
2529 cat conftest.
$ac_ext >&5
2531 eval "ac_cv_func_$ac_func=no"
2536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2537 echo "$ac_t""yes" 1>&6
2538 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2539 cat >> confdefs.h
<<EOF
2540 #define $ac_tr_func 1
2544 echo "$ac_t""no" 1>&6
2550 ac_safe
=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
2551 echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
2552 echo "configure:2553: checking for sys/un.h" >&5
2553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2556 cat > conftest.
$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2561 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2562 { (eval echo configure
:2563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2563 ac_err
=`grep -v '^ *+' conftest.out`
2564 if test -z "$ac_err"; then
2566 eval "ac_cv_header_$ac_safe=yes"
2569 echo "configure: failed program was:" >&5
2570 cat conftest.
$ac_ext >&5
2572 eval "ac_cv_header_$ac_safe=no"
2576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2577 echo "$ac_t""yes" 1>&6
2580 echo "$ac_t""no" 1>&6
2583 if test -n "$have_sys_un_h" ; then
2584 cat >> confdefs.h
<<\EOF
2585 #define HAVE_UNIX_DOMAIN_SOCKETS 1
2590 for ac_func
in socketpair getgroups setpwent pause tzset
2592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2593 echo "configure:2594: checking for $ac_func" >&5
2594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 cat > conftest.
$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 /* System header to define __stub macros and hopefully few prototypes,
2601 which can conflict with char $ac_func(); below. */
2603 /* Override any gcc2 internal prototype to avoid an error. */
2604 /* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2610 /* The GNU C library defines this for functions which it implements
2611 to always fail with ENOSYS. Some functions are actually named
2612 something starting with __ and the normal name is an alias. */
2613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2621 if { (eval echo configure
:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2623 eval "ac_cv_func_$ac_func=yes"
2625 echo "configure: failed program was:" >&5
2626 cat conftest.
$ac_ext >&5
2628 eval "ac_cv_func_$ac_func=no"
2633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2634 echo "$ac_t""yes" 1>&6
2635 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2636 cat >> confdefs.h
<<EOF
2637 #define $ac_tr_func 1
2641 echo "$ac_t""no" 1>&6
2649 for ac_func
in sethostent endhostent getnetent setnetent endnetent getprotoent endprotoent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof
2651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2652 echo "configure:2653: checking for $ac_func" >&5
2653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 cat > conftest.
$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659 /* System header to define __stub macros and hopefully few prototypes,
2660 which can conflict with char $ac_func(); below. */
2662 /* Override any gcc2 internal prototype to avoid an error. */
2663 /* We use char because int might match the return type of a gcc2
2664 builtin and then its argument prototype would still apply. */
2669 /* The GNU C library defines this for functions which it implements
2670 to always fail with ENOSYS. Some functions are actually named
2671 something starting with __ and the normal name is an alias. */
2672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2680 if { (eval echo configure
:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2682 eval "ac_cv_func_$ac_func=yes"
2684 echo "configure: failed program was:" >&5
2685 cat conftest.
$ac_ext >&5
2687 eval "ac_cv_func_$ac_func=no"
2692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2693 echo "$ac_t""yes" 1>&6
2694 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2695 cat >> confdefs.h
<<EOF
2696 #define $ac_tr_func 1
2700 echo "$ac_t""no" 1>&6
2706 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
2707 echo "configure:2708: checking for restartable system calls" >&5
2708 if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2711 if test $ac_cv_func_sigaction = yes; then
2712 cat > conftest.
$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2720 if { (eval echo configure
:2721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2724 echo "configure: failed program was:" >&5
2725 cat conftest.
$ac_ext >&5
2735 echo "$ac_t""$scm_cv_restarts" 1>&6
2736 if test $scm_cv_restarts = yes; then
2737 cat >> confdefs.h
<<\EOF
2738 #define HAVE_RESTARTS 1
2743 if test "$ac_cv_header_regex_h" = yes ||
2744 test "$ac_cv_header_rxposix_h" = yes ||
2745 test "$ac_cv_header_rx_rxposix_h" = yes; then
2746 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
2747 echo "configure:2748: checking for regcomp" >&5
2748 if eval "test \"`echo '$''{'ac_cv_func_regcomp_norx'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 cat > conftest.
$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 /* System header to define __stub macros and hopefully few prototypes,
2755 which can conflict with char regcomp(); below. */
2757 /* Override any gcc2 internal prototype to avoid an error. */
2758 /* We use char because int might match the return type of a gcc2
2759 builtin and then its argument prototype would still apply. */
2764 /* The GNU C library defines this for functions which it implements
2765 to always fail with ENOSYS. Some functions are actually named
2766 something starting with __ and the normal name is an alias. */
2767 #if defined (__stub_regcomp) || defined (__stub___regcomp)
2775 if { (eval echo configure
:2776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2777 eval "ac_cv_func_regcomp_norx=yes"
2779 echo "configure: failed program was:" >&5
2780 cat conftest.
$ac_ext >&5
2782 eval "ac_cv_func_regcomp_norx=no"
2787 if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
2788 echo "$ac_t""yes" 1>&6
2789 LIBOBJS
="regex-posix.o $LIBOBJS"
2791 echo "$ac_t""no" 1>&6
2792 echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
2793 echo "configure:2794: checking for main in -lrx" >&5
2794 ac_lib_var
=`echo rx'_'main | sed 'y%./+-%__p_%'`
2795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2798 ac_save_LIBS
="$LIBS"
2800 cat > conftest.
$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2808 if { (eval echo configure
:2809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2810 eval "ac_cv_lib_$ac_lib_var=yes"
2812 echo "configure: failed program was:" >&5
2813 cat conftest.
$ac_ext >&5
2815 eval "ac_cv_lib_$ac_lib_var=no"
2818 LIBS
="$ac_save_LIBS"
2821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2822 echo "$ac_t""yes" 1>&6
2823 ac_tr_lib
=HAVE_LIB
`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2824 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2825 cat >> confdefs.h
<<EOF
2826 #define $ac_tr_lib 1
2832 echo "$ac_t""no" 1>&6
2835 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
2836 echo "configure:2837: checking for regcomp" >&5
2837 if eval "test \"`echo '$''{'ac_cv_func_regcomp_rx'+set}'`\" = set"; then
2838 echo $ac_n "(cached) $ac_c" 1>&6
2840 cat > conftest.
$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2843 /* System header to define __stub macros and hopefully few prototypes,
2844 which can conflict with char regcomp(); below. */
2846 /* Override any gcc2 internal prototype to avoid an error. */
2847 /* We use char because int might match the return type of a gcc2
2848 builtin and then its argument prototype would still apply. */
2853 /* The GNU C library defines this for functions which it implements
2854 to always fail with ENOSYS. Some functions are actually named
2855 something starting with __ and the normal name is an alias. */
2856 #if defined (__stub_regcomp) || defined (__stub___regcomp)
2864 if { (eval echo configure
:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2866 eval "ac_cv_func_regcomp_rx=yes"
2868 echo "configure: failed program was:" >&5
2869 cat conftest.
$ac_ext >&5
2871 eval "ac_cv_func_regcomp_rx=no"
2876 if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
2877 echo "$ac_t""yes" 1>&6
2878 LIBOBJS
="regex-posix.o $LIBOBJS"
2880 echo "$ac_t""no" 1>&6
2886 if test "$ac_cv_func_regcomp_norx" = yes ||
2887 test "$ac_cv_func_regcomp_rx" = yes; then
2888 cat >> confdefs.h
<<\EOF
2889 #define HAVE_REGCOMP 1
2895 for ac_func
in inet_aton putenv strerror
2897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2898 echo "configure:2899: checking for $ac_func" >&5
2899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 cat > conftest.
$ac_ext <<EOF
2903 #line 2904 "configure"
2904 #include "confdefs.h"
2905 /* System header to define __stub macros and hopefully few prototypes,
2906 which can conflict with char $ac_func(); below. */
2908 /* Override any gcc2 internal prototype to avoid an error. */
2909 /* We use char because int might match the return type of a gcc2
2910 builtin and then its argument prototype would still apply. */
2915 /* The GNU C library defines this for functions which it implements
2916 to always fail with ENOSYS. Some functions are actually named
2917 something starting with __ and the normal name is an alias. */
2918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2926 if { (eval echo configure
:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2928 eval "ac_cv_func_$ac_func=yes"
2930 echo "configure: failed program was:" >&5
2931 cat conftest.
$ac_ext >&5
2933 eval "ac_cv_func_$ac_func=no"
2938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2941 cat >> confdefs.h
<<EOF
2942 #define $ac_tr_func 1
2946 echo "$ac_t""no" 1>&6
2947 LIBOBJS
="$LIBOBJS ${ac_func}.o"
2953 # When testing for the presence of alloca, we need to add alloca.o
2954 # explicitly to LIBOBJS to make sure that it is translated to
2955 # `alloca.lo' for libtool later on. This can and should be done more cleanly.
2956 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2957 # for constant arguments. Useless!
2958 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2959 echo "configure:2960: checking for working alloca.h" >&5
2960 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2963 cat > conftest.
$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2968 char *p = alloca(2 * sizeof(int));
2971 if { (eval echo configure
:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2973 ac_cv_header_alloca_h
=yes
2975 echo "configure: failed program was:" >&5
2976 cat conftest.
$ac_ext >&5
2978 ac_cv_header_alloca_h
=no
2983 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2984 if test $ac_cv_header_alloca_h = yes; then
2985 cat >> confdefs.h
<<\EOF
2986 #define HAVE_ALLOCA_H 1
2991 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2992 echo "configure:2993: checking for alloca" >&5
2993 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2996 cat > conftest.
$ac_ext <<EOF
2997 #line 2998 "configure"
2998 #include "confdefs.h"
3001 # define alloca __builtin_alloca
3004 # include <alloca.h>
3009 # ifndef alloca /* predefined by HP cc +Olibcalls */
3017 char *p = (char *) alloca(1);
3020 if { (eval echo configure
:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3022 ac_cv_func_alloca_works
=yes
3024 echo "configure: failed program was:" >&5
3025 cat conftest.
$ac_ext >&5
3027 ac_cv_func_alloca_works
=no
3032 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3033 if test $ac_cv_func_alloca_works = yes; then
3034 cat >> confdefs.h
<<\EOF
3035 #define HAVE_ALLOCA 1
3040 if test $ac_cv_func_alloca_works = no
; then
3041 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3042 # that cause trouble. Some versions do not even contain alloca or
3043 # contain a buggy version. If you still want to use their alloca,
3044 # use ar to extract alloca.o from them instead of compiling alloca.c.
3046 cat >> confdefs.h
<<\EOF
3051 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3052 echo "configure:3053: checking whether alloca needs Cray hooks" >&5
3053 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 cat > conftest.
$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3059 #if defined(CRAY) && ! defined(CRAY2)
3066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3067 egrep "webecray" >/dev
/null
2>&1; then
3078 echo "$ac_t""$ac_cv_os_cray" 1>&6
3079 if test $ac_cv_os_cray = yes; then
3080 for ac_func
in _getb67 GETB67 getb67
; do
3081 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3082 echo "configure:3083: checking for $ac_func" >&5
3083 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3086 cat > conftest.
$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3089 /* System header to define __stub macros and hopefully few prototypes,
3090 which can conflict with char $ac_func(); below. */
3092 /* Override any gcc2 internal prototype to avoid an error. */
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3099 /* The GNU C library defines this for functions which it implements
3100 to always fail with ENOSYS. Some functions are actually named
3101 something starting with __ and the normal name is an alias. */
3102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3110 if { (eval echo configure
:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3112 eval "ac_cv_func_$ac_func=yes"
3114 echo "configure: failed program was:" >&5
3115 cat conftest.
$ac_ext >&5
3117 eval "ac_cv_func_$ac_func=no"
3122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3123 echo "$ac_t""yes" 1>&6
3124 cat >> confdefs.h
<<EOF
3125 #define CRAY_STACKSEG_END $ac_func
3130 echo "$ac_t""no" 1>&6
3136 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3137 echo "configure:3138: checking stack direction for C alloca" >&5
3138 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 if test "$cross_compiling" = yes; then
3142 ac_cv_c_stack_direction
=0
3144 cat > conftest.
$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 find_stack_direction ()
3149 static char *addr = 0;
3154 return find_stack_direction ();
3157 return (&dummy > addr) ? 1 : -1;
3161 exit (find_stack_direction() < 0);
3164 if { (eval echo configure
:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3166 ac_cv_c_stack_direction
=1
3168 echo "configure: failed program was:" >&5
3169 cat conftest.
$ac_ext >&5
3171 ac_cv_c_stack_direction
=-1
3178 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3179 cat >> confdefs.h
<<EOF
3180 #define STACK_DIRECTION $ac_cv_c_stack_direction
3185 if test "$ALLOCA" = "alloca.o"; then LIBOBJS
="alloca.o $LIBOBJS"; fi
3187 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3188 echo "configure:3189: checking for st_rdev in struct stat" >&5
3189 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 cat > conftest.
$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3195 #include <sys/types.h>
3196 #include <sys/stat.h>
3198 struct stat s; s.st_rdev;
3201 if { (eval echo configure
:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203 ac_cv_struct_st_rdev
=yes
3205 echo "configure: failed program was:" >&5
3206 cat conftest.
$ac_ext >&5
3208 ac_cv_struct_st_rdev
=no
3213 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3214 if test $ac_cv_struct_st_rdev = yes; then
3215 cat >> confdefs.h
<<\EOF
3216 #define HAVE_ST_RDEV 1
3221 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3222 echo "configure:3223: checking for st_blksize in struct stat" >&5
3223 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 cat > conftest.
$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229 #include <sys/types.h>
3230 #include <sys/stat.h>
3232 struct stat s; s.st_blksize;
3235 if { (eval echo configure
:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 ac_cv_struct_st_blksize
=yes
3239 echo "configure: failed program was:" >&5
3240 cat conftest.
$ac_ext >&5
3242 ac_cv_struct_st_blksize
=no
3247 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3248 if test $ac_cv_struct_st_blksize = yes; then
3249 cat >> confdefs.h
<<\EOF
3250 #define HAVE_ST_BLKSIZE 1
3256 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
3257 # LIBOBJS, which we don't need. This seems more direct.
3258 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3259 echo "configure:3260: checking for st_blocks in struct stat" >&5
3260 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 cat > conftest.
$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3266 #include <sys/types.h>
3267 #include <sys/stat.h>
3269 struct stat s; s.st_blocks;
3272 if { (eval echo configure
:3273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3274 ac_cv_struct_st_blocks
=yes
3276 echo "configure: failed program was:" >&5
3277 cat conftest.
$ac_ext >&5
3279 ac_cv_struct_st_blocks
=no
3284 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3285 if test $ac_cv_struct_st_blocks = yes; then
3286 cat >> confdefs.h
<<\EOF
3287 #define HAVE_ST_BLOCKS 1
3292 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3293 echo "configure:3294: checking whether struct tm is in sys/time.h or time.h" >&5
3294 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3297 cat > conftest.
$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 #include <sys/types.h>
3303 struct tm *tp; tp->tm_sec;
3306 if { (eval echo configure
:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3308 ac_cv_struct_tm
=time.h
3310 echo "configure: failed program was:" >&5
3311 cat conftest.
$ac_ext >&5
3313 ac_cv_struct_tm
=sys
/time.h
3318 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3319 if test $ac_cv_struct_tm = sys
/time.h
; then
3320 cat >> confdefs.h
<<\EOF
3321 #define TM_IN_SYS_TIME 1
3326 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3327 echo "configure:3328: checking for tm_zone in struct tm" >&5
3328 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 cat > conftest.
$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 #include <sys/types.h>
3335 #include <$ac_cv_struct_tm>
3337 struct tm tm; tm.tm_zone;
3340 if { (eval echo configure
:3341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3342 ac_cv_struct_tm_zone
=yes
3344 echo "configure: failed program was:" >&5
3345 cat conftest.
$ac_ext >&5
3347 ac_cv_struct_tm_zone
=no
3352 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3353 if test "$ac_cv_struct_tm_zone" = yes; then
3354 cat >> confdefs.h
<<\EOF
3355 #define HAVE_TM_ZONE 1
3359 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3360 echo "configure:3361: checking for tzname" >&5
3361 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3368 #ifndef tzname /* For SGI. */
3369 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3375 if { (eval echo configure
:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3377 ac_cv_var_tzname
=yes
3379 echo "configure: failed program was:" >&5
3380 cat conftest.
$ac_ext >&5
3387 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3388 if test $ac_cv_var_tzname = yes; then
3389 cat >> confdefs.h
<<\EOF
3390 #define HAVE_TZNAME 1
3397 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
3398 echo "configure:3399: checking whether we need POSIX to get struct utimbuf" >&5
3399 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3402 cat > conftest.
$ac_ext <<EOF
3403 #line 3404 "configure"
3404 #include "confdefs.h"
3407 #include <sys/utime.h>
3414 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3415 { (eval echo configure
:3416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3416 ac_err
=`grep -v '^ *+' conftest.out`
3417 if test -z "$ac_err"; then
3419 guile_cv_struct_utimbuf_needs_posix
=no
3422 echo "configure: failed program was:" >&5
3423 cat conftest.
$ac_ext >&5
3425 guile_cv_struct_utimbuf_needs_posix
=yes
3430 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
3431 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
3432 cat >> confdefs.h
<<\EOF
3433 #define UTIMBUF_NEEDS_POSIX 1
3438 #--------------------------------------------------------------------
3440 # Which way does the stack grow?
3442 #--------------------------------------------------------------------
3444 if test "$cross_compiling" = yes; then
3445 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
3447 cat > conftest.
$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3450 aux (l) unsigned long l;
3451 { int x; exit (l >= ((unsigned long)&x)); }
3452 main () { int q; aux((unsigned long)&q); }
3454 if { (eval echo configure
:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3456 cat >> confdefs.h
<<\EOF
3457 #define SCM_STACK_GROWS_UP 1
3461 echo "configure: failed program was:" >&5
3462 cat conftest.
$ac_ext >&5
3469 if test "$cross_compiling" = yes; then
3470 cat >> confdefs.h
<<\EOF
3471 #define SCM_SINGLES 1
3474 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
3476 cat > conftest.
$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 main () { exit (sizeof(float) != sizeof(long)); }
3481 if { (eval echo configure
:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3483 cat >> confdefs.h
<<\EOF
3484 #define SCM_SINGLES 1
3488 echo "configure: failed program was:" >&5
3489 cat conftest.
$ac_ext >&5
3495 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
3496 echo "configure:3497: checking for struct linger" >&5
3497 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 cat > conftest.
$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3504 #include <sys/types.h>
3505 #include <sys/socket.h>
3507 struct linger lgr; lgr.l_linger = 100
3510 if { (eval echo configure
:3511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3512 scm_cv_struct_linger
="yes"
3514 echo "configure: failed program was:" >&5
3515 cat conftest.
$ac_ext >&5
3517 scm_cv_struct_linger
="no"
3522 echo "$ac_t""$scm_cv_struct_linger" 1>&6
3523 if test $scm_cv_struct_linger = yes; then
3524 cat >> confdefs.h
<<\EOF
3525 #define HAVE_STRUCT_LINGER 1
3530 #--------------------------------------------------------------------
3532 # How can you violate a stdio abstraction by setting a stream's fd?
3534 #--------------------------------------------------------------------
3536 echo $ac_n "checking how to set a stream file descriptor""... $ac_c" 1>&6
3537 echo "configure:3538: checking how to set a stream file descriptor" >&5
3538 if eval "test \"`echo '$''{'scm_cv_fd_setter'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.
$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3549 if { (eval echo configure
:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551 scm_cv_fd_setter
="_file"
3553 echo "configure: failed program was:" >&5
3554 cat conftest.
$ac_ext >&5
3556 cat > conftest.
$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3564 if { (eval echo configure
:3565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3566 scm_cv_fd_setter
="_fileno"
3568 echo "configure: failed program was:" >&5
3569 cat conftest.
$ac_ext >&5
3579 if test "$scm_cv_fd_setter"; then
3580 echo "$ac_t""$scm_cv_fd_setter" 1>&6
3581 cat >> confdefs.h
<<EOF
3582 #define FD_SETTER $scm_cv_fd_setter
3586 echo "$ac_t""we couldn't do it!" 1>&6
3589 #--------------------------------------------------------------------
3590 # How to find out whether a FILE structure contains buffered data.
3591 # From Tk we have the following list:
3592 # _cnt: Most UNIX systems
3596 # Or, in GNU libc there are two fields, _gptr and _egptr, which
3597 # have to be compared.
3598 # These can also be known as _IO_read_ptr and _IO_read_end.
3599 #--------------------------------------------------------------------
3601 echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
3602 echo "configure:3603: checking how to get buffer char count from FILE structure" >&5
3603 if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 cat > conftest.
$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3611 FILE *f = stdin; f->_cnt = 0
3614 if { (eval echo configure
:3615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3616 scm_cv_struct_file_count
="_cnt"
3618 echo "configure: failed program was:" >&5
3619 cat conftest.
$ac_ext >&5
3621 cat > conftest.
$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3626 FILE *f = stdin; f->_r = 0
3629 if { (eval echo configure
:3630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3631 scm_cv_struct_file_count
="_r"
3633 echo "configure: failed program was:" >&5
3634 cat conftest.
$ac_ext >&5
3636 cat > conftest.
$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3641 FILE *f = stdin; f->readCount = 0
3644 if { (eval echo configure
:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646 scm_cv_struct_file_count
="readCount"
3648 echo "configure: failed program was:" >&5
3649 cat conftest.
$ac_ext >&5
3651 scm_cv_struct_file_count
=""
3660 if test "$scm_cv_struct_file_count"; then
3661 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
3662 cat >> confdefs.h
<<EOF
3663 #define FILE_CNT_FIELD $scm_cv_struct_file_count
3667 if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 cat > conftest.
$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3675 FILE *f = stdin; f->_gptr = f->egptr;
3678 if { (eval echo configure
:3679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3680 scm_cv_struct_file_gptr
=1
3682 echo "configure: failed program was:" >&5
3683 cat conftest.
$ac_ext >&5
3685 scm_cv_struct_file_gptr
=""
3690 if test "$scm_cv_struct_gptr"; then
3691 echo "$ac_t""gptr" 1>&6
3692 cat >> confdefs.h
<<EOF
3693 #define FILE_CNT_GPTR $scm_cv_struct_file_gptr
3697 if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3700 cat > conftest.
$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3705 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
3708 if { (eval echo configure
:3709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3710 scm_cv_struct_file_readptr
=1
3712 echo "configure: failed program was:" >&5
3713 cat conftest.
$ac_ext >&5
3718 if test "$scm_cv_struct_file_readptr"; then
3719 echo "$ac_t""read_ptr" 1>&6
3720 cat >> confdefs.h
<<EOF
3721 #define FILE_CNT_READPTR $scm_cv_struct_file_readptr
3725 echo "$ac_t""we couldn't do it!" 1>&6
3730 #--------------------------------------------------------------------
3732 # Flags for thread support
3734 #--------------------------------------------------------------------
3737 echo $ac_n "checking "threads package
type"""... $ac_c" 1>&6
3738 echo "configure:3739: checking "threads package
type"" >&5
3739 if eval "test \"`echo '$''{'cy_cv_threads_package'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3743 if eval "test \"`echo '$''{'cy_cv_threads_cflags'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3747 if eval "test \"`echo '$''{'cy_cv_threads_libs'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3752 # Check whether --with-threads or --without-threads was given.
3753 if test "${with_threads+set}" = set; then
3754 withval
="$with_threads"
3755 use_threads
=$withval
3760 test -n "$use_threads" || use_threads
=qt
3761 threads_package
=unknown
3762 if test "$use_threads" != no
; then
3763 if test "$use_threads" = yes ||
test "$use_threads" = qt
; then
3764 # Look for qt in source directory.
3765 if test -f $srcdir/qt
/qt.c
; then
3766 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
3767 threads_package
=COOP
3768 cy_cv_threads_cflags
="-I$qtsrcdir -I../qt"
3769 cy_cv_threads_libs
="../qt/libqt.a"
3772 if test -f $use_threads/qt.c
; then
3773 # FIXME seems as though we should try to use an installed qt here.
3774 threads_package
=COOP
3775 cy_cv_threads_cflags
="-I$use_threads -I../qt"
3776 cy_cv_threads_libs
="../qt/libqt.a"
3779 if test "$use_threads" = pthreads
; then
3780 # Look for pthreads in srcdir. See above to understand why
3781 # we always set threads_package.
3782 if test -f $srcdir/..
/..
/pthreads
/pthreads
/queue.c \
3783 ||
test -f $srcdir/..
/pthreads
/pthreads
/queue.c
; then
3785 cy_cv_threads_cflags
="-I$srcdir/../../pthreads/include"
3786 cy_cv_threads_libs
="-L../../pthreads/lib -lpthread"
3789 saved_CPP
="$CPPFLAGS"
3792 if test "$threads_package" = unknown
; then
3793 CPPFLAGS
="-I$use_threads/include"
3794 LDFLAGS
="-L$use_threads/lib"
3795 LIBS
="-lgthreads -lmalloc"
3796 cat > conftest.
$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 #include <pthread.h>
3802 pthread_equal(NULL,NULL);
3806 if { (eval echo configure
:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3810 echo "configure: failed program was:" >&5
3811 cat conftest.
$ac_ext >&5
3815 if test "$threads_package" = unknown
; then
3817 cat > conftest.
$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3820 #include <pthread.h>
3823 pthread_equal(NULL,NULL);
3827 if { (eval echo configure
:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3831 echo "configure: failed program was:" >&5
3832 cat conftest.
$ac_ext >&5
3836 if test "$threads_package" = unknown
; then
3838 cat > conftest.
$ac_ext <<EOF
3839 #line 3840 "configure"
3840 #include "confdefs.h"
3841 #include <pthread.h>
3844 pthread_equal(NULL,NULL);
3848 if { (eval echo configure
:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3850 threads_package
=PCthreads
3852 echo "configure: failed program was:" >&5
3853 cat conftest.
$ac_ext >&5
3857 cy_cv_threads_cflags
="$CPPFLAGS $cy_cv_threads_cflags"
3858 cy_cv_threads_libs
="$LDFLAGS $LIBS $cy_cv_threads_libs"
3859 cy_cv_threads_package
=$threads_package
3860 CPPFLAGS
="$saved_CPP"
3863 if test "$threads_package" = unknown
; then
3864 { echo "configure: error: "cannot
find thread library installation
"" 1>&2; exit 1; }
3876 echo "$ac_t""$cy_cv_threads_package" 1>&6
3878 CFLAGS
="$CFLAGS $cy_cv_threads_cflags"
3879 THREAD_LIBS
="$cy_cv_threads_libs"
3882 if test "$cy_cv_threads_package" = FSU
; then
3883 cat >> confdefs.h
<<\EOF
3884 #define USE_FSU_PTHREADS 1
3887 else if test "$cy_cv_threads_package" = COOP
; then
3888 cat >> confdefs.h
<<\EOF
3889 #define USE_COOP_THREADS 1
3892 else if test "$cy_cv_threads_package" = MIT
; then
3893 cat >> confdefs.h
<<\EOF
3894 #define USE_MIT_PTHREADS 1
3897 else if test "$cy_cv_threads_package" = PCthreads
; then
3898 cat >> confdefs.h
<<\EOF
3899 #define USE_PCTHREADS_PTHREADS 1
3902 else if test "$cy_cv_threads_package" = unknown
; then
3903 { echo "configure: error: "cannot
find threads installation
"" 1>&2; exit 1; }
3910 if test "$cy_cv_threads_package" != ""; then
3911 cat >> confdefs.h
<<\EOF
3912 #define USE_THREADS 1
3915 LIBOBJS
="$LIBOBJS threads.o"
3918 ## If we're using GCC, ask for aggressive warnings.
3920 yes ) CFLAGS
="$CFLAGS -Wall -Wpointer-arith" ;;
3923 for ac_prog
in mawk gawk nawk
awk
3925 # Extract the first word of "$ac_prog", so it can be a program name with args.
3926 set dummy
$ac_prog; ac_word
=$2
3927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3928 echo "configure:3929: checking for $ac_word" >&5
3929 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3932 if test -n "$AWK"; then
3933 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3935 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3936 for ac_dir
in $PATH; do
3937 test -z "$ac_dir" && ac_dir
=.
3938 if test -f $ac_dir/$ac_word; then
3939 ac_cv_prog_AWK
="$ac_prog"
3946 AWK
="$ac_cv_prog_AWK"
3947 if test -n "$AWK"; then
3948 echo "$ac_t""$AWK" 1>&6
3950 echo "$ac_t""no" 1>&6
3953 test -n "$AWK" && break
3957 ## If we're creating a shared library (using libtool!), then we'll
3958 ## need to generate a list of .lo files corresponding to the .o files
3959 ## given in LIBOBJS. We'll call it LIBLOBJS.
3960 LIBLOBJS
="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
3966 GUILE_STAMP
="`date`"
3974 threads_enabled
=false
3975 if test "$cy_cv_threads_package" = COOP
; then
3976 threads_enabled
=true
3979 # Determine the host we are working on
3981 # Make sure we can run config.sub.
3982 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
3983 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3986 echo $ac_n "checking host system type""... $ac_c" 1>&6
3987 echo "configure:3988: checking host system type" >&5
3990 case "$host_alias" in
3994 if host_alias
=`$ac_config_guess`; then :
3995 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3997 *) host_alias
=$nonopt ;;
4001 host=`$ac_config_sub $host_alias`
4002 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4003 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4004 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4005 echo "$ac_t""$host" 1>&6
4008 # How can we refer to the qt source directory from within the qt build
4009 # directory? For headers, we can rely on the fact that the qt src
4010 # directory appears in the #include path.
4012 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
4016 qtmds_s
=$qtsrcdir/md
/i386.s
4018 qtmdc_c
=$qtsrcdir/md
/null.c
4021 qtmds_s
=$qtsrcdir/md
/mips-irix5.s
4023 qtmdc_c
=$qtsrcdir/md
/null.c
4024 qtdmdb_s
=$qtsrcdir/md
/mips_b.s
4027 qtmds_s
=$qtsrcdir/md
/mips.s
4029 qtmdc_c
=$qtsrcdir/md
/null.c
4030 qtdmdb_s
=$qtsrcdir/md
/mips_b.s
4034 qtmdc_c
=$qtsrcdir/md
/null.c
4035 qtmds_s
=$qtsrcdir/md
/_sparc.s
4036 qtdmdb_s
=$qtsrcdir/md
/_sparc_b.s
4040 qtmdc_c
=$qtsrcdir/md
/null.c
4041 qtmds_s
=$qtsrcdir/md
/sparc.s
4042 qtdmdb_s
=$qtsrcdir/md
/sparc_b.s
4046 qtmdc_c
=$qtsrcdir/md
/null.c
4047 qtmds_s
=$qtsrcdir/md
/axp.s
4048 qtdmdb_s
=$qtsrcdir/md
/axp_b.s
4051 echo "Unknown configuration; threads package disabled"
4052 threads_enabled
=false
4058 if $threads_enabled; then
4059 target_libs
=libqthreads.a
4064 # Give the Makefile the names of the object files that will be
4065 # generated by compiling $qtmdc_c and $qtmds_s.
4066 qtmdc_o
="`echo ${qtmdc_c} | sed -e 's:^.*/::' | sed -e 's:\.c$:\.o:'`"
4067 qtmds_o
="`echo ${qtmds_s} | sed -e 's:^.*/::' | sed -e 's:\.s$:\.o:'`"
4078 cat > confcache
<<\EOF
4079 # This file is a shell script that caches the results of configure
4080 # tests run on this system so they can be shared between configure
4081 # scripts and configure runs. It is not useful on other systems.
4082 # If it contains results you don't want to keep, you may remove or edit it.
4084 # By default, configure uses ./config.cache as the cache file,
4085 # creating it if it does not exist already. You can give configure
4086 # the --cache-file=FILE option to use a different cache file; that is
4087 # what configure does when it calls configure scripts in
4088 # subdirectories, so they share the cache.
4089 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4090 # config.status only pays attention to the cache file if you give it the
4091 # --recheck option to rerun configure.
4094 # The following way of writing the cache mishandles newlines in values,
4095 # but we know of no workaround that is simple, portable, and efficient.
4096 # So, don't put newlines in cache variables' values.
4097 # Ultrix sh set writes to stderr and can't be redirected directly,
4098 # and sets the high bit in the cache file unless we assign to the vars.
4100 case `(ac_space=' '; set) 2>&1` in
4102 # `set' does not quote correctly, so add quotes (double-quote substitution
4103 # turns \\\\ into \\, and sed turns \\ into \).
4105 -e "s/'/'\\\\''/g" \
4106 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4109 # `set' quotes correctly as required by POSIX, so do not add quotes.
4110 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4113 if cmp -s $cache_file confcache
; then
4116 if test -w $cache_file; then
4117 echo "updating cache $cache_file"
4118 cat confcache
> $cache_file
4120 echo "not updating unwritable cache $cache_file"
4125 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4127 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4128 # Let make expand exec_prefix.
4129 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4131 # Any assignment to VPATH causes Sun make to only execute
4132 # the first set of double-colon rules, so remove it if not needed.
4133 # If there is a colon in the path, we need to keep it.
4134 if test "x$srcdir" = x.
; then
4135 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4138 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4140 DEFS
=-DHAVE_CONFIG_H
4142 # Without the "./", some shells look in PATH for config.status.
4143 : ${CONFIG_STATUS=./config.status}
4145 echo creating
$CONFIG_STATUS
4146 rm -f $CONFIG_STATUS
4147 cat > $CONFIG_STATUS <<EOF
4149 # Generated automatically by configure.
4150 # Run this file to recreate the current configuration.
4151 # This directory was configured as follows,
4152 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4154 # $0 $ac_configure_args
4156 # Compiler output produced by configure, useful for debugging
4157 # configure, is in ./config.log if it exists.
4159 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4162 case "\$ac_option" in
4163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4164 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4165 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4166 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4167 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4169 -help | --help | --hel | --he | --h)
4170 echo "\$ac_cs_usage"; exit 0 ;;
4171 *) echo "\$ac_cs_usage"; exit 1 ;;
4175 ac_given_srcdir=$srcdir
4176 ac_given_INSTALL="$INSTALL"
4178 trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile build/Makefile libguile/scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4180 cat >> $CONFIG_STATUS <<EOF
4182 # Protect against being on the right side of a sed subst in config.status.
4183 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4184 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4187 s%@CFLAGS@%$CFLAGS%g
4188 s%@CPPFLAGS@%$CPPFLAGS%g
4189 s%@CXXFLAGS@%$CXXFLAGS%g
4191 s%@LDFLAGS@%$LDFLAGS%g
4193 s%@exec_prefix@%$exec_prefix%g
4194 s%@prefix@%$prefix%g
4195 s%@program_transform_name@%$program_transform_name%g
4196 s%@bindir@%$bindir%g
4197 s%@sbindir@%$sbindir%g
4198 s%@libexecdir@%$libexecdir%g
4199 s%@datadir@%$datadir%g
4200 s%@sysconfdir@%$sysconfdir%g
4201 s%@sharedstatedir@%$sharedstatedir%g
4202 s%@localstatedir@%$localstatedir%g
4203 s%@libdir@%$libdir%g
4204 s%@includedir@%$includedir%g
4205 s%@oldincludedir@%$oldincludedir%g
4206 s%@infodir@%$infodir%g
4207 s%@mandir@%$mandir%g
4208 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4209 s%@INSTALL_DATA@%$INSTALL_DATA%g
4210 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4211 s%@PACKAGE@%$PACKAGE%g
4212 s%@VERSION@%$VERSION%g
4213 s%@ACLOCAL@%$ACLOCAL%g
4214 s%@AUTOCONF@%$AUTOCONF%g
4215 s%@AUTOMAKE@%$AUTOMAKE%g
4216 s%@AUTOHEADER@%$AUTOHEADER%g
4217 s%@MAKEINFO@%$MAKEINFO%g
4218 s%@SET_MAKE@%$SET_MAKE%g
4222 s%@LIBOBJS@%$LIBOBJS%g
4223 s%@ALLOCA@%$ALLOCA%g
4224 s%@THREAD_LIBS@%$THREAD_LIBS%g
4226 s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
4227 s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
4228 s%@GUILE_VERSION@%$GUILE_VERSION%g
4229 s%@GUILE_STAMP@%$GUILE_STAMP%g
4230 s%@LIBLOBJS@%$LIBLOBJS%g
4232 s%@host_alias@%$host_alias%g
4233 s%@host_cpu@%$host_cpu%g
4234 s%@host_vendor@%$host_vendor%g
4235 s%@host_os@%$host_os%g
4236 s%@target_libs@%$target_libs%g
4237 s%@qtmd_h@%$qtmd_h%g
4238 s%@qtmdc_c@%$qtmdc_c%g
4239 s%@qtmdc_o@%$qtmdc_o%g
4240 s%@qtmds_s@%$qtmds_s%g
4241 s%@qtmds_o@%$qtmds_o%g
4242 s%@qtmdb_s@%$qtmdb_s%g
4247 cat >> $CONFIG_STATUS <<\EOF
4249 # Split the substitutions into bite-sized pieces for seds with
4250 # small command number limits, like on Digital OSF/1 and HP-UX.
4251 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4252 ac_file
=1 # Number of current file.
4253 ac_beg
=1 # First line for current file.
4254 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4257 while $ac_more_lines; do
4258 if test $ac_beg -gt 1; then
4259 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4261 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4263 if test ! -s conftest.s
$ac_file; then
4265 rm -f conftest.s
$ac_file
4267 if test -z "$ac_sed_cmds"; then
4268 ac_sed_cmds
="sed -f conftest.s$ac_file"
4270 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4272 ac_file
=`expr $ac_file + 1`
4274 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4277 if test -z "$ac_sed_cmds"; then
4282 cat >> $CONFIG_STATUS <<EOF
4284 CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile build/Makefile"}
4286 cat >> $CONFIG_STATUS <<\EOF
4287 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4288 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4290 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4291 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4292 *) ac_file_in
="${ac_file}.in" ;;
4295 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4297 # Remove last slash and all that follows it. Not all systems have dirname.
4298 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4299 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4300 # The file is in a subdirectory.
4301 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4302 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4303 # A "../" for each directory in $ac_dir_suffix.
4304 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4306 ac_dir_suffix
= ac_dots
=
4309 case "$ac_given_srcdir" in
4311 if test -z "$ac_dots"; then top_srcdir
=.
4312 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4313 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4315 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4316 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4319 case "$ac_given_INSTALL" in
4320 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4321 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4324 echo creating
"$ac_file"
4326 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4328 *Makefile
*) ac_comsub
="1i\\
4329 # $configure_input" ;;
4333 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4335 s%@configure_input@%$configure_input%g
4336 s%@srcdir@%$srcdir%g
4337 s%@top_srcdir@%$top_srcdir%g
4338 s%@INSTALL@%$INSTALL%g
4339 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4343 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4344 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4346 # ac_d sets the value in "#define NAME VALUE" lines.
4347 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4348 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4351 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4352 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4353 ac_uB
='\([ ]\)%\1#\2define\3'
4356 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4357 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4358 ac_eB
='$%\1#\2define\3'
4362 if test "${CONFIG_HEADERS+set}" != set; then
4364 cat >> $CONFIG_STATUS <<EOF
4365 CONFIG_HEADERS="libguile/scmconfig.h"
4367 cat >> $CONFIG_STATUS <<\EOF
4369 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4370 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4372 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4373 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4374 *) ac_file_in
="${ac_file}.in" ;;
4377 echo creating
$ac_file
4379 rm -f conftest.frag conftest.
in conftest.out
4380 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4381 cat $ac_file_inputs > conftest.
in
4385 # Transform confdefs.h into a sed script conftest.vals that substitutes
4386 # the proper values into config.h.in to produce config.h. And first:
4387 # Protect against being on the right side of a sed subst in config.status.
4388 # Protect against being in an unquoted here document in config.status.
4390 cat > conftest.hdr
<<\EOF
4393 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4397 sed -n -f conftest.hdr confdefs.h > conftest.vals
4400 # This sed command replaces #undef with comments. This is necessary, for
4401 # example, in the case of _POSIX_SOURCE, which is predefined and required
4402 # on some systems where configure will not decide to define it.
4403 cat >> conftest.vals <<\EOF
4404 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4407 # Break up conftest.vals because some shells have a limit on
4408 # the size of here documents, and old seds have small limits too.
4413 ac_lines=`grep -c . conftest.vals
`
4414 # grep -c gives empty output for an empty file on some AIX systems.
4415 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4416 # Write a limited-size here document to conftest.frag.
4417 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4418 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4420 sed -f conftest.frag conftest.in > conftest.out
4422 mv conftest.out conftest.in
4424 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4426 mv conftest.tail conftest.vals
4430 cat >> $CONFIG_STATUS <<\EOF
4431 rm -f conftest.frag conftest.h
4432 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4433 cat conftest.in >> conftest.h
4435 if cmp -s $ac_file conftest.h 2>/dev/null; then
4436 echo "$ac_file is unchanged"
4439 # Remove last slash and all that follows it. Not all systems have dirname.
4440 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4441 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4442 # The file is in a subdirectory.
4443 test ! -d "$ac_dir" && mkdir "$ac_dir"
4446 mv conftest.h $ac_file
4451 cat >> $CONFIG_STATUS <<EOF
4455 cat >> $CONFIG_STATUS <<\EOF
4456 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
4457 chmod +x libguile/guile-snarf
4460 chmod +x $CONFIG_STATUS
4461 rm -fr confdefs* $ac_clean_files
4462 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1