3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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 --enable-dynamic-linking Include support for dynamic linking"
20 --enable-guile-debug Include internal debugging functions"
22 --enable-shared[=PKGS] build shared libraries [default=yes]"
24 --enable-static[=PKGS] build static libraries [default=yes]"
26 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
28 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
30 --disable-libtool-lock avoid locking (might break parallel builds)"
32 --with-threads thread interface"
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
38 cache_file
=.
/config.cache
47 program_transform_name
=s
,x
,x
,
55 bindir
='${exec_prefix}/bin'
56 sbindir
='${exec_prefix}/sbin'
57 libexecdir
='${exec_prefix}/libexec'
58 datadir
='${prefix}/share'
59 sysconfdir
='${prefix}/etc'
60 sharedstatedir
='${prefix}/com'
61 localstatedir
='${prefix}/var'
62 libdir
='${exec_prefix}/lib'
63 includedir
='${prefix}/include'
64 oldincludedir
='/usr/include'
65 infodir
='${prefix}/info'
66 mandir
='${prefix}/man'
68 # Initialize some other variables.
71 SHELL
=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
97 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
98 bindir
="$ac_optarg" ;;
100 -build |
--build |
--buil |
--bui |
--bu)
102 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
103 build
="$ac_optarg" ;;
105 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
106 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
107 ac_prev
=cache_file
;;
108 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
109 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
110 cache_file
="$ac_optarg" ;;
112 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
114 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
116 datadir
="$ac_optarg" ;;
118 -disable-* |
--disable-*)
119 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* |
--enable-*)
128 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
141 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
142 |
--exec |
--exe |
--ex)
143 ac_prev
=exec_prefix
;;
144 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
145 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
146 |
--exec=* |
--exe=* |
--ex=*)
147 exec_prefix
="$ac_optarg" ;;
149 -gas |
--gas |
--ga |
--g)
150 # Obsolete; use --with-gas.
153 -help |
--help |
--hel |
--he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host |
--host |
--hos |
--ho)
210 -host=* |
--host=* |
--hos=* |
--ho=*)
213 -includedir |
--includedir |
--includedi |
--included |
--include \
214 |
--includ |
--inclu |
--incl |
--inc)
215 ac_prev
=includedir
;;
216 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
217 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
218 includedir
="$ac_optarg" ;;
220 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
222 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
223 infodir
="$ac_optarg" ;;
225 -libdir |
--libdir |
--libdi |
--libd)
227 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
228 libdir
="$ac_optarg" ;;
230 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
231 |
--libexe |
--libex |
--libe)
232 ac_prev
=libexecdir
;;
233 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
234 |
--libexe=* |
--libex=* |
--libe=*)
235 libexecdir
="$ac_optarg" ;;
237 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
238 |
--localstate |
--localstat |
--localsta |
--localst \
239 |
--locals |
--local |
--loca |
--loc |
--lo)
240 ac_prev
=localstatedir
;;
241 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
242 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
243 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
244 localstatedir
="$ac_optarg" ;;
246 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
248 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
249 mandir
="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
259 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
260 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
263 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
264 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
265 |
--oldin |
--oldi |
--old |
--ol |
--o)
266 ac_prev
=oldincludedir
;;
267 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
268 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
269 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
270 oldincludedir
="$ac_optarg" ;;
272 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
274 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
275 prefix
="$ac_optarg" ;;
277 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
278 |
--program-pre |
--program-pr |
--program-p)
279 ac_prev
=program_prefix
;;
280 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
281 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
282 program_prefix
="$ac_optarg" ;;
284 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
285 |
--program-suf |
--program-su |
--program-s)
286 ac_prev
=program_suffix
;;
287 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
288 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
289 program_suffix
="$ac_optarg" ;;
291 -program-transform-name |
--program-transform-name \
292 |
--program-transform-nam |
--program-transform-na \
293 |
--program-transform-n |
--program-transform- \
294 |
--program-transform |
--program-transfor \
295 |
--program-transfo |
--program-transf \
296 |
--program-trans |
--program-tran \
297 |
--progr-tra |
--program-tr |
--program-t)
298 ac_prev
=program_transform_name
;;
299 -program-transform-name=* |
--program-transform-name=* \
300 |
--program-transform-nam=* |
--program-transform-na=* \
301 |
--program-transform-n=* |
--program-transform-=* \
302 |
--program-transform=* |
--program-transfor=* \
303 |
--program-transfo=* |
--program-transf=* \
304 |
--program-trans=* |
--program-tran=* \
305 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
306 program_transform_name
="$ac_optarg" ;;
308 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
309 |
-silent |
--silent |
--silen |
--sile |
--sil)
312 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
314 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
316 sbindir
="$ac_optarg" ;;
318 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
319 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
320 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
322 ac_prev
=sharedstatedir
;;
323 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
324 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
325 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
327 sharedstatedir
="$ac_optarg" ;;
329 -site |
--site |
--sit)
331 -site=* |
--site=* |
--sit=*)
334 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
336 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
337 srcdir
="$ac_optarg" ;;
339 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
340 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
341 ac_prev
=sysconfdir
;;
342 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
343 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
344 sysconfdir
="$ac_optarg" ;;
346 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
348 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
349 target
="$ac_optarg" ;;
351 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
354 -version |
--version |
--versio |
--versi |
--vers)
355 echo "configure generated by autoconf version 2.13"
359 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package
=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* |
--without-*)
372 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
384 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
385 |
--x-incl |
--x-inc |
--x-in |
--x-i)
386 ac_prev
=x_includes
;;
387 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
388 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
389 x_includes
="$ac_optarg" ;;
391 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
392 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
393 ac_prev
=x_libraries
;;
394 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
395 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
396 x_libraries
="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE
; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
446 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
447 |
--no-cr |
--no-c) ;;
448 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
449 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
450 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest
* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file
=Makefile.
in
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted
=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted
=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE
; then
501 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file
in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp
='$CPP $CPPFLAGS'
524 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling
=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
539 ac_n
= ac_c
='\c' ac_t
=
543 .
$srcdir/GUILE-VERSION
545 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
546 if test -f $ac_dir/install-sh
; then
548 ac_install_sh
="$ac_aux_dir/install-sh -c"
550 elif test -f $ac_dir/install.sh
; then
552 ac_install_sh
="$ac_aux_dir/install.sh -c"
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559 ac_config_guess
=$ac_aux_dir/config.guess
560 ac_config_sub
=$ac_aux_dir/config.sub
561 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
563 # Find a good install program. We prefer a C program (faster),
564 # so one script is as good as another. But avoid the broken or
565 # incompatible versions:
566 # SysV /etc/install, /usr/sbin/install
567 # SunOS /usr/etc/install
570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
573 # ./install, which can be erroneously created by make from ./install.sh.
574 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
575 echo "configure:576: checking for a BSD compatible install" >&5
576 if test -z "$INSTALL"; then
577 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
578 echo $ac_n "(cached) $ac_c" 1>&6
580 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
581 for ac_dir
in $PATH; do
582 # Account for people who put trailing slashes in PATH elements.
584 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
586 # OSF1 and SCO ODT 3.0 have their own names for install.
587 # Don't use installbsd from OSF since it installs stuff as root
589 for ac_prog
in ginstall scoinst
install; do
590 if test -f $ac_dir/$ac_prog; then
591 if test $ac_prog = install &&
592 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
593 # AIX install. It has an incompatible calling convention.
596 ac_cv_path_install
="$ac_dir/$ac_prog -c"
607 if test "${ac_cv_path_install+set}" = set; then
608 INSTALL
="$ac_cv_path_install"
610 # As a last resort, use the slow shell script. We don't cache a
611 # path for INSTALL within a source directory, because that will
612 # break other packages using the cache if that directory is
613 # removed, or if the path is relative.
614 INSTALL
="$ac_install_sh"
617 echo "$ac_t""$INSTALL" 1>&6
619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
620 # It thinks the first close brace ends the variable substitution.
621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
625 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
627 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
628 echo "configure:629: checking whether build environment is sane" >&5
631 echo timestamp
> conftestfile
632 # Do `set' in a subshell so we don't clobber the current shell's
633 # arguments. Must try -L first in case configure is actually a
634 # symlink; some systems play weird games with the mod time of symlinks
635 # (eg FreeBSD returns the mod time of the symlink's containing
638 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
639 if test "$*" = "X"; then
641 set X
`ls -t $srcdir/configure conftestfile`
643 if test "$*" != "X $srcdir/configure conftestfile" \
644 && test "$*" != "X conftestfile $srcdir/configure"; then
646 # If neither matched, then we have a broken ls. This can happen
647 # if, for instance, CONFIG_SHELL is bash and it inherits a
648 # broken ls alias from the environment. This has actually
649 # happened. Such a system could not be considered "sane".
650 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
651 alias in your environment" 1>&2; exit 1; }
654 test "$2" = conftestfile
660 { echo "configure: error: newly created file is older than distributed files!
661 Check your system clock" 1>&2; exit 1; }
664 echo "$ac_t""yes" 1>&6
665 if test "$program_transform_name" = s
,x
,x
,; then
666 program_transform_name
=
668 # Double any \ or $. echo might interpret backslashes.
669 cat <<\EOF_SED
> conftestsed
670 s
,\\,\\\\,g
; s
,\$
,$$
,g
672 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
675 test "$program_prefix" != NONE
&&
676 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
677 # Use a double $ so make ignores it.
678 test "$program_suffix" != NONE
&&
679 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
681 # sed with no file args requires a program.
682 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
684 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
685 echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5
686 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
687 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6
690 cat > conftestmake
<<\EOF
692 @
echo 'ac_maketemp="${MAKE}"'
694 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
695 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
696 if test -n "$ac_maketemp"; then
697 eval ac_cv_prog_make_
${ac_make}_set
=yes
699 eval ac_cv_prog_make_
${ac_make}_set
=no
703 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
704 echo "$ac_t""yes" 1>&6
707 echo "$ac_t""no" 1>&6
708 SET_MAKE
="MAKE=${MAKE-make}"
716 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
717 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
722 missing_dir
=`cd $ac_aux_dir && pwd`
723 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
724 echo "configure:725: checking for working aclocal" >&5
725 # Run test in a subshell; some versions of sh will print an error if
726 # an executable is not found, even if stderr is redirected.
727 # Redirect stdin to placate older versions of autoconf. Sigh.
728 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
730 echo "$ac_t""found" 1>&6
732 ACLOCAL
="$missing_dir/missing aclocal"
733 echo "$ac_t""missing" 1>&6
736 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
737 echo "configure:738: checking for working autoconf" >&5
738 # Run test in a subshell; some versions of sh will print an error if
739 # an executable is not found, even if stderr is redirected.
740 # Redirect stdin to placate older versions of autoconf. Sigh.
741 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
743 echo "$ac_t""found" 1>&6
745 AUTOCONF
="$missing_dir/missing autoconf"
746 echo "$ac_t""missing" 1>&6
749 echo $ac_n "checking for working automake""... $ac_c" 1>&6
750 echo "configure:751: checking for working automake" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf. Sigh.
754 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
756 echo "$ac_t""found" 1>&6
758 AUTOMAKE
="$missing_dir/missing automake"
759 echo "$ac_t""missing" 1>&6
762 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
763 echo "configure:764: checking for working autoheader" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
768 AUTOHEADER
=autoheader
769 echo "$ac_t""found" 1>&6
771 AUTOHEADER
="$missing_dir/missing autoheader"
772 echo "$ac_t""missing" 1>&6
775 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
776 echo "configure:777: checking for working makeinfo" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
782 echo "$ac_t""found" 1>&6
784 MAKEINFO
="$missing_dir/missing makeinfo"
785 echo "$ac_t""missing" 1>&6
789 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
790 echo "configure:791: checking whether to enable maintainer-specific portions of Makefiles" >&5
791 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
792 if test "${enable_maintainer_mode+set}" = set; then
793 enableval
="$enable_maintainer_mode"
794 USE_MAINTAINER_MODE
=$enableval
796 USE_MAINTAINER_MODE
=no
799 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
802 if test $USE_MAINTAINER_MODE = yes; then
803 MAINTAINER_MODE_TRUE
=
804 MAINTAINER_MODE_FALSE
='#'
806 MAINTAINER_MODE_TRUE
='#'
807 MAINTAINER_MODE_FALSE
=
809 MAINT
=$MAINTAINER_MODE_TRUE
816 #--------------------------------------------------------------------
818 # Independent Subdirectories
820 #--------------------------------------------------------------------
822 subdirs
="guile-readline"
825 #--------------------------------------------------------------------
829 #--------------------------------------------------------------------
831 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
832 if test "${enable_dynamic_linking+set}" = set; then
833 enableval
="$enable_dynamic_linking"
836 enable_dynamic_linking
=yes
840 # Check whether --enable-guile-debug or --disable-guile-debug was given.
841 if test "${enable_guile_debug+set}" = set; then
842 enableval
="$enable_guile_debug"
846 if test "$enableval" = y ||
test "$enableval" = yes; then
847 cat >> confdefs.h
<<\EOF
848 #define GUILE_DEBUG 1
853 cat >> confdefs.h
<<\EOF
854 #define DEBUG_EXTENSIONS 1
857 cat >> confdefs.h
<<\EOF
858 #define READER_EXTENSIONS 1
862 #--------------------------------------------------------------------
864 # Extract the first word of "gcc", so it can be a program name with args.
865 set dummy gcc
; ac_word
=$2
866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
867 echo "configure:868: checking for $ac_word" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 if test -n "$CC"; then
872 ac_cv_prog_CC
="$CC" # Let the user override the test.
874 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
876 for ac_dir
in $ac_dummy; do
877 test -z "$ac_dir" && ac_dir
=.
878 if test -f $ac_dir/$ac_word; then
887 if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
890 echo "$ac_t""no" 1>&6
893 if test -z "$CC"; then
894 # Extract the first word of "cc", so it can be a program name with args.
895 set dummy cc
; ac_word
=$2
896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
897 echo "configure:898: checking for $ac_word" >&5
898 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
901 if test -n "$CC"; then
902 ac_cv_prog_CC
="$CC" # Let the user override the test.
904 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
907 for ac_dir
in $ac_dummy; do
908 test -z "$ac_dir" && ac_dir
=.
909 if test -f $ac_dir/$ac_word; then
910 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
919 if test $ac_prog_rejected = yes; then
920 # We found a bogon in the path, so make sure we never use it.
921 set dummy
$ac_cv_prog_CC
923 if test $# -gt 0; then
924 # We chose a different compiler from the bogus one.
925 # However, it has the same basename, so the bogon will be chosen
926 # first if we set CC to just the basename; use the full file name.
928 set dummy
"$ac_dir/$ac_word" "$@"
936 if test -n "$CC"; then
937 echo "$ac_t""$CC" 1>&6
939 echo "$ac_t""no" 1>&6
942 if test -z "$CC"; then
945 # Extract the first word of "cl", so it can be a program name with args.
946 set dummy cl
; ac_word
=$2
947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
948 echo "configure:949: checking for $ac_word" >&5
949 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
952 if test -n "$CC"; then
953 ac_cv_prog_CC
="$CC" # Let the user override the test.
955 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
957 for ac_dir
in $ac_dummy; do
958 test -z "$ac_dir" && ac_dir
=.
959 if test -f $ac_dir/$ac_word; then
968 if test -n "$CC"; then
969 echo "$ac_t""$CC" 1>&6
971 echo "$ac_t""no" 1>&6
976 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
979 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
980 echo "configure:981: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
984 ac_cpp
='$CPP $CPPFLAGS'
985 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
986 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
987 cross_compiling
=$ac_cv_prog_cc_cross
989 cat > conftest.
$ac_ext << EOF
991 #line 992 "configure"
992 #include "confdefs.h"
996 if { (eval echo configure
:997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
997 ac_cv_prog_cc_works
=yes
998 # If we can't run a trivial program, we are probably using a cross compiler.
999 if (.
/conftest
; exit) 2>/dev
/null
; then
1000 ac_cv_prog_cc_cross
=no
1002 ac_cv_prog_cc_cross
=yes
1005 echo "configure: failed program was:" >&5
1006 cat conftest.
$ac_ext >&5
1007 ac_cv_prog_cc_works
=no
1011 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1012 ac_cpp
='$CPP $CPPFLAGS'
1013 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1014 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1015 cross_compiling
=$ac_cv_prog_cc_cross
1017 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1018 if test $ac_cv_prog_cc_works = no
; then
1019 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1021 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1022 echo "configure:1023: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1023 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1024 cross_compiling
=$ac_cv_prog_cc_cross
1026 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether we are using GNU C" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 cat > conftest.c
<<EOF
1036 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1043 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1045 if test $ac_cv_prog_gcc = yes; then
1051 ac_test_CFLAGS
="${CFLAGS+set}"
1052 ac_save_CFLAGS
="$CFLAGS"
1054 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1055 echo "configure:1056: checking whether ${CC-cc} accepts -g" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 echo 'void f(){}' > conftest.c
1060 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1069 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1070 if test "$ac_test_CFLAGS" = set; then
1071 CFLAGS
="$ac_save_CFLAGS"
1072 elif test $ac_cv_prog_cc_g = yes; then
1073 if test "$GCC" = yes; then
1079 if test "$GCC" = yes; then
1086 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1087 echo "configure:1088: checking how to run the C preprocessor" >&5
1088 # On Suns, sometimes $CPP names a directory.
1089 if test -n "$CPP" && test -d "$CPP"; then
1092 if test -z "$CPP"; then
1093 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 # This must be in double quotes, not single quotes, because CPP may get
1097 # substituted into the Makefile and "${CC-cc}" will confuse make.
1099 # On the NeXT, cc -E runs the code through the compiler's parser,
1100 # not just through 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} -E -traditional-cpp"
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
1134 CPP
="${CC-cc} -nologo -E"
1135 cat > conftest.
$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1141 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1142 { (eval echo configure
:1143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1143 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1144 if test -z "$ac_err"; then
1148 echo "configure: failed program was:" >&5
1149 cat conftest.
$ac_ext >&5
1158 ac_cv_prog_CPP
="$CPP"
1160 CPP
="$ac_cv_prog_CPP"
1162 ac_cv_prog_CPP
="$CPP"
1164 echo "$ac_t""$CPP" 1>&6
1166 # Check whether --enable-shared or --disable-shared was given.
1167 if test "${enable_shared+set}" = set; then
1168 enableval
="$enable_shared"
1169 p
=${PACKAGE-default}
1170 case "$enableval" in
1171 yes) enable_shared
=yes ;;
1172 no
) enable_shared
=no
;;
1175 # Look at the argument we got. We use all the common list separators.
1176 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1177 for pkg
in $enableval; do
1178 if test "X$pkg" = "X$p"; then
1189 # Check whether --enable-static or --disable-static was given.
1190 if test "${enable_static+set}" = set; then
1191 enableval
="$enable_static"
1192 p
=${PACKAGE-default}
1193 case "$enableval" in
1194 yes) enable_static
=yes ;;
1195 no
) enable_static
=no
;;
1198 # Look at the argument we got. We use all the common list separators.
1199 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1200 for pkg
in $enableval; do
1201 if test "X$pkg" = "X$p"; then
1212 # Check whether --enable-fast-install or --disable-fast-install was given.
1213 if test "${enable_fast_install+set}" = set; then
1214 enableval
="$enable_fast_install"
1215 p
=${PACKAGE-default}
1216 case "$enableval" in
1217 yes) enable_fast_install
=yes ;;
1218 no
) enable_fast_install
=no
;;
1220 enable_fast_install
=no
1221 # Look at the argument we got. We use all the common list separators.
1222 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1223 for pkg
in $enableval; do
1224 if test "X$pkg" = "X$p"; then
1225 enable_fast_install
=yes
1232 enable_fast_install
=yes
1236 # Make sure we can run config.sub.
1237 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1238 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1241 echo $ac_n "checking host system type""... $ac_c" 1>&6
1242 echo "configure:1243: checking host system type" >&5
1245 case "$host_alias" in
1249 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1250 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1252 *) host_alias
=$nonopt ;;
1256 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1257 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1258 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1259 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1260 echo "$ac_t""$host" 1>&6
1262 echo $ac_n "checking build system type""... $ac_c" 1>&6
1263 echo "configure:1264: checking build system type" >&5
1266 case "$build_alias" in
1269 NONE
) build_alias
=$host_alias ;;
1270 *) build_alias
=$nonopt ;;
1274 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1275 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1276 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1277 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1278 echo "$ac_t""$build" 1>&6
1280 # Extract the first word of "ranlib", so it can be a program name with args.
1281 set dummy ranlib
; ac_word
=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 if test -n "$RANLIB"; then
1288 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1290 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1292 for ac_dir
in $ac_dummy; do
1293 test -z "$ac_dir" && ac_dir
=.
1294 if test -f $ac_dir/$ac_word; then
1295 ac_cv_prog_RANLIB
="ranlib"
1300 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1303 RANLIB
="$ac_cv_prog_RANLIB"
1304 if test -n "$RANLIB"; then
1305 echo "$ac_t""$RANLIB" 1>&6
1307 echo "$ac_t""no" 1>&6
1310 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1311 if test "${with_gnu_ld+set}" = set; then
1312 withval
="$with_gnu_ld"
1313 test "$withval" = no || with_gnu_ld
=yes
1319 if test "$ac_cv_prog_gcc" = yes; then
1320 # Check if gcc -print-prog-name=ld gives a path.
1321 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1322 echo "configure:1323: checking for ld used by GCC" >&5
1323 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1325 # Accept absolute paths.
1326 [\\/]* |
[A-Za-z
]:[\\/]*)
1327 re_direlt
='/[^/][^/]*/\.\./'
1328 # Canonicalize the path of ld
1329 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1330 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1331 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1333 test -z "$LD" && LD
="$ac_prog"
1336 # If it fails, then pretend we aren't using GCC.
1340 # If it is relative, then search for the first ld in PATH.
1344 elif test "$with_gnu_ld" = yes; then
1345 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1346 echo "configure:1347: checking for GNU ld" >&5
1348 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1349 echo "configure:1350: checking for non-GNU ld" >&5
1351 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 if test -z "$LD"; then
1355 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1356 for ac_dir
in $PATH; do
1357 test -z "$ac_dir" && ac_dir
=.
1358 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1359 ac_cv_path_LD
="$ac_dir/$ac_prog"
1360 # Check to see if the program is GNU ld. I'd rather use --version,
1361 # but apparently some GNU ld's only accept -v.
1362 # Break only if it was the GNU/non-GNU ld that we prefer.
1363 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1364 test "$with_gnu_ld" != no
&& break
1366 test "$with_gnu_ld" != yes && break
1372 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1377 if test -n "$LD"; then
1378 echo "$ac_t""$LD" 1>&6
1380 echo "$ac_t""no" 1>&6
1382 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1384 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1385 echo "configure:1386: checking if the linker ($LD) is GNU ld" >&5
1386 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1390 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1391 ac_cv_prog_gnu_ld
=yes
1393 ac_cv_prog_gnu_ld
=no
1397 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1400 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1401 echo "configure:1402: checking for BSD-compatible nm" >&5
1402 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 if test -n "$NM"; then
1406 # Let the user override the test.
1409 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1410 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1411 test -z "$ac_dir" && ac_dir
=.
1412 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1413 # Check to see if the nm accepts a BSD-compat flag.
1414 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1415 # nm: unknown option "B" ignored
1416 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1417 ac_cv_path_NM
="$ac_dir/nm -B"
1419 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1420 ac_cv_path_NM
="$ac_dir/nm -p"
1423 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1424 continue # so that we can try to find one that supports BSD flags
1429 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1434 echo "$ac_t""$NM" 1>&6
1437 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1438 echo "configure:1439: checking whether ln -s works" >&5
1439 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1443 if ln -s X conftestdata
2>/dev
/null
1446 ac_cv_prog_LN_S
="ln -s"
1451 LN_S
="$ac_cv_prog_LN_S"
1452 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1453 echo "$ac_t""yes" 1>&6
1455 echo "$ac_t""no" 1>&6
1459 # Check for any special flags to pass to ltconfig.
1460 libtool_flags
="--cache-file=$cache_file"
1461 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1462 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1463 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1464 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1465 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1468 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1469 if test "${enable_libtool_lock+set}" = set; then
1470 enableval
="$enable_libtool_lock"
1474 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1475 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1477 # Some flags need to be propagated to the compiler or linker for good
1481 # Find out which ABI we are using.
1482 echo '#line 1483 "configure"' > conftest.
$ac_ext
1483 if { (eval echo configure
:1484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 case "`/usr/bin/file conftest.o`" in
1500 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1501 SAVE_CFLAGS
="$CFLAGS"
1502 CFLAGS
="$CFLAGS -belf"
1503 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1504 echo "configure:1505: checking whether the C compiler needs -belf" >&5
1505 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 cat > conftest.
$ac_ext <<EOF
1509 #line 1510 "configure"
1510 #include "confdefs.h"
1516 if { (eval echo configure
:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1518 lt_cv_cc_needs_belf
=yes
1520 echo "configure: failed program was:" >&5
1521 cat conftest.
$ac_ext >&5
1523 lt_cv_cc_needs_belf
=no
1528 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1529 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1530 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1531 CFLAGS
="$SAVE_CFLAGS"
1539 # Save cache, so that ltconfig can load it
1540 cat > confcache
<<\EOF
1541 # This file is a shell script that caches the results of configure
1542 # tests run on this system so they can be shared between configure
1543 # scripts and configure runs. It is not useful on other systems.
1544 # If it contains results you don't want to keep, you may remove or edit it.
1546 # By default, configure uses ./config.cache as the cache file,
1547 # creating it if it does not exist already. You can give configure
1548 # the --cache-file=FILE option to use a different cache file; that is
1549 # what configure does when it calls configure scripts in
1550 # subdirectories, so they share the cache.
1551 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1552 # config.status only pays attention to the cache file if you give it the
1553 # --recheck option to rerun configure.
1556 # The following way of writing the cache mishandles newlines in values,
1557 # but we know of no workaround that is simple, portable, and efficient.
1558 # So, don't put newlines in cache variables' values.
1559 # Ultrix sh set writes to stderr and can't be redirected directly,
1560 # and sets the high bit in the cache file unless we assign to the vars.
1562 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1564 # `set' does not quote correctly, so add quotes (double-quote substitution
1565 # turns \\\\ into \\, and sed turns \\ into \).
1567 -e "s/'/'\\\\''/g" \
1568 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1571 # `set' quotes correctly as required by POSIX, so do not add quotes.
1572 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1575 if cmp -s $cache_file confcache
; then
1578 if test -w $cache_file; then
1579 echo "updating cache $cache_file"
1580 cat confcache
> $cache_file
1582 echo "not updating unwritable cache $cache_file"
1588 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1589 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1590 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1591 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1592 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1593 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1594 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1595 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1597 # Reload cache, that may have been modified by ltconfig
1598 if test -r "$cache_file"; then
1599 echo "loading cache $cache_file"
1602 echo "creating cache $cache_file"
1607 # This can be used to rebuild libtool when needed
1608 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1610 # Always use our own libtool.
1611 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1613 # Redirect the config.log output again, so that the ltconfig log is not
1614 # clobbered by the next message.
1615 exec 5>>.
/config.log
1618 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1619 echo "configure:1620: checking for AIX" >&5
1620 cat > conftest.
$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1629 egrep "yes" >/dev
/null
2>&1; then
1631 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1632 #define _ALL_SOURCE 1
1637 echo "$ac_t""no" 1>&6
1642 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1643 echo "configure:1644: checking for POSIXized ISC" >&5
1644 if test -d /etc
/conf
/kconfig.d
&&
1645 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1647 echo "$ac_t""yes" 1>&6
1648 ISC
=yes # If later tests want to check for ISC.
1649 cat >> confdefs.h
<<\EOF
1650 #define _POSIX_SOURCE 1
1653 if test "$GCC" = yes; then
1659 echo "$ac_t""no" 1>&6
1663 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1664 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1665 echo "configure:1666: checking for minix/config.h" >&5
1666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 cat > conftest.
$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672 #include <minix/config.h>
1674 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1675 { (eval echo configure
:1676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1676 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1677 if test -z "$ac_err"; then
1679 eval "ac_cv_header_$ac_safe=yes"
1682 echo "configure: failed program was:" >&5
1683 cat conftest.
$ac_ext >&5
1685 eval "ac_cv_header_$ac_safe=no"
1689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1690 echo "$ac_t""yes" 1>&6
1693 echo "$ac_t""no" 1>&6
1697 if test "$MINIX" = yes; then
1698 cat >> confdefs.h
<<\EOF
1699 #define _POSIX_SOURCE 1
1702 cat >> confdefs.h
<<\EOF
1703 #define _POSIX_1_SOURCE 2
1706 cat >> confdefs.h
<<\EOF
1716 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1717 echo "configure:1718: checking for ${CC-cc} option to accept ANSI C" >&5
1718 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1721 am_cv_prog_cc_stdc
=no
1723 # Don't try gcc -ansi; that turns off useful extensions and
1724 # breaks some systems' header files.
1725 # AIX -qlanglvl=ansi
1726 # Ultrix and OSF/1 -std1
1727 # HP-UX -Aa -D_HPUX_SOURCE
1728 # SVR4 -Xc -D__EXTENSIONS__
1729 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1731 CC
="$ac_save_CC $ac_arg"
1732 cat > conftest.
$ac_ext <<EOF
1733 #line 1734 "configure"
1734 #include "confdefs.h"
1737 #include <sys/types.h>
1738 #include <sys/stat.h>
1739 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1740 struct buf { int x; };
1741 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1742 static char *e (p, i)
1748 static char *f (char * (*g) (char **, int), char **p, ...)
1753 s = g (p, va_arg (v,int));
1757 int test (int i, double x);
1758 struct s1 {int (*f) (int a);};
1759 struct s2 {int (*f) (double a);};
1760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1766 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1770 if { (eval echo configure
:1771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1772 am_cv_prog_cc_stdc
="$ac_arg"; break
1774 echo "configure: failed program was:" >&5
1775 cat conftest.
$ac_ext >&5
1783 if test -z "$am_cv_prog_cc_stdc"; then
1784 echo "$ac_t""none needed" 1>&6
1786 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1788 case "x$am_cv_prog_cc_stdc" in
1790 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1794 echo $ac_n "checking for working const""... $ac_c" 1>&6
1795 echo "configure:1796: checking for working const" >&5
1796 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 cat > conftest.
$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1805 /* Ultrix mips cc rejects this. */
1806 typedef int charset[2]; const charset x;
1807 /* SunOS 4.1.1 cc rejects this. */
1808 char const *const *ccp;
1810 /* NEC SVR4.0.2 mips cc rejects this. */
1811 struct point {int x, y;};
1812 static struct point const zero = {0,0};
1813 /* AIX XL C 1.02.0.0 rejects this.
1814 It does not let you subtract one const X* pointer from another in an arm
1815 of an if-expression whose if-part is not a constant expression */
1816 const char *g = "string";
1817 ccp = &g + (g ? g-g : 0);
1818 /* HPUX 7.0 cc rejects these. */
1821 ccp = (char const *const *) p;
1822 { /* SCO 3.2v4 cc rejects this. */
1824 char const *s = 0 ? (char *) 0 : (char const *) 0;
1828 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1830 const int *foo = &x[0];
1833 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1834 typedef const int *iptr;
1838 { /* AIX XL C 1.02.0.0 rejects this saying
1839 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1840 struct s { int j; const int *ap[3]; };
1841 struct s *b; b->j = 5;
1843 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1849 if { (eval echo configure
:1850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1853 echo "configure: failed program was:" >&5
1854 cat conftest.
$ac_ext >&5
1861 echo "$ac_t""$ac_cv_c_const" 1>&6
1862 if test $ac_cv_c_const = no
; then
1863 cat >> confdefs.h
<<\EOF
1869 echo $ac_n "checking for inline""... $ac_c" 1>&6
1870 echo "configure:1871: checking for inline" >&5
1871 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1875 for ac_kw
in inline __inline__ __inline
; do
1876 cat > conftest.
$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1884 if { (eval echo configure
:1885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1886 ac_cv_c_inline
=$ac_kw; break
1888 echo "configure: failed program was:" >&5
1889 cat conftest.
$ac_ext >&5
1896 echo "$ac_t""$ac_cv_c_inline" 1>&6
1897 case "$ac_cv_c_inline" in
1899 no
) cat >> confdefs.h
<<\EOF
1903 *) cat >> confdefs.h
<<EOF
1904 #define inline $ac_cv_c_inline
1909 echo $ac_n "checking size of int""... $ac_c" 1>&6
1910 echo "configure:1911: checking size of int" >&5
1911 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 if test "$cross_compiling" = yes; then
1915 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1917 cat > conftest.
$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1923 FILE *f=fopen("conftestval", "w");
1925 fprintf(f, "%d\n", sizeof(int));
1929 if { (eval echo configure
:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1931 ac_cv_sizeof_int
=`cat conftestval`
1933 echo "configure: failed program was:" >&5
1934 cat conftest.
$ac_ext >&5
1942 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1943 cat >> confdefs.h
<<EOF
1944 #define SIZEOF_INT $ac_cv_sizeof_int
1948 echo $ac_n "checking size of long""... $ac_c" 1>&6
1949 echo "configure:1950: checking size of long" >&5
1950 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 if test "$cross_compiling" = yes; then
1954 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1956 cat > conftest.
$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1962 FILE *f=fopen("conftestval", "w");
1964 fprintf(f, "%d\n", sizeof(long));
1968 if { (eval echo configure
:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1970 ac_cv_sizeof_long
=`cat conftestval`
1972 echo "configure: failed program was:" >&5
1973 cat conftest.
$ac_ext >&5
1981 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1982 cat >> confdefs.h
<<EOF
1983 #define SIZEOF_LONG $ac_cv_sizeof_long
1987 echo $ac_n "checking for long longs""... $ac_c" 1>&6
1988 echo "configure:1989: checking for long longs" >&5
1989 if eval "test \"`echo '$''{'scm_cv_long_longs'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 cat > conftest.
$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
2000 if { (eval echo configure
:2001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2002 scm_cv_long_longs
=yes
2004 echo "configure: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2007 scm_cv_long_longs
=no
2012 echo "$ac_t""$scm_cv_long_longs" 1>&6
2013 if test "$scm_cv_long_longs" = yes; then
2014 cat >> confdefs.h
<<\EOF
2015 #define HAVE_LONG_LONGS 1
2020 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2021 echo "configure:2022: checking for ANSI C header files" >&5
2022 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2025 cat > conftest.
$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2033 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2034 { (eval echo configure
:2035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2035 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2036 if test -z "$ac_err"; then
2038 ac_cv_header_stdc
=yes
2041 echo "configure: failed program was:" >&5
2042 cat conftest.
$ac_ext >&5
2044 ac_cv_header_stdc
=no
2048 if test $ac_cv_header_stdc = yes; then
2049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2050 cat > conftest.
$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2056 egrep "memchr" >/dev
/null
2>&1; then
2060 ac_cv_header_stdc
=no
2066 if test $ac_cv_header_stdc = yes; then
2067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2068 cat > conftest.
$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2074 egrep "free" >/dev
/null
2>&1; then
2078 ac_cv_header_stdc
=no
2084 if test $ac_cv_header_stdc = yes; then
2085 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2086 if test "$cross_compiling" = yes; then
2089 cat > conftest.
$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2093 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2094 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2096 int main () { int i; for (i = 0; i < 256; i++)
2097 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2101 if { (eval echo configure
:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2105 echo "configure: failed program was:" >&5
2106 cat conftest.
$ac_ext >&5
2108 ac_cv_header_stdc
=no
2116 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2117 if test $ac_cv_header_stdc = yes; then
2118 cat >> confdefs.h
<<\EOF
2119 #define STDC_HEADERS 1
2125 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2127 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2128 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_hdr that defines DIR" >&5
2130 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 cat > conftest.
$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 #include <sys/types.h>
2142 if { (eval echo configure
:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2144 eval "ac_cv_header_dirent_$ac_safe=yes"
2146 echo "configure: failed program was:" >&5
2147 cat conftest.
$ac_ext >&5
2149 eval "ac_cv_header_dirent_$ac_safe=no"
2153 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2155 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2156 cat >> confdefs.h
<<EOF
2157 #define $ac_tr_hdr 1
2159 ac_header_dirent
=$ac_hdr; break
2161 echo "$ac_t""no" 1>&6
2164 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2165 if test $ac_header_dirent = dirent.h
; then
2166 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2167 echo "configure:2168: checking for opendir in -ldir" >&5
2168 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 ac_save_LIBS
="$LIBS"
2174 cat > conftest.
$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 /* Override any gcc2 internal prototype to avoid an error. */
2178 /* We use char because int might match the return type of a gcc2
2179 builtin and then its argument prototype would still apply. */
2186 if { (eval echo configure
:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2188 eval "ac_cv_lib_$ac_lib_var=yes"
2190 echo "configure: failed program was:" >&5
2191 cat conftest.
$ac_ext >&5
2193 eval "ac_cv_lib_$ac_lib_var=no"
2196 LIBS
="$ac_save_LIBS"
2199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2200 echo "$ac_t""yes" 1>&6
2203 echo "$ac_t""no" 1>&6
2207 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2208 echo "configure:2209: checking for opendir in -lx" >&5
2209 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 ac_save_LIBS
="$LIBS"
2215 cat > conftest.
$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 /* Override any gcc2 internal prototype to avoid an error. */
2219 /* We use char because int might match the return type of a gcc2
2220 builtin and then its argument prototype would still apply. */
2227 if { (eval echo configure
:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2229 eval "ac_cv_lib_$ac_lib_var=yes"
2231 echo "configure: failed program was:" >&5
2232 cat conftest.
$ac_ext >&5
2234 eval "ac_cv_lib_$ac_lib_var=no"
2237 LIBS
="$ac_save_LIBS"
2240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2241 echo "$ac_t""yes" 1>&6
2244 echo "$ac_t""no" 1>&6
2249 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2250 echo "configure:2251: checking whether time.h and sys/time.h may both be included" >&5
2251 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 cat > conftest.
$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 #include <sys/types.h>
2258 #include <sys/time.h>
2264 if { (eval echo configure
:2265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2266 ac_cv_header_time
=yes
2268 echo "configure: failed program was:" >&5
2269 cat conftest.
$ac_ext >&5
2271 ac_cv_header_time
=no
2276 echo "$ac_t""$ac_cv_header_time" 1>&6
2277 if test $ac_cv_header_time = yes; then
2278 cat >> confdefs.h
<<\EOF
2279 #define TIME_WITH_SYS_TIME 1
2284 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2285 echo "configure:2286: checking for sys/wait.h that is POSIX.1 compatible" >&5
2286 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 cat > conftest.
$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2292 #include <sys/types.h>
2293 #include <sys/wait.h>
2295 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2298 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2303 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2306 if { (eval echo configure
:2307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2308 ac_cv_header_sys_wait_h
=yes
2310 echo "configure: failed program was:" >&5
2311 cat conftest.
$ac_ext >&5
2313 ac_cv_header_sys_wait_h
=no
2318 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2319 if test $ac_cv_header_sys_wait_h = yes; then
2320 cat >> confdefs.h
<<\EOF
2321 #define HAVE_SYS_WAIT_H 1
2326 for ac_hdr
in io.h 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
2328 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_hdr" >&5
2331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 cat > conftest.
$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2339 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2340 { (eval echo configure
:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2341 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2342 if test -z "$ac_err"; then
2344 eval "ac_cv_header_$ac_safe=yes"
2347 echo "configure: failed program was:" >&5
2348 cat conftest.
$ac_ext >&5
2350 eval "ac_cv_header_$ac_safe=no"
2354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2355 echo "$ac_t""yes" 1>&6
2356 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2357 cat >> confdefs.h
<<EOF
2358 #define $ac_tr_hdr 1
2362 echo "$ac_t""no" 1>&6
2367 for ac_hdr
in libc.h unistd.h
2369 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2370 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2371 echo "configure:2372: checking for $ac_hdr" >&5
2372 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 cat > conftest.
$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2380 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2381 { (eval echo configure
:2382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2382 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2383 if test -z "$ac_err"; then
2385 eval "ac_cv_header_$ac_safe=yes"
2388 echo "configure: failed program was:" >&5
2389 cat conftest.
$ac_ext >&5
2391 eval "ac_cv_header_$ac_safe=no"
2395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2396 echo "$ac_t""yes" 1>&6
2397 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2398 cat >> confdefs.h
<<EOF
2399 #define $ac_tr_hdr 1
2403 echo "$ac_t""no" 1>&6
2407 echo $ac_n "checking "whether libc.h and unistd.h can be included together
"""... $ac_c" 1>&6
2408 echo "configure:2409: checking "whether libc.h and unistd.h can be included together
"" >&5
2409 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2413 if test "$ac_cv_header_libc_h" = "no"; then
2414 guile_cv_header_libc_with_unistd
="no"
2415 elif test "$ac_cv_header_unistd.h" = "no"; then
2416 guile_cv_header_libc_with_unistd
="yes"
2418 cat > conftest.
$ac_ext <<EOF
2419 #line 2420 "configure"
2420 #include "confdefs.h"
2423 # include <unistd.h>
2429 if { (eval echo configure
:2430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2431 guile_cv_header_libc_with_unistd
=yes
2433 echo "configure: failed program was:" >&5
2434 cat conftest.
$ac_ext >&5
2436 guile_cv_header_libc_with_unistd
=no
2445 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
2446 if test "$guile_cv_header_libc_with_unistd" = yes; then
2447 cat >> confdefs.h
<<\EOF
2448 #define LIBC_H_WITH_UNISTD_H 1
2455 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2456 echo "configure:2457: checking for uid_t in sys/types.h" >&5
2457 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 cat > conftest.
$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 #include <sys/types.h>
2465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2466 egrep "uid_t" >/dev
/null
2>&1; then
2468 ac_cv_type_uid_t
=yes
2477 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2478 if test $ac_cv_type_uid_t = no
; then
2479 cat >> confdefs.h
<<\EOF
2483 cat >> confdefs.h
<<\EOF
2489 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2490 echo "configure:2491: checking type of array argument to getgroups" >&5
2491 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 if test "$cross_compiling" = yes; then
2495 ac_cv_type_getgroups
=cross
2497 cat > conftest.
$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2501 /* Thanks to Mike Rendell for this test. */
2502 #include <sys/types.h>
2505 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2510 union { gid_t gval; long lval; } val;
2513 for (i = 0; i < NGID; i++)
2514 gidset[i] = val.gval;
2515 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2517 /* Exit non-zero if getgroups seems to require an array of ints. This
2518 happens when gid_t is short but getgroups modifies an array of ints. */
2519 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2523 if { (eval echo configure
:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2525 ac_cv_type_getgroups
=gid_t
2527 echo "configure: failed program was:" >&5
2528 cat conftest.
$ac_ext >&5
2530 ac_cv_type_getgroups
=int
2535 if test $ac_cv_type_getgroups = cross
; then
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2542 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2544 ac_cv_type_getgroups
=gid_t
2547 ac_cv_type_getgroups
=int
2554 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2555 cat >> confdefs.h
<<EOF
2556 #define GETGROUPS_T $ac_cv_type_getgroups
2560 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2561 echo "configure:2562: checking return type of signal handlers" >&5
2562 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.
$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 #include <sys/types.h>
2574 extern "C" void (*signal (int, void (*)(int)))(int);
2576 void (*signal ()) ();
2583 if { (eval echo configure
:2584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2585 ac_cv_type_signal
=void
2587 echo "configure: failed program was:" >&5
2588 cat conftest.
$ac_ext >&5
2590 ac_cv_type_signal
=int
2595 echo "$ac_t""$ac_cv_type_signal" 1>&6
2596 cat >> confdefs.h
<<EOF
2597 #define RETSIGTYPE $ac_cv_type_signal
2601 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2602 echo "configure:2603: checking for mode_t" >&5
2603 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2606 cat > conftest.
$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 #include <sys/types.h>
2615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2616 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2618 ac_cv_type_mode_t
=yes
2621 ac_cv_type_mode_t
=no
2626 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2627 if test $ac_cv_type_mode_t = no
; then
2628 cat >> confdefs.h
<<\EOF
2635 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2636 echo "configure:2637: checking for main in -lm" >&5
2637 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
2638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 ac_save_LIBS
="$LIBS"
2643 cat > conftest.
$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2651 if { (eval echo configure
:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2653 eval "ac_cv_lib_$ac_lib_var=yes"
2655 echo "configure: failed program was:" >&5
2656 cat conftest.
$ac_ext >&5
2658 eval "ac_cv_lib_$ac_lib_var=no"
2661 LIBS
="$ac_save_LIBS"
2664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2665 echo "$ac_t""yes" 1>&6
2666 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2667 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2668 cat >> confdefs.h
<<EOF
2669 #define $ac_tr_lib 1
2675 echo "$ac_t""no" 1>&6
2678 for ac_func
in gethostbyname
2680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2681 echo "configure:2682: checking for $ac_func" >&5
2682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 cat > conftest.
$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2688 /* System header to define __stub macros and hopefully few prototypes,
2689 which can conflict with char $ac_func(); below. */
2691 /* Override any gcc2 internal prototype to avoid an error. */
2692 /* We use char because int might match the return type of a gcc2
2693 builtin and then its argument prototype would still apply. */
2698 /* The GNU C library defines this for functions which it implements
2699 to always fail with ENOSYS. Some functions are actually named
2700 something starting with __ and the normal name is an alias. */
2701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2709 if { (eval echo configure
:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2711 eval "ac_cv_func_$ac_func=yes"
2713 echo "configure: failed program was:" >&5
2714 cat conftest.
$ac_ext >&5
2716 eval "ac_cv_func_$ac_func=no"
2721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2724 cat >> confdefs.h
<<EOF
2725 #define $ac_tr_func 1
2729 echo "$ac_t""no" 1>&6
2733 if test $ac_cv_func_gethostbyname = no
; then
2734 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2735 echo "configure:2736: checking for gethostbyname in -lnsl" >&5
2736 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2740 ac_save_LIBS
="$LIBS"
2742 cat > conftest.
$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2745 /* Override any gcc2 internal prototype to avoid an error. */
2746 /* We use char because int might match the return type of a gcc2
2747 builtin and then its argument prototype would still apply. */
2748 char gethostbyname();
2754 if { (eval echo configure
:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2756 eval "ac_cv_lib_$ac_lib_var=yes"
2758 echo "configure: failed program was:" >&5
2759 cat conftest.
$ac_ext >&5
2761 eval "ac_cv_lib_$ac_lib_var=no"
2764 LIBS
="$ac_save_LIBS"
2767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2768 echo "$ac_t""yes" 1>&6
2769 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2770 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2771 cat >> confdefs.h
<<EOF
2772 #define $ac_tr_lib 1
2778 echo "$ac_t""no" 1>&6
2782 for ac_func
in connect
2784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2785 echo "configure:2786: checking for $ac_func" >&5
2786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 cat > conftest.
$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792 /* System header to define __stub macros and hopefully few prototypes,
2793 which can conflict with char $ac_func(); below. */
2795 /* Override any gcc2 internal prototype to avoid an error. */
2796 /* We use char because int might match the return type of a gcc2
2797 builtin and then its argument prototype would still apply. */
2802 /* The GNU C library defines this for functions which it implements
2803 to always fail with ENOSYS. Some functions are actually named
2804 something starting with __ and the normal name is an alias. */
2805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2813 if { (eval echo configure
:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2815 eval "ac_cv_func_$ac_func=yes"
2817 echo "configure: failed program was:" >&5
2818 cat conftest.
$ac_ext >&5
2820 eval "ac_cv_func_$ac_func=no"
2825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2826 echo "$ac_t""yes" 1>&6
2827 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2828 cat >> confdefs.h
<<EOF
2829 #define $ac_tr_func 1
2833 echo "$ac_t""no" 1>&6
2837 if test $ac_cv_func_connect = no
; then
2838 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2839 echo "configure:2840: checking for connect in -lsocket" >&5
2840 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2844 ac_save_LIBS
="$LIBS"
2845 LIBS
="-lsocket $LIBS"
2846 cat > conftest.
$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2849 /* Override any gcc2 internal prototype to avoid an error. */
2850 /* We use char because int might match the return type of a gcc2
2851 builtin and then its argument prototype would still apply. */
2858 if { (eval echo configure
:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2860 eval "ac_cv_lib_$ac_lib_var=yes"
2862 echo "configure: failed program was:" >&5
2863 cat conftest.
$ac_ext >&5
2865 eval "ac_cv_lib_$ac_lib_var=no"
2868 LIBS
="$ac_save_LIBS"
2871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2872 echo "$ac_t""yes" 1>&6
2873 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2875 cat >> confdefs.h
<<EOF
2876 #define $ac_tr_lib 1
2879 LIBS
="-lsocket $LIBS"
2882 echo "$ac_t""no" 1>&6
2887 # Checks for dynamic linking
2889 if test "$enable_dynamic_linking" = "yes"; then
2891 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2892 echo "configure:2893: checking for dlopen in -ldl" >&5
2893 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2897 ac_save_LIBS
="$LIBS"
2899 cat > conftest.
$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2902 /* Override any gcc2 internal prototype to avoid an error. */
2903 /* We use char because int might match the return type of a gcc2
2904 builtin and then its argument prototype would still apply. */
2911 if { (eval echo configure
:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2913 eval "ac_cv_lib_$ac_lib_var=yes"
2915 echo "configure: failed program was:" >&5
2916 cat conftest.
$ac_ext >&5
2918 eval "ac_cv_lib_$ac_lib_var=no"
2921 LIBS
="$ac_save_LIBS"
2924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2925 echo "$ac_t""yes" 1>&6
2926 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2927 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2928 cat >> confdefs.h
<<EOF
2929 #define $ac_tr_lib 1
2935 echo "$ac_t""no" 1>&6
2938 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2939 for ac_func
in dlopen
2941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2942 echo "configure:2943: checking for $ac_func" >&5
2943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 cat > conftest.
$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 /* System header to define __stub macros and hopefully few prototypes,
2950 which can conflict with char $ac_func(); below. */
2952 /* Override any gcc2 internal prototype to avoid an error. */
2953 /* We use char because int might match the return type of a gcc2
2954 builtin and then its argument prototype would still apply. */
2959 /* The GNU C library defines this for functions which it implements
2960 to always fail with ENOSYS. Some functions are actually named
2961 something starting with __ and the normal name is an alias. */
2962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2970 if { (eval echo configure
:2971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2972 eval "ac_cv_func_$ac_func=yes"
2974 echo "configure: failed program was:" >&5
2975 cat conftest.
$ac_ext >&5
2977 eval "ac_cv_func_$ac_func=no"
2982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2983 echo "$ac_t""yes" 1>&6
2984 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2985 cat >> confdefs.h
<<EOF
2986 #define $ac_tr_func 1
2990 echo "$ac_t""no" 1>&6
2994 cat >> confdefs.h
<<\EOF
2995 #define DYNAMIC_LINKING 1
2999 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
3000 echo "configure:3001: checking for dld_link in -ldld" >&5
3001 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
3002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 ac_save_LIBS
="$LIBS"
3007 cat > conftest.
$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 /* Override any gcc2 internal prototype to avoid an error. */
3011 /* We use char because int might match the return type of a gcc2
3012 builtin and then its argument prototype would still apply. */
3019 if { (eval echo configure
:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3021 eval "ac_cv_lib_$ac_lib_var=yes"
3023 echo "configure: failed program was:" >&5
3024 cat conftest.
$ac_ext >&5
3026 eval "ac_cv_lib_$ac_lib_var=no"
3029 LIBS
="$ac_save_LIBS"
3032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3033 echo "$ac_t""yes" 1>&6
3034 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3035 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3036 cat >> confdefs.h
<<EOF
3037 #define $ac_tr_lib 1
3043 echo "$ac_t""no" 1>&6
3046 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
3047 cat >> confdefs.h
<<\EOF
3048 #define DYNAMIC_LINKING 1
3052 for ac_func
in shl_load
3054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3055 echo "configure:3056: checking for $ac_func" >&5
3056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 cat > conftest.
$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3062 /* System header to define __stub macros and hopefully few prototypes,
3063 which can conflict with char $ac_func(); below. */
3065 /* Override any gcc2 internal prototype to avoid an error. */
3066 /* We use char because int might match the return type of a gcc2
3067 builtin and then its argument prototype would still apply. */
3072 /* The GNU C library defines this for functions which it implements
3073 to always fail with ENOSYS. Some functions are actually named
3074 something starting with __ and the normal name is an alias. */
3075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3083 if { (eval echo configure
:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3085 eval "ac_cv_func_$ac_func=yes"
3087 echo "configure: failed program was:" >&5
3088 cat conftest.
$ac_ext >&5
3090 eval "ac_cv_func_$ac_func=no"
3095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3096 echo "$ac_t""yes" 1>&6
3097 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3098 cat >> confdefs.h
<<EOF
3099 #define $ac_tr_func 1
3103 echo "$ac_t""no" 1>&6
3107 if test "$ac_cv_func_shl_load" = "yes"; then
3108 cat >> confdefs.h
<<\EOF
3109 #define DYNAMIC_LINKING 1
3113 for ac_func
in dlopen
3115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3116 echo "configure:3117: checking for $ac_func" >&5
3117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 cat > conftest.
$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3123 /* System header to define __stub macros and hopefully few prototypes,
3124 which can conflict with char $ac_func(); below. */
3126 /* Override any gcc2 internal prototype to avoid an error. */
3127 /* We use char because int might match the return type of a gcc2
3128 builtin and then its argument prototype would still apply. */
3133 /* The GNU C library defines this for functions which it implements
3134 to always fail with ENOSYS. Some functions are actually named
3135 something starting with __ and the normal name is an alias. */
3136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3144 if { (eval echo configure
:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3146 eval "ac_cv_func_$ac_func=yes"
3148 echo "configure: failed program was:" >&5
3149 cat conftest.
$ac_ext >&5
3151 eval "ac_cv_func_$ac_func=no"
3156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3157 echo "$ac_t""yes" 1>&6
3158 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3159 cat >> confdefs.h
<<EOF
3160 #define $ac_tr_func 1
3164 echo "$ac_t""no" 1>&6
3168 if test "$ac_cv_func_dlopen" = "yes"; then
3169 cat >> confdefs.h
<<\EOF
3170 #define DYNAMIC_LINKING 1
3181 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
3182 echo "configure:3183: checking for underscore before symbols" >&5
3183 if eval "test \"`echo '$''{'guile_cv_uscore'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3187 echo "main(){int i=1;}
3188 fnord(){int i=23; int ltuae=42;}" > conftest.c
3189 ${CC} conftest.c
> /dev
/null
3190 if (nm a.out |
grep _fnord
) > /dev
/null
; then
3197 echo "$ac_t""$guile_cv_uscore" 1>&6
3198 rm -f conftest.c a.out
3200 if test $guile_cv_uscore = yes; then
3201 cat >> confdefs.h
<<\EOF
3206 if test $ac_cv_func_dlopen = yes -o $ac_cv_lib_dl_dlopen = yes ; then
3207 echo $ac_n "checking whether dlsym always adds an underscore for us""... $ac_c" 1>&6
3208 echo "configure:3209: checking whether dlsym always adds an underscore for us" >&5
3209 if eval "test \"`echo '$''{'guile_cv_dlsym_adds_uscore'+set}'`\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3212 if test "$cross_compiling" = yes; then
3213 guile_cv_dlsym_adds_uscore
=no
3215 cat > conftest.
$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3221 fnord() { int i=42;}
3222 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
3223 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
3224 if(ptr1 && !ptr2) exit(0); } exit(1); }
3227 if { (eval echo configure
:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3229 guile_cv_dlsym_adds_uscore
=yes
3230 cat >> confdefs.h
<<\EOF
3231 #define DLSYM_ADDS_USCORE 1
3235 echo "configure: failed program was:" >&5
3236 cat conftest.
$ac_ext >&5
3238 guile_cv_dlsym_adds_uscore
=no
3246 echo "$ac_t""$guile_cv_dlsym_adds_uscore" 1>&6
3251 for ac_func
in ctermid ftime getcwd geteuid 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
3253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3254 echo "configure:3255: checking for $ac_func" >&5
3255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 cat > conftest.
$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 /* System header to define __stub macros and hopefully few prototypes,
3262 which can conflict with char $ac_func(); below. */
3264 /* Override any gcc2 internal prototype to avoid an error. */
3265 /* We use char because int might match the return type of a gcc2
3266 builtin and then its argument prototype would still apply. */
3271 /* The GNU C library defines this for functions which it implements
3272 to always fail with ENOSYS. Some functions are actually named
3273 something starting with __ and the normal name is an alias. */
3274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3282 if { (eval echo configure
:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3284 eval "ac_cv_func_$ac_func=yes"
3286 echo "configure: failed program was:" >&5
3287 cat conftest.
$ac_ext >&5
3289 eval "ac_cv_func_$ac_func=no"
3294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3295 echo "$ac_t""yes" 1>&6
3296 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3297 cat >> confdefs.h
<<EOF
3298 #define $ac_tr_func 1
3302 echo "$ac_t""no" 1>&6
3307 ### Some systems don't declare some functions. On such systems, we
3308 ### need to at least provide our own K&R-style declarations.
3310 ### GUILE_FUNC_DECLARED(function, headerfile)
3312 ### Check for a declaration of FUNCTION in HEADERFILE; if it is
3313 ### not there, #define MISSING_FUNCTION_DECL.
3317 echo $ac_n "checking for strptime declaration""... $ac_c" 1>&6
3318 echo "configure:3319: checking for strptime declaration" >&5
3319 if eval "test \"`echo '$''{'guile_cv_func_strptime_declared'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 cat > conftest.
$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3328 egrep "strptime" >/dev
/null
2>&1; then
3330 guile_cv_func_strptime_declared
=yes
3333 guile_cv_func_strptime_declared
=no
3339 echo "$ac_t""$guile_cv_func_strptime_declared" 1>&6
3340 if test x
$guile_cv_func_strptime_declared = xno
; then
3341 cat >> confdefs.h
<<\EOF
3342 #define MISSING_STRPTIME_DECL 1
3348 echo $ac_n "checking for bzero declaration""... $ac_c" 1>&6
3349 echo "configure:3350: checking for bzero declaration" >&5
3350 if eval "test \"`echo '$''{'guile_cv_func_bzero_declared'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 cat > conftest.
$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3359 egrep "bzero" >/dev
/null
2>&1; then
3361 guile_cv_func_bzero_declared
=yes
3364 guile_cv_func_bzero_declared
=no
3370 echo "$ac_t""$guile_cv_func_bzero_declared" 1>&6
3371 if test x
$guile_cv_func_bzero_declared = xno
; then
3372 cat >> confdefs.h
<<\EOF
3373 #define MISSING_BZERO_DECL 1
3379 echo $ac_n "checking for sleep declaration""... $ac_c" 1>&6
3380 echo "configure:3381: checking for sleep declaration" >&5
3381 if eval "test \"`echo '$''{'guile_cv_func_sleep_declared'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 cat > conftest.
$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3390 egrep "sleep" >/dev
/null
2>&1; then
3392 guile_cv_func_sleep_declared
=yes
3395 guile_cv_func_sleep_declared
=no
3401 echo "$ac_t""$guile_cv_func_sleep_declared" 1>&6
3402 if test x
$guile_cv_func_sleep_declared = xno
; then
3403 cat >> confdefs.h
<<\EOF
3404 #define MISSING_SLEEP_DECL 1
3410 echo $ac_n "checking for usleep declaration""... $ac_c" 1>&6
3411 echo "configure:3412: checking for usleep declaration" >&5
3412 if eval "test \"`echo '$''{'guile_cv_func_usleep_declared'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3415 cat > conftest.
$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3421 egrep "usleep" >/dev
/null
2>&1; then
3423 guile_cv_func_usleep_declared
=yes
3426 guile_cv_func_usleep_declared
=no
3432 echo "$ac_t""$guile_cv_func_usleep_declared" 1>&6
3433 if test x
$guile_cv_func_usleep_declared = xno
; then
3434 cat >> confdefs.h
<<\EOF
3435 #define MISSING_USLEEP_DECL 1
3441 ### On some systems usleep has no return value. If it does have one,
3442 ### we'd like to return it; otherwise, we'll fake it.
3443 echo $ac_n "checking return type of usleep""... $ac_c" 1>&6
3444 echo "configure:3445: checking return type of usleep" >&5
3445 if eval "test \"`echo '$''{'guile_cv_func_usleep_return_type'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 cat > conftest.
$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 #include </usr/include/unistd.h>
3453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3454 egrep "void[ ]+usleep" >/dev
/null
2>&1; then
3456 guile_cv_func_usleep_return_type
=void
3459 guile_cv_func_usleep_return_type
=int
3465 echo "$ac_t""$guile_cv_func_usleep_return_type" 1>&6
3466 case "$guile_cv_func_usleep_return_type" in
3468 cat >> confdefs.h
<<\EOF
3469 #define USLEEP_RETURNS_VOID 1
3476 ac_safe
=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
3477 echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
3478 echo "configure:3479: checking for sys/un.h" >&5
3479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 cat > conftest.
$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3487 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3488 { (eval echo configure
:3489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3489 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3490 if test -z "$ac_err"; then
3492 eval "ac_cv_header_$ac_safe=yes"
3495 echo "configure: failed program was:" >&5
3496 cat conftest.
$ac_ext >&5
3498 eval "ac_cv_header_$ac_safe=no"
3502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3503 echo "$ac_t""yes" 1>&6
3506 echo "$ac_t""no" 1>&6
3509 if test -n "$have_sys_un_h" ; then
3510 cat >> confdefs.h
<<\EOF
3511 #define HAVE_UNIX_DOMAIN_SOCKETS 1
3516 for ac_func
in socketpair getgroups setpwent pause tzset
3518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3519 echo "configure:3520: checking for $ac_func" >&5
3520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 cat > conftest.
$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 /* System header to define __stub macros and hopefully few prototypes,
3527 which can conflict with char $ac_func(); below. */
3529 /* Override any gcc2 internal prototype to avoid an error. */
3530 /* We use char because int might match the return type of a gcc2
3531 builtin and then its argument prototype would still apply. */
3536 /* The GNU C library defines this for functions which it implements
3537 to always fail with ENOSYS. Some functions are actually named
3538 something starting with __ and the normal name is an alias. */
3539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3547 if { (eval echo configure
:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3549 eval "ac_cv_func_$ac_func=yes"
3551 echo "configure: failed program was:" >&5
3552 cat conftest.
$ac_ext >&5
3554 eval "ac_cv_func_$ac_func=no"
3559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3560 echo "$ac_t""yes" 1>&6
3561 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3562 cat >> confdefs.h
<<EOF
3563 #define $ac_tr_func 1
3567 echo "$ac_t""no" 1>&6
3575 for ac_func
in sethostent gethostent endhostent setnetent getnetent endnetent setprotoent getprotoent endprotoent setservent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof
3577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3578 echo "configure:3579: checking for $ac_func" >&5
3579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 cat > conftest.
$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 /* System header to define __stub macros and hopefully few prototypes,
3586 which can conflict with char $ac_func(); below. */
3588 /* Override any gcc2 internal prototype to avoid an error. */
3589 /* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3595 /* The GNU C library defines this for functions which it implements
3596 to always fail with ENOSYS. Some functions are actually named
3597 something starting with __ and the normal name is an alias. */
3598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3606 if { (eval echo configure
:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3608 eval "ac_cv_func_$ac_func=yes"
3610 echo "configure: failed program was:" >&5
3611 cat conftest.
$ac_ext >&5
3613 eval "ac_cv_func_$ac_func=no"
3618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3621 cat >> confdefs.h
<<EOF
3622 #define $ac_tr_func 1
3626 echo "$ac_t""no" 1>&6
3632 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
3633 echo "configure:3634: checking for restartable system calls" >&5
3634 if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3637 if test $ac_cv_func_sigaction = yes; then
3638 cat > conftest.
$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3646 if { (eval echo configure
:3647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3650 echo "configure: failed program was:" >&5
3651 cat conftest.
$ac_ext >&5
3661 echo "$ac_t""$scm_cv_restarts" 1>&6
3662 if test $scm_cv_restarts = yes; then
3663 cat >> confdefs.h
<<\EOF
3664 #define HAVE_RESTARTS 1
3669 if test "$ac_cv_header_regex_h" = yes ||
3670 test "$ac_cv_header_rxposix_h" = yes ||
3671 test "$ac_cv_header_rx_rxposix_h" = yes; then
3672 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3673 echo "configure:3674: checking for regcomp" >&5
3674 if eval "test \"`echo '$''{'ac_cv_func_regcomp_norx'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3677 cat > conftest.
$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 /* System header to define __stub macros and hopefully few prototypes,
3681 which can conflict with char regcomp(); below. */
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3690 /* The GNU C library defines this for functions which it implements
3691 to always fail with ENOSYS. Some functions are actually named
3692 something starting with __ and the normal name is an alias. */
3693 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3701 if { (eval echo configure
:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3703 eval "ac_cv_func_regcomp_norx=yes"
3705 echo "configure: failed program was:" >&5
3706 cat conftest.
$ac_ext >&5
3708 eval "ac_cv_func_regcomp_norx=no"
3713 if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 LIBOBJS
="regex-posix.o $LIBOBJS"
3717 echo "$ac_t""no" 1>&6
3718 echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
3719 echo "configure:3720: checking for main in -lrx" >&5
3720 ac_lib_var
=`echo rx'_'main | sed 'y%./+-%__p_%'`
3721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3724 ac_save_LIBS
="$LIBS"
3726 cat > conftest.
$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3734 if { (eval echo configure
:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3736 eval "ac_cv_lib_$ac_lib_var=yes"
3738 echo "configure: failed program was:" >&5
3739 cat conftest.
$ac_ext >&5
3741 eval "ac_cv_lib_$ac_lib_var=no"
3744 LIBS
="$ac_save_LIBS"
3747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3748 echo "$ac_t""yes" 1>&6
3749 ac_tr_lib
=HAVE_LIB
`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3750 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3751 cat >> confdefs.h
<<EOF
3752 #define $ac_tr_lib 1
3758 echo "$ac_t""no" 1>&6
3761 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3762 echo "configure:3763: checking for regcomp" >&5
3763 if eval "test \"`echo '$''{'ac_cv_func_regcomp_rx'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3766 cat > conftest.
$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3769 /* System header to define __stub macros and hopefully few prototypes,
3770 which can conflict with char regcomp(); below. */
3772 /* Override any gcc2 internal prototype to avoid an error. */
3773 /* We use char because int might match the return type of a gcc2
3774 builtin and then its argument prototype would still apply. */
3779 /* The GNU C library defines this for functions which it implements
3780 to always fail with ENOSYS. Some functions are actually named
3781 something starting with __ and the normal name is an alias. */
3782 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3790 if { (eval echo configure
:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3792 eval "ac_cv_func_regcomp_rx=yes"
3794 echo "configure: failed program was:" >&5
3795 cat conftest.
$ac_ext >&5
3797 eval "ac_cv_func_regcomp_rx=no"
3802 if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
3803 echo "$ac_t""yes" 1>&6
3804 LIBOBJS
="regex-posix.o $LIBOBJS"
3806 echo "$ac_t""no" 1>&6
3812 if test "$ac_cv_func_regcomp_norx" = yes ||
3813 test "$ac_cv_func_regcomp_rx" = yes; then
3814 cat >> confdefs.h
<<\EOF
3815 #define HAVE_REGCOMP 1
3821 for ac_func
in inet_aton putenv strerror
3823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3824 echo "configure:3825: checking for $ac_func" >&5
3825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.
$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 /* System header to define __stub macros and hopefully few prototypes,
3832 which can conflict with char $ac_func(); below. */
3834 /* Override any gcc2 internal prototype to avoid an error. */
3835 /* We use char because int might match the return type of a gcc2
3836 builtin and then its argument prototype would still apply. */
3841 /* The GNU C library defines this for functions which it implements
3842 to always fail with ENOSYS. Some functions are actually named
3843 something starting with __ and the normal name is an alias. */
3844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3852 if { (eval echo configure
:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3854 eval "ac_cv_func_$ac_func=yes"
3856 echo "configure: failed program was:" >&5
3857 cat conftest.
$ac_ext >&5
3859 eval "ac_cv_func_$ac_func=no"
3864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3865 echo "$ac_t""yes" 1>&6
3866 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3867 cat >> confdefs.h
<<EOF
3868 #define $ac_tr_func 1
3872 echo "$ac_t""no" 1>&6
3873 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3879 # When testing for the presence of alloca, we need to add alloca.o
3880 # explicitly to LIBOBJS to make sure that it is translated to
3881 # `alloca.lo' for libtool later on. This can and should be done more cleanly.
3882 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3883 # for constant arguments. Useless!
3884 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3885 echo "configure:3886: checking for working alloca.h" >&5
3886 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 cat > conftest.
$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3894 char *p = alloca(2 * sizeof(int));
3897 if { (eval echo configure
:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3899 ac_cv_header_alloca_h
=yes
3901 echo "configure: failed program was:" >&5
3902 cat conftest.
$ac_ext >&5
3904 ac_cv_header_alloca_h
=no
3909 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3910 if test $ac_cv_header_alloca_h = yes; then
3911 cat >> confdefs.h
<<\EOF
3912 #define HAVE_ALLOCA_H 1
3917 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3918 echo "configure:3919: checking for alloca" >&5
3919 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3922 cat > conftest.
$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3927 # define alloca __builtin_alloca
3930 # include <malloc.h>
3931 # define alloca _alloca
3934 # include <alloca.h>
3939 # ifndef alloca /* predefined by HP cc +Olibcalls */
3948 char *p = (char *) alloca(1);
3951 if { (eval echo configure
:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3953 ac_cv_func_alloca_works
=yes
3955 echo "configure: failed program was:" >&5
3956 cat conftest.
$ac_ext >&5
3958 ac_cv_func_alloca_works
=no
3963 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3964 if test $ac_cv_func_alloca_works = yes; then
3965 cat >> confdefs.h
<<\EOF
3966 #define HAVE_ALLOCA 1
3971 if test $ac_cv_func_alloca_works = no
; then
3972 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3973 # that cause trouble. Some versions do not even contain alloca or
3974 # contain a buggy version. If you still want to use their alloca,
3975 # use ar to extract alloca.o from them instead of compiling alloca.c.
3976 ALLOCA
=alloca.
${ac_objext}
3977 cat >> confdefs.h
<<\EOF
3982 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3983 echo "configure:3984: checking whether alloca needs Cray hooks" >&5
3984 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3987 cat > conftest.
$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 #if defined(CRAY) && ! defined(CRAY2)
3997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998 egrep "webecray" >/dev
/null
2>&1; then
4009 echo "$ac_t""$ac_cv_os_cray" 1>&6
4010 if test $ac_cv_os_cray = yes; then
4011 for ac_func
in _getb67 GETB67 getb67
; do
4012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4013 echo "configure:4014: checking for $ac_func" >&5
4014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4017 cat > conftest.
$ac_ext <<EOF
4018 #line 4019 "configure"
4019 #include "confdefs.h"
4020 /* System header to define __stub macros and hopefully few prototypes,
4021 which can conflict with char $ac_func(); below. */
4023 /* Override any gcc2 internal prototype to avoid an error. */
4024 /* We use char because int might match the return type of a gcc2
4025 builtin and then its argument prototype would still apply. */
4030 /* The GNU C library defines this for functions which it implements
4031 to always fail with ENOSYS. Some functions are actually named
4032 something starting with __ and the normal name is an alias. */
4033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4041 if { (eval echo configure
:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4043 eval "ac_cv_func_$ac_func=yes"
4045 echo "configure: failed program was:" >&5
4046 cat conftest.
$ac_ext >&5
4048 eval "ac_cv_func_$ac_func=no"
4053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4054 echo "$ac_t""yes" 1>&6
4055 cat >> confdefs.h
<<EOF
4056 #define CRAY_STACKSEG_END $ac_func
4061 echo "$ac_t""no" 1>&6
4067 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4068 echo "configure:4069: checking stack direction for C alloca" >&5
4069 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4072 if test "$cross_compiling" = yes; then
4073 ac_cv_c_stack_direction
=0
4075 cat > conftest.
$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4078 find_stack_direction ()
4080 static char *addr = 0;
4085 return find_stack_direction ();
4088 return (&dummy > addr) ? 1 : -1;
4092 exit (find_stack_direction() < 0);
4095 if { (eval echo configure
:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4097 ac_cv_c_stack_direction
=1
4099 echo "configure: failed program was:" >&5
4100 cat conftest.
$ac_ext >&5
4102 ac_cv_c_stack_direction
=-1
4109 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4110 cat >> confdefs.h
<<EOF
4111 #define STACK_DIRECTION $ac_cv_c_stack_direction
4116 if test "$ALLOCA" = "alloca.o"; then LIBOBJS
="alloca.o $LIBOBJS"; fi
4118 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
4119 echo "configure:4120: checking for st_rdev in struct stat" >&5
4120 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 cat > conftest.
$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <sys/types.h>
4127 #include <sys/stat.h>
4129 struct stat s; s.st_rdev;
4132 if { (eval echo configure
:4133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4134 ac_cv_struct_st_rdev
=yes
4136 echo "configure: failed program was:" >&5
4137 cat conftest.
$ac_ext >&5
4139 ac_cv_struct_st_rdev
=no
4144 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
4145 if test $ac_cv_struct_st_rdev = yes; then
4146 cat >> confdefs.h
<<\EOF
4147 #define HAVE_ST_RDEV 1
4152 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4153 echo "configure:4154: checking for st_blksize in struct stat" >&5
4154 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 cat > conftest.
$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 #include <sys/types.h>
4161 #include <sys/stat.h>
4163 struct stat s; s.st_blksize;
4166 if { (eval echo configure
:4167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4168 ac_cv_struct_st_blksize
=yes
4170 echo "configure: failed program was:" >&5
4171 cat conftest.
$ac_ext >&5
4173 ac_cv_struct_st_blksize
=no
4178 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4179 if test $ac_cv_struct_st_blksize = yes; then
4180 cat >> confdefs.h
<<\EOF
4181 #define HAVE_ST_BLKSIZE 1
4187 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
4188 # LIBOBJS, which we don't need. This seems more direct.
4189 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
4190 echo "configure:4191: checking for st_blocks in struct stat" >&5
4191 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.
$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 #include <sys/types.h>
4198 #include <sys/stat.h>
4200 struct stat s; s.st_blocks;
4203 if { (eval echo configure
:4204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4205 ac_cv_struct_st_blocks
=yes
4207 echo "configure: failed program was:" >&5
4208 cat conftest.
$ac_ext >&5
4210 ac_cv_struct_st_blocks
=no
4215 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
4216 if test $ac_cv_struct_st_blocks = yes; then
4217 cat >> confdefs.h
<<\EOF
4218 #define HAVE_ST_BLOCKS 1
4223 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4224 echo "configure:4225: checking whether struct tm is in sys/time.h or time.h" >&5
4225 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 cat > conftest.
$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 #include <sys/types.h>
4234 struct tm *tp; tp->tm_sec;
4237 if { (eval echo configure
:4238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4239 ac_cv_struct_tm
=time.h
4241 echo "configure: failed program was:" >&5
4242 cat conftest.
$ac_ext >&5
4244 ac_cv_struct_tm
=sys
/time.h
4249 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4250 if test $ac_cv_struct_tm = sys
/time.h
; then
4251 cat >> confdefs.h
<<\EOF
4252 #define TM_IN_SYS_TIME 1
4257 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4258 echo "configure:4259: checking for tm_zone in struct tm" >&5
4259 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 cat > conftest.
$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4265 #include <sys/types.h>
4266 #include <$ac_cv_struct_tm>
4268 struct tm tm; tm.tm_zone;
4271 if { (eval echo configure
:4272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4273 ac_cv_struct_tm_zone
=yes
4275 echo "configure: failed program was:" >&5
4276 cat conftest.
$ac_ext >&5
4278 ac_cv_struct_tm_zone
=no
4283 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4284 if test "$ac_cv_struct_tm_zone" = yes; then
4285 cat >> confdefs.h
<<\EOF
4286 #define HAVE_TM_ZONE 1
4290 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4291 echo "configure:4292: checking for tzname" >&5
4292 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 cat > conftest.
$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4299 #ifndef tzname /* For SGI. */
4300 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4306 if { (eval echo configure
:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4308 ac_cv_var_tzname
=yes
4310 echo "configure: failed program was:" >&5
4311 cat conftest.
$ac_ext >&5
4318 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4319 if test $ac_cv_var_tzname = yes; then
4320 cat >> confdefs.h
<<\EOF
4321 #define HAVE_TZNAME 1
4328 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
4329 echo "configure:4330: checking whether we need POSIX to get struct utimbuf" >&5
4330 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4333 cat > conftest.
$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4338 #include <sys/utime.h>
4345 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4346 { (eval echo configure
:4347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4347 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4348 if test -z "$ac_err"; then
4350 guile_cv_struct_utimbuf_needs_posix
=no
4353 echo "configure: failed program was:" >&5
4354 cat conftest.
$ac_ext >&5
4356 guile_cv_struct_utimbuf_needs_posix
=yes
4361 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
4362 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
4363 cat >> confdefs.h
<<\EOF
4364 #define UTIMBUF_NEEDS_POSIX 1
4369 #--------------------------------------------------------------------
4371 # Which way does the stack grow?
4373 #--------------------------------------------------------------------
4375 if test "$cross_compiling" = yes; then
4376 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
4378 cat > conftest.
$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4381 aux (l) unsigned long l;
4382 { int x; exit (l >= ((unsigned long)&x)); }
4383 main () { int q; aux((unsigned long)&q); }
4385 if { (eval echo configure
:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4387 cat >> confdefs.h
<<\EOF
4388 #define SCM_STACK_GROWS_UP 1
4392 echo "configure: failed program was:" >&5
4393 cat conftest.
$ac_ext >&5
4399 echo $ac_n "checking whether floats fit in longs""... $ac_c" 1>&6
4400 echo "configure:4401: checking whether floats fit in longs" >&5
4401 if eval "test \"`echo '$''{'guile_cv_type_float_fits_long'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 if test "$cross_compiling" = yes; then
4405 guile_cv_type_float_fits_long
=guess-yes
4407 cat > conftest.
$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 main () { exit (sizeof(float) > sizeof(long)); }
4412 if { (eval echo configure
:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4414 guile_cv_type_float_fits_long
=yes
4416 echo "configure: failed program was:" >&5
4417 cat conftest.
$ac_ext >&5
4419 guile_cv_type_float_fits_long
=no
4426 echo "$ac_t""$guile_cv_type_float_fits_long" 1>&6
4427 case $guile_cv_type_float_fits_long in
4429 cat >> confdefs.h
<<\EOF
4430 #define SCM_SINGLES 1
4435 cat >> confdefs.h
<<\EOF
4436 #define SCM_SINGLES 1
4439 echo "configure: warning: guessing that sizeof(long) == sizeof(float)" 1>&2
4440 echo "configure: warning: see SCM_SINGLES in scmconfig.h.in" 1>&2
4445 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
4446 echo "configure:4447: checking for struct linger" >&5
4447 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 cat > conftest.
$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4454 #include <sys/types.h>
4455 #include <sys/socket.h>
4457 struct linger lgr; lgr.l_linger = 100
4460 if { (eval echo configure
:4461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4462 scm_cv_struct_linger
="yes"
4464 echo "configure: failed program was:" >&5
4465 cat conftest.
$ac_ext >&5
4467 scm_cv_struct_linger
="no"
4472 echo "$ac_t""$scm_cv_struct_linger" 1>&6
4473 if test $scm_cv_struct_linger = yes; then
4474 cat >> confdefs.h
<<\EOF
4475 #define HAVE_STRUCT_LINGER 1
4480 #--------------------------------------------------------------------
4482 # How can you violate a stdio abstraction by setting a stream's fd?
4484 #--------------------------------------------------------------------
4488 #--------------------------------------------------------------------
4489 # How to find out whether a FILE structure contains buffered data.
4490 # From Tk we have the following list:
4491 # _cnt: Most UNIX systems
4492 # __cnt: HPUX and SCO
4495 # Or, in GNU libc there are two fields, _gptr and _egptr, which
4496 # have to be compared.
4497 # These can also be known as _IO_read_ptr and _IO_read_end.
4498 #--------------------------------------------------------------------
4501 #--------------------------------------------------------------------
4503 # Flags for thread support
4505 #--------------------------------------------------------------------
4507 ### What thread package has the user asked for?
4508 # Check whether --with-threads or --without-threads was given.
4509 if test "${with_threads+set}" = set; then
4510 withval
="$with_threads"
4517 ### Turn $with_threads into either the name of a threads package, like
4518 ### `qt', or `no', meaning that threads should not be supported.
4519 echo $ac_n "checking whether to support threads""... $ac_c" 1>&6
4520 echo "configure:4521: checking whether to support threads" >&5
4521 case "$with_threads" in
4522 "yes" |
"qt" |
"coop" |
"")
4528 { echo "configure: error: invalid value for --with-threads: $with_threads" 1>&2; exit 1; }
4531 echo "$ac_t""$with_threads" 1>&6
4533 ## Make sure the threads package we've chosen is actually supported on
4534 ## the present platform.
4535 case "${with_threads}" in
4537 ## This configures the QuickThreads package, and sets or clears
4538 ## the THREAD_PACKAGE variable if qthreads don't configure
4543 echo $ac_n "checking QuickThreads configuration""... $ac_c" 1>&6
4544 echo "configure:4545: checking QuickThreads configuration" >&5
4545 # How can we refer to the qt source directory from within the qt build
4546 # directory? For headers, we can rely on the fact that the qt src
4547 # directory appears in the #include path.
4548 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
4562 ## NetBSD needs to be told to pass the assembly code through
4563 ## the C preprocessor. Other GCC installations seem to do
4564 ## this by default, but NetBSD's doesn't. We could get the
4565 ## same effect by giving the file a name ending with .S
4566 ## instead of .s, but I don't see how to tell automake to do
4568 qthread_asflags
='-x assembler-with-cpp'
4575 qtmds_s
=md
/mips-irix5.s
4577 qtdmdb_s
=md
/mips_b.s
4584 qtdmdb_s
=md
/mips_b.s
4587 port_name
=sparc-sunos
4591 qtdmdb_s
=md
/_sparc_b.s
4598 qtdmdb_s
=md
/sparc_b.s
4608 echo "Unknown configuration; threads package disabled"
4614 # Did configuration succeed?
4615 if test -n "$THREAD_PACKAGE"; then
4616 echo "$ac_t""$port_name" 1>&6
4617 QTHREAD_LTLIBS
=libqthreads.la
4618 THREAD_CPPFLAGS
="-I$qtsrcdir -I../qt"
4619 THREAD_LIBS_LOCAL
="../qt/libqthreads.la"
4620 THREAD_LIBS_INSTALLED
="-lqthreads"
4622 echo "$ac_t""none; disabled" 1>&6
4639 ## If we're using threads, bring in some other parts of Guile which
4641 if test "${THREAD_PACKAGE}" != "" ; then
4642 cat >> confdefs.h
<<\EOF
4643 #define USE_THREADS 1
4647 ## Include the Guile thread interface in the library...
4648 LIBOBJS
="$LIBOBJS threads.o"
4650 ## ... and tell it which package to talk to.
4651 case "${THREAD_PACKAGE}" in
4653 cat >> confdefs.h
<<\EOF
4654 #define USE_COOP_THREADS 1
4659 { echo "configure: error: invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE}" 1>&2; exit 1; }
4663 ## Bring in scm_internal_select, if appropriate.
4664 if test $ac_cv_func_gettimeofday = yes &&
4665 test $ac_cv_func_select = yes; then
4666 LIBOBJS
="$LIBOBJS iselect.o"
4667 cat >> confdefs.h
<<\EOF
4668 #define GUILE_ISELECT 1
4674 ## If we're using GCC, ask for aggressive warnings.
4677 ## We had -Wstrict-prototypes in here for a bit, but Guile does too
4678 ## much stuff with generic function pointers for that to really be
4679 ## less than exasperating.
4680 CFLAGS
="$CFLAGS -Wall -Wpointer-arith -Wmissing-prototypes" ;;
4683 for ac_prog
in mawk gawk nawk
awk
4685 # Extract the first word of "$ac_prog", so it can be a program name with args.
4686 set dummy
$ac_prog; ac_word
=$2
4687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4688 echo "configure:4689: checking for $ac_word" >&5
4689 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
4690 echo $ac_n "(cached) $ac_c" 1>&6
4692 if test -n "$AWK"; then
4693 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4695 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4697 for ac_dir
in $ac_dummy; do
4698 test -z "$ac_dir" && ac_dir
=.
4699 if test -f $ac_dir/$ac_word; then
4700 ac_cv_prog_AWK
="$ac_prog"
4707 AWK
="$ac_cv_prog_AWK"
4708 if test -n "$AWK"; then
4709 echo "$ac_t""$AWK" 1>&6
4711 echo "$ac_t""no" 1>&6
4714 test -n "$AWK" && break
4718 ## If we're creating a shared library (using libtool!), then we'll
4719 ## need to generate a list of .lo files corresponding to the .o files
4720 ## given in LIBOBJS. We'll call it LIBLOBJS.
4721 LIBLOBJS
="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
4727 GUILE_LIBS
="$LDFLAGS $THREAD_LIBS_INSTALLED $LIBS"
4730 GUILE_STAMP
="`date`"
4737 cat > confcache
<<\EOF
4738 # This file is a shell script that caches the results of configure
4739 # tests run on this system so they can be shared between configure
4740 # scripts and configure runs. It is not useful on other systems.
4741 # If it contains results you don't want to keep, you may remove or edit it.
4743 # By default, configure uses ./config.cache as the cache file,
4744 # creating it if it does not exist already. You can give configure
4745 # the --cache-file=FILE option to use a different cache file; that is
4746 # what configure does when it calls configure scripts in
4747 # subdirectories, so they share the cache.
4748 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4749 # config.status only pays attention to the cache file if you give it the
4750 # --recheck option to rerun configure.
4753 # The following way of writing the cache mishandles newlines in values,
4754 # but we know of no workaround that is simple, portable, and efficient.
4755 # So, don't put newlines in cache variables' values.
4756 # Ultrix sh set writes to stderr and can't be redirected directly,
4757 # and sets the high bit in the cache file unless we assign to the vars.
4759 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4761 # `set' does not quote correctly, so add quotes (double-quote substitution
4762 # turns \\\\ into \\, and sed turns \\ into \).
4764 -e "s/'/'\\\\''/g" \
4765 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4768 # `set' quotes correctly as required by POSIX, so do not add quotes.
4769 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4772 if cmp -s $cache_file confcache
; then
4775 if test -w $cache_file; then
4776 echo "updating cache $cache_file"
4777 cat confcache
> $cache_file
4779 echo "not updating unwritable cache $cache_file"
4784 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4786 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4787 # Let make expand exec_prefix.
4788 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4790 # Any assignment to VPATH causes Sun make to only execute
4791 # the first set of double-colon rules, so remove it if not needed.
4792 # If there is a colon in the path, we need to keep it.
4793 if test "x$srcdir" = x.
; then
4794 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4797 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4799 DEFS
=-DHAVE_CONFIG_H
4801 # Without the "./", some shells look in PATH for config.status.
4802 : ${CONFIG_STATUS=./config.status}
4804 echo creating
$CONFIG_STATUS
4805 rm -f $CONFIG_STATUS
4806 cat > $CONFIG_STATUS <<EOF
4808 # Generated automatically by configure.
4809 # Run this file to recreate the current configuration.
4810 # This directory was configured as follows,
4811 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4813 # $0 $ac_configure_args
4815 # Compiler output produced by configure, useful for debugging
4816 # configure, is in ./config.log if it exists.
4818 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4821 case "\$ac_option" in
4822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4823 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4824 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4825 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4826 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4828 -help | --help | --hel | --he | --h)
4829 echo "\$ac_cs_usage"; exit 0 ;;
4830 *) echo "\$ac_cs_usage"; exit 1 ;;
4834 ac_given_srcdir=$srcdir
4835 ac_given_INSTALL="$INSTALL"
4837 trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf libguile/versiondat.h ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile libguile/scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4839 cat >> $CONFIG_STATUS <<EOF
4841 # Protect against being on the right side of a sed subst in config.status.
4842 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4843 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4847 s%@CFLAGS@%$CFLAGS%g
4848 s%@CPPFLAGS@%$CPPFLAGS%g
4849 s%@CXXFLAGS@%$CXXFLAGS%g
4850 s%@FFLAGS@%$FFLAGS%g
4852 s%@LDFLAGS@%$LDFLAGS%g
4854 s%@exec_prefix@%$exec_prefix%g
4855 s%@prefix@%$prefix%g
4856 s%@program_transform_name@%$program_transform_name%g
4857 s%@bindir@%$bindir%g
4858 s%@sbindir@%$sbindir%g
4859 s%@libexecdir@%$libexecdir%g
4860 s%@datadir@%$datadir%g
4861 s%@sysconfdir@%$sysconfdir%g
4862 s%@sharedstatedir@%$sharedstatedir%g
4863 s%@localstatedir@%$localstatedir%g
4864 s%@libdir@%$libdir%g
4865 s%@includedir@%$includedir%g
4866 s%@oldincludedir@%$oldincludedir%g
4867 s%@infodir@%$infodir%g
4868 s%@mandir@%$mandir%g
4869 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4870 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4871 s%@INSTALL_DATA@%$INSTALL_DATA%g
4872 s%@PACKAGE@%$PACKAGE%g
4873 s%@VERSION@%$VERSION%g
4874 s%@ACLOCAL@%$ACLOCAL%g
4875 s%@AUTOCONF@%$AUTOCONF%g
4876 s%@AUTOMAKE@%$AUTOMAKE%g
4877 s%@AUTOHEADER@%$AUTOHEADER%g
4878 s%@MAKEINFO@%$MAKEINFO%g
4879 s%@SET_MAKE@%$SET_MAKE%g
4880 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4881 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4883 s%@subdirs@%$subdirs%g
4887 s%@host_alias@%$host_alias%g
4888 s%@host_cpu@%$host_cpu%g
4889 s%@host_vendor@%$host_vendor%g
4890 s%@host_os@%$host_os%g
4892 s%@build_alias@%$build_alias%g
4893 s%@build_cpu@%$build_cpu%g
4894 s%@build_vendor@%$build_vendor%g
4895 s%@build_os@%$build_os%g
4896 s%@RANLIB@%$RANLIB%g
4900 s%@LIBTOOL@%$LIBTOOL%g
4901 s%@LIBOBJS@%$LIBOBJS%g
4902 s%@ALLOCA@%$ALLOCA%g
4903 s%@QTHREAD_LTLIBS@%$QTHREAD_LTLIBS%g
4904 s%@qtmd_h@%$qtmd_h%g
4905 s%@qtmds_s@%$qtmds_s%g
4906 s%@qtmdc_c@%$qtmdc_c%g
4907 s%@qtdmdb_s@%$qtdmdb_s%g
4908 s%@qthread_asflags@%$qthread_asflags%g
4909 s%@THREAD_PACKAGE@%$THREAD_PACKAGE%g
4910 s%@THREAD_CPPFLAGS@%$THREAD_CPPFLAGS%g
4911 s%@THREAD_LIBS_LOCAL@%$THREAD_LIBS_LOCAL%g
4912 s%@THREAD_LIBS_INSTALLED@%$THREAD_LIBS_INSTALLED%g
4914 s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
4915 s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
4916 s%@GUILE_VERSION@%$GUILE_VERSION%g
4917 s%@GUILE_LIBS@%$GUILE_LIBS%g
4918 s%@GUILE_STAMP@%$GUILE_STAMP%g
4919 s%@LIBLOBJS@%$LIBLOBJS%g
4924 cat >> $CONFIG_STATUS <<\EOF
4926 # Split the substitutions into bite-sized pieces for seds with
4927 # small command number limits, like on Digital OSF/1 and HP-UX.
4928 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4929 ac_file
=1 # Number of current file.
4930 ac_beg
=1 # First line for current file.
4931 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4934 while $ac_more_lines; do
4935 if test $ac_beg -gt 1; then
4936 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4938 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4940 if test ! -s conftest.s
$ac_file; then
4942 rm -f conftest.s
$ac_file
4944 if test -z "$ac_sed_cmds"; then
4945 ac_sed_cmds
="sed -f conftest.s$ac_file"
4947 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4949 ac_file
=`expr $ac_file + 1`
4951 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4954 if test -z "$ac_sed_cmds"; then
4959 cat >> $CONFIG_STATUS <<EOF
4961 CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf libguile/versiondat.h ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile"}
4963 cat >> $CONFIG_STATUS <<\EOF
4964 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4965 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4967 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4968 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4969 *) ac_file_in
="${ac_file}.in" ;;
4972 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4974 # Remove last slash and all that follows it. Not all systems have dirname.
4975 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4976 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4977 # The file is in a subdirectory.
4978 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4979 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4980 # A "../" for each directory in $ac_dir_suffix.
4981 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4983 ac_dir_suffix
= ac_dots
=
4986 case "$ac_given_srcdir" in
4988 if test -z "$ac_dots"; then top_srcdir
=.
4989 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4990 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4992 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4993 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4996 case "$ac_given_INSTALL" in
4997 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4998 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5001 echo creating
"$ac_file"
5003 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5005 *Makefile
*) ac_comsub
="1i\\
5006 # $configure_input" ;;
5010 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5012 s%@configure_input@%$configure_input%g
5013 s%@srcdir@%$srcdir%g
5014 s%@top_srcdir@%$top_srcdir%g
5015 s%@INSTALL@%$INSTALL%g
5016 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5020 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5021 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5023 # ac_d sets the value in "#define NAME VALUE" lines.
5024 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5025 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5028 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5029 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5030 ac_uB
='\([ ]\)%\1#\2define\3'
5033 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5034 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5035 ac_eB
='$%\1#\2define\3'
5039 if test "${CONFIG_HEADERS+set}" != set; then
5041 cat >> $CONFIG_STATUS <<EOF
5042 CONFIG_HEADERS="libguile/scmconfig.h"
5044 cat >> $CONFIG_STATUS <<\EOF
5046 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5047 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5049 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5050 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5051 *) ac_file_in
="${ac_file}.in" ;;
5054 echo creating
$ac_file
5056 rm -f conftest.frag conftest.
in conftest.out
5057 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5058 cat $ac_file_inputs > conftest.
in
5062 # Transform confdefs.h into a sed script conftest.vals that substitutes
5063 # the proper values into config.h.in to produce config.h. And first:
5064 # Protect against being on the right side of a sed subst in config.status.
5065 # Protect against being in an unquoted here document in config.status.
5067 cat > conftest.hdr
<<\EOF
5070 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5074 sed -n -f conftest.hdr confdefs.h > conftest.vals
5077 # This sed command replaces #undef with comments. This is necessary, for
5078 # example, in the case of _POSIX_SOURCE, which is predefined and required
5079 # on some systems where configure will not decide to define it.
5080 cat >> conftest.vals <<\EOF
5081 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5084 # Break up conftest.vals because some shells have a limit on
5085 # the size of here documents, and old seds have small limits too.
5090 ac_lines=`grep -c . conftest.vals
`
5091 # grep -c gives empty output for an empty file on some AIX systems.
5092 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5093 # Write a limited-size here document to conftest.frag.
5094 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5095 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5097 sed -f conftest.frag conftest.in > conftest.out
5099 mv conftest.out conftest.in
5101 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5103 mv conftest.tail conftest.vals
5107 cat >> $CONFIG_STATUS <<\EOF
5108 rm -f conftest.frag conftest.h
5109 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5110 cat conftest.in >> conftest.h
5112 if cmp -s $ac_file conftest.h 2>/dev/null; then
5113 echo "$ac_file is unchanged"
5116 # Remove last slash and all that follows it. Not all systems have dirname.
5117 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5118 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5119 # The file is in a subdirectory.
5120 test ! -d "$ac_dir" && mkdir "$ac_dir"
5123 mv conftest.h $ac_file
5128 cat >> $CONFIG_STATUS <<EOF
5132 cat >> $CONFIG_STATUS <<\EOF
5133 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
5134 chmod +x libguile/guile-snarf
5137 chmod +x $CONFIG_STATUS
5138 rm -fr confdefs* $ac_clean_files
5139 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5141 if test "$no_recursion" != yes; then
5143 # Remove --cache-file and --srcdir arguments so they do not pile up.
5144 ac_sub_configure_args=
5146 for ac_arg in $ac_configure_args; do
5147 if test -n "$ac_prev"; then
5152 -cache-file | --cache-file | --cache-fil | --cache-fi \
5153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5154 ac_prev=cache_file ;;
5155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5162 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5166 for ac_config_dir in guile-readline; do
5168 # Do not complain, so a configure script can configure whichever
5169 # parts of a large source tree are present.
5170 if test ! -d $srcdir/$ac_config_dir; then
5174 echo configuring in $ac_config_dir
5179 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5181 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5189 # A "../" for each directory in /$ac_config_dir.
5190 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5193 .) # No --srcdir option. We are building in place.
5194 ac_sub_srcdir=$srcdir ;;
5195 /*) # Absolute path.
5196 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5198 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5201 # Check for guested configure; otherwise get Cygnus style configure.
5202 if test -f $ac_sub_srcdir/configure; then
5203 ac_sub_configure=$ac_sub_srcdir/configure
5204 elif test -f $ac_sub_srcdir/configure.in; then
5205 ac_sub_configure=$ac_configure
5207 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5211 # The recursion is here.
5212 if test -n "$ac_sub_configure"; then
5214 # Make the cache file name correct relative to the subdirectory.
5215 case "$cache_file" in
5216 /*) ac_sub_cache_file=$cache_file ;;
5218 ac_sub_cache_file="$ac_dots$cache_file" ;;
5220 case "$ac_given_INSTALL" in
5221 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5222 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5225 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5226 # The eval makes quoting arguments work.
5227 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5230 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }