3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.2
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 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 --enable-static[=PKGS] build static libraries [default=yes]"
28 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
30 --with-threads thread interface"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file
=.
/config.cache
45 program_transform_name
=s
,x
,x
,
53 bindir
='${exec_prefix}/bin'
54 sbindir
='${exec_prefix}/sbin'
55 libexecdir
='${exec_prefix}/libexec'
56 datadir
='${prefix}/share'
57 sysconfdir
='${prefix}/etc'
58 sharedstatedir
='${prefix}/com'
59 localstatedir
='${prefix}/var'
60 libdir
='${exec_prefix}/lib'
61 includedir
='${prefix}/include'
62 oldincludedir
='/usr/include'
63 infodir
='${prefix}/info'
64 mandir
='${prefix}/man'
66 # Initialize some other variables.
69 SHELL
=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
95 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
96 bindir
="$ac_optarg" ;;
98 -build |
--build |
--buil |
--bui |
--bu)
100 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 build
="$ac_optarg" ;;
103 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
104 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
105 ac_prev
=cache_file
;;
106 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
107 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
108 cache_file
="$ac_optarg" ;;
110 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
112 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
114 datadir
="$ac_optarg" ;;
116 -disable-* |
--disable-*)
117 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* |
--enable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
139 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
140 |
--exec |
--exe |
--ex)
141 ac_prev
=exec_prefix
;;
142 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
143 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
144 |
--exec=* |
--exe=* |
--ex=*)
145 exec_prefix
="$ac_optarg" ;;
147 -gas |
--gas |
--ga |
--g)
148 # Obsolete; use --with-gas.
151 -help |
--help |
--hel |
--he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host |
--host |
--hos |
--ho)
208 -host=* |
--host=* |
--hos=* |
--ho=*)
211 -includedir |
--includedir |
--includedi |
--included |
--include \
212 |
--includ |
--inclu |
--incl |
--inc)
213 ac_prev
=includedir
;;
214 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
215 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
216 includedir
="$ac_optarg" ;;
218 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
220 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
221 infodir
="$ac_optarg" ;;
223 -libdir |
--libdir |
--libdi |
--libd)
225 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
226 libdir
="$ac_optarg" ;;
228 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
229 |
--libexe |
--libex |
--libe)
230 ac_prev
=libexecdir
;;
231 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
232 |
--libexe=* |
--libex=* |
--libe=*)
233 libexecdir
="$ac_optarg" ;;
235 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
236 |
--localstate |
--localstat |
--localsta |
--localst \
237 |
--locals |
--local |
--loca |
--loc |
--lo)
238 ac_prev
=localstatedir
;;
239 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
240 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
241 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
242 localstatedir
="$ac_optarg" ;;
244 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
246 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
247 mandir
="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
257 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
258 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
261 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
262 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
263 |
--oldin |
--oldi |
--old |
--ol |
--o)
264 ac_prev
=oldincludedir
;;
265 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
266 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
267 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
268 oldincludedir
="$ac_optarg" ;;
270 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
272 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
273 prefix
="$ac_optarg" ;;
275 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
276 |
--program-pre |
--program-pr |
--program-p)
277 ac_prev
=program_prefix
;;
278 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
279 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
280 program_prefix
="$ac_optarg" ;;
282 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
283 |
--program-suf |
--program-su |
--program-s)
284 ac_prev
=program_suffix
;;
285 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
286 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
287 program_suffix
="$ac_optarg" ;;
289 -program-transform-name |
--program-transform-name \
290 |
--program-transform-nam |
--program-transform-na \
291 |
--program-transform-n |
--program-transform- \
292 |
--program-transform |
--program-transfor \
293 |
--program-transfo |
--program-transf \
294 |
--program-trans |
--program-tran \
295 |
--progr-tra |
--program-tr |
--program-t)
296 ac_prev
=program_transform_name
;;
297 -program-transform-name=* |
--program-transform-name=* \
298 |
--program-transform-nam=* |
--program-transform-na=* \
299 |
--program-transform-n=* |
--program-transform-=* \
300 |
--program-transform=* |
--program-transfor=* \
301 |
--program-transfo=* |
--program-transf=* \
302 |
--program-trans=* |
--program-tran=* \
303 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
304 program_transform_name
="$ac_optarg" ;;
306 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
307 |
-silent |
--silent |
--silen |
--sile |
--sil)
310 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
312 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
314 sbindir
="$ac_optarg" ;;
316 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
317 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
318 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
320 ac_prev
=sharedstatedir
;;
321 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
322 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
323 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
325 sharedstatedir
="$ac_optarg" ;;
327 -site |
--site |
--sit)
329 -site=* |
--site=* |
--sit=*)
332 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
334 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
335 srcdir
="$ac_optarg" ;;
337 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
338 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
339 ac_prev
=sysconfdir
;;
340 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
341 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
342 sysconfdir
="$ac_optarg" ;;
344 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
346 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
347 target
="$ac_optarg" ;;
349 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
352 -version |
--version |
--versio |
--versi |
--vers)
353 echo "configure generated by autoconf version 2.12.2"
357 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package
=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* |
--without-*)
370 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package
=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
383 |
--x-incl |
--x-inc |
--x-in |
--x-i)
384 ac_prev
=x_includes
;;
385 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
386 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
387 x_includes
="$ac_optarg" ;;
389 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
390 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
391 ac_prev
=x_libraries
;;
392 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
393 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
394 x_libraries
="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE
; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
445 |
--no-cr |
--no-c) ;;
446 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
447 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
448 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest
* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file
=Makefile.
in
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted
=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted
=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE
; then
499 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file
in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp
='$CPP $CPPFLAGS'
522 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling
=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
537 ac_n
= ac_c
='\c' ac_t
=
541 .
$srcdir/GUILE-VERSION
543 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
544 if test -f $ac_dir/install-sh
; then
546 ac_install_sh
="$ac_aux_dir/install-sh -c"
548 elif test -f $ac_dir/install.sh
; then
550 ac_install_sh
="$ac_aux_dir/install.sh -c"
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
557 ac_config_guess
=$ac_aux_dir/config.guess
558 ac_config_sub
=$ac_aux_dir/config.sub
559 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
561 # Find a good install program. We prefer a C program (faster),
562 # so one script is as good as another. But avoid the broken or
563 # incompatible versions:
564 # SysV /etc/install, /usr/sbin/install
565 # SunOS /usr/etc/install
568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
571 # ./install, which can be erroneously created by make from ./install.sh.
572 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
573 echo "configure:574: checking for a BSD compatible install" >&5
574 if test -z "$INSTALL"; then
575 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
576 echo $ac_n "(cached) $ac_c" 1>&6
578 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
579 for ac_dir
in $PATH; do
580 # Account for people who put trailing slashes in PATH elements.
582 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
584 # OSF1 and SCO ODT 3.0 have their own names for install.
585 # Don't use installbsd from OSF since it installs stuff as root
587 for ac_prog
in ginstall scoinst
install; do
588 if test -f $ac_dir/$ac_prog; then
589 if test $ac_prog = install &&
590 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
591 # AIX install. It has an incompatible calling convention.
594 ac_cv_path_install
="$ac_dir/$ac_prog -c"
605 if test "${ac_cv_path_install+set}" = set; then
606 INSTALL
="$ac_cv_path_install"
608 # As a last resort, use the slow shell script. We don't cache a
609 # path for INSTALL within a source directory, because that will
610 # break other packages using the cache if that directory is
611 # removed, or if the path is relative.
612 INSTALL
="$ac_install_sh"
615 echo "$ac_t""$INSTALL" 1>&6
617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
618 # It thinks the first close brace ends the variable substitution.
619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
621 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
624 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
626 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
627 echo "configure:628: checking whether build environment is sane" >&5
630 echo timestamp
> conftestfile
631 # Do `set' in a subshell so we don't clobber the current shell's
632 # arguments. Must try -L first in case configure is actually a
633 # symlink; some systems play weird games with the mod time of symlinks
634 # (eg FreeBSD returns the mod time of the symlink's containing
637 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
638 if test "$*" = "X"; then
640 set X
`ls -t $srcdir/configure conftestfile`
642 if test "$*" != "X $srcdir/configure conftestfile" \
643 && test "$*" != "X conftestfile $srcdir/configure"; then
645 # If neither matched, then we have a broken ls. This can happen
646 # if, for instance, CONFIG_SHELL is bash and it inherits a
647 # broken ls alias from the environment. This has actually
648 # happened. Such a system could not be considered "sane".
649 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
650 alias in your environment" 1>&2; exit 1; }
653 test "$2" = conftestfile
659 { echo "configure: error: newly created file is older than distributed files!
660 Check your system clock" 1>&2; exit 1; }
663 echo "$ac_t""yes" 1>&6
664 if test "$program_transform_name" = s
,x
,x
,; then
665 program_transform_name
=
667 # Double any \ or $. echo might interpret backslashes.
668 cat <<\EOF_SED
> conftestsed
669 s
,\\,\\\\,g
; s
,\$
,$$
,g
671 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
674 test "$program_prefix" != NONE
&&
675 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
676 # Use a double $ so make ignores it.
677 test "$program_suffix" != NONE
&&
678 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
680 # sed with no file args requires a program.
681 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
683 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
684 echo "configure:685: checking whether ${MAKE-make} sets \${MAKE}" >&5
685 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
686 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
689 cat > conftestmake
<<\EOF
691 @
echo 'ac_maketemp="${MAKE}"'
693 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
694 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
695 if test -n "$ac_maketemp"; then
696 eval ac_cv_prog_make_
${ac_make}_set
=yes
698 eval ac_cv_prog_make_
${ac_make}_set
=no
702 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
703 echo "$ac_t""yes" 1>&6
706 echo "$ac_t""no" 1>&6
707 SET_MAKE
="MAKE=${MAKE-make}"
715 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
716 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
721 missing_dir
=`cd $ac_aux_dir && pwd`
722 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
723 echo "configure:724: checking for working aclocal" >&5
724 # Run test in a subshell; some versions of sh will print an error if
725 # an executable is not found, even if stderr is redirected.
726 # Redirect stdin to placate older versions of autoconf. Sigh.
727 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
729 echo "$ac_t""found" 1>&6
731 ACLOCAL
="$missing_dir/missing aclocal"
732 echo "$ac_t""missing" 1>&6
735 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
736 echo "configure:737: checking for working autoconf" >&5
737 # Run test in a subshell; some versions of sh will print an error if
738 # an executable is not found, even if stderr is redirected.
739 # Redirect stdin to placate older versions of autoconf. Sigh.
740 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
742 echo "$ac_t""found" 1>&6
744 AUTOCONF
="$missing_dir/missing autoconf"
745 echo "$ac_t""missing" 1>&6
748 echo $ac_n "checking for working automake""... $ac_c" 1>&6
749 echo "configure:750: checking for working automake" >&5
750 # Run test in a subshell; some versions of sh will print an error if
751 # an executable is not found, even if stderr is redirected.
752 # Redirect stdin to placate older versions of autoconf. Sigh.
753 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
755 echo "$ac_t""found" 1>&6
757 AUTOMAKE
="$missing_dir/missing automake"
758 echo "$ac_t""missing" 1>&6
761 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
762 echo "configure:763: checking for working autoheader" >&5
763 # Run test in a subshell; some versions of sh will print an error if
764 # an executable is not found, even if stderr is redirected.
765 # Redirect stdin to placate older versions of autoconf. Sigh.
766 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
767 AUTOHEADER
=autoheader
768 echo "$ac_t""found" 1>&6
770 AUTOHEADER
="$missing_dir/missing autoheader"
771 echo "$ac_t""missing" 1>&6
774 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
775 echo "configure:776: checking for working makeinfo" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
781 echo "$ac_t""found" 1>&6
783 MAKEINFO
="$missing_dir/missing makeinfo"
784 echo "$ac_t""missing" 1>&6
788 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
789 echo "configure:790: checking whether to enable maintainer-specific portions of Makefiles" >&5
790 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
791 if test "${enable_maintainer_mode+set}" = set; then
792 enableval
="$enable_maintainer_mode"
793 USE_MAINTAINER_MODE
=$enableval
795 USE_MAINTAINER_MODE
=no
798 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
799 if test $USE_MAINTAINER_MODE = yes; then
810 #--------------------------------------------------------------------
814 #--------------------------------------------------------------------
816 # Check whether --enable-debug or --disable-debug was given.
817 if test "${enable_debug+set}" = set; then
818 enableval
="$enable_debug"
822 if test "$enableval" != n
&& test "$enableval" != no
; then
823 cat >> confdefs.h
<<\EOF
824 #define DEBUG_EXTENSIONS 1
827 cat >> confdefs.h
<<\EOF
828 #define READER_EXTENSIONS 1
831 LIBOBJS
="backtrace.o stacks.o debug.o srcprop.o $LIBOBJS"
834 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
835 if test "${enable_dynamic_linking+set}" = set; then
836 enableval
="$enable_dynamic_linking"
839 enable_dynamic_linking
=yes
843 # Check whether --enable-guile-debug or --disable-guile-debug was given.
844 if test "${enable_guile_debug+set}" = set; then
845 enableval
="$enable_guile_debug"
849 if test "$enableval" = y ||
test "$enableval" = yes; then
850 cat >> confdefs.h
<<\EOF
851 #define GUILE_DEBUG 1
856 #--------------------------------------------------------------------
858 # Extract the first word of "gcc", so it can be a program name with args.
859 set dummy gcc
; ac_word
=$2
860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
861 echo "configure:862: checking for $ac_word" >&5
862 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
865 if test -n "$CC"; then
866 ac_cv_prog_CC
="$CC" # Let the user override the test.
868 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
869 for ac_dir
in $PATH; do
870 test -z "$ac_dir" && ac_dir
=.
871 if test -f $ac_dir/$ac_word; then
880 if test -n "$CC"; then
881 echo "$ac_t""$CC" 1>&6
883 echo "$ac_t""no" 1>&6
886 if test -z "$CC"; then
887 # Extract the first word of "cc", so it can be a program name with args.
888 set dummy cc
; ac_word
=$2
889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
890 echo "configure:891: checking for $ac_word" >&5
891 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
894 if test -n "$CC"; then
895 ac_cv_prog_CC
="$CC" # Let the user override the test.
897 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
899 for ac_dir
in $PATH; do
900 test -z "$ac_dir" && ac_dir
=.
901 if test -f $ac_dir/$ac_word; then
902 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
911 if test $ac_prog_rejected = yes; then
912 # We found a bogon in the path, so make sure we never use it.
913 set dummy
$ac_cv_prog_CC
915 if test $# -gt 0; then
916 # We chose a different compiler from the bogus one.
917 # However, it has the same basename, so the bogon will be chosen
918 # first if we set CC to just the basename; use the full file name.
920 set dummy
"$ac_dir/$ac_word" "$@"
928 if test -n "$CC"; then
929 echo "$ac_t""$CC" 1>&6
931 echo "$ac_t""no" 1>&6
934 if test -z "$CC"; then
937 # Extract the first word of "cl", so it can be a program name with args.
938 set dummy cl
; ac_word
=$2
939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
940 echo "configure:941: checking for $ac_word" >&5
941 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
944 if test -n "$CC"; then
945 ac_cv_prog_CC
="$CC" # Let the user override the test.
947 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
948 for ac_dir
in $PATH; do
949 test -z "$ac_dir" && ac_dir
=.
950 if test -f $ac_dir/$ac_word; then
959 if test -n "$CC"; then
960 echo "$ac_t""$CC" 1>&6
962 echo "$ac_t""no" 1>&6
967 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
970 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
971 echo "configure:972: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
975 ac_cpp
='$CPP $CPPFLAGS'
976 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
977 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
978 cross_compiling
=$ac_cv_prog_cc_cross
980 cat > conftest.
$ac_ext <<EOF
981 #line 982 "configure"
982 #include "confdefs.h"
985 if { (eval echo configure
:986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
986 ac_cv_prog_cc_works
=yes
987 # If we can't run a trivial program, we are probably using a cross compiler.
988 if (.
/conftest
; exit) 2>/dev
/null
; then
989 ac_cv_prog_cc_cross
=no
991 ac_cv_prog_cc_cross
=yes
994 echo "configure: failed program was:" >&5
995 cat conftest.
$ac_ext >&5
996 ac_cv_prog_cc_works
=no
1000 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1001 if test $ac_cv_prog_cc_works = no
; then
1002 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1004 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1005 echo "configure:1006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1006 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1007 cross_compiling
=$ac_cv_prog_cc_cross
1009 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1010 echo "configure:1011: checking whether we are using GNU C" >&5
1011 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1014 cat > conftest.c
<<EOF
1019 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1026 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1028 if test $ac_cv_prog_gcc = yes; then
1034 ac_test_CFLAGS
="${CFLAGS+set}"
1035 ac_save_CFLAGS
="$CFLAGS"
1037 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1038 echo "configure:1039: checking whether ${CC-cc} accepts -g" >&5
1039 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 echo 'void f(){}' > conftest.c
1043 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1052 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1053 if test "$ac_test_CFLAGS" = set; then
1054 CFLAGS
="$ac_save_CFLAGS"
1055 elif test $ac_cv_prog_cc_g = yes; then
1056 if test "$GCC" = yes; then
1062 if test "$GCC" = yes; then
1069 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1070 echo "configure:1071: checking how to run the C preprocessor" >&5
1071 # On Suns, sometimes $CPP names a directory.
1072 if test -n "$CPP" && test -d "$CPP"; then
1075 if test -z "$CPP"; then
1076 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1079 # This must be in double quotes, not single quotes, because CPP may get
1080 # substituted into the Makefile and "${CC-cc}" will confuse make.
1082 # On the NeXT, cc -E runs the code through the compiler's parser,
1083 # not just through cpp.
1084 cat > conftest.
$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1090 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1091 { (eval echo configure
:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1092 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1093 if test -z "$ac_err"; then
1097 echo "configure: failed program was:" >&5
1098 cat conftest.
$ac_ext >&5
1100 CPP
="${CC-cc} -E -traditional-cpp"
1101 cat > conftest.
$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1107 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1108 { (eval echo configure
:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1109 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1110 if test -z "$ac_err"; then
1114 echo "configure: failed program was:" >&5
1115 cat conftest.
$ac_ext >&5
1117 CPP
="${CC-cc} -nologo -E"
1118 cat > conftest.
$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1124 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1125 { (eval echo configure
:1126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1126 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1127 if test -z "$ac_err"; then
1131 echo "configure: failed program was:" >&5
1132 cat conftest.
$ac_ext >&5
1141 ac_cv_prog_CPP
="$CPP"
1143 CPP
="$ac_cv_prog_CPP"
1145 ac_cv_prog_CPP
="$CPP"
1147 echo "$ac_t""$CPP" 1>&6
1149 # Check whether --enable-shared or --disable-shared was given.
1150 if test "${enable_shared+set}" = set; then
1151 enableval
="$enable_shared"
1152 p
=${PACKAGE-default}
1153 case "$enableval" in
1154 yes) enable_shared
=yes ;;
1155 no
) enable_shared
=no
;;
1158 # Look at the argument we got. We use all the common list separators.
1159 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1160 for pkg
in $enableval; do
1161 if test "X$pkg" = "X$p"; then
1172 # Check whether --enable-static or --disable-static was given.
1173 if test "${enable_static+set}" = set; then
1174 enableval
="$enable_static"
1175 p
=${PACKAGE-default}
1176 case "$enableval" in
1177 yes) enable_static
=yes ;;
1178 no
) enable_static
=no
;;
1181 # Look at the argument we got. We use all the common list separators.
1182 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1183 for pkg
in $enableval; do
1184 if test "X$pkg" = "X$p"; then
1196 # Make sure we can run config.sub.
1197 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1198 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1201 echo $ac_n "checking host system type""... $ac_c" 1>&6
1202 echo "configure:1203: checking host system type" >&5
1205 case "$host_alias" in
1209 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1210 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1212 *) host_alias
=$nonopt ;;
1216 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1217 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1218 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1219 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1220 echo "$ac_t""$host" 1>&6
1222 echo $ac_n "checking build system type""... $ac_c" 1>&6
1223 echo "configure:1224: checking build system type" >&5
1226 case "$build_alias" in
1229 NONE
) build_alias
=$host_alias ;;
1230 *) build_alias
=$nonopt ;;
1234 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1235 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1236 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1237 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1238 echo "$ac_t""$build" 1>&6
1240 # Extract the first word of "ranlib", so it can be a program name with args.
1241 set dummy ranlib
; ac_word
=$2
1242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1243 echo "configure:1244: checking for $ac_word" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 if test -n "$RANLIB"; then
1248 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1250 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1251 for ac_dir
in $PATH; do
1252 test -z "$ac_dir" && ac_dir
=.
1253 if test -f $ac_dir/$ac_word; then
1254 ac_cv_prog_RANLIB
="ranlib"
1259 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1262 RANLIB
="$ac_cv_prog_RANLIB"
1263 if test -n "$RANLIB"; then
1264 echo "$ac_t""$RANLIB" 1>&6
1266 echo "$ac_t""no" 1>&6
1269 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1270 if test "${with_gnu_ld+set}" = set; then
1271 withval
="$with_gnu_ld"
1272 test "$withval" = no || with_gnu_ld
=yes
1279 if test "$ac_cv_prog_gcc" = yes; then
1280 # Check if gcc -print-prog-name=ld gives a path.
1281 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1282 echo "configure:1283: checking for ld used by GCC" >&5
1283 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1285 # Accept absolute paths.
1287 test -z "$LD" && LD
="$ac_prog"
1290 # If it fails, then pretend we aren't using GCC.
1294 # If it is relative, then search for the first ld in PATH.
1298 elif test "$with_gnu_ld" = yes; then
1299 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1300 echo "configure:1301: checking for GNU ld" >&5
1302 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1303 echo "configure:1304: checking for non-GNU ld" >&5
1305 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 if test -z "$LD"; then
1309 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1310 for ac_dir
in $PATH; do
1311 test -z "$ac_dir" && ac_dir
=.
1312 if test -f "$ac_dir/$ac_prog"; then
1313 ac_cv_path_LD
="$ac_dir/$ac_prog"
1314 # Check to see if the program is GNU ld. I'd rather use --version,
1315 # but apparently some GNU ld's only accept -v.
1316 # Break only if it was the GNU/non-GNU ld that we prefer.
1317 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1318 test "$with_gnu_ld" != no
&& break
1320 test "$with_gnu_ld" != yes && break
1326 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1331 if test -n "$LD"; then
1332 echo "$ac_t""$LD" 1>&6
1334 echo "$ac_t""no" 1>&6
1336 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1338 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1339 echo "configure:1340: checking if the linker ($LD) is GNU ld" >&5
1340 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1344 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1345 ac_cv_prog_gnu_ld
=yes
1347 ac_cv_prog_gnu_ld
=no
1351 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1354 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1355 echo "configure:1356: checking for BSD-compatible nm" >&5
1356 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 if test -n "$NM"; then
1360 # Let the user override the test.
1363 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1364 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1365 test -z "$ac_dir" && ac_dir
=.
1366 if test -f $ac_dir/nm
; then
1367 # Check to see if the nm accepts a BSD-compat flag.
1368 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1369 # nm: unknown option "B" ignored
1370 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1371 ac_cv_path_NM
="$ac_dir/nm -B"
1372 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1373 ac_cv_path_NM
="$ac_dir/nm -p"
1375 ac_cv_path_NM
="$ac_dir/nm"
1381 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1386 echo "$ac_t""$NM" 1>&6
1389 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1390 echo "configure:1391: checking whether ln -s works" >&5
1391 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1395 if ln -s X conftestdata
2>/dev
/null
1398 ac_cv_prog_LN_S
="ln -s"
1403 LN_S
="$ac_cv_prog_LN_S"
1404 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1405 echo "$ac_t""yes" 1>&6
1407 echo "$ac_t""no" 1>&6
1410 if test $host != $build; then
1411 ac_tool_prefix
=${host_alias}-
1416 # Always use our own libtool.
1417 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1419 # Check for any special flags to pass to ltconfig.
1421 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1422 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1423 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1424 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1425 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1427 # Some flags need to be propagated to the compiler or linker for good
1431 # Find out which ABI we are using.
1432 echo '#line 1433 "configure"' > conftest.
$ac_ext
1433 if { (eval echo configure
:1434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1434 case "`/usr/bin/file conftest.o`" in
1450 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1451 CFLAGS
="$CFLAGS -belf"
1455 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1456 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1458 echo "configure:1459: checking for $ac_word" >&5
1459 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 if test -n "$DLLTOOL"; then
1463 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1465 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1466 for ac_dir
in $PATH; do
1467 test -z "$ac_dir" && ac_dir
=.
1468 if test -f $ac_dir/$ac_word; then
1469 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1476 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1477 if test -n "$DLLTOOL"; then
1478 echo "$ac_t""$DLLTOOL" 1>&6
1480 echo "$ac_t""no" 1>&6
1484 if test -z "$ac_cv_prog_DLLTOOL"; then
1485 if test -n "$ac_tool_prefix"; then
1486 # Extract the first word of "dlltool", so it can be a program name with args.
1487 set dummy dlltool
; ac_word
=$2
1488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $ac_word" >&5
1490 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 if test -n "$DLLTOOL"; then
1494 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1496 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1497 for ac_dir
in $PATH; do
1498 test -z "$ac_dir" && ac_dir
=.
1499 if test -f $ac_dir/$ac_word; then
1500 ac_cv_prog_DLLTOOL
="dlltool"
1505 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1508 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1509 if test -n "$DLLTOOL"; then
1510 echo "$ac_t""$DLLTOOL" 1>&6
1512 echo "$ac_t""no" 1>&6
1520 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1521 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1523 echo "configure:1524: checking for $ac_word" >&5
1524 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 if test -n "$AS"; then
1528 ac_cv_prog_AS
="$AS" # Let the user override the test.
1530 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1531 for ac_dir
in $PATH; do
1532 test -z "$ac_dir" && ac_dir
=.
1533 if test -f $ac_dir/$ac_word; then
1534 ac_cv_prog_AS
="${ac_tool_prefix}as"
1542 if test -n "$AS"; then
1543 echo "$ac_t""$AS" 1>&6
1545 echo "$ac_t""no" 1>&6
1549 if test -z "$ac_cv_prog_AS"; then
1550 if test -n "$ac_tool_prefix"; then
1551 # Extract the first word of "as", so it can be a program name with args.
1552 set dummy as
; ac_word
=$2
1553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1554 echo "configure:1555: checking for $ac_word" >&5
1555 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1558 if test -n "$AS"; then
1559 ac_cv_prog_AS
="$AS" # Let the user override the test.
1561 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1562 for ac_dir
in $PATH; do
1563 test -z "$ac_dir" && ac_dir
=.
1564 if test -f $ac_dir/$ac_word; then
1570 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1574 if test -n "$AS"; then
1575 echo "$ac_t""$AS" 1>&6
1577 echo "$ac_t""no" 1>&6
1590 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1591 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1592 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1593 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1594 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1595 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1596 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1598 # Redirect the config.log output again, so that the ltconfig log is not
1599 # clobbered by the next message.
1600 exec 5>>.
/config.log
1603 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1604 echo "configure:1605: checking for AIX" >&5
1605 cat > conftest.
$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1614 egrep "yes" >/dev
/null
2>&1; then
1616 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1617 #define _ALL_SOURCE 1
1622 echo "$ac_t""no" 1>&6
1627 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1628 echo "configure:1629: checking for POSIXized ISC" >&5
1629 if test -d /etc
/conf
/kconfig.d
&&
1630 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1632 echo "$ac_t""yes" 1>&6
1633 ISC
=yes # If later tests want to check for ISC.
1634 cat >> confdefs.h
<<\EOF
1635 #define _POSIX_SOURCE 1
1638 if test "$GCC" = yes; then
1644 echo "$ac_t""no" 1>&6
1648 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1649 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1650 echo "configure:1651: checking for minix/config.h" >&5
1651 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 cat > conftest.
$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 #include <minix/config.h>
1659 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1660 { (eval echo configure
:1661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1661 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1662 if test -z "$ac_err"; then
1664 eval "ac_cv_header_$ac_safe=yes"
1667 echo "configure: failed program was:" >&5
1668 cat conftest.
$ac_ext >&5
1670 eval "ac_cv_header_$ac_safe=no"
1674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1675 echo "$ac_t""yes" 1>&6
1678 echo "$ac_t""no" 1>&6
1682 if test "$MINIX" = yes; then
1683 cat >> confdefs.h
<<\EOF
1684 #define _POSIX_SOURCE 1
1687 cat >> confdefs.h
<<\EOF
1688 #define _POSIX_1_SOURCE 2
1691 cat >> confdefs.h
<<\EOF
1698 echo $ac_n "checking for working const""... $ac_c" 1>&6
1699 echo "configure:1700: checking for working const" >&5
1700 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 cat > conftest.
$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1709 /* Ultrix mips cc rejects this. */
1710 typedef int charset[2]; const charset x;
1711 /* SunOS 4.1.1 cc rejects this. */
1712 char const *const *ccp;
1714 /* NEC SVR4.0.2 mips cc rejects this. */
1715 struct point {int x, y;};
1716 static struct point const zero = {0,0};
1717 /* AIX XL C 1.02.0.0 rejects this.
1718 It does not let you subtract one const X* pointer from another in an arm
1719 of an if-expression whose if-part is not a constant expression */
1720 const char *g = "string";
1721 ccp = &g + (g ? g-g : 0);
1722 /* HPUX 7.0 cc rejects these. */
1725 ccp = (char const *const *) p;
1726 { /* SCO 3.2v4 cc rejects this. */
1728 char const *s = 0 ? (char *) 0 : (char const *) 0;
1732 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1734 const int *foo = &x[0];
1737 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1738 typedef const int *iptr;
1742 { /* AIX XL C 1.02.0.0 rejects this saying
1743 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1744 struct s { int j; const int *ap[3]; };
1745 struct s *b; b->j = 5;
1747 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1753 if { (eval echo configure
:1754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1757 echo "configure: failed program was:" >&5
1758 cat conftest.
$ac_ext >&5
1765 echo "$ac_t""$ac_cv_c_const" 1>&6
1766 if test $ac_cv_c_const = no
; then
1767 cat >> confdefs.h
<<\EOF
1774 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1775 echo "configure:1776: checking for ANSI C header files" >&5
1776 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 cat > conftest.
$ac_ext <<EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1787 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1788 { (eval echo configure
:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1789 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1790 if test -z "$ac_err"; then
1792 ac_cv_header_stdc
=yes
1795 echo "configure: failed program was:" >&5
1796 cat conftest.
$ac_ext >&5
1798 ac_cv_header_stdc
=no
1802 if test $ac_cv_header_stdc = yes; then
1803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1804 cat > conftest.
$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1810 egrep "memchr" >/dev
/null
2>&1; then
1814 ac_cv_header_stdc
=no
1820 if test $ac_cv_header_stdc = yes; then
1821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1822 cat > conftest.
$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1828 egrep "free" >/dev
/null
2>&1; then
1832 ac_cv_header_stdc
=no
1838 if test $ac_cv_header_stdc = yes; then
1839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1840 if test "$cross_compiling" = yes; then
1843 cat > conftest.
$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1847 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1848 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1850 int main () { int i; for (i = 0; i < 256; i++)
1851 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1855 if { (eval echo configure
:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1859 echo "configure: failed program was:" >&5
1860 cat conftest.
$ac_ext >&5
1862 ac_cv_header_stdc
=no
1870 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1871 if test $ac_cv_header_stdc = yes; then
1872 cat >> confdefs.h
<<\EOF
1873 #define STDC_HEADERS 1
1879 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1881 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1882 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_hdr that defines DIR" >&5
1884 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 cat > conftest.
$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 #include <sys/types.h>
1896 if { (eval echo configure
:1897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1898 eval "ac_cv_header_dirent_$ac_safe=yes"
1900 echo "configure: failed program was:" >&5
1901 cat conftest.
$ac_ext >&5
1903 eval "ac_cv_header_dirent_$ac_safe=no"
1907 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1909 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1910 cat >> confdefs.h
<<EOF
1911 #define $ac_tr_hdr 1
1913 ac_header_dirent
=$ac_hdr; break
1915 echo "$ac_t""no" 1>&6
1918 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1919 if test $ac_header_dirent = dirent.h
; then
1920 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1921 echo "configure:1922: checking for opendir in -ldir" >&5
1922 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 ac_save_LIBS
="$LIBS"
1928 cat > conftest.
$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 /* Override any gcc2 internal prototype to avoid an error. */
1932 /* We use char because int might match the return type of a gcc2
1933 builtin and then its argument prototype would still apply. */
1940 if { (eval echo configure
:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1942 eval "ac_cv_lib_$ac_lib_var=yes"
1944 echo "configure: failed program was:" >&5
1945 cat conftest.
$ac_ext >&5
1947 eval "ac_cv_lib_$ac_lib_var=no"
1950 LIBS
="$ac_save_LIBS"
1953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1954 echo "$ac_t""yes" 1>&6
1957 echo "$ac_t""no" 1>&6
1961 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1962 echo "configure:1963: checking for opendir in -lx" >&5
1963 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 ac_save_LIBS
="$LIBS"
1969 cat > conftest.
$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1972 /* Override any gcc2 internal prototype to avoid an error. */
1973 /* We use char because int might match the return type of a gcc2
1974 builtin and then its argument prototype would still apply. */
1981 if { (eval echo configure
:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1983 eval "ac_cv_lib_$ac_lib_var=yes"
1985 echo "configure: failed program was:" >&5
1986 cat conftest.
$ac_ext >&5
1988 eval "ac_cv_lib_$ac_lib_var=no"
1991 LIBS
="$ac_save_LIBS"
1994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1995 echo "$ac_t""yes" 1>&6
1998 echo "$ac_t""no" 1>&6
2003 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether time.h and sys/time.h may both be included" >&5
2005 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2008 cat > conftest.
$ac_ext <<EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2011 #include <sys/types.h>
2012 #include <sys/time.h>
2018 if { (eval echo configure
:2019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2020 ac_cv_header_time
=yes
2022 echo "configure: failed program was:" >&5
2023 cat conftest.
$ac_ext >&5
2025 ac_cv_header_time
=no
2030 echo "$ac_t""$ac_cv_header_time" 1>&6
2031 if test $ac_cv_header_time = yes; then
2032 cat >> confdefs.h
<<\EOF
2033 #define TIME_WITH_SYS_TIME 1
2038 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2039 echo "configure:2040: checking for sys/wait.h that is POSIX.1 compatible" >&5
2040 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2043 cat > conftest.
$ac_ext <<EOF
2044 #line 2045 "configure"
2045 #include "confdefs.h"
2046 #include <sys/types.h>
2047 #include <sys/wait.h>
2049 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2052 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2057 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2060 if { (eval echo configure
:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2062 ac_cv_header_sys_wait_h
=yes
2064 echo "configure: failed program was:" >&5
2065 cat conftest.
$ac_ext >&5
2067 ac_cv_header_sys_wait_h
=no
2072 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2073 if test $ac_cv_header_sys_wait_h = yes; then
2074 cat >> confdefs.h
<<\EOF
2075 #define HAVE_SYS_WAIT_H 1
2080 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
2082 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_hdr" >&5
2085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.
$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2093 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2094 { (eval echo configure
:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2095 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2096 if test -z "$ac_err"; then
2098 eval "ac_cv_header_$ac_safe=yes"
2101 echo "configure: failed program was:" >&5
2102 cat conftest.
$ac_ext >&5
2104 eval "ac_cv_header_$ac_safe=no"
2108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2111 cat >> confdefs.h
<<EOF
2112 #define $ac_tr_hdr 1
2116 echo "$ac_t""no" 1>&6
2121 for ac_hdr
in libc.h unistd.h
2123 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_hdr" >&5
2126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.
$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2134 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2135 { (eval echo configure
:2136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2136 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2137 if test -z "$ac_err"; then
2139 eval "ac_cv_header_$ac_safe=yes"
2142 echo "configure: failed program was:" >&5
2143 cat conftest.
$ac_ext >&5
2145 eval "ac_cv_header_$ac_safe=no"
2149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2150 echo "$ac_t""yes" 1>&6
2151 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2152 cat >> confdefs.h
<<EOF
2153 #define $ac_tr_hdr 1
2157 echo "$ac_t""no" 1>&6
2161 echo $ac_n "checking "whether libc.h and unistd.h can be included together
"""... $ac_c" 1>&6
2162 echo "configure:2163: checking "whether libc.h and unistd.h can be included together
"" >&5
2163 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2167 if test "$ac_cv_header_libc_h" = "no"; then
2168 guile_cv_header_libc_with_unistd
="no"
2169 elif test "$ac_cv_header_unistd.h" = "no"; then
2170 guile_cv_header_libc_with_unistd
="yes"
2172 cat > conftest.
$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2177 # include <unistd.h>
2183 if { (eval echo configure
:2184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2185 guile_cv_header_libc_with_unistd
=yes
2187 echo "configure: failed program was:" >&5
2188 cat conftest.
$ac_ext >&5
2190 guile_cv_header_libc_with_unistd
=no
2199 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
2200 if test "$guile_cv_header_libc_with_unistd" = yes; then
2201 cat >> confdefs.h
<<\EOF
2202 #define LIBC_H_WITH_UNISTD_H 1
2209 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2210 echo "configure:2211: checking for uid_t in sys/types.h" >&5
2211 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 cat > conftest.
$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2217 #include <sys/types.h>
2219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2220 egrep "uid_t" >/dev
/null
2>&1; then
2222 ac_cv_type_uid_t
=yes
2231 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2232 if test $ac_cv_type_uid_t = no
; then
2233 cat >> confdefs.h
<<\EOF
2237 cat >> confdefs.h
<<\EOF
2243 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2244 echo "configure:2245: checking type of array argument to getgroups" >&5
2245 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 if test "$cross_compiling" = yes; then
2249 ac_cv_type_getgroups
=cross
2251 cat > conftest.
$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2255 /* Thanks to Mike Rendell for this test. */
2256 #include <sys/types.h>
2259 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2264 union { gid_t gval; long lval; } val;
2267 for (i = 0; i < NGID; i++)
2268 gidset[i] = val.gval;
2269 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2271 /* Exit non-zero if getgroups seems to require an array of ints. This
2272 happens when gid_t is short but getgroups modifies an array of ints. */
2273 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2277 if { (eval echo configure
:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2279 ac_cv_type_getgroups
=gid_t
2281 echo "configure: failed program was:" >&5
2282 cat conftest.
$ac_ext >&5
2284 ac_cv_type_getgroups
=int
2289 if test $ac_cv_type_getgroups = cross
; then
2290 cat > conftest.
$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2296 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2298 ac_cv_type_getgroups
=gid_t
2301 ac_cv_type_getgroups
=int
2308 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2309 cat >> confdefs.h
<<EOF
2310 #define GETGROUPS_T $ac_cv_type_getgroups
2314 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2315 echo "configure:2316: checking return type of signal handlers" >&5
2316 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 cat > conftest.
$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 #include <sys/types.h>
2328 extern "C" void (*signal (int, void (*)(int)))(int);
2330 void (*signal ()) ();
2337 if { (eval echo configure
:2338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2339 ac_cv_type_signal
=void
2341 echo "configure: failed program was:" >&5
2342 cat conftest.
$ac_ext >&5
2344 ac_cv_type_signal
=int
2349 echo "$ac_t""$ac_cv_type_signal" 1>&6
2350 cat >> confdefs.h
<<EOF
2351 #define RETSIGTYPE $ac_cv_type_signal
2355 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2356 echo "configure:2357: checking for mode_t" >&5
2357 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 cat > conftest.
$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2363 #include <sys/types.h>
2369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2370 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2372 ac_cv_type_mode_t
=yes
2375 ac_cv_type_mode_t
=no
2380 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2381 if test $ac_cv_type_mode_t = no
; then
2382 cat >> confdefs.h
<<\EOF
2389 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2390 echo "configure:2391: checking for main in -lm" >&5
2391 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
2392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2395 ac_save_LIBS
="$LIBS"
2397 cat > conftest.
$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2405 if { (eval echo configure
:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2407 eval "ac_cv_lib_$ac_lib_var=yes"
2409 echo "configure: failed program was:" >&5
2410 cat conftest.
$ac_ext >&5
2412 eval "ac_cv_lib_$ac_lib_var=no"
2415 LIBS
="$ac_save_LIBS"
2418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2421 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2422 cat >> confdefs.h
<<EOF
2423 #define $ac_tr_lib 1
2429 echo "$ac_t""no" 1>&6
2432 for ac_func
in gethostbyname
2434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2435 echo "configure:2436: checking for $ac_func" >&5
2436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 cat > conftest.
$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2442 /* System header to define __stub macros and hopefully few prototypes,
2443 which can conflict with char $ac_func(); below. */
2445 /* Override any gcc2 internal prototype to avoid an error. */
2446 /* We use char because int might match the return type of a gcc2
2447 builtin and then its argument prototype would still apply. */
2452 /* The GNU C library defines this for functions which it implements
2453 to always fail with ENOSYS. Some functions are actually named
2454 something starting with __ and the normal name is an alias. */
2455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2463 if { (eval echo configure
:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2465 eval "ac_cv_func_$ac_func=yes"
2467 echo "configure: failed program was:" >&5
2468 cat conftest.
$ac_ext >&5
2470 eval "ac_cv_func_$ac_func=no"
2475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2476 echo "$ac_t""yes" 1>&6
2477 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2478 cat >> confdefs.h
<<EOF
2479 #define $ac_tr_func 1
2483 echo "$ac_t""no" 1>&6
2487 if test $ac_cv_func_gethostbyname = no
; then
2488 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2489 echo "configure:2490: checking for gethostbyname in -lnsl" >&5
2490 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 ac_save_LIBS
="$LIBS"
2496 cat > conftest.
$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 /* Override any gcc2 internal prototype to avoid an error. */
2500 /* We use char because int might match the return type of a gcc2
2501 builtin and then its argument prototype would still apply. */
2502 char gethostbyname();
2508 if { (eval echo configure
:2509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2510 eval "ac_cv_lib_$ac_lib_var=yes"
2512 echo "configure: failed program was:" >&5
2513 cat conftest.
$ac_ext >&5
2515 eval "ac_cv_lib_$ac_lib_var=no"
2518 LIBS
="$ac_save_LIBS"
2521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2522 echo "$ac_t""yes" 1>&6
2523 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2524 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2525 cat >> confdefs.h
<<EOF
2526 #define $ac_tr_lib 1
2532 echo "$ac_t""no" 1>&6
2536 for ac_func
in connect
2538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2539 echo "configure:2540: checking for $ac_func" >&5
2540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 cat > conftest.
$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 /* System header to define __stub macros and hopefully few prototypes,
2547 which can conflict with char $ac_func(); below. */
2549 /* Override any gcc2 internal prototype to avoid an error. */
2550 /* We use char because int might match the return type of a gcc2
2551 builtin and then its argument prototype would still apply. */
2556 /* The GNU C library defines this for functions which it implements
2557 to always fail with ENOSYS. Some functions are actually named
2558 something starting with __ and the normal name is an alias. */
2559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2567 if { (eval echo configure
:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2569 eval "ac_cv_func_$ac_func=yes"
2571 echo "configure: failed program was:" >&5
2572 cat conftest.
$ac_ext >&5
2574 eval "ac_cv_func_$ac_func=no"
2579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2580 echo "$ac_t""yes" 1>&6
2581 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2582 cat >> confdefs.h
<<EOF
2583 #define $ac_tr_func 1
2587 echo "$ac_t""no" 1>&6
2591 if test $ac_cv_func_connect = no
; then
2592 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2593 echo "configure:2594: checking for connect in -lsocket" >&5
2594 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 ac_save_LIBS
="$LIBS"
2599 LIBS
="-lsocket $LIBS"
2600 cat > conftest.
$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
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. */
2612 if { (eval echo configure
:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2614 eval "ac_cv_lib_$ac_lib_var=yes"
2616 echo "configure: failed program was:" >&5
2617 cat conftest.
$ac_ext >&5
2619 eval "ac_cv_lib_$ac_lib_var=no"
2622 LIBS
="$ac_save_LIBS"
2625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
2627 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2629 cat >> confdefs.h
<<EOF
2630 #define $ac_tr_lib 1
2633 LIBS
="-lsocket $LIBS"
2636 echo "$ac_t""no" 1>&6
2640 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
2641 echo "configure:2642: checking for tgoto in -ltermcap" >&5
2642 ac_lib_var
=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
2643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2646 ac_save_LIBS
="$LIBS"
2647 LIBS
="-ltermcap $LIBS"
2648 cat > conftest.
$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2651 /* Override any gcc2 internal prototype to avoid an error. */
2652 /* We use char because int might match the return type of a gcc2
2653 builtin and then its argument prototype would still apply. */
2660 if { (eval echo configure
:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2662 eval "ac_cv_lib_$ac_lib_var=yes"
2664 echo "configure: failed program was:" >&5
2665 cat conftest.
$ac_ext >&5
2667 eval "ac_cv_lib_$ac_lib_var=no"
2670 LIBS
="$ac_save_LIBS"
2673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2674 echo "$ac_t""yes" 1>&6
2675 ac_tr_lib
=HAVE_LIB
`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2676 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2677 cat >> confdefs.h
<<EOF
2678 #define $ac_tr_lib 1
2681 LIBS
="-ltermcap $LIBS"
2684 echo "$ac_t""no" 1>&6
2687 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2688 echo "configure:2689: checking for readline in -lreadline" >&5
2689 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 ac_save_LIBS
="$LIBS"
2694 LIBS
="-lreadline $LIBS"
2695 cat > conftest.
$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 /* Override any gcc2 internal prototype to avoid an error. */
2699 /* We use char because int might match the return type of a gcc2
2700 builtin and then its argument prototype would still apply. */
2707 if { (eval echo configure
:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2709 eval "ac_cv_lib_$ac_lib_var=yes"
2711 echo "configure: failed program was:" >&5
2712 cat conftest.
$ac_ext >&5
2714 eval "ac_cv_lib_$ac_lib_var=no"
2717 LIBS
="$ac_save_LIBS"
2720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2723 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2724 cat >> confdefs.h
<<EOF
2725 #define $ac_tr_lib 1
2728 LIBS
="-lreadline $LIBS"
2731 echo "$ac_t""no" 1>&6
2734 for ac_func
in rl_getc_function rl_clear_signals rl_cleanup_after_signal
2736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_func" >&5
2738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.
$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 /* System header to define __stub macros and hopefully few prototypes,
2745 which can conflict with char $ac_func(); below. */
2747 /* Override any gcc2 internal prototype to avoid an error. */
2748 /* We use char because int might match the return type of a gcc2
2749 builtin and then its argument prototype would still apply. */
2754 /* The GNU C library defines this for functions which it implements
2755 to always fail with ENOSYS. Some functions are actually named
2756 something starting with __ and the normal name is an alias. */
2757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2765 if { (eval echo configure
:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2767 eval "ac_cv_func_$ac_func=yes"
2769 echo "configure: failed program was:" >&5
2770 cat conftest.
$ac_ext >&5
2772 eval "ac_cv_func_$ac_func=no"
2777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2778 echo "$ac_t""yes" 1>&6
2779 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2780 cat >> confdefs.h
<<EOF
2781 #define $ac_tr_func 1
2785 echo "$ac_t""no" 1>&6
2789 if test $ac_cv_lib_readline_readline = yes -a $ac_cv_func_rl_getc_function = no
; then
2790 echo 'Warning: libreadline is too old on your system. Need >= 2.1.'
2793 # Checks for dynamic linking
2795 if test "$enable_dynamic_linking" = "yes"; then
2797 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2798 echo "configure:2799: checking for dlopen in -ldl" >&5
2799 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 ac_save_LIBS
="$LIBS"
2805 cat > conftest.
$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 /* Override any gcc2 internal prototype to avoid an error. */
2809 /* We use char because int might match the return type of a gcc2
2810 builtin and then its argument prototype would still apply. */
2817 if { (eval echo configure
:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2819 eval "ac_cv_lib_$ac_lib_var=yes"
2821 echo "configure: failed program was:" >&5
2822 cat conftest.
$ac_ext >&5
2824 eval "ac_cv_lib_$ac_lib_var=no"
2827 LIBS
="$ac_save_LIBS"
2830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2831 echo "$ac_t""yes" 1>&6
2832 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2833 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2834 cat >> confdefs.h
<<EOF
2835 #define $ac_tr_lib 1
2841 echo "$ac_t""no" 1>&6
2844 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2845 for ac_func
in dlopen
2847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2848 echo "configure:2849: checking for $ac_func" >&5
2849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 cat > conftest.
$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2855 /* System header to define __stub macros and hopefully few prototypes,
2856 which can conflict with char $ac_func(); below. */
2858 /* Override any gcc2 internal prototype to avoid an error. */
2859 /* We use char because int might match the return type of a gcc2
2860 builtin and then its argument prototype would still apply. */
2865 /* The GNU C library defines this for functions which it implements
2866 to always fail with ENOSYS. Some functions are actually named
2867 something starting with __ and the normal name is an alias. */
2868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2876 if { (eval echo configure
:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2878 eval "ac_cv_func_$ac_func=yes"
2880 echo "configure: failed program was:" >&5
2881 cat conftest.
$ac_ext >&5
2883 eval "ac_cv_func_$ac_func=no"
2888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2889 echo "$ac_t""yes" 1>&6
2890 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2891 cat >> confdefs.h
<<EOF
2892 #define $ac_tr_func 1
2896 echo "$ac_t""no" 1>&6
2900 cat >> confdefs.h
<<\EOF
2901 #define DYNAMIC_LINKING 1
2905 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2906 echo "configure:2907: checking for dld_link in -ldld" >&5
2907 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2911 ac_save_LIBS
="$LIBS"
2913 cat > conftest.
$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2925 if { (eval echo configure
:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2927 eval "ac_cv_lib_$ac_lib_var=yes"
2929 echo "configure: failed program was:" >&5
2930 cat conftest.
$ac_ext >&5
2932 eval "ac_cv_lib_$ac_lib_var=no"
2935 LIBS
="$ac_save_LIBS"
2938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2942 cat >> confdefs.h
<<EOF
2943 #define $ac_tr_lib 1
2949 echo "$ac_t""no" 1>&6
2952 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2953 cat >> confdefs.h
<<\EOF
2954 #define DYNAMIC_LINKING 1
2958 for ac_func
in shl_load
2960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2961 echo "configure:2962: checking for $ac_func" >&5
2962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 cat > conftest.
$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2968 /* System header to define __stub macros and hopefully few prototypes,
2969 which can conflict with char $ac_func(); below. */
2971 /* Override any gcc2 internal prototype to avoid an error. */
2972 /* We use char because int might match the return type of a gcc2
2973 builtin and then its argument prototype would still apply. */
2978 /* The GNU C library defines this for functions which it implements
2979 to always fail with ENOSYS. Some functions are actually named
2980 something starting with __ and the normal name is an alias. */
2981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2989 if { (eval echo configure
:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2991 eval "ac_cv_func_$ac_func=yes"
2993 echo "configure: failed program was:" >&5
2994 cat conftest.
$ac_ext >&5
2996 eval "ac_cv_func_$ac_func=no"
3001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3002 echo "$ac_t""yes" 1>&6
3003 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3004 cat >> confdefs.h
<<EOF
3005 #define $ac_tr_func 1
3009 echo "$ac_t""no" 1>&6
3013 if test "$ac_cv_func_shl_load" = "yes"; then
3014 cat >> confdefs.h
<<\EOF
3015 #define DYNAMIC_LINKING 1
3019 for ac_func
in dlopen
3021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3022 echo "configure:3023: checking for $ac_func" >&5
3023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 cat > conftest.
$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 /* System header to define __stub macros and hopefully few prototypes,
3030 which can conflict with char $ac_func(); below. */
3032 /* Override any gcc2 internal prototype to avoid an error. */
3033 /* We use char because int might match the return type of a gcc2
3034 builtin and then its argument prototype would still apply. */
3039 /* The GNU C library defines this for functions which it implements
3040 to always fail with ENOSYS. Some functions are actually named
3041 something starting with __ and the normal name is an alias. */
3042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3050 if { (eval echo configure
:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3052 eval "ac_cv_func_$ac_func=yes"
3054 echo "configure: failed program was:" >&5
3055 cat conftest.
$ac_ext >&5
3057 eval "ac_cv_func_$ac_func=no"
3062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3063 echo "$ac_t""yes" 1>&6
3064 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3065 cat >> confdefs.h
<<EOF
3066 #define $ac_tr_func 1
3070 echo "$ac_t""no" 1>&6
3074 if test "$ac_cv_func_dlopen" = "yes"; then
3075 cat >> confdefs.h
<<\EOF
3076 #define DYNAMIC_LINKING 1
3087 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
3088 echo "configure:3089: checking for underscore before symbols" >&5
3089 if eval "test \"`echo '$''{'guile_cv_uscore'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3093 echo "main(){int i=1;}
3094 fnord(){int i=23; int ltuae=42;}" > conftest.c
3095 ${CC} conftest.c
> /dev
/null
3096 if (nm a.out |
grep _fnord
) > /dev
/null
; then
3103 echo "$ac_t""$guile_cv_uscore" 1>&6
3104 rm -f conftest.c a.out
3106 if test $guile_cv_uscore = yes; then
3107 cat >> confdefs.h
<<\EOF
3112 if test $ac_cv_func_dlopen = yes -o $ac_cv_lib_dl_dlopen = yes ; then
3113 echo $ac_n "checking whether dlsym always adds an underscore for us""... $ac_c" 1>&6
3114 echo "configure:3115: checking whether dlsym always adds an underscore for us" >&5
3115 if eval "test \"`echo '$''{'guile_cv_dlsym_adds_uscore'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 if test "$cross_compiling" = yes; then
3119 guile_cv_dlsym_adds_uscore
=no
3121 cat > conftest.
$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3127 fnord() { int i=42;}
3128 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
3129 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
3130 if(ptr1 && !ptr2) exit(0); } exit(1); }
3133 if { (eval echo configure
:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3135 guile_cv_dlsym_adds_uscore
=yes
3136 cat >> confdefs.h
<<\EOF
3137 #define DLSYM_ADDS_USCORE 1
3141 echo "configure: failed program was:" >&5
3142 cat conftest.
$ac_ext >&5
3144 guile_cv_dlsym_adds_uscore
=no
3152 echo "$ac_t""$guile_cv_dlsym_adds_uscore" 1>&6
3157 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 bzero strdup system
usleep
3159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3160 echo "configure:3161: checking for $ac_func" >&5
3161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 cat > conftest.
$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 /* System header to define __stub macros and hopefully few prototypes,
3168 which can conflict with char $ac_func(); below. */
3170 /* Override any gcc2 internal prototype to avoid an error. */
3171 /* We use char because int might match the return type of a gcc2
3172 builtin and then its argument prototype would still apply. */
3177 /* The GNU C library defines this for functions which it implements
3178 to always fail with ENOSYS. Some functions are actually named
3179 something starting with __ and the normal name is an alias. */
3180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3188 if { (eval echo configure
:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3190 eval "ac_cv_func_$ac_func=yes"
3192 echo "configure: failed program was:" >&5
3193 cat conftest.
$ac_ext >&5
3195 eval "ac_cv_func_$ac_func=no"
3200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3201 echo "$ac_t""yes" 1>&6
3202 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3203 cat >> confdefs.h
<<EOF
3204 #define $ac_tr_func 1
3208 echo "$ac_t""no" 1>&6
3213 # Determine the host we are working on
3215 # Make sure we can run config.sub.
3216 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
3217 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3220 echo $ac_n "checking host system type""... $ac_c" 1>&6
3221 echo "configure:3222: checking host system type" >&5
3224 case "$host_alias" in
3228 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
3229 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3231 *) host_alias
=$nonopt ;;
3235 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
3236 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3237 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3238 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3239 echo "$ac_t""$host" 1>&6
3242 # Some operating systems don't declare all functions
3245 cat >> confdefs.h
<<\EOF
3246 #define DECLARE_BZERO 1
3249 cat >> confdefs.h
<<\EOF
3250 #define DECLARE_USLEEP 1
3256 # On some systems usleep has no return value
3257 cat > conftest.
$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 #include </usr/include/unistd.h>
3262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263 egrep "void[ ][ ]*usleep" >/dev
/null
2>&1; then
3265 cat >> confdefs.h
<<\EOF
3266 #define USLEEP_RETURNS_VOID 1
3276 ac_safe
=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
3277 echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
3278 echo "configure:3279: checking for sys/un.h" >&5
3279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3282 cat > conftest.
$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3287 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3288 { (eval echo configure
:3289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3289 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3290 if test -z "$ac_err"; then
3292 eval "ac_cv_header_$ac_safe=yes"
3295 echo "configure: failed program was:" >&5
3296 cat conftest.
$ac_ext >&5
3298 eval "ac_cv_header_$ac_safe=no"
3302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3303 echo "$ac_t""yes" 1>&6
3306 echo "$ac_t""no" 1>&6
3309 if test -n "$have_sys_un_h" ; then
3310 cat >> confdefs.h
<<\EOF
3311 #define HAVE_UNIX_DOMAIN_SOCKETS 1
3316 for ac_func
in socketpair getgroups setpwent pause tzset
3318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3319 echo "configure:3320: checking for $ac_func" >&5
3320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3321 echo $ac_n "(cached) $ac_c" 1>&6
3323 cat > conftest.
$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3326 /* System header to define __stub macros and hopefully few prototypes,
3327 which can conflict with char $ac_func(); below. */
3329 /* Override any gcc2 internal prototype to avoid an error. */
3330 /* We use char because int might match the return type of a gcc2
3331 builtin and then its argument prototype would still apply. */
3336 /* The GNU C library defines this for functions which it implements
3337 to always fail with ENOSYS. Some functions are actually named
3338 something starting with __ and the normal name is an alias. */
3339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3347 if { (eval echo configure
:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3349 eval "ac_cv_func_$ac_func=yes"
3351 echo "configure: failed program was:" >&5
3352 cat conftest.
$ac_ext >&5
3354 eval "ac_cv_func_$ac_func=no"
3359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3360 echo "$ac_t""yes" 1>&6
3361 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3362 cat >> confdefs.h
<<EOF
3363 #define $ac_tr_func 1
3367 echo "$ac_t""no" 1>&6
3375 for ac_func
in sethostent endhostent getnetent setnetent endnetent getprotoent endprotoent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof
3377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3378 echo "configure:3379: checking for $ac_func" >&5
3379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 cat > conftest.
$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 /* System header to define __stub macros and hopefully few prototypes,
3386 which can conflict with char $ac_func(); below. */
3388 /* Override any gcc2 internal prototype to avoid an error. */
3389 /* We use char because int might match the return type of a gcc2
3390 builtin and then its argument prototype would still apply. */
3395 /* The GNU C library defines this for functions which it implements
3396 to always fail with ENOSYS. Some functions are actually named
3397 something starting with __ and the normal name is an alias. */
3398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3406 if { (eval echo configure
:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3408 eval "ac_cv_func_$ac_func=yes"
3410 echo "configure: failed program was:" >&5
3411 cat conftest.
$ac_ext >&5
3413 eval "ac_cv_func_$ac_func=no"
3418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3419 echo "$ac_t""yes" 1>&6
3420 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3421 cat >> confdefs.h
<<EOF
3422 #define $ac_tr_func 1
3426 echo "$ac_t""no" 1>&6
3432 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
3433 echo "configure:3434: checking for restartable system calls" >&5
3434 if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 if test $ac_cv_func_sigaction = yes; then
3438 cat > conftest.
$ac_ext <<EOF
3439 #line 3440 "configure"
3440 #include "confdefs.h"
3446 if { (eval echo configure
:3447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3450 echo "configure: failed program was:" >&5
3451 cat conftest.
$ac_ext >&5
3461 echo "$ac_t""$scm_cv_restarts" 1>&6
3462 if test $scm_cv_restarts = yes; then
3463 cat >> confdefs.h
<<\EOF
3464 #define HAVE_RESTARTS 1
3469 if test "$ac_cv_header_regex_h" = yes ||
3470 test "$ac_cv_header_rxposix_h" = yes ||
3471 test "$ac_cv_header_rx_rxposix_h" = yes; then
3472 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3473 echo "configure:3474: checking for regcomp" >&5
3474 if eval "test \"`echo '$''{'ac_cv_func_regcomp_norx'+set}'`\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3477 cat > conftest.
$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 /* System header to define __stub macros and hopefully few prototypes,
3481 which can conflict with char regcomp(); below. */
3483 /* Override any gcc2 internal prototype to avoid an error. */
3484 /* We use char because int might match the return type of a gcc2
3485 builtin and then its argument prototype would still apply. */
3490 /* The GNU C library defines this for functions which it implements
3491 to always fail with ENOSYS. Some functions are actually named
3492 something starting with __ and the normal name is an alias. */
3493 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3501 if { (eval echo configure
:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3503 eval "ac_cv_func_regcomp_norx=yes"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.
$ac_ext >&5
3508 eval "ac_cv_func_regcomp_norx=no"
3513 if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3515 LIBOBJS
="regex-posix.o $LIBOBJS"
3517 echo "$ac_t""no" 1>&6
3518 echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
3519 echo "configure:3520: checking for main in -lrx" >&5
3520 ac_lib_var
=`echo rx'_'main | sed 'y%./+-%__p_%'`
3521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3524 ac_save_LIBS
="$LIBS"
3526 cat > conftest.
$ac_ext <<EOF
3527 #line 3528 "configure"
3528 #include "confdefs.h"
3534 if { (eval echo configure
:3535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3536 eval "ac_cv_lib_$ac_lib_var=yes"
3538 echo "configure: failed program was:" >&5
3539 cat conftest.
$ac_ext >&5
3541 eval "ac_cv_lib_$ac_lib_var=no"
3544 LIBS
="$ac_save_LIBS"
3547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3549 ac_tr_lib
=HAVE_LIB
`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3551 cat >> confdefs.h
<<EOF
3552 #define $ac_tr_lib 1
3558 echo "$ac_t""no" 1>&6
3561 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3562 echo "configure:3563: checking for regcomp" >&5
3563 if eval "test \"`echo '$''{'ac_cv_func_regcomp_rx'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 cat > conftest.
$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 /* System header to define __stub macros and hopefully few prototypes,
3570 which can conflict with char regcomp(); below. */
3572 /* Override any gcc2 internal prototype to avoid an error. */
3573 /* We use char because int might match the return type of a gcc2
3574 builtin and then its argument prototype would still apply. */
3579 /* The GNU C library defines this for functions which it implements
3580 to always fail with ENOSYS. Some functions are actually named
3581 something starting with __ and the normal name is an alias. */
3582 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3590 if { (eval echo configure
:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3592 eval "ac_cv_func_regcomp_rx=yes"
3594 echo "configure: failed program was:" >&5
3595 cat conftest.
$ac_ext >&5
3597 eval "ac_cv_func_regcomp_rx=no"
3602 if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3604 LIBOBJS
="regex-posix.o $LIBOBJS"
3606 echo "$ac_t""no" 1>&6
3612 if test "$ac_cv_func_regcomp_norx" = yes ||
3613 test "$ac_cv_func_regcomp_rx" = yes; then
3614 cat >> confdefs.h
<<\EOF
3615 #define HAVE_REGCOMP 1
3621 for ac_func
in inet_aton putenv strerror
3623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3624 echo "configure:3625: checking for $ac_func" >&5
3625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 cat > conftest.
$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3631 /* System header to define __stub macros and hopefully few prototypes,
3632 which can conflict with char $ac_func(); below. */
3634 /* Override any gcc2 internal prototype to avoid an error. */
3635 /* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3641 /* The GNU C library defines this for functions which it implements
3642 to always fail with ENOSYS. Some functions are actually named
3643 something starting with __ and the normal name is an alias. */
3644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3652 if { (eval echo configure
:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3654 eval "ac_cv_func_$ac_func=yes"
3656 echo "configure: failed program was:" >&5
3657 cat conftest.
$ac_ext >&5
3659 eval "ac_cv_func_$ac_func=no"
3664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3665 echo "$ac_t""yes" 1>&6
3666 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3667 cat >> confdefs.h
<<EOF
3668 #define $ac_tr_func 1
3672 echo "$ac_t""no" 1>&6
3673 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3679 # When testing for the presence of alloca, we need to add alloca.o
3680 # explicitly to LIBOBJS to make sure that it is translated to
3681 # `alloca.lo' for libtool later on. This can and should be done more cleanly.
3682 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3683 # for constant arguments. Useless!
3684 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3685 echo "configure:3686: checking for working alloca.h" >&5
3686 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 cat > conftest.
$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3694 char *p = alloca(2 * sizeof(int));
3697 if { (eval echo configure
:3698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3699 ac_cv_header_alloca_h
=yes
3701 echo "configure: failed program was:" >&5
3702 cat conftest.
$ac_ext >&5
3704 ac_cv_header_alloca_h
=no
3709 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3710 if test $ac_cv_header_alloca_h = yes; then
3711 cat >> confdefs.h
<<\EOF
3712 #define HAVE_ALLOCA_H 1
3717 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3718 echo "configure:3719: checking for alloca" >&5
3719 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3722 cat > conftest.
$ac_ext <<EOF
3723 #line 3724 "configure"
3724 #include "confdefs.h"
3727 # define alloca __builtin_alloca
3730 # include <malloc.h>
3731 # define alloca _alloca
3734 # include <alloca.h>
3739 # ifndef alloca /* predefined by HP cc +Olibcalls */
3748 char *p = (char *) alloca(1);
3751 if { (eval echo configure
:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3753 ac_cv_func_alloca_works
=yes
3755 echo "configure: failed program was:" >&5
3756 cat conftest.
$ac_ext >&5
3758 ac_cv_func_alloca_works
=no
3763 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3764 if test $ac_cv_func_alloca_works = yes; then
3765 cat >> confdefs.h
<<\EOF
3766 #define HAVE_ALLOCA 1
3771 if test $ac_cv_func_alloca_works = no
; then
3772 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3773 # that cause trouble. Some versions do not even contain alloca or
3774 # contain a buggy version. If you still want to use their alloca,
3775 # use ar to extract alloca.o from them instead of compiling alloca.c.
3776 ALLOCA
=alloca.
${ac_objext}
3777 cat >> confdefs.h
<<\EOF
3782 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3783 echo "configure:3784: checking whether alloca needs Cray hooks" >&5
3784 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3787 cat > conftest.
$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 #if defined(CRAY) && ! defined(CRAY2)
3797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798 egrep "webecray" >/dev
/null
2>&1; then
3809 echo "$ac_t""$ac_cv_os_cray" 1>&6
3810 if test $ac_cv_os_cray = yes; then
3811 for ac_func
in _getb67 GETB67 getb67
; do
3812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3813 echo "configure:3814: checking for $ac_func" >&5
3814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 cat > conftest.
$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3820 /* System header to define __stub macros and hopefully few prototypes,
3821 which can conflict with char $ac_func(); below. */
3823 /* Override any gcc2 internal prototype to avoid an error. */
3824 /* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */
3830 /* The GNU C library defines this for functions which it implements
3831 to always fail with ENOSYS. Some functions are actually named
3832 something starting with __ and the normal name is an alias. */
3833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3841 if { (eval echo configure
:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3843 eval "ac_cv_func_$ac_func=yes"
3845 echo "configure: failed program was:" >&5
3846 cat conftest.
$ac_ext >&5
3848 eval "ac_cv_func_$ac_func=no"
3853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3855 cat >> confdefs.h
<<EOF
3856 #define CRAY_STACKSEG_END $ac_func
3861 echo "$ac_t""no" 1>&6
3867 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3868 echo "configure:3869: checking stack direction for C alloca" >&5
3869 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3872 if test "$cross_compiling" = yes; then
3873 ac_cv_c_stack_direction
=0
3875 cat > conftest.
$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3878 find_stack_direction ()
3880 static char *addr = 0;
3885 return find_stack_direction ();
3888 return (&dummy > addr) ? 1 : -1;
3892 exit (find_stack_direction() < 0);
3895 if { (eval echo configure
:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3897 ac_cv_c_stack_direction
=1
3899 echo "configure: failed program was:" >&5
3900 cat conftest.
$ac_ext >&5
3902 ac_cv_c_stack_direction
=-1
3909 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3910 cat >> confdefs.h
<<EOF
3911 #define STACK_DIRECTION $ac_cv_c_stack_direction
3916 if test "$ALLOCA" = "alloca.o"; then LIBOBJS
="alloca.o $LIBOBJS"; fi
3918 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3919 echo "configure:3920: checking for st_rdev in struct stat" >&5
3920 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3923 cat > conftest.
$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 #include <sys/types.h>
3927 #include <sys/stat.h>
3929 struct stat s; s.st_rdev;
3932 if { (eval echo configure
:3933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3934 ac_cv_struct_st_rdev
=yes
3936 echo "configure: failed program was:" >&5
3937 cat conftest.
$ac_ext >&5
3939 ac_cv_struct_st_rdev
=no
3944 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3945 if test $ac_cv_struct_st_rdev = yes; then
3946 cat >> confdefs.h
<<\EOF
3947 #define HAVE_ST_RDEV 1
3952 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3953 echo "configure:3954: checking for st_blksize in struct stat" >&5
3954 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 cat > conftest.
$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3960 #include <sys/types.h>
3961 #include <sys/stat.h>
3963 struct stat s; s.st_blksize;
3966 if { (eval echo configure
:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 ac_cv_struct_st_blksize
=yes
3970 echo "configure: failed program was:" >&5
3971 cat conftest.
$ac_ext >&5
3973 ac_cv_struct_st_blksize
=no
3978 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3979 if test $ac_cv_struct_st_blksize = yes; then
3980 cat >> confdefs.h
<<\EOF
3981 #define HAVE_ST_BLKSIZE 1
3987 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
3988 # LIBOBJS, which we don't need. This seems more direct.
3989 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3990 echo "configure:3991: checking for st_blocks in struct stat" >&5
3991 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3994 cat > conftest.
$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3997 #include <sys/types.h>
3998 #include <sys/stat.h>
4000 struct stat s; s.st_blocks;
4003 if { (eval echo configure
:4004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4005 ac_cv_struct_st_blocks
=yes
4007 echo "configure: failed program was:" >&5
4008 cat conftest.
$ac_ext >&5
4010 ac_cv_struct_st_blocks
=no
4015 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
4016 if test $ac_cv_struct_st_blocks = yes; then
4017 cat >> confdefs.h
<<\EOF
4018 #define HAVE_ST_BLOCKS 1
4023 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4024 echo "configure:4025: checking whether struct tm is in sys/time.h or time.h" >&5
4025 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4028 cat > conftest.
$ac_ext <<EOF
4029 #line 4030 "configure"
4030 #include "confdefs.h"
4031 #include <sys/types.h>
4034 struct tm *tp; tp->tm_sec;
4037 if { (eval echo configure
:4038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4039 ac_cv_struct_tm
=time.h
4041 echo "configure: failed program was:" >&5
4042 cat conftest.
$ac_ext >&5
4044 ac_cv_struct_tm
=sys
/time.h
4049 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4050 if test $ac_cv_struct_tm = sys
/time.h
; then
4051 cat >> confdefs.h
<<\EOF
4052 #define TM_IN_SYS_TIME 1
4057 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4058 echo "configure:4059: checking for tm_zone in struct tm" >&5
4059 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4062 cat > conftest.
$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4065 #include <sys/types.h>
4066 #include <$ac_cv_struct_tm>
4068 struct tm tm; tm.tm_zone;
4071 if { (eval echo configure
:4072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4073 ac_cv_struct_tm_zone
=yes
4075 echo "configure: failed program was:" >&5
4076 cat conftest.
$ac_ext >&5
4078 ac_cv_struct_tm_zone
=no
4083 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4084 if test "$ac_cv_struct_tm_zone" = yes; then
4085 cat >> confdefs.h
<<\EOF
4086 #define HAVE_TM_ZONE 1
4090 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4091 echo "configure:4092: checking for tzname" >&5
4092 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4095 cat > conftest.
$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4099 #ifndef tzname /* For SGI. */
4100 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4106 if { (eval echo configure
:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4108 ac_cv_var_tzname
=yes
4110 echo "configure: failed program was:" >&5
4111 cat conftest.
$ac_ext >&5
4118 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4119 if test $ac_cv_var_tzname = yes; then
4120 cat >> confdefs.h
<<\EOF
4121 #define HAVE_TZNAME 1
4128 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
4129 echo "configure:4130: checking whether we need POSIX to get struct utimbuf" >&5
4130 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4133 cat > conftest.
$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4138 #include <sys/utime.h>
4145 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4146 { (eval echo configure
:4147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4147 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4148 if test -z "$ac_err"; then
4150 guile_cv_struct_utimbuf_needs_posix
=no
4153 echo "configure: failed program was:" >&5
4154 cat conftest.
$ac_ext >&5
4156 guile_cv_struct_utimbuf_needs_posix
=yes
4161 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
4162 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
4163 cat >> confdefs.h
<<\EOF
4164 #define UTIMBUF_NEEDS_POSIX 1
4169 #--------------------------------------------------------------------
4171 # Which way does the stack grow?
4173 #--------------------------------------------------------------------
4175 if test "$cross_compiling" = yes; then
4176 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
4178 cat > conftest.
$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 aux (l) unsigned long l;
4182 { int x; exit (l >= ((unsigned long)&x)); }
4183 main () { int q; aux((unsigned long)&q); }
4185 if { (eval echo configure
:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4187 cat >> confdefs.h
<<\EOF
4188 #define SCM_STACK_GROWS_UP 1
4192 echo "configure: failed program was:" >&5
4193 cat conftest.
$ac_ext >&5
4200 if test "$cross_compiling" = yes; then
4201 cat >> confdefs.h
<<\EOF
4202 #define SCM_SINGLES 1
4205 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
4207 cat > conftest.
$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4210 main () { exit (sizeof(float) != sizeof(long)); }
4212 if { (eval echo configure
:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4214 cat >> confdefs.h
<<\EOF
4215 #define SCM_SINGLES 1
4219 echo "configure: failed program was:" >&5
4220 cat conftest.
$ac_ext >&5
4226 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
4227 echo "configure:4228: checking for struct linger" >&5
4228 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 cat > conftest.
$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4235 #include <sys/types.h>
4236 #include <sys/socket.h>
4238 struct linger lgr; lgr.l_linger = 100
4241 if { (eval echo configure
:4242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4243 scm_cv_struct_linger
="yes"
4245 echo "configure: failed program was:" >&5
4246 cat conftest.
$ac_ext >&5
4248 scm_cv_struct_linger
="no"
4253 echo "$ac_t""$scm_cv_struct_linger" 1>&6
4254 if test $scm_cv_struct_linger = yes; then
4255 cat >> confdefs.h
<<\EOF
4256 #define HAVE_STRUCT_LINGER 1
4261 #--------------------------------------------------------------------
4263 # How can you violate a stdio abstraction by setting a stream's fd?
4265 #--------------------------------------------------------------------
4267 echo $ac_n "checking how to set a stream file descriptor""... $ac_c" 1>&6
4268 echo "configure:4269: checking how to set a stream file descriptor" >&5
4269 if eval "test \"`echo '$''{'scm_cv_fd_setter'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 cat > conftest.
$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4280 if { (eval echo configure
:4281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4282 scm_cv_fd_setter
="_file"
4284 echo "configure: failed program was:" >&5
4285 cat conftest.
$ac_ext >&5
4287 cat > conftest.
$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4295 if { (eval echo configure
:4296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4297 scm_cv_fd_setter
="_fileno"
4299 echo "configure: failed program was:" >&5
4300 cat conftest.
$ac_ext >&5
4310 if test "$scm_cv_fd_setter"; then
4311 echo "$ac_t""$scm_cv_fd_setter" 1>&6
4312 cat >> confdefs.h
<<EOF
4313 #define FD_SETTER $scm_cv_fd_setter
4317 echo "$ac_t""we couldn't do it!" 1>&6
4320 #--------------------------------------------------------------------
4321 # How to find out whether a FILE structure contains buffered data.
4322 # From Tk we have the following list:
4323 # _cnt: Most UNIX systems
4327 # Or, in GNU libc there are two fields, _gptr and _egptr, which
4328 # have to be compared.
4329 # These can also be known as _IO_read_ptr and _IO_read_end.
4330 #--------------------------------------------------------------------
4332 echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
4333 echo "configure:4334: checking how to get buffer char count from FILE structure" >&5
4334 if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 cat > conftest.
$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4342 FILE *f = stdin; f->_cnt = 0
4345 if { (eval echo configure
:4346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4347 scm_cv_struct_file_count
="_cnt"
4349 echo "configure: failed program was:" >&5
4350 cat conftest.
$ac_ext >&5
4352 cat > conftest.
$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4357 FILE *f = stdin; f->_r = 0
4360 if { (eval echo configure
:4361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4362 scm_cv_struct_file_count
="_r"
4364 echo "configure: failed program was:" >&5
4365 cat conftest.
$ac_ext >&5
4367 cat > conftest.
$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4372 FILE *f = stdin; f->readCount = 0
4375 if { (eval echo configure
:4376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4377 scm_cv_struct_file_count
="readCount"
4379 echo "configure: failed program was:" >&5
4380 cat conftest.
$ac_ext >&5
4382 scm_cv_struct_file_count
=""
4391 if test "$scm_cv_struct_file_count"; then
4392 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
4393 cat >> confdefs.h
<<EOF
4394 #define FILE_CNT_FIELD $scm_cv_struct_file_count
4398 if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 cat > conftest.
$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4406 FILE *f = stdin; f->_gptr = f->egptr;
4409 if { (eval echo configure
:4410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4411 scm_cv_struct_file_gptr
=1
4413 echo "configure: failed program was:" >&5
4414 cat conftest.
$ac_ext >&5
4416 scm_cv_struct_file_gptr
=""
4421 if test "$scm_cv_struct_gptr"; then
4422 echo "$ac_t""gptr" 1>&6
4423 cat >> confdefs.h
<<EOF
4424 #define FILE_CNT_GPTR $scm_cv_struct_file_gptr
4428 if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4431 cat > conftest.
$ac_ext <<EOF
4432 #line 4433 "configure"
4433 #include "confdefs.h"
4436 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
4439 if { (eval echo configure
:4440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4441 scm_cv_struct_file_readptr
=1
4443 echo "configure: failed program was:" >&5
4444 cat conftest.
$ac_ext >&5
4449 if test "$scm_cv_struct_file_readptr"; then
4450 echo "$ac_t""read_ptr" 1>&6
4451 cat >> confdefs.h
<<EOF
4452 #define FILE_CNT_READPTR $scm_cv_struct_file_readptr
4456 echo "$ac_t""we couldn't do it!" 1>&6
4461 #--------------------------------------------------------------------
4463 # Flags for thread support
4465 #--------------------------------------------------------------------
4467 ### What thread package has the user asked for?
4468 # Check whether --with-threads or --without-threads was given.
4469 if test "${with_threads+set}" = set; then
4470 withval
="$with_threads"
4477 ### Turn $with_threads into either the name of a threads package, like
4478 ### `qt', or `no', meaning that threads should not be supported.
4479 echo $ac_n "checking whether to support threads""... $ac_c" 1>&6
4480 echo "configure:4481: checking whether to support threads" >&5
4481 case "$with_threads" in
4482 "yes" |
"qt" |
"coop" |
"")
4488 { echo "configure: error: invalid value for --with-threads: $with_threads" 1>&2; exit 1; }
4491 echo "$ac_t""$with_threads" 1>&6
4493 ## Make sure the threads package we've chosen is actually supported on
4494 ## the present platform.
4495 case "${with_threads}" in
4497 ## This configures the QuickThreads package, and sets or clears
4498 ## the THREAD_PACKAGE variable if qthreads don't configure
4503 echo $ac_n "checking QuickThreads configuration""... $ac_c" 1>&6
4504 echo "configure:4505: checking QuickThreads configuration" >&5
4505 # How can we refer to the qt source directory from within the qt build
4506 # directory? For headers, we can rely on the fact that the qt src
4507 # directory appears in the #include path.
4508 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
4523 qtmds_s
=md
/mips-irix5.s
4525 qtdmdb_s
=md
/mips_b.s
4532 qtdmdb_s
=md
/mips_b.s
4535 port_name
=sparc-sunos
4539 qtdmdb_s
=md
/_sparc_b.s
4546 qtdmdb_s
=md
/sparc_b.s
4556 echo "Unknown configuration; threads package disabled"
4562 # Did configuration succeed?
4563 if test -n "$THREAD_PACKAGE"; then
4564 echo "$ac_t""$port_name" 1>&6
4565 QTHREAD_LTLIBS
=libqthreads.la
4566 THREAD_CPPFLAGS
="-I$qtsrcdir -I../qt"
4567 THREAD_LIBS_LOCAL
="../qt/libqthreads.la"
4568 THREAD_LIBS_INSTALLED
="-lqthreads"
4570 echo "$ac_t""none; disabled" 1>&6
4586 ## If we're using threads, bring in some other parts of Guile which
4588 if test "${THREAD_PACKAGE}" != "" ; then
4589 cat >> confdefs.h
<<\EOF
4590 #define USE_THREADS 1
4594 ## Include the Guile thread interface in the library...
4595 LIBOBJS
="$LIBOBJS threads.o"
4597 ## ... and tell it which package to talk to.
4598 case "${THREAD_PACKAGE}" in
4600 cat >> confdefs.h
<<\EOF
4601 #define USE_COOP_THREADS 1
4606 { echo "configure: error: invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE}" 1>&2; exit 1; }
4610 ## Bring in scm_internal_select, if appropriate.
4611 if test $ac_cv_func_gettimeofday = yes &&
4612 test $ac_cv_func_select = yes; then
4613 LIBOBJS
="$LIBOBJS iselect.o"
4614 cat >> confdefs.h
<<\EOF
4615 #define GUILE_ISELECT 1
4621 ## If we're using GCC, ask for aggressive warnings.
4623 yes ) CFLAGS
="$CFLAGS -Wall -Wpointer-arith" ;;
4626 for ac_prog
in mawk gawk nawk
awk
4628 # Extract the first word of "$ac_prog", so it can be a program name with args.
4629 set dummy
$ac_prog; ac_word
=$2
4630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4631 echo "configure:4632: checking for $ac_word" >&5
4632 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4635 if test -n "$AWK"; then
4636 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4638 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4639 for ac_dir
in $PATH; do
4640 test -z "$ac_dir" && ac_dir
=.
4641 if test -f $ac_dir/$ac_word; then
4642 ac_cv_prog_AWK
="$ac_prog"
4649 AWK
="$ac_cv_prog_AWK"
4650 if test -n "$AWK"; then
4651 echo "$ac_t""$AWK" 1>&6
4653 echo "$ac_t""no" 1>&6
4656 test -n "$AWK" && break
4660 ## If we're creating a shared library (using libtool!), then we'll
4661 ## need to generate a list of .lo files corresponding to the .o files
4662 ## given in LIBOBJS. We'll call it LIBLOBJS.
4663 LIBLOBJS
="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
4669 GUILE_LIBS
="$LDFLAGS $THREAD_LIBS_INSTALLED $LIBS"
4672 GUILE_STAMP
="`date`"
4679 cat > confcache
<<\EOF
4680 # This file is a shell script that caches the results of configure
4681 # tests run on this system so they can be shared between configure
4682 # scripts and configure runs. It is not useful on other systems.
4683 # If it contains results you don't want to keep, you may remove or edit it.
4685 # By default, configure uses ./config.cache as the cache file,
4686 # creating it if it does not exist already. You can give configure
4687 # the --cache-file=FILE option to use a different cache file; that is
4688 # what configure does when it calls configure scripts in
4689 # subdirectories, so they share the cache.
4690 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4691 # config.status only pays attention to the cache file if you give it the
4692 # --recheck option to rerun configure.
4695 # The following way of writing the cache mishandles newlines in values,
4696 # but we know of no workaround that is simple, portable, and efficient.
4697 # So, don't put newlines in cache variables' values.
4698 # Ultrix sh set writes to stderr and can't be redirected directly,
4699 # and sets the high bit in the cache file unless we assign to the vars.
4701 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
4703 # `set' does not quote correctly, so add quotes (double-quote substitution
4704 # turns \\\\ into \\, and sed turns \\ into \).
4706 -e "s/'/'\\\\''/g" \
4707 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4710 # `set' quotes correctly as required by POSIX, so do not add quotes.
4711 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4714 if cmp -s $cache_file confcache
; then
4717 if test -w $cache_file; then
4718 echo "updating cache $cache_file"
4719 cat confcache
> $cache_file
4721 echo "not updating unwritable cache $cache_file"
4726 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4728 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4729 # Let make expand exec_prefix.
4730 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4732 # Any assignment to VPATH causes Sun make to only execute
4733 # the first set of double-colon rules, so remove it if not needed.
4734 # If there is a colon in the path, we need to keep it.
4735 if test "x$srcdir" = x.
; then
4736 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4739 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4741 DEFS
=-DHAVE_CONFIG_H
4743 # Without the "./", some shells look in PATH for config.status.
4744 : ${CONFIG_STATUS=./config.status}
4746 echo creating
$CONFIG_STATUS
4747 rm -f $CONFIG_STATUS
4748 cat > $CONFIG_STATUS <<EOF
4750 # Generated automatically by configure.
4751 # Run this file to recreate the current configuration.
4752 # This directory was configured as follows,
4753 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4755 # $0 $ac_configure_args
4757 # Compiler output produced by configure, useful for debugging
4758 # configure, is in ./config.log if it exists.
4760 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4763 case "\$ac_option" in
4764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4765 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4766 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4767 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4768 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
4770 -help | --help | --hel | --he | --h)
4771 echo "\$ac_cs_usage"; exit 0 ;;
4772 *) echo "\$ac_cs_usage"; exit 1 ;;
4776 ac_given_srcdir=$srcdir
4777 ac_given_INSTALL="$INSTALL"
4779 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
4781 cat >> $CONFIG_STATUS <<EOF
4783 # Protect against being on the right side of a sed subst in config.status.
4784 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4785 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4789 s%@CFLAGS@%$CFLAGS%g
4790 s%@CPPFLAGS@%$CPPFLAGS%g
4791 s%@CXXFLAGS@%$CXXFLAGS%g
4793 s%@LDFLAGS@%$LDFLAGS%g
4795 s%@exec_prefix@%$exec_prefix%g
4796 s%@prefix@%$prefix%g
4797 s%@program_transform_name@%$program_transform_name%g
4798 s%@bindir@%$bindir%g
4799 s%@sbindir@%$sbindir%g
4800 s%@libexecdir@%$libexecdir%g
4801 s%@datadir@%$datadir%g
4802 s%@sysconfdir@%$sysconfdir%g
4803 s%@sharedstatedir@%$sharedstatedir%g
4804 s%@localstatedir@%$localstatedir%g
4805 s%@libdir@%$libdir%g
4806 s%@includedir@%$includedir%g
4807 s%@oldincludedir@%$oldincludedir%g
4808 s%@infodir@%$infodir%g
4809 s%@mandir@%$mandir%g
4810 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4811 s%@INSTALL_DATA@%$INSTALL_DATA%g
4812 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4813 s%@PACKAGE@%$PACKAGE%g
4814 s%@VERSION@%$VERSION%g
4815 s%@ACLOCAL@%$ACLOCAL%g
4816 s%@AUTOCONF@%$AUTOCONF%g
4817 s%@AUTOMAKE@%$AUTOMAKE%g
4818 s%@AUTOHEADER@%$AUTOHEADER%g
4819 s%@MAKEINFO@%$MAKEINFO%g
4820 s%@SET_MAKE@%$SET_MAKE%g
4825 s%@host_alias@%$host_alias%g
4826 s%@host_cpu@%$host_cpu%g
4827 s%@host_vendor@%$host_vendor%g
4828 s%@host_os@%$host_os%g
4830 s%@build_alias@%$build_alias%g
4831 s%@build_cpu@%$build_cpu%g
4832 s%@build_vendor@%$build_vendor%g
4833 s%@build_os@%$build_os%g
4834 s%@RANLIB@%$RANLIB%g
4838 s%@LIBTOOL@%$LIBTOOL%g
4839 s%@DLLTOOL@%$DLLTOOL%g
4841 s%@LIBOBJS@%$LIBOBJS%g
4842 s%@ALLOCA@%$ALLOCA%g
4843 s%@QTHREAD_LTLIBS@%$QTHREAD_LTLIBS%g
4844 s%@qtmd_h@%$qtmd_h%g
4845 s%@qtmds_s@%$qtmds_s%g
4846 s%@qtmdc_c@%$qtmdc_c%g
4847 s%@qtdmdb_s@%$qtdmdb_s%g
4848 s%@THREAD_PACKAGE@%$THREAD_PACKAGE%g
4849 s%@THREAD_CPPFLAGS@%$THREAD_CPPFLAGS%g
4850 s%@THREAD_LIBS_LOCAL@%$THREAD_LIBS_LOCAL%g
4851 s%@THREAD_LIBS_INSTALLED@%$THREAD_LIBS_INSTALLED%g
4853 s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
4854 s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
4855 s%@GUILE_VERSION@%$GUILE_VERSION%g
4856 s%@GUILE_LIBS@%$GUILE_LIBS%g
4857 s%@GUILE_STAMP@%$GUILE_STAMP%g
4858 s%@LIBLOBJS@%$LIBLOBJS%g
4863 cat >> $CONFIG_STATUS <<\EOF
4865 # Split the substitutions into bite-sized pieces for seds with
4866 # small command number limits, like on Digital OSF/1 and HP-UX.
4867 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4868 ac_file
=1 # Number of current file.
4869 ac_beg
=1 # First line for current file.
4870 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4873 while $ac_more_lines; do
4874 if test $ac_beg -gt 1; then
4875 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4877 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4879 if test ! -s conftest.s
$ac_file; then
4881 rm -f conftest.s
$ac_file
4883 if test -z "$ac_sed_cmds"; then
4884 ac_sed_cmds
="sed -f conftest.s$ac_file"
4886 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4888 ac_file
=`expr $ac_file + 1`
4890 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4893 if test -z "$ac_sed_cmds"; then
4898 cat >> $CONFIG_STATUS <<EOF
4900 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"}
4902 cat >> $CONFIG_STATUS <<\EOF
4903 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4904 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4906 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4907 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4908 *) ac_file_in
="${ac_file}.in" ;;
4911 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4913 # Remove last slash and all that follows it. Not all systems have dirname.
4914 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4915 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4916 # The file is in a subdirectory.
4917 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4918 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4919 # A "../" for each directory in $ac_dir_suffix.
4920 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4922 ac_dir_suffix
= ac_dots
=
4925 case "$ac_given_srcdir" in
4927 if test -z "$ac_dots"; then top_srcdir
=.
4928 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4929 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4931 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4932 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4935 case "$ac_given_INSTALL" in
4936 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4937 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4940 echo creating
"$ac_file"
4942 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4944 *Makefile
*) ac_comsub
="1i\\
4945 # $configure_input" ;;
4949 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4951 s%@configure_input@%$configure_input%g
4952 s%@srcdir@%$srcdir%g
4953 s%@top_srcdir@%$top_srcdir%g
4954 s%@INSTALL@%$INSTALL%g
4955 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4959 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4960 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4962 # ac_d sets the value in "#define NAME VALUE" lines.
4963 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4964 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4967 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4968 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4969 ac_uB
='\([ ]\)%\1#\2define\3'
4972 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4973 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4974 ac_eB
='$%\1#\2define\3'
4978 if test "${CONFIG_HEADERS+set}" != set; then
4980 cat >> $CONFIG_STATUS <<EOF
4981 CONFIG_HEADERS="libguile/scmconfig.h"
4983 cat >> $CONFIG_STATUS <<\EOF
4985 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4986 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4988 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4989 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4990 *) ac_file_in
="${ac_file}.in" ;;
4993 echo creating
$ac_file
4995 rm -f conftest.frag conftest.
in conftest.out
4996 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4997 cat $ac_file_inputs > conftest.
in
5001 # Transform confdefs.h into a sed script conftest.vals that substitutes
5002 # the proper values into config.h.in to produce config.h. And first:
5003 # Protect against being on the right side of a sed subst in config.status.
5004 # Protect against being in an unquoted here document in config.status.
5006 cat > conftest.hdr
<<\EOF
5009 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5013 sed -n -f conftest.hdr confdefs.h > conftest.vals
5016 # This sed command replaces #undef with comments. This is necessary, for
5017 # example, in the case of _POSIX_SOURCE, which is predefined and required
5018 # on some systems where configure will not decide to define it.
5019 cat >> conftest.vals <<\EOF
5020 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5023 # Break up conftest.vals because some shells have a limit on
5024 # the size of here documents, and old seds have small limits too.
5029 ac_lines=`grep -c . conftest.vals
`
5030 # grep -c gives empty output for an empty file on some AIX systems.
5031 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5032 # Write a limited-size here document to conftest.frag.
5033 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5034 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5036 sed -f conftest.frag conftest.in > conftest.out
5038 mv conftest.out conftest.in
5040 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5042 mv conftest.tail conftest.vals
5046 cat >> $CONFIG_STATUS <<\EOF
5047 rm -f conftest.frag conftest.h
5048 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5049 cat conftest.in >> conftest.h
5051 if cmp -s $ac_file conftest.h 2>/dev/null; then
5052 echo "$ac_file is unchanged"
5055 # Remove last slash and all that follows it. Not all systems have dirname.
5056 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5057 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5058 # The file is in a subdirectory.
5059 test ! -d "$ac_dir" && mkdir "$ac_dir"
5062 mv conftest.h $ac_file
5067 cat >> $CONFIG_STATUS <<EOF
5070 cat >> $CONFIG_STATUS <<\EOF
5071 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
5072 chmod +x libguile/guile-snarf
5075 chmod +x $CONFIG_STATUS
5076 rm -fr confdefs* $ac_clean_files
5077 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1