3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --enable-dynamic-linking Include support for dynamic linking"
20 --enable-guile-debug Include internal debugging functions"
22 --enable-shared build shared libraries [default=yes]
23 --enable-shared=PKGS only build shared libraries if the current package
24 appears as an element in the PKGS list"
26 --enable-static build static libraries [default=yes]
27 --enable-static=PKGS only build shared libraries if the current package
28 appears as an element in the PKGS list"
30 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
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 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
96 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
97 bindir
="$ac_optarg" ;;
99 -build |
--build |
--buil |
--bui |
--bu)
101 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
102 build
="$ac_optarg" ;;
104 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
105 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
106 ac_prev
=cache_file
;;
107 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
108 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
109 cache_file
="$ac_optarg" ;;
111 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
113 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
115 datadir
="$ac_optarg" ;;
117 -disable-* |
--disable-*)
118 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* |
--enable-*)
127 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
140 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
141 |
--exec |
--exe |
--ex)
142 ac_prev
=exec_prefix
;;
143 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
144 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
145 |
--exec=* |
--exe=* |
--ex=*)
146 exec_prefix
="$ac_optarg" ;;
148 -gas |
--gas |
--ga |
--g)
149 # Obsolete; use --with-gas.
152 -help |
--help |
--hel |
--he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --version print the version of autoconf that created configure
164 Directory and file names:
165 --prefix=PREFIX install architecture-independent files in PREFIX
167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 --bindir=DIR user executables in DIR [EPREFIX/bin]
170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172 --datadir=DIR read-only architecture-independent data in DIR
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179 --includedir=DIR C header files in DIR [PREFIX/include]
180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181 --infodir=DIR info documentation in DIR [PREFIX/info]
182 --mandir=DIR man documentation in DIR [PREFIX/man]
183 --srcdir=DIR find the sources in DIR [configure dir or ..]
184 --program-prefix=PREFIX prepend PREFIX to installed program names
185 --program-suffix=SUFFIX append SUFFIX to installed program names
186 --program-transform-name=PROGRAM
187 run sed PROGRAM on installed program names
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194 Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
202 if test -n "$ac_help"; then
203 echo "--enable and --with options recognized:$ac_help"
207 -host |
--host |
--hos |
--ho)
209 -host=* |
--host=* |
--hos=* |
--ho=*)
212 -includedir |
--includedir |
--includedi |
--included |
--include \
213 |
--includ |
--inclu |
--incl |
--inc)
214 ac_prev
=includedir
;;
215 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
216 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
217 includedir
="$ac_optarg" ;;
219 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
221 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
222 infodir
="$ac_optarg" ;;
224 -libdir |
--libdir |
--libdi |
--libd)
226 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
227 libdir
="$ac_optarg" ;;
229 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
230 |
--libexe |
--libex |
--libe)
231 ac_prev
=libexecdir
;;
232 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
233 |
--libexe=* |
--libex=* |
--libe=*)
234 libexecdir
="$ac_optarg" ;;
236 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
237 |
--localstate |
--localstat |
--localsta |
--localst \
238 |
--locals |
--local |
--loca |
--loc |
--lo)
239 ac_prev
=localstatedir
;;
240 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
241 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
242 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
243 localstatedir
="$ac_optarg" ;;
245 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
247 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
248 mandir
="$ac_optarg" ;;
251 # Obsolete; use --without-fp.
254 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
258 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
259 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
262 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
263 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
264 |
--oldin |
--oldi |
--old |
--ol |
--o)
265 ac_prev
=oldincludedir
;;
266 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
267 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
268 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
269 oldincludedir
="$ac_optarg" ;;
271 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
273 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
274 prefix
="$ac_optarg" ;;
276 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
277 |
--program-pre |
--program-pr |
--program-p)
278 ac_prev
=program_prefix
;;
279 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
280 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
281 program_prefix
="$ac_optarg" ;;
283 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
284 |
--program-suf |
--program-su |
--program-s)
285 ac_prev
=program_suffix
;;
286 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
287 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
288 program_suffix
="$ac_optarg" ;;
290 -program-transform-name |
--program-transform-name \
291 |
--program-transform-nam |
--program-transform-na \
292 |
--program-transform-n |
--program-transform- \
293 |
--program-transform |
--program-transfor \
294 |
--program-transfo |
--program-transf \
295 |
--program-trans |
--program-tran \
296 |
--progr-tra |
--program-tr |
--program-t)
297 ac_prev
=program_transform_name
;;
298 -program-transform-name=* |
--program-transform-name=* \
299 |
--program-transform-nam=* |
--program-transform-na=* \
300 |
--program-transform-n=* |
--program-transform-=* \
301 |
--program-transform=* |
--program-transfor=* \
302 |
--program-transfo=* |
--program-transf=* \
303 |
--program-trans=* |
--program-tran=* \
304 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
305 program_transform_name
="$ac_optarg" ;;
307 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
308 |
-silent |
--silent |
--silen |
--sile |
--sil)
311 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
313 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
315 sbindir
="$ac_optarg" ;;
317 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
318 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
319 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
321 ac_prev
=sharedstatedir
;;
322 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
323 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
324 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
326 sharedstatedir
="$ac_optarg" ;;
328 -site |
--site |
--sit)
330 -site=* |
--site=* |
--sit=*)
333 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
335 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
336 srcdir
="$ac_optarg" ;;
338 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
339 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
340 ac_prev
=sysconfdir
;;
341 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
342 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
343 sysconfdir
="$ac_optarg" ;;
345 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
347 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
348 target
="$ac_optarg" ;;
350 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
353 -version |
--version |
--versio |
--versi |
--vers)
354 echo "configure generated by autoconf version 2.12"
358 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package
=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}='$ac_optarg'" ;;
370 -without-* |
--without-*)
371 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package
=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}=no" ;;
380 # Obsolete; use --with-x.
383 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
384 |
--x-incl |
--x-inc |
--x-in |
--x-i)
385 ac_prev
=x_includes
;;
386 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
387 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
388 x_includes
="$ac_optarg" ;;
390 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
391 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
392 ac_prev
=x_libraries
;;
393 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
394 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
395 x_libraries
="$ac_optarg" ;;
397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 if test "x$nonopt" != xNONE
; then
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419 # File descriptor usage:
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
445 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
446 |
--no-cr |
--no-c) ;;
447 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
448 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
449 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
456 # Only set these to C if already set. These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
461 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
463 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest
* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file
=Makefile.
in
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476 ac_srcdir_defaulted
=yes
477 # Try the directory containing this script, then its parent.
479 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
482 if test ! -r $srcdir/$ac_unique_file; then
486 ac_srcdir_defaulted
=no
488 if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE
; then
500 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
502 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 for ac_site_file
in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file"
512 if test -r "$cache_file"; then
513 echo "loading cache $cache_file"
516 echo "creating cache $cache_file"
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp
='$CPP $CPPFLAGS'
523 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling
=$ac_cv_prog_cc_cross
527 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
528 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
536 ac_n
= ac_c
='\c' ac_t
=
540 .
$srcdir/GUILE-VERSION
542 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
543 if test -f $ac_dir/install-sh
; then
545 ac_install_sh
="$ac_aux_dir/install-sh -c"
547 elif test -f $ac_dir/install.sh
; then
549 ac_install_sh
="$ac_aux_dir/install.sh -c"
553 if test -z "$ac_aux_dir"; then
554 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
556 ac_config_guess
=$ac_aux_dir/config.guess
557 ac_config_sub
=$ac_aux_dir/config.sub
558 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
560 # Find a good install program. We prefer a C program (faster),
561 # so one script is as good as another. But avoid the broken or
562 # incompatible versions:
563 # SysV /etc/install, /usr/sbin/install
564 # SunOS /usr/etc/install
567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
569 # ./install, which can be erroneously created by make from ./install.sh.
570 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
571 echo "configure:572: checking for a BSD compatible install" >&5
572 if test -z "$INSTALL"; then
573 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
576 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
577 for ac_dir
in $PATH; do
578 # Account for people who put trailing slashes in PATH elements.
580 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
582 # OSF1 and SCO ODT 3.0 have their own names for install.
583 for ac_prog
in ginstall installbsd scoinst
install; do
584 if test -f $ac_dir/$ac_prog; then
585 if test $ac_prog = install &&
586 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
587 # AIX install. It has an incompatible calling convention.
588 # OSF/1 installbsd also uses dspmsg, but is usable.
591 ac_cv_path_install
="$ac_dir/$ac_prog -c"
602 if test "${ac_cv_path_install+set}" = set; then
603 INSTALL
="$ac_cv_path_install"
605 # As a last resort, use the slow shell script. We don't cache a
606 # path for INSTALL within a source directory, because that will
607 # break other packages using the cache if that directory is
608 # removed, or if the path is relative.
609 INSTALL
="$ac_install_sh"
612 echo "$ac_t""$INSTALL" 1>&6
614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
615 # It thinks the first close brace ends the variable substitution.
616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
618 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
623 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
624 echo "configure:625: checking whether build environment is sane" >&5
627 echo timestamp
> conftestfile
628 # Do `set' in a subshell so we don't clobber the current shell's
629 # arguments. Must try -L first in case configure is actually a
630 # symlink; some systems play weird games with the mod time of symlinks
631 # (eg FreeBSD returns the mod time of the symlink's containing
634 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
635 if test "$*" = "X"; then
637 set X
`ls -t $srcdir/configure conftestfile`
639 if test "$*" != "X $srcdir/configure conftestfile" \
640 && test "$*" != "X conftestfile $srcdir/configure"; then
642 # If neither matched, then we have a broken ls. This can happen
643 # if, for instance, CONFIG_SHELL is bash and it inherits a
644 # broken ls alias from the environment. This has actually
645 # happened. Such a system could not be considered "sane".
646 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
647 alias in your environment" 1>&2; exit 1; }
650 test "$2" = conftestfile
656 { echo "configure: error: newly created file is older than distributed files!
657 Check your system clock" 1>&2; exit 1; }
660 echo "$ac_t""yes" 1>&6
661 if test "$program_transform_name" = s
,x
,x
,; then
662 program_transform_name
=
664 # Double any \ or $. echo might interpret backslashes.
665 cat <<\EOF_SED
> conftestsed
666 s
,\\,\\\\,g
; s
,\$
,$$
,g
668 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
671 test "$program_prefix" != NONE
&&
672 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
673 # Use a double $ so make ignores it.
674 test "$program_suffix" != NONE
&&
675 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
677 # sed with no file args requires a program.
678 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
680 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
681 echo "configure:682: checking whether ${MAKE-make} sets \${MAKE}" >&5
682 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
683 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
686 cat > conftestmake
<<\EOF
688 @
echo 'ac_maketemp="${MAKE}"'
690 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
691 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
692 if test -n "$ac_maketemp"; then
693 eval ac_cv_prog_make_
${ac_make}_set
=yes
695 eval ac_cv_prog_make_
${ac_make}_set
=no
699 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
700 echo "$ac_t""yes" 1>&6
703 echo "$ac_t""no" 1>&6
704 SET_MAKE
="MAKE=${MAKE-make}"
712 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
713 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
718 missing_dir
=`cd $ac_aux_dir && pwd`
719 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
720 echo "configure:721: checking for working aclocal" >&5
721 # Run test in a subshell; some versions of sh will print an error if
722 # an executable is not found, even if stderr is redirected.
723 # Redirect stdin to placate older versions of autoconf. Sigh.
724 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
726 echo "$ac_t""found" 1>&6
728 ACLOCAL
="$missing_dir/missing aclocal"
729 echo "$ac_t""missing" 1>&6
732 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
733 echo "configure:734: checking for working autoconf" >&5
734 # Run test in a subshell; some versions of sh will print an error if
735 # an executable is not found, even if stderr is redirected.
736 # Redirect stdin to placate older versions of autoconf. Sigh.
737 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
739 echo "$ac_t""found" 1>&6
741 AUTOCONF
="$missing_dir/missing autoconf"
742 echo "$ac_t""missing" 1>&6
745 echo $ac_n "checking for working automake""... $ac_c" 1>&6
746 echo "configure:747: checking for working automake" >&5
747 # Run test in a subshell; some versions of sh will print an error if
748 # an executable is not found, even if stderr is redirected.
749 # Redirect stdin to placate older versions of autoconf. Sigh.
750 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
752 echo "$ac_t""found" 1>&6
754 AUTOMAKE
="$missing_dir/missing automake"
755 echo "$ac_t""missing" 1>&6
758 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
759 echo "configure:760: checking for working autoheader" >&5
760 # Run test in a subshell; some versions of sh will print an error if
761 # an executable is not found, even if stderr is redirected.
762 # Redirect stdin to placate older versions of autoconf. Sigh.
763 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
764 AUTOHEADER
=autoheader
765 echo "$ac_t""found" 1>&6
767 AUTOHEADER
="$missing_dir/missing autoheader"
768 echo "$ac_t""missing" 1>&6
771 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
772 echo "configure:773: checking for working makeinfo" >&5
773 # Run test in a subshell; some versions of sh will print an error if
774 # an executable is not found, even if stderr is redirected.
775 # Redirect stdin to placate older versions of autoconf. Sigh.
776 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
778 echo "$ac_t""found" 1>&6
780 MAKEINFO
="$missing_dir/missing makeinfo"
781 echo "$ac_t""missing" 1>&6
785 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
786 echo "configure:787: checking whether to enable maintainer-specific portions of Makefiles" >&5
787 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
788 if test "${enable_maintainer_mode+set}" = set; then
789 enableval
="$enable_maintainer_mode"
790 USE_MAINTAINER_MODE
=$enableval
792 USE_MAINTAINER_MODE
=no
795 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
796 if test $USE_MAINTAINER_MODE = yes; then
807 #--------------------------------------------------------------------
811 #--------------------------------------------------------------------
813 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
814 if test "${enable_dynamic_linking+set}" = set; then
815 enableval
="$enable_dynamic_linking"
818 enable_dynamic_linking
=yes
822 # Check whether --enable-guile-debug or --disable-guile-debug was given.
823 if test "${enable_guile_debug+set}" = set; then
824 enableval
="$enable_guile_debug"
828 if test "$enableval" = y ||
test "$enableval" = yes; then
829 cat >> confdefs.h
<<\EOF
830 #define GUILE_DEBUG 1
835 cat >> confdefs.h
<<\EOF
836 #define DEBUG_EXTENSIONS 1
839 cat >> confdefs.h
<<\EOF
840 #define READER_EXTENSIONS 1
844 #--------------------------------------------------------------------
846 # Extract the first word of "gcc", so it can be a program name with args.
847 set dummy gcc
; ac_word
=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$CC"; then
854 ac_cv_prog_CC
="$CC" # Let the user override the test.
856 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
857 for ac_dir
in $PATH; do
858 test -z "$ac_dir" && ac_dir
=.
859 if test -f $ac_dir/$ac_word; then
868 if test -n "$CC"; then
869 echo "$ac_t""$CC" 1>&6
871 echo "$ac_t""no" 1>&6
874 if test -z "$CC"; then
875 # Extract the first word of "cc", so it can be a program name with args.
876 set dummy cc
; ac_word
=$2
877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
878 echo "configure:879: checking for $ac_word" >&5
879 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 if test -n "$CC"; then
883 ac_cv_prog_CC
="$CC" # Let the user override the test.
885 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
887 for ac_dir
in $PATH; do
888 test -z "$ac_dir" && ac_dir
=.
889 if test -f $ac_dir/$ac_word; then
890 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
899 if test $ac_prog_rejected = yes; then
900 # We found a bogon in the path, so make sure we never use it.
901 set dummy
$ac_cv_prog_CC
903 if test $# -gt 0; then
904 # We chose a different compiler from the bogus one.
905 # However, it has the same basename, so the bogon will be chosen
906 # first if we set CC to just the basename; use the full file name.
908 set dummy
"$ac_dir/$ac_word" "$@"
916 if test -n "$CC"; then
917 echo "$ac_t""$CC" 1>&6
919 echo "$ac_t""no" 1>&6
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp
='$CPP $CPPFLAGS'
931 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling
=$ac_cv_prog_cc_cross
935 cat > conftest.
$ac_ext <<EOF
936 #line 937 "configure"
937 #include "confdefs.h"
940 if { (eval echo configure
:941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
941 ac_cv_prog_cc_works
=yes
942 # If we can't run a trivial program, we are probably using a cross compiler.
943 if (.
/conftest
; exit) 2>/dev
/null
; then
944 ac_cv_prog_cc_cross
=no
946 ac_cv_prog_cc_cross
=yes
949 echo "configure: failed program was:" >&5
950 cat conftest.
$ac_ext >&5
951 ac_cv_prog_cc_works
=no
955 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
956 if test $ac_cv_prog_cc_works = no
; then
957 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
961 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
962 cross_compiling
=$ac_cv_prog_cc_cross
964 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
965 echo "configure:966: checking whether we are using GNU C" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 cat > conftest.c
<<EOF
974 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
981 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
983 if test $ac_cv_prog_gcc = yes; then
985 ac_test_CFLAGS
="${CFLAGS+set}"
986 ac_save_CFLAGS
="$CFLAGS"
988 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
989 echo "configure:990: checking whether ${CC-cc} accepts -g" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 echo 'void f(){}' > conftest.c
994 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1003 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1004 if test "$ac_test_CFLAGS" = set; then
1005 CFLAGS
="$ac_save_CFLAGS"
1006 elif test $ac_cv_prog_cc_g = yes; then
1013 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1016 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1017 echo "configure:1018: checking how to run the C preprocessor" >&5
1018 # On Suns, sometimes $CPP names a directory.
1019 if test -n "$CPP" && test -d "$CPP"; then
1022 if test -z "$CPP"; then
1023 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 # This must be in double quotes, not single quotes, because CPP may get
1027 # substituted into the Makefile and "${CC-cc}" will confuse make.
1029 # On the NeXT, cc -E runs the code through the compiler's parser,
1030 # not just through cpp.
1031 cat > conftest.
$ac_ext <<EOF
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1037 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1038 { (eval echo configure
:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1039 ac_err
=`grep -v '^ *+' conftest.out`
1040 if test -z "$ac_err"; then
1044 echo "configure: failed program was:" >&5
1045 cat conftest.
$ac_ext >&5
1047 CPP
="${CC-cc} -E -traditional-cpp"
1048 cat > conftest.
$ac_ext <<EOF
1049 #line 1050 "configure"
1050 #include "confdefs.h"
1054 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1055 { (eval echo configure
:1056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1056 ac_err
=`grep -v '^ *+' conftest.out`
1057 if test -z "$ac_err"; then
1061 echo "configure: failed program was:" >&5
1062 cat conftest.
$ac_ext >&5
1069 ac_cv_prog_CPP
="$CPP"
1071 CPP
="$ac_cv_prog_CPP"
1073 ac_cv_prog_CPP
="$CPP"
1075 echo "$ac_t""$CPP" 1>&6
1077 # Check whether --enable-shared or --disable-shared was given.
1078 if test "${enable_shared+set}" = set; then
1079 enableval
="$enable_shared"
1080 p
=${PACKAGE-default}
1081 case "$enableval" in
1082 yes) enable_shared
=yes ;;
1083 no
) enable_shared
=no
;;
1086 # Look at the argument we got. We use all the common list separators.
1087 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1088 for pkg
in $enableval; do
1089 if test "X$pkg" = "X$p"; then
1100 # Check whether --enable-static or --disable-static was given.
1101 if test "${enable_static+set}" = set; then
1102 enableval
="$enable_static"
1103 p
=${PACKAGE-default}
1104 case "$enableval" in
1105 yes) enable_static
=yes ;;
1106 no
) enable_static
=no
;;
1109 # Look at the argument we got. We use all the common list separators.
1110 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1111 for pkg
in $enableval; do
1112 if test "X$pkg" = "X$p"; then
1124 # Make sure we can run config.sub.
1125 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1126 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1129 echo $ac_n "checking host system type""... $ac_c" 1>&6
1130 echo "configure:1131: checking host system type" >&5
1133 case "$host_alias" in
1137 if host_alias
=`$ac_config_guess`; then :
1138 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1140 *) host_alias
=$nonopt ;;
1144 host=`$ac_config_sub $host_alias`
1145 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1146 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1147 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1148 echo "$ac_t""$host" 1>&6
1150 # Extract the first word of "ranlib", so it can be a program name with args.
1151 set dummy ranlib
; ac_word
=$2
1152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153 echo "configure:1154: checking for $ac_word" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 if test -n "$RANLIB"; then
1158 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1160 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1161 for ac_dir
in $PATH; do
1162 test -z "$ac_dir" && ac_dir
=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_RANLIB
="ranlib"
1169 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1172 RANLIB
="$ac_cv_prog_RANLIB"
1173 if test -n "$RANLIB"; then
1174 echo "$ac_t""$RANLIB" 1>&6
1176 echo "$ac_t""no" 1>&6
1179 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1180 if test "${with_gnu_ld+set}" = set; then
1181 withval
="$with_gnu_ld"
1182 test "$withval" = no || with_gnu_ld
=yes
1189 if test "$ac_cv_prog_gcc" = yes; then
1190 # Check if gcc -print-prog-name=ld gives a path.
1191 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1192 echo "configure:1193: checking for ld used by GCC" >&5
1193 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1195 # Accept absolute paths.
1197 test -z "$LD" && LD
="$ac_prog"
1200 # If it fails, then pretend we aren't using GCC.
1204 # If it is relative, then search for the first ld in PATH.
1208 elif test "$with_gnu_ld" = yes; then
1209 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1210 echo "configure:1211: checking for GNU ld" >&5
1212 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1213 echo "configure:1214: checking for non-GNU ld" >&5
1215 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 if test -z "$LD"; then
1219 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1220 for ac_dir
in $PATH; do
1221 test -z "$ac_dir" && ac_dir
=.
1222 if test -f "$ac_dir/$ac_prog"; then
1223 ac_cv_path_LD
="$ac_dir/$ac_prog"
1224 # Check to see if the program is GNU ld. I'd rather use --version,
1225 # but apparently some GNU ld's only accept -v.
1226 # Break only if it was the GNU/non-GNU ld that we prefer.
1227 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1228 test "$with_gnu_ld" != no
&& break
1230 test "$with_gnu_ld" != yes && break
1236 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1241 if test -n "$LD"; then
1242 echo "$ac_t""$LD" 1>&6
1244 echo "$ac_t""no" 1>&6
1246 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1248 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1249 echo "configure:1250: checking if the linker ($LD) is GNU ld" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1254 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1255 ac_cv_prog_gnu_ld
=yes
1257 ac_cv_prog_gnu_ld
=no
1261 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1264 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1265 echo "configure:1266: checking for BSD-compatible nm" >&5
1266 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1271 ac_cv_path_NM
="$NM" # Let the user override the test with a path.
1274 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1275 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1276 test -z "$ac_dir" && ac_dir
=.
1277 if test -f $ac_dir/nm
; then
1278 # Check to see if the nm accepts a BSD-compat flag.
1279 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1280 # nm: unknown option "B" ignored
1281 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1282 ac_cv_path_NM
="$ac_dir/nm -B"
1283 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1284 ac_cv_path_NM
="$ac_dir/nm -p"
1286 ac_cv_path_NM
="$ac_dir/nm"
1292 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1298 echo "$ac_t""$NM" 1>&6
1301 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1302 echo "configure:1303: checking whether ln -s works" >&5
1303 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1307 if ln -s X conftestdata
2>/dev
/null
1310 ac_cv_prog_LN_S
="ln -s"
1315 LN_S
="$ac_cv_prog_LN_S"
1316 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1317 echo "$ac_t""yes" 1>&6
1319 echo "$ac_t""no" 1>&6
1322 # Always use our own libtool.
1323 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1325 # Check for any special flags to pass to ltconfig.
1327 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1328 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1329 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1330 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1331 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1333 # Some flags need to be propagated to the compiler or linker for good
1337 # Find out which ABI we are using.
1338 echo '#line 1339 "configure"' > conftest.
$ac_ext
1339 if { (eval echo configure
:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1340 case "`/usr/bin/file conftest.o`" in
1356 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1357 CFLAGS
="$CFLAGS -belf"
1361 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1362 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1363 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1364 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1365 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1366 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1369 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1370 echo "configure:1371: checking for AIX" >&5
1371 cat > conftest.
$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1380 egrep "yes" >/dev
/null
2>&1; then
1382 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1383 #define _ALL_SOURCE 1
1388 echo "$ac_t""no" 1>&6
1393 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1394 echo "configure:1395: checking for POSIXized ISC" >&5
1395 if test -d /etc
/conf
/kconfig.d
&&
1396 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1398 echo "$ac_t""yes" 1>&6
1399 ISC
=yes # If later tests want to check for ISC.
1400 cat >> confdefs.h
<<\EOF
1401 #define _POSIX_SOURCE 1
1404 if test "$GCC" = yes; then
1410 echo "$ac_t""no" 1>&6
1414 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1415 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1416 echo "configure:1417: checking for minix/config.h" >&5
1417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1420 cat > conftest.
$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1423 #include <minix/config.h>
1425 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1426 { (eval echo configure
:1427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1427 ac_err
=`grep -v '^ *+' conftest.out`
1428 if test -z "$ac_err"; then
1430 eval "ac_cv_header_$ac_safe=yes"
1433 echo "configure: failed program was:" >&5
1434 cat conftest.
$ac_ext >&5
1436 eval "ac_cv_header_$ac_safe=no"
1440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1444 echo "$ac_t""no" 1>&6
1448 if test "$MINIX" = yes; then
1449 cat >> confdefs.h
<<\EOF
1450 #define _POSIX_SOURCE 1
1453 cat >> confdefs.h
<<\EOF
1454 #define _POSIX_1_SOURCE 2
1457 cat >> confdefs.h
<<\EOF
1464 echo $ac_n "checking for working const""... $ac_c" 1>&6
1465 echo "configure:1466: checking for working const" >&5
1466 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 cat > conftest.
$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1475 /* Ultrix mips cc rejects this. */
1476 typedef int charset[2]; const charset x;
1477 /* SunOS 4.1.1 cc rejects this. */
1478 char const *const *ccp;
1480 /* NEC SVR4.0.2 mips cc rejects this. */
1481 struct point {int x, y;};
1482 static struct point const zero = {0,0};
1483 /* AIX XL C 1.02.0.0 rejects this.
1484 It does not let you subtract one const X* pointer from another in an arm
1485 of an if-expression whose if-part is not a constant expression */
1486 const char *g = "string";
1487 ccp = &g + (g ? g-g : 0);
1488 /* HPUX 7.0 cc rejects these. */
1491 ccp = (char const *const *) p;
1492 { /* SCO 3.2v4 cc rejects this. */
1494 char const *s = 0 ? (char *) 0 : (char const *) 0;
1498 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1500 const int *foo = &x[0];
1503 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1504 typedef const int *iptr;
1508 { /* AIX XL C 1.02.0.0 rejects this saying
1509 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1510 struct s { int j; const int *ap[3]; };
1511 struct s *b; b->j = 5;
1513 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1519 if { (eval echo configure
:1520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1523 echo "configure: failed program was:" >&5
1524 cat conftest.
$ac_ext >&5
1531 echo "$ac_t""$ac_cv_c_const" 1>&6
1532 if test $ac_cv_c_const = no
; then
1533 cat >> confdefs.h
<<\EOF
1539 echo $ac_n "checking for inline""... $ac_c" 1>&6
1540 echo "configure:1541: checking for inline" >&5
1541 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1545 for ac_kw
in inline __inline__ __inline
; do
1546 cat > conftest.
$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1554 if { (eval echo configure
:1555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1556 ac_cv_c_inline
=$ac_kw; break
1558 echo "configure: failed program was:" >&5
1559 cat conftest.
$ac_ext >&5
1566 echo "$ac_t""$ac_cv_c_inline" 1>&6
1567 case "$ac_cv_c_inline" in
1569 no
) cat >> confdefs.h
<<\EOF
1573 *) cat >> confdefs.h
<<EOF
1574 #define inline $ac_cv_c_inline
1580 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1581 echo "configure:1582: checking for ANSI C header files" >&5
1582 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 cat > conftest.
$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1593 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1594 { (eval echo configure
:1595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1595 ac_err
=`grep -v '^ *+' conftest.out`
1596 if test -z "$ac_err"; then
1598 ac_cv_header_stdc
=yes
1601 echo "configure: failed program was:" >&5
1602 cat conftest.
$ac_ext >&5
1604 ac_cv_header_stdc
=no
1608 if test $ac_cv_header_stdc = yes; then
1609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1610 cat > conftest.
$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1616 egrep "memchr" >/dev
/null
2>&1; then
1620 ac_cv_header_stdc
=no
1626 if test $ac_cv_header_stdc = yes; then
1627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1628 cat > conftest.
$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1634 egrep "free" >/dev
/null
2>&1; then
1638 ac_cv_header_stdc
=no
1644 if test $ac_cv_header_stdc = yes; then
1645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1646 if test "$cross_compiling" = yes; then
1649 cat > conftest.
$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1653 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1654 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1655 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1656 int main () { int i; for (i = 0; i < 256; i++)
1657 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1661 if { (eval echo configure
:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1665 echo "configure: failed program was:" >&5
1666 cat conftest.
$ac_ext >&5
1668 ac_cv_header_stdc
=no
1676 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1677 if test $ac_cv_header_stdc = yes; then
1678 cat >> confdefs.h
<<\EOF
1679 #define STDC_HEADERS 1
1685 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1687 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1688 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1689 echo "configure:1690: checking for $ac_hdr that defines DIR" >&5
1690 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1693 cat > conftest.
$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1696 #include <sys/types.h>
1702 if { (eval echo configure
:1703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1704 eval "ac_cv_header_dirent_$ac_safe=yes"
1706 echo "configure: failed program was:" >&5
1707 cat conftest.
$ac_ext >&5
1709 eval "ac_cv_header_dirent_$ac_safe=no"
1713 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1714 echo "$ac_t""yes" 1>&6
1715 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1716 cat >> confdefs.h
<<EOF
1717 #define $ac_tr_hdr 1
1719 ac_header_dirent
=$ac_hdr; break
1721 echo "$ac_t""no" 1>&6
1724 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1725 if test $ac_header_dirent = dirent.h
; then
1726 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1727 echo "configure:1728: checking for opendir in -ldir" >&5
1728 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1732 ac_save_LIBS
="$LIBS"
1734 cat > conftest.
$ac_ext <<EOF
1735 #line 1736 "configure"
1736 #include "confdefs.h"
1737 /* Override any gcc2 internal prototype to avoid an error. */
1738 /* We use char because int might match the return type of a gcc2
1739 builtin and then its argument prototype would still apply. */
1746 if { (eval echo configure
:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1748 eval "ac_cv_lib_$ac_lib_var=yes"
1750 echo "configure: failed program was:" >&5
1751 cat conftest.
$ac_ext >&5
1753 eval "ac_cv_lib_$ac_lib_var=no"
1756 LIBS
="$ac_save_LIBS"
1759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1760 echo "$ac_t""yes" 1>&6
1763 echo "$ac_t""no" 1>&6
1767 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1768 echo "configure:1769: checking for opendir in -lx" >&5
1769 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 ac_save_LIBS
="$LIBS"
1775 cat > conftest.
$ac_ext <<EOF
1776 #line 1777 "configure"
1777 #include "confdefs.h"
1778 /* Override any gcc2 internal prototype to avoid an error. */
1779 /* We use char because int might match the return type of a gcc2
1780 builtin and then its argument prototype would still apply. */
1787 if { (eval echo configure
:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1789 eval "ac_cv_lib_$ac_lib_var=yes"
1791 echo "configure: failed program was:" >&5
1792 cat conftest.
$ac_ext >&5
1794 eval "ac_cv_lib_$ac_lib_var=no"
1797 LIBS
="$ac_save_LIBS"
1800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1801 echo "$ac_t""yes" 1>&6
1804 echo "$ac_t""no" 1>&6
1809 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1810 echo "configure:1811: checking whether time.h and sys/time.h may both be included" >&5
1811 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.
$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 #include <sys/types.h>
1818 #include <sys/time.h>
1824 if { (eval echo configure
:1825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1826 ac_cv_header_time
=yes
1828 echo "configure: failed program was:" >&5
1829 cat conftest.
$ac_ext >&5
1831 ac_cv_header_time
=no
1836 echo "$ac_t""$ac_cv_header_time" 1>&6
1837 if test $ac_cv_header_time = yes; then
1838 cat >> confdefs.h
<<\EOF
1839 #define TIME_WITH_SYS_TIME 1
1844 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1845 echo "configure:1846: checking for sys/wait.h that is POSIX.1 compatible" >&5
1846 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 cat > conftest.
$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1852 #include <sys/types.h>
1853 #include <sys/wait.h>
1855 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1858 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1863 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1866 if { (eval echo configure
:1867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1868 ac_cv_header_sys_wait_h
=yes
1870 echo "configure: failed program was:" >&5
1871 cat conftest.
$ac_ext >&5
1873 ac_cv_header_sys_wait_h
=no
1878 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1879 if test $ac_cv_header_sys_wait_h = yes; then
1880 cat >> confdefs.h
<<\EOF
1881 #define HAVE_SYS_WAIT_H 1
1886 for ac_hdr
in libc.h limits.h malloc.h memory.h string.h regex.h rxposix.h rx
/rxposix.h sys
/ioctl.h sys
/select.h sys
/time.h sys
/timeb.h sys
/times.h sys
/types.h sys
/utime.h
time.h unistd.h utime.h
1888 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1890 echo "configure:1891: checking for $ac_hdr" >&5
1891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1894 cat > conftest.
$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1899 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1900 { (eval echo configure
:1901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1901 ac_err
=`grep -v '^ *+' conftest.out`
1902 if test -z "$ac_err"; then
1904 eval "ac_cv_header_$ac_safe=yes"
1907 echo "configure: failed program was:" >&5
1908 cat conftest.
$ac_ext >&5
1910 eval "ac_cv_header_$ac_safe=no"
1914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1915 echo "$ac_t""yes" 1>&6
1916 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1917 cat >> confdefs.h
<<EOF
1918 #define $ac_tr_hdr 1
1922 echo "$ac_t""no" 1>&6
1927 for ac_hdr
in libc.h unistd.h
1929 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1931 echo "configure:1932: checking for $ac_hdr" >&5
1932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 cat > conftest.
$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1940 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1941 { (eval echo configure
:1942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1942 ac_err
=`grep -v '^ *+' conftest.out`
1943 if test -z "$ac_err"; then
1945 eval "ac_cv_header_$ac_safe=yes"
1948 echo "configure: failed program was:" >&5
1949 cat conftest.
$ac_ext >&5
1951 eval "ac_cv_header_$ac_safe=no"
1955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1956 echo "$ac_t""yes" 1>&6
1957 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1958 cat >> confdefs.h
<<EOF
1959 #define $ac_tr_hdr 1
1963 echo "$ac_t""no" 1>&6
1967 echo $ac_n "checking "whether libc.h and unistd.h can be included together
"""... $ac_c" 1>&6
1968 echo "configure:1969: checking "whether libc.h and unistd.h can be included together
"" >&5
1969 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1973 if test "$ac_cv_header_libc_h" = "no"; then
1974 guile_cv_header_libc_with_unistd
="no"
1975 elif test "$ac_cv_header_unistd.h" = "no"; then
1976 guile_cv_header_libc_with_unistd
="yes"
1978 cat > conftest.
$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1983 # include <unistd.h>
1989 if { (eval echo configure
:1990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1991 guile_cv_header_libc_with_unistd
=yes
1993 echo "configure: failed program was:" >&5
1994 cat conftest.
$ac_ext >&5
1996 guile_cv_header_libc_with_unistd
=no
2005 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
2006 if test "$guile_cv_header_libc_with_unistd" = yes; then
2007 cat >> confdefs.h
<<\EOF
2008 #define LIBC_H_WITH_UNISTD_H 1
2015 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2016 echo "configure:2017: checking for uid_t in sys/types.h" >&5
2017 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 cat > conftest.
$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2023 #include <sys/types.h>
2025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2026 egrep "uid_t" >/dev
/null
2>&1; then
2028 ac_cv_type_uid_t
=yes
2037 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2038 if test $ac_cv_type_uid_t = no
; then
2039 cat >> confdefs.h
<<\EOF
2043 cat >> confdefs.h
<<\EOF
2049 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2050 echo "configure:2051: checking type of array argument to getgroups" >&5
2051 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 if test "$cross_compiling" = yes; then
2055 ac_cv_type_getgroups
=cross
2057 cat > conftest.
$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2061 /* Thanks to Mike Rendell for this test. */
2062 #include <sys/types.h>
2065 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2070 union { gid_t gval; long lval; } val;
2073 for (i = 0; i < NGID; i++)
2074 gidset[i] = val.gval;
2075 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2077 /* Exit non-zero if getgroups seems to require an array of ints. This
2078 happens when gid_t is short but getgroups modifies an array of ints. */
2079 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2083 if { (eval echo configure
:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2085 ac_cv_type_getgroups
=gid_t
2087 echo "configure: failed program was:" >&5
2088 cat conftest.
$ac_ext >&5
2090 ac_cv_type_getgroups
=int
2095 if test $ac_cv_type_getgroups = cross
; then
2096 cat > conftest.
$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2102 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2104 ac_cv_type_getgroups
=gid_t
2107 ac_cv_type_getgroups
=int
2114 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2115 cat >> confdefs.h
<<EOF
2116 #define GETGROUPS_T $ac_cv_type_getgroups
2120 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2121 echo "configure:2122: checking return type of signal handlers" >&5
2122 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.
$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2128 #include <sys/types.h>
2134 extern "C" void (*signal (int, void (*)(int)))(int);
2136 void (*signal ()) ();
2143 if { (eval echo configure
:2144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2145 ac_cv_type_signal
=void
2147 echo "configure: failed program was:" >&5
2148 cat conftest.
$ac_ext >&5
2150 ac_cv_type_signal
=int
2155 echo "$ac_t""$ac_cv_type_signal" 1>&6
2156 cat >> confdefs.h
<<EOF
2157 #define RETSIGTYPE $ac_cv_type_signal
2161 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2162 echo "configure:2163: checking for mode_t" >&5
2163 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 cat > conftest.
$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2169 #include <sys/types.h>
2175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2176 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2178 ac_cv_type_mode_t
=yes
2181 ac_cv_type_mode_t
=no
2186 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2187 if test $ac_cv_type_mode_t = no
; then
2188 cat >> confdefs.h
<<\EOF
2195 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2196 echo "configure:2197: checking for main in -lm" >&5
2197 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
2198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
2201 ac_save_LIBS
="$LIBS"
2203 cat > conftest.
$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2211 if { (eval echo configure
:2212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2213 eval "ac_cv_lib_$ac_lib_var=yes"
2215 echo "configure: failed program was:" >&5
2216 cat conftest.
$ac_ext >&5
2218 eval "ac_cv_lib_$ac_lib_var=no"
2221 LIBS
="$ac_save_LIBS"
2224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2225 echo "$ac_t""yes" 1>&6
2226 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2227 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2228 cat >> confdefs.h
<<EOF
2229 #define $ac_tr_lib 1
2235 echo "$ac_t""no" 1>&6
2238 for ac_func
in gethostbyname
2240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2241 echo "configure:2242: checking for $ac_func" >&5
2242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2245 cat > conftest.
$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2248 /* System header to define __stub macros and hopefully few prototypes,
2249 which can conflict with char $ac_func(); below. */
2251 /* Override any gcc2 internal prototype to avoid an error. */
2252 /* We use char because int might match the return type of a gcc2
2253 builtin and then its argument prototype would still apply. */
2258 /* The GNU C library defines this for functions which it implements
2259 to always fail with ENOSYS. Some functions are actually named
2260 something starting with __ and the normal name is an alias. */
2261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2269 if { (eval echo configure
:2270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2271 eval "ac_cv_func_$ac_func=yes"
2273 echo "configure: failed program was:" >&5
2274 cat conftest.
$ac_ext >&5
2276 eval "ac_cv_func_$ac_func=no"
2281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2283 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2284 cat >> confdefs.h
<<EOF
2285 #define $ac_tr_func 1
2289 echo "$ac_t""no" 1>&6
2293 if test $ac_cv_func_gethostbyname = no
; then
2294 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2295 echo "configure:2296: checking for gethostbyname in -lnsl" >&5
2296 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 ac_save_LIBS
="$LIBS"
2302 cat > conftest.
$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2305 /* Override any gcc2 internal prototype to avoid an error. */
2306 /* We use char because int might match the return type of a gcc2
2307 builtin and then its argument prototype would still apply. */
2308 char gethostbyname();
2314 if { (eval echo configure
:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2316 eval "ac_cv_lib_$ac_lib_var=yes"
2318 echo "configure: failed program was:" >&5
2319 cat conftest.
$ac_ext >&5
2321 eval "ac_cv_lib_$ac_lib_var=no"
2324 LIBS
="$ac_save_LIBS"
2327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2330 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2331 cat >> confdefs.h
<<EOF
2332 #define $ac_tr_lib 1
2338 echo "$ac_t""no" 1>&6
2342 for ac_func
in connect
2344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_func" >&5
2346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2349 cat > conftest.
$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 /* System header to define __stub macros and hopefully few prototypes,
2353 which can conflict with char $ac_func(); below. */
2355 /* Override any gcc2 internal prototype to avoid an error. */
2356 /* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
2362 /* The GNU C library defines this for functions which it implements
2363 to always fail with ENOSYS. Some functions are actually named
2364 something starting with __ and the normal name is an alias. */
2365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2373 if { (eval echo configure
:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2375 eval "ac_cv_func_$ac_func=yes"
2377 echo "configure: failed program was:" >&5
2378 cat conftest.
$ac_ext >&5
2380 eval "ac_cv_func_$ac_func=no"
2385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2386 echo "$ac_t""yes" 1>&6
2387 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2388 cat >> confdefs.h
<<EOF
2389 #define $ac_tr_func 1
2393 echo "$ac_t""no" 1>&6
2397 if test $ac_cv_func_connect = no
; then
2398 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2399 echo "configure:2400: checking for connect in -lsocket" >&5
2400 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 ac_save_LIBS
="$LIBS"
2405 LIBS
="-lsocket $LIBS"
2406 cat > conftest.
$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 /* Override any gcc2 internal prototype to avoid an error. */
2410 /* We use char because int might match the return type of a gcc2
2411 builtin and then its argument prototype would still apply. */
2418 if { (eval echo configure
:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2420 eval "ac_cv_lib_$ac_lib_var=yes"
2422 echo "configure: failed program was:" >&5
2423 cat conftest.
$ac_ext >&5
2425 eval "ac_cv_lib_$ac_lib_var=no"
2428 LIBS
="$ac_save_LIBS"
2431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2432 echo "$ac_t""yes" 1>&6
2433 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2434 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2435 cat >> confdefs.h
<<EOF
2436 #define $ac_tr_lib 1
2439 LIBS
="-lsocket $LIBS"
2442 echo "$ac_t""no" 1>&6
2446 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
2447 echo "configure:2448: checking for tgoto in -ltermcap" >&5
2448 ac_lib_var
=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
2449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 ac_save_LIBS
="$LIBS"
2453 LIBS
="-ltermcap $LIBS"
2454 cat > conftest.
$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2457 /* Override any gcc2 internal prototype to avoid an error. */
2458 /* We use char because int might match the return type of a gcc2
2459 builtin and then its argument prototype would still apply. */
2466 if { (eval echo configure
:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2468 eval "ac_cv_lib_$ac_lib_var=yes"
2470 echo "configure: failed program was:" >&5
2471 cat conftest.
$ac_ext >&5
2473 eval "ac_cv_lib_$ac_lib_var=no"
2476 LIBS
="$ac_save_LIBS"
2479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2480 echo "$ac_t""yes" 1>&6
2481 ac_tr_lib
=HAVE_LIB
`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2482 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2483 cat >> confdefs.h
<<EOF
2484 #define $ac_tr_lib 1
2487 LIBS
="-ltermcap $LIBS"
2490 echo "$ac_t""no" 1>&6
2493 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2494 echo "configure:2495: checking for readline in -lreadline" >&5
2495 ac_lib_var
=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2499 ac_save_LIBS
="$LIBS"
2500 LIBS
="-lreadline $LIBS"
2501 cat > conftest.
$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 /* Override any gcc2 internal prototype to avoid an error. */
2505 /* We use char because int might match the return type of a gcc2
2506 builtin and then its argument prototype would still apply. */
2513 if { (eval echo configure
:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2515 eval "ac_cv_lib_$ac_lib_var=yes"
2517 echo "configure: failed program was:" >&5
2518 cat conftest.
$ac_ext >&5
2520 eval "ac_cv_lib_$ac_lib_var=no"
2523 LIBS
="$ac_save_LIBS"
2526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2527 echo "$ac_t""yes" 1>&6
2528 ac_tr_lib
=HAVE_LIB
`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2529 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2530 cat >> confdefs.h
<<EOF
2531 #define $ac_tr_lib 1
2534 LIBS
="-lreadline $LIBS"
2537 echo "$ac_t""no" 1>&6
2540 for ac_func
in rl_clear_signals rl_cleanup_after_signal
2542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_func" >&5
2544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.
$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 /* System header to define __stub macros and hopefully few prototypes,
2551 which can conflict with char $ac_func(); below. */
2553 /* Override any gcc2 internal prototype to avoid an error. */
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2560 /* The GNU C library defines this for functions which it implements
2561 to always fail with ENOSYS. Some functions are actually named
2562 something starting with __ and the normal name is an alias. */
2563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2571 if { (eval echo configure
:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2573 eval "ac_cv_func_$ac_func=yes"
2575 echo "configure: failed program was:" >&5
2576 cat conftest.
$ac_ext >&5
2578 eval "ac_cv_func_$ac_func=no"
2583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2584 echo "$ac_t""yes" 1>&6
2585 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2586 cat >> confdefs.h
<<EOF
2587 #define $ac_tr_func 1
2591 echo "$ac_t""no" 1>&6
2596 echo $ac_n "checking for rl_getc_function pointer in readline""... $ac_c" 1>&6
2597 echo "configure:2598: checking for rl_getc_function pointer in readline" >&5
2598 if eval "test \"`echo '$''{'ac_cv_var_rl_getc_function'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 cat > conftest.
$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2606 #include <readline/readline.h>
2611 if { (eval echo configure
:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2613 ac_cv_var_rl_getc_function
=yes
2615 echo "configure: failed program was:" >&5
2616 cat conftest.
$ac_ext >&5
2618 ac_cv_var_rl_getc_function
=no
2623 echo "$ac_t""$ac_cv_var_rl_getc_function" 1>&6
2624 if test "$ac_cv_var_rl_getc_function" = "yes"; then
2625 cat >> confdefs.h
<<\EOF
2626 #define HAVE_RL_GETC_FUNCTION 1
2631 if test $ac_cv_lib_readline_readline = yes -a $ac_cv_var_rl_getc_function = no
; then
2632 echo 'Warning: libreadline is too old on your system. Need >= 2.1.'
2635 # Checks for dynamic linking
2637 if test "$enable_dynamic_linking" = "yes"; then
2639 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2640 echo "configure:2641: checking for dlopen in -ldl" >&5
2641 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 ac_save_LIBS
="$LIBS"
2647 cat > conftest.
$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 /* Override any gcc2 internal prototype to avoid an error. */
2651 /* We use char because int might match the return type of a gcc2
2652 builtin and then its argument prototype would still apply. */
2659 if { (eval echo configure
:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2661 eval "ac_cv_lib_$ac_lib_var=yes"
2663 echo "configure: failed program was:" >&5
2664 cat conftest.
$ac_ext >&5
2666 eval "ac_cv_lib_$ac_lib_var=no"
2669 LIBS
="$ac_save_LIBS"
2672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2673 echo "$ac_t""yes" 1>&6
2674 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2675 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2676 cat >> confdefs.h
<<EOF
2677 #define $ac_tr_lib 1
2683 echo "$ac_t""no" 1>&6
2686 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2687 for ac_func
in dlopen
2689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2690 echo "configure:2691: checking for $ac_func" >&5
2691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2694 cat > conftest.
$ac_ext <<EOF
2695 #line 2696 "configure"
2696 #include "confdefs.h"
2697 /* System header to define __stub macros and hopefully few prototypes,
2698 which can conflict with char $ac_func(); below. */
2700 /* Override any gcc2 internal prototype to avoid an error. */
2701 /* We use char because int might match the return type of a gcc2
2702 builtin and then its argument prototype would still apply. */
2707 /* The GNU C library defines this for functions which it implements
2708 to always fail with ENOSYS. Some functions are actually named
2709 something starting with __ and the normal name is an alias. */
2710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2718 if { (eval echo configure
:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2720 eval "ac_cv_func_$ac_func=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.
$ac_ext >&5
2725 eval "ac_cv_func_$ac_func=no"
2730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2731 echo "$ac_t""yes" 1>&6
2732 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2733 cat >> confdefs.h
<<EOF
2734 #define $ac_tr_func 1
2738 echo "$ac_t""no" 1>&6
2742 cat >> confdefs.h
<<\EOF
2743 #define DYNAMIC_LINKING 1
2747 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2748 echo "configure:2749: checking for dld_link in -ldld" >&5
2749 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 ac_save_LIBS
="$LIBS"
2755 cat > conftest.
$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 /* Override any gcc2 internal prototype to avoid an error. */
2759 /* We use char because int might match the return type of a gcc2
2760 builtin and then its argument prototype would still apply. */
2767 if { (eval echo configure
:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2769 eval "ac_cv_lib_$ac_lib_var=yes"
2771 echo "configure: failed program was:" >&5
2772 cat conftest.
$ac_ext >&5
2774 eval "ac_cv_lib_$ac_lib_var=no"
2777 LIBS
="$ac_save_LIBS"
2780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2781 echo "$ac_t""yes" 1>&6
2782 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2783 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2784 cat >> confdefs.h
<<EOF
2785 #define $ac_tr_lib 1
2791 echo "$ac_t""no" 1>&6
2794 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2795 cat >> confdefs.h
<<\EOF
2796 #define DYNAMIC_LINKING 1
2800 for ac_func
in shl_load
2802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2803 echo "configure:2804: checking for $ac_func" >&5
2804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2807 cat > conftest.
$ac_ext <<EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2810 /* System header to define __stub macros and hopefully few prototypes,
2811 which can conflict with char $ac_func(); below. */
2813 /* Override any gcc2 internal prototype to avoid an error. */
2814 /* We use char because int might match the return type of a gcc2
2815 builtin and then its argument prototype would still apply. */
2820 /* The GNU C library defines this for functions which it implements
2821 to always fail with ENOSYS. Some functions are actually named
2822 something starting with __ and the normal name is an alias. */
2823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2831 if { (eval echo configure
:2832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2833 eval "ac_cv_func_$ac_func=yes"
2835 echo "configure: failed program was:" >&5
2836 cat conftest.
$ac_ext >&5
2838 eval "ac_cv_func_$ac_func=no"
2843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2844 echo "$ac_t""yes" 1>&6
2845 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2846 cat >> confdefs.h
<<EOF
2847 #define $ac_tr_func 1
2851 echo "$ac_t""no" 1>&6
2855 if test "$ac_cv_func_shl_load" = "yes"; then
2856 cat >> confdefs.h
<<\EOF
2857 #define DYNAMIC_LINKING 1
2861 for ac_func
in dlopen
2863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2864 echo "configure:2865: checking for $ac_func" >&5
2865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 cat > conftest.
$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2871 /* System header to define __stub macros and hopefully few prototypes,
2872 which can conflict with char $ac_func(); below. */
2874 /* Override any gcc2 internal prototype to avoid an error. */
2875 /* We use char because int might match the return type of a gcc2
2876 builtin and then its argument prototype would still apply. */
2881 /* The GNU C library defines this for functions which it implements
2882 to always fail with ENOSYS. Some functions are actually named
2883 something starting with __ and the normal name is an alias. */
2884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2892 if { (eval echo configure
:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2894 eval "ac_cv_func_$ac_func=yes"
2896 echo "configure: failed program was:" >&5
2897 cat conftest.
$ac_ext >&5
2899 eval "ac_cv_func_$ac_func=no"
2904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2905 echo "$ac_t""yes" 1>&6
2906 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2907 cat >> confdefs.h
<<EOF
2908 #define $ac_tr_func 1
2912 echo "$ac_t""no" 1>&6
2916 if test "$ac_cv_func_dlopen" = "yes"; then
2917 cat >> confdefs.h
<<\EOF
2918 #define DYNAMIC_LINKING 1
2929 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
2930 echo "configure:2931: checking for underscore before symbols" >&5
2931 if eval "test \"`echo '$''{'guile_cv_uscore'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2935 echo "main(){int i=1;}
2936 fnord(){int i=23; int ltuae=42;}" > conftest.c
2937 ${CC} conftest.c
> /dev
/null
2938 if (nm a.out |
grep _fnord
) > /dev
/null
; then
2945 echo "$ac_t""$guile_cv_uscore" 1>&6
2946 rm -f conftest.c a.out
2948 if test $guile_cv_uscore = yes; then
2949 cat >> confdefs.h
<<\EOF
2954 if test $ac_cv_func_dlopen = yes -o $ac_cv_lib_dl_dlopen = yes ; then
2955 echo $ac_n "checking whether dlsym always adds an underscore for us""... $ac_c" 1>&6
2956 echo "configure:2957: checking whether dlsym always adds an underscore for us" >&5
2957 if eval "test \"`echo '$''{'guile_cv_dlsym_adds_uscore'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 if test "$cross_compiling" = yes; then
2961 guile_cv_dlsym_adds_uscore
=no
2963 cat > conftest.
$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2969 fnord() { int i=42;}
2970 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
2971 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
2972 if(ptr1 && !ptr2) exit(0); } exit(1); }
2975 if { (eval echo configure
:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2977 guile_cv_dlsym_adds_uscore
=yes
2978 cat >> confdefs.h
<<\EOF
2979 #define DLSYM_ADDS_USCORE 1
2983 echo "configure: failed program was:" >&5
2984 cat conftest.
$ac_ext >&5
2986 guile_cv_dlsym_adds_uscore
=no
2994 echo "$ac_t""$guile_cv_dlsym_adds_uscore" 1>&6
2999 for ac_func
in ctermid ftime getcwd geteuid gethostent gettimeofday lstat mkdir mknod nice readlink rename
rmdir select setegid seteuid setlocale setpgid setsid sigaction strftime strptime symlink sync tcgetpgrp tcsetpgrp
times uname waitpid bzero strdup system
usleep
3001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3002 echo "configure:3003: checking for $ac_func" >&5
3003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3006 cat > conftest.
$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3009 /* System header to define __stub macros and hopefully few prototypes,
3010 which can conflict with char $ac_func(); below. */
3012 /* Override any gcc2 internal prototype to avoid an error. */
3013 /* We use char because int might match the return type of a gcc2
3014 builtin and then its argument prototype would still apply. */
3019 /* The GNU C library defines this for functions which it implements
3020 to always fail with ENOSYS. Some functions are actually named
3021 something starting with __ and the normal name is an alias. */
3022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3030 if { (eval echo configure
:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3032 eval "ac_cv_func_$ac_func=yes"
3034 echo "configure: failed program was:" >&5
3035 cat conftest.
$ac_ext >&5
3037 eval "ac_cv_func_$ac_func=no"
3042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3043 echo "$ac_t""yes" 1>&6
3044 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3045 cat >> confdefs.h
<<EOF
3046 #define $ac_tr_func 1
3050 echo "$ac_t""no" 1>&6
3055 ### Some systems don't declare some functions. On such systems, we
3056 ### need to at least provide our own K&R-style declarations.
3058 ### GUILE_FUNC_DECLARED(function, headerfile)
3060 ### Check for a declaration of FUNCTION in HEADERFILE; if it is
3061 ### not there, #define MISSING_FUNCTION_DECL.
3065 echo $ac_n "checking for strptime declaration""... $ac_c" 1>&6
3066 echo "configure:3067: checking for strptime declaration" >&5
3067 if eval "test \"`echo '$''{'ac_cv_func_strptime_declared'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 cat > conftest.
$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3076 egrep "strptime" >/dev
/null
2>&1; then
3078 ac_cv_func_strptime_declared
=yes
3081 ac_cv_func_strptime_declared
=no
3087 echo "$ac_t""$ac_cv_func_strptime_declared" 1>&6
3088 if test x
$ac_cv_func_strptime_declared = xno
; then
3089 cat >> confdefs.h
<<\EOF
3090 #define MISSING_STRPTIME_DECL 1
3096 echo $ac_n "checking for bzero declaration""... $ac_c" 1>&6
3097 echo "configure:3098: checking for bzero declaration" >&5
3098 if eval "test \"`echo '$''{'ac_cv_func_bzero_declared'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3101 cat > conftest.
$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107 egrep "bzero" >/dev
/null
2>&1; then
3109 ac_cv_func_bzero_declared
=yes
3112 ac_cv_func_bzero_declared
=no
3118 echo "$ac_t""$ac_cv_func_bzero_declared" 1>&6
3119 if test x
$ac_cv_func_bzero_declared = xno
; then
3120 cat >> confdefs.h
<<\EOF
3121 #define MISSING_BZERO_DECL 1
3127 echo $ac_n "checking for sleep declaration""... $ac_c" 1>&6
3128 echo "configure:3129: checking for sleep declaration" >&5
3129 if eval "test \"`echo '$''{'ac_cv_func_sleep_declared'+set}'`\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3132 cat > conftest.
$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3138 egrep "sleep" >/dev
/null
2>&1; then
3140 ac_cv_func_sleep_declared
=yes
3143 ac_cv_func_sleep_declared
=no
3149 echo "$ac_t""$ac_cv_func_sleep_declared" 1>&6
3150 if test x
$ac_cv_func_sleep_declared = xno
; then
3151 cat >> confdefs.h
<<\EOF
3152 #define MISSING_SLEEP_DECL 1
3158 echo $ac_n "checking for usleep declaration""... $ac_c" 1>&6
3159 echo "configure:3160: checking for usleep declaration" >&5
3160 if eval "test \"`echo '$''{'ac_cv_func_usleep_declared'+set}'`\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3163 cat > conftest.
$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3169 egrep "usleep" >/dev
/null
2>&1; then
3171 ac_cv_func_usleep_declared
=yes
3174 ac_cv_func_usleep_declared
=no
3180 echo "$ac_t""$ac_cv_func_usleep_declared" 1>&6
3181 if test x
$ac_cv_func_usleep_declared = xno
; then
3182 cat >> confdefs.h
<<\EOF
3183 #define MISSING_USLEEP_DECL 1
3189 # On some systems usleep has no return value
3190 cat > conftest.
$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 #include </usr/include/unistd.h>
3195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3196 egrep "void[ ][ ]*usleep" >/dev
/null
2>&1; then
3198 cat >> confdefs.h
<<\EOF
3199 #define USLEEP_RETURNS_VOID 1
3209 ac_safe
=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
3210 echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
3211 echo "configure:3212: checking for sys/un.h" >&5
3212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3213 echo $ac_n "(cached) $ac_c" 1>&6
3215 cat > conftest.
$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3220 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3221 { (eval echo configure
:3222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3222 ac_err
=`grep -v '^ *+' conftest.out`
3223 if test -z "$ac_err"; then
3225 eval "ac_cv_header_$ac_safe=yes"
3228 echo "configure: failed program was:" >&5
3229 cat conftest.
$ac_ext >&5
3231 eval "ac_cv_header_$ac_safe=no"
3235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3236 echo "$ac_t""yes" 1>&6
3239 echo "$ac_t""no" 1>&6
3242 if test -n "$have_sys_un_h" ; then
3243 cat >> confdefs.h
<<\EOF
3244 #define HAVE_UNIX_DOMAIN_SOCKETS 1
3249 for ac_func
in socketpair getgroups setpwent pause tzset
3251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3252 echo "configure:3253: checking for $ac_func" >&5
3253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 cat > conftest.
$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 /* System header to define __stub macros and hopefully few prototypes,
3260 which can conflict with char $ac_func(); below. */
3262 /* Override any gcc2 internal prototype to avoid an error. */
3263 /* We use char because int might match the return type of a gcc2
3264 builtin and then its argument prototype would still apply. */
3269 /* The GNU C library defines this for functions which it implements
3270 to always fail with ENOSYS. Some functions are actually named
3271 something starting with __ and the normal name is an alias. */
3272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3280 if { (eval echo configure
:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3282 eval "ac_cv_func_$ac_func=yes"
3284 echo "configure: failed program was:" >&5
3285 cat conftest.
$ac_ext >&5
3287 eval "ac_cv_func_$ac_func=no"
3292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3293 echo "$ac_t""yes" 1>&6
3294 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3295 cat >> confdefs.h
<<EOF
3296 #define $ac_tr_func 1
3300 echo "$ac_t""no" 1>&6
3308 for ac_func
in sethostent endhostent getnetent setnetent endnetent getprotoent endprotoent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof
3310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3311 echo "configure:3312: checking for $ac_func" >&5
3312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3315 cat > conftest.
$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 /* System header to define __stub macros and hopefully few prototypes,
3319 which can conflict with char $ac_func(); below. */
3321 /* Override any gcc2 internal prototype to avoid an error. */
3322 /* We use char because int might match the return type of a gcc2
3323 builtin and then its argument prototype would still apply. */
3328 /* The GNU C library defines this for functions which it implements
3329 to always fail with ENOSYS. Some functions are actually named
3330 something starting with __ and the normal name is an alias. */
3331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3339 if { (eval echo configure
:3340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3341 eval "ac_cv_func_$ac_func=yes"
3343 echo "configure: failed program was:" >&5
3344 cat conftest.
$ac_ext >&5
3346 eval "ac_cv_func_$ac_func=no"
3351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3352 echo "$ac_t""yes" 1>&6
3353 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3354 cat >> confdefs.h
<<EOF
3355 #define $ac_tr_func 1
3359 echo "$ac_t""no" 1>&6
3365 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
3366 echo "configure:3367: checking for restartable system calls" >&5
3367 if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 if test $ac_cv_func_sigaction = yes; then
3371 cat > conftest.
$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3379 if { (eval echo configure
:3380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3383 echo "configure: failed program was:" >&5
3384 cat conftest.
$ac_ext >&5
3394 echo "$ac_t""$scm_cv_restarts" 1>&6
3395 if test $scm_cv_restarts = yes; then
3396 cat >> confdefs.h
<<\EOF
3397 #define HAVE_RESTARTS 1
3402 if test "$ac_cv_header_regex_h" = yes ||
3403 test "$ac_cv_header_rxposix_h" = yes ||
3404 test "$ac_cv_header_rx_rxposix_h" = yes; then
3405 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3406 echo "configure:3407: checking for regcomp" >&5
3407 if eval "test \"`echo '$''{'ac_cv_func_regcomp_norx'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.
$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* System header to define __stub macros and hopefully few prototypes,
3414 which can conflict with char regcomp(); below. */
3416 /* Override any gcc2 internal prototype to avoid an error. */
3417 /* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3423 /* The GNU C library defines this for functions which it implements
3424 to always fail with ENOSYS. Some functions are actually named
3425 something starting with __ and the normal name is an alias. */
3426 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3434 if { (eval echo configure
:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3436 eval "ac_cv_func_regcomp_norx=yes"
3438 echo "configure: failed program was:" >&5
3439 cat conftest.
$ac_ext >&5
3441 eval "ac_cv_func_regcomp_norx=no"
3446 if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3448 LIBOBJS
="regex-posix.o $LIBOBJS"
3450 echo "$ac_t""no" 1>&6
3451 echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
3452 echo "configure:3453: checking for main in -lrx" >&5
3453 ac_lib_var
=`echo rx'_'main | sed 'y%./+-%__p_%'`
3454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 ac_save_LIBS
="$LIBS"
3459 cat > conftest.
$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3467 if { (eval echo configure
:3468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3469 eval "ac_cv_lib_$ac_lib_var=yes"
3471 echo "configure: failed program was:" >&5
3472 cat conftest.
$ac_ext >&5
3474 eval "ac_cv_lib_$ac_lib_var=no"
3477 LIBS
="$ac_save_LIBS"
3480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3481 echo "$ac_t""yes" 1>&6
3482 ac_tr_lib
=HAVE_LIB
`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3484 cat >> confdefs.h
<<EOF
3485 #define $ac_tr_lib 1
3491 echo "$ac_t""no" 1>&6
3494 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3495 echo "configure:3496: checking for regcomp" >&5
3496 if eval "test \"`echo '$''{'ac_cv_func_regcomp_rx'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 cat > conftest.
$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 /* System header to define __stub macros and hopefully few prototypes,
3503 which can conflict with char regcomp(); below. */
3505 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3512 /* The GNU C library defines this for functions which it implements
3513 to always fail with ENOSYS. Some functions are actually named
3514 something starting with __ and the normal name is an alias. */
3515 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3523 if { (eval echo configure
:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3525 eval "ac_cv_func_regcomp_rx=yes"
3527 echo "configure: failed program was:" >&5
3528 cat conftest.
$ac_ext >&5
3530 eval "ac_cv_func_regcomp_rx=no"
3535 if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3537 LIBOBJS
="regex-posix.o $LIBOBJS"
3539 echo "$ac_t""no" 1>&6
3545 if test "$ac_cv_func_regcomp_norx" = yes ||
3546 test "$ac_cv_func_regcomp_rx" = yes; then
3547 cat >> confdefs.h
<<\EOF
3548 #define HAVE_REGCOMP 1
3554 for ac_func
in inet_aton putenv strerror
3556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3557 echo "configure:3558: checking for $ac_func" >&5
3558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3561 cat > conftest.
$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 /* System header to define __stub macros and hopefully few prototypes,
3565 which can conflict with char $ac_func(); below. */
3567 /* Override any gcc2 internal prototype to avoid an error. */
3568 /* We use char because int might match the return type of a gcc2
3569 builtin and then its argument prototype would still apply. */
3574 /* The GNU C library defines this for functions which it implements
3575 to always fail with ENOSYS. Some functions are actually named
3576 something starting with __ and the normal name is an alias. */
3577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3585 if { (eval echo configure
:3586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3587 eval "ac_cv_func_$ac_func=yes"
3589 echo "configure: failed program was:" >&5
3590 cat conftest.
$ac_ext >&5
3592 eval "ac_cv_func_$ac_func=no"
3597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3598 echo "$ac_t""yes" 1>&6
3599 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3600 cat >> confdefs.h
<<EOF
3601 #define $ac_tr_func 1
3605 echo "$ac_t""no" 1>&6
3606 LIBOBJS
="$LIBOBJS ${ac_func}.o"
3612 # When testing for the presence of alloca, we need to add alloca.o
3613 # explicitly to LIBOBJS to make sure that it is translated to
3614 # `alloca.lo' for libtool later on. This can and should be done more cleanly.
3615 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3616 # for constant arguments. Useless!
3617 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3618 echo "configure:3619: checking for working alloca.h" >&5
3619 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3622 cat > conftest.
$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3627 char *p = alloca(2 * sizeof(int));
3630 if { (eval echo configure
:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3632 ac_cv_header_alloca_h
=yes
3634 echo "configure: failed program was:" >&5
3635 cat conftest.
$ac_ext >&5
3637 ac_cv_header_alloca_h
=no
3642 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3643 if test $ac_cv_header_alloca_h = yes; then
3644 cat >> confdefs.h
<<\EOF
3645 #define HAVE_ALLOCA_H 1
3650 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3651 echo "configure:3652: checking for alloca" >&5
3652 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.
$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3660 # define alloca __builtin_alloca
3663 # include <alloca.h>
3668 # ifndef alloca /* predefined by HP cc +Olibcalls */
3676 char *p = (char *) alloca(1);
3679 if { (eval echo configure
:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3681 ac_cv_func_alloca_works
=yes
3683 echo "configure: failed program was:" >&5
3684 cat conftest.
$ac_ext >&5
3686 ac_cv_func_alloca_works
=no
3691 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3692 if test $ac_cv_func_alloca_works = yes; then
3693 cat >> confdefs.h
<<\EOF
3694 #define HAVE_ALLOCA 1
3699 if test $ac_cv_func_alloca_works = no
; then
3700 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3701 # that cause trouble. Some versions do not even contain alloca or
3702 # contain a buggy version. If you still want to use their alloca,
3703 # use ar to extract alloca.o from them instead of compiling alloca.c.
3705 cat >> confdefs.h
<<\EOF
3710 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3711 echo "configure:3712: checking whether alloca needs Cray hooks" >&5
3712 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3715 cat > conftest.
$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 #if defined(CRAY) && ! defined(CRAY2)
3725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726 egrep "webecray" >/dev
/null
2>&1; then
3737 echo "$ac_t""$ac_cv_os_cray" 1>&6
3738 if test $ac_cv_os_cray = yes; then
3739 for ac_func
in _getb67 GETB67 getb67
; do
3740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3741 echo "configure:3742: checking for $ac_func" >&5
3742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3745 cat > conftest.
$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 /* System header to define __stub macros and hopefully few prototypes,
3749 which can conflict with char $ac_func(); below. */
3751 /* Override any gcc2 internal prototype to avoid an error. */
3752 /* We use char because int might match the return type of a gcc2
3753 builtin and then its argument prototype would still apply. */
3758 /* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3769 if { (eval echo configure
:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3771 eval "ac_cv_func_$ac_func=yes"
3773 echo "configure: failed program was:" >&5
3774 cat conftest.
$ac_ext >&5
3776 eval "ac_cv_func_$ac_func=no"
3781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 cat >> confdefs.h
<<EOF
3784 #define CRAY_STACKSEG_END $ac_func
3789 echo "$ac_t""no" 1>&6
3795 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3796 echo "configure:3797: checking stack direction for C alloca" >&5
3797 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3798 echo $ac_n "(cached) $ac_c" 1>&6
3800 if test "$cross_compiling" = yes; then
3801 ac_cv_c_stack_direction
=0
3803 cat > conftest.
$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 find_stack_direction ()
3808 static char *addr = 0;
3813 return find_stack_direction ();
3816 return (&dummy > addr) ? 1 : -1;
3820 exit (find_stack_direction() < 0);
3823 if { (eval echo configure
:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3825 ac_cv_c_stack_direction
=1
3827 echo "configure: failed program was:" >&5
3828 cat conftest.
$ac_ext >&5
3830 ac_cv_c_stack_direction
=-1
3837 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3838 cat >> confdefs.h
<<EOF
3839 #define STACK_DIRECTION $ac_cv_c_stack_direction
3844 if test "$ALLOCA" = "alloca.o"; then LIBOBJS
="alloca.o $LIBOBJS"; fi
3846 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3847 echo "configure:3848: checking for st_rdev in struct stat" >&5
3848 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3851 cat > conftest.
$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3854 #include <sys/types.h>
3855 #include <sys/stat.h>
3857 struct stat s; s.st_rdev;
3860 if { (eval echo configure
:3861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3862 ac_cv_struct_st_rdev
=yes
3864 echo "configure: failed program was:" >&5
3865 cat conftest.
$ac_ext >&5
3867 ac_cv_struct_st_rdev
=no
3872 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3873 if test $ac_cv_struct_st_rdev = yes; then
3874 cat >> confdefs.h
<<\EOF
3875 #define HAVE_ST_RDEV 1
3880 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3881 echo "configure:3882: checking for st_blksize in struct stat" >&5
3882 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3885 cat > conftest.
$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3888 #include <sys/types.h>
3889 #include <sys/stat.h>
3891 struct stat s; s.st_blksize;
3894 if { (eval echo configure
:3895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3896 ac_cv_struct_st_blksize
=yes
3898 echo "configure: failed program was:" >&5
3899 cat conftest.
$ac_ext >&5
3901 ac_cv_struct_st_blksize
=no
3906 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3907 if test $ac_cv_struct_st_blksize = yes; then
3908 cat >> confdefs.h
<<\EOF
3909 #define HAVE_ST_BLKSIZE 1
3915 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
3916 # LIBOBJS, which we don't need. This seems more direct.
3917 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3918 echo "configure:3919: checking for st_blocks in struct stat" >&5
3919 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+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"
3925 #include <sys/types.h>
3926 #include <sys/stat.h>
3928 struct stat s; s.st_blocks;
3931 if { (eval echo configure
:3932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3933 ac_cv_struct_st_blocks
=yes
3935 echo "configure: failed program was:" >&5
3936 cat conftest.
$ac_ext >&5
3938 ac_cv_struct_st_blocks
=no
3943 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3944 if test $ac_cv_struct_st_blocks = yes; then
3945 cat >> confdefs.h
<<\EOF
3946 #define HAVE_ST_BLOCKS 1
3951 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3952 echo "configure:3953: checking whether struct tm is in sys/time.h or time.h" >&5
3953 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.
$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 #include <sys/types.h>
3962 struct tm *tp; tp->tm_sec;
3965 if { (eval echo configure
:3966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3967 ac_cv_struct_tm
=time.h
3969 echo "configure: failed program was:" >&5
3970 cat conftest.
$ac_ext >&5
3972 ac_cv_struct_tm
=sys
/time.h
3977 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3978 if test $ac_cv_struct_tm = sys
/time.h
; then
3979 cat >> confdefs.h
<<\EOF
3980 #define TM_IN_SYS_TIME 1
3985 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3986 echo "configure:3987: checking for tm_zone in struct tm" >&5
3987 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 cat > conftest.
$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3993 #include <sys/types.h>
3994 #include <$ac_cv_struct_tm>
3996 struct tm tm; tm.tm_zone;
3999 if { (eval echo configure
:4000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4001 ac_cv_struct_tm_zone
=yes
4003 echo "configure: failed program was:" >&5
4004 cat conftest.
$ac_ext >&5
4006 ac_cv_struct_tm_zone
=no
4011 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4012 if test "$ac_cv_struct_tm_zone" = yes; then
4013 cat >> confdefs.h
<<\EOF
4014 #define HAVE_TM_ZONE 1
4018 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4019 echo "configure:4020: checking for tzname" >&5
4020 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4023 cat > conftest.
$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4027 #ifndef tzname /* For SGI. */
4028 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4034 if { (eval echo configure
:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4036 ac_cv_var_tzname
=yes
4038 echo "configure: failed program was:" >&5
4039 cat conftest.
$ac_ext >&5
4046 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4047 if test $ac_cv_var_tzname = yes; then
4048 cat >> confdefs.h
<<\EOF
4049 #define HAVE_TZNAME 1
4056 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
4057 echo "configure:4058: checking whether we need POSIX to get struct utimbuf" >&5
4058 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4061 cat > conftest.
$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4066 #include <sys/utime.h>
4073 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4074 { (eval echo configure
:4075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4075 ac_err
=`grep -v '^ *+' conftest.out`
4076 if test -z "$ac_err"; then
4078 guile_cv_struct_utimbuf_needs_posix
=no
4081 echo "configure: failed program was:" >&5
4082 cat conftest.
$ac_ext >&5
4084 guile_cv_struct_utimbuf_needs_posix
=yes
4089 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
4090 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
4091 cat >> confdefs.h
<<\EOF
4092 #define UTIMBUF_NEEDS_POSIX 1
4097 #--------------------------------------------------------------------
4099 # Which way does the stack grow?
4101 #--------------------------------------------------------------------
4103 if test "$cross_compiling" = yes; then
4104 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
4106 cat > conftest.
$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4109 aux (l) unsigned long l;
4110 { int x; exit (l >= ((unsigned long)&x)); }
4111 main () { int q; aux((unsigned long)&q); }
4113 if { (eval echo configure
:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4115 cat >> confdefs.h
<<\EOF
4116 #define SCM_STACK_GROWS_UP 1
4120 echo "configure: failed program was:" >&5
4121 cat conftest.
$ac_ext >&5
4128 if test "$cross_compiling" = yes; then
4129 cat >> confdefs.h
<<\EOF
4130 #define SCM_SINGLES 1
4133 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
4135 cat > conftest.
$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4138 main () { exit (sizeof(float) != sizeof(long)); }
4140 if { (eval echo configure
:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4142 cat >> confdefs.h
<<\EOF
4143 #define SCM_SINGLES 1
4147 echo "configure: failed program was:" >&5
4148 cat conftest.
$ac_ext >&5
4154 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
4155 echo "configure:4156: checking for struct linger" >&5
4156 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
4157 echo $ac_n "(cached) $ac_c" 1>&6
4159 cat > conftest.
$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4163 #include <sys/types.h>
4164 #include <sys/socket.h>
4166 struct linger lgr; lgr.l_linger = 100
4169 if { (eval echo configure
:4170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4171 scm_cv_struct_linger
="yes"
4173 echo "configure: failed program was:" >&5
4174 cat conftest.
$ac_ext >&5
4176 scm_cv_struct_linger
="no"
4181 echo "$ac_t""$scm_cv_struct_linger" 1>&6
4182 if test $scm_cv_struct_linger = yes; then
4183 cat >> confdefs.h
<<\EOF
4184 #define HAVE_STRUCT_LINGER 1
4189 #--------------------------------------------------------------------
4191 # How can you violate a stdio abstraction by setting a stream's fd?
4193 #--------------------------------------------------------------------
4195 echo $ac_n "checking how to set a stream file descriptor""... $ac_c" 1>&6
4196 echo "configure:4197: checking how to set a stream file descriptor" >&5
4197 if eval "test \"`echo '$''{'scm_cv_fd_setter'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4200 cat > conftest.
$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4208 if { (eval echo configure
:4209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4210 scm_cv_fd_setter
="_file"
4212 echo "configure: failed program was:" >&5
4213 cat conftest.
$ac_ext >&5
4215 cat > conftest.
$ac_ext <<EOF
4216 #line 4217 "configure"
4217 #include "confdefs.h"
4223 if { (eval echo configure
:4224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4225 scm_cv_fd_setter
="__file"
4227 echo "configure: failed program was:" >&5
4228 cat conftest.
$ac_ext >&5
4230 cat > conftest.
$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4238 if { (eval echo configure
:4239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4240 scm_cv_fd_setter
="_fileno"
4242 echo "configure: failed program was:" >&5
4243 cat conftest.
$ac_ext >&5
4255 if test "$scm_cv_fd_setter"; then
4256 echo "$ac_t""$scm_cv_fd_setter" 1>&6
4257 cat >> confdefs.h
<<EOF
4258 #define FD_SETTER $scm_cv_fd_setter
4262 echo "$ac_t""we couldn't do it!" 1>&6
4265 #--------------------------------------------------------------------
4266 # How to find out whether a FILE structure contains buffered data.
4267 # From Tk we have the following list:
4268 # _cnt: Most UNIX systems
4269 # __cnt: HPUX and SCO
4272 # Or, in GNU libc there are two fields, _gptr and _egptr, which
4273 # have to be compared.
4274 # These can also be known as _IO_read_ptr and _IO_read_end.
4275 #--------------------------------------------------------------------
4277 echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
4278 echo "configure:4279: checking how to get buffer char count from FILE structure" >&5
4279 if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4282 cat > conftest.
$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4287 FILE *f = stdin; f->_cnt = 0
4290 if { (eval echo configure
:4291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4292 scm_cv_struct_file_count
="_cnt"
4294 echo "configure: failed program was:" >&5
4295 cat conftest.
$ac_ext >&5
4297 cat > conftest.
$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4302 FILE *f = stdin; f->__cnt = 0
4305 if { (eval echo configure
:4306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4307 scm_cv_struct_file_count
="__cnt"
4309 echo "configure: failed program was:" >&5
4310 cat conftest.
$ac_ext >&5
4312 cat > conftest.
$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4317 FILE *f = stdin; f->_r = 0
4320 if { (eval echo configure
:4321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4322 scm_cv_struct_file_count
="_r"
4324 echo "configure: failed program was:" >&5
4325 cat conftest.
$ac_ext >&5
4327 cat > conftest.
$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4332 FILE *f = stdin; f->readCount = 0
4335 if { (eval echo configure
:4336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4337 scm_cv_struct_file_count
="readCount"
4339 echo "configure: failed program was:" >&5
4340 cat conftest.
$ac_ext >&5
4342 scm_cv_struct_file_count
=""
4353 if test "$scm_cv_struct_file_count"; then
4354 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
4355 cat >> confdefs.h
<<EOF
4356 #define FILE_CNT_FIELD $scm_cv_struct_file_count
4360 if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 cat > conftest.
$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4368 FILE *f = stdin; f->_gptr = f->egptr;
4371 if { (eval echo configure
:4372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4373 scm_cv_struct_file_gptr
=1
4375 echo "configure: failed program was:" >&5
4376 cat conftest.
$ac_ext >&5
4378 scm_cv_struct_file_gptr
=""
4383 if test "$scm_cv_struct_gptr"; then
4384 echo "$ac_t""gptr" 1>&6
4385 cat >> confdefs.h
<<EOF
4386 #define FILE_CNT_GPTR $scm_cv_struct_file_gptr
4390 if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 cat > conftest.
$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4398 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
4401 if { (eval echo configure
:4402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4403 scm_cv_struct_file_readptr
=1
4405 echo "configure: failed program was:" >&5
4406 cat conftest.
$ac_ext >&5
4411 if test "$scm_cv_struct_file_readptr"; then
4412 echo "$ac_t""read_ptr" 1>&6
4413 cat >> confdefs.h
<<EOF
4414 #define FILE_CNT_READPTR $scm_cv_struct_file_readptr
4418 echo "$ac_t""we couldn't do it!" 1>&6
4423 #--------------------------------------------------------------------
4425 # Flags for thread support
4427 #--------------------------------------------------------------------
4429 ### What thread package has the user asked for?
4430 # Check whether --with-threads or --without-threads was given.
4431 if test "${with_threads+set}" = set; then
4432 withval
="$with_threads"
4439 ### Turn $with_threads into either the name of a threads package, like
4440 ### `qt', or `no', meaning that threads should not be supported.
4441 echo $ac_n "checking whether to support threads""... $ac_c" 1>&6
4442 echo "configure:4443: checking whether to support threads" >&5
4443 case "$with_threads" in
4444 "yes" |
"qt" |
"coop" |
"")
4450 { echo "configure: error: invalid value for --with-threads: $with_threads" 1>&2; exit 1; }
4453 echo "$ac_t""$with_threads" 1>&6
4455 ## Make sure the threads package we've chosen is actually supported on
4456 ## the present platform.
4457 case "${with_threads}" in
4459 ## This configures the QuickThreads package, and sets or clears
4460 ## the THREAD_PACKAGE variable if qthreads don't configure
4465 echo $ac_n "checking QuickThreads configuration""... $ac_c" 1>&6
4466 echo "configure:4467: checking QuickThreads configuration" >&5
4467 # How can we refer to the qt source directory from within the qt build
4468 # directory? For headers, we can rely on the fact that the qt src
4469 # directory appears in the #include path.
4470 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
4485 qtmds_s
=md
/mips-irix5.s
4487 qtdmdb_s
=md
/mips_b.s
4494 qtdmdb_s
=md
/mips_b.s
4497 port_name
=sparc-sunos
4501 qtdmdb_s
=md
/_sparc_b.s
4508 qtdmdb_s
=md
/sparc_b.s
4518 echo "Unknown configuration; threads package disabled"
4524 # Did configuration succeed?
4525 if test -n "$THREAD_PACKAGE"; then
4526 echo "$ac_t""$port_name" 1>&6
4527 QTHREAD_LTLIBS
=libqthreads.la
4528 THREAD_CPPFLAGS
="-I$qtsrcdir -I../qt"
4529 THREAD_LIBS_LOCAL
="../qt/libqthreads.la"
4530 THREAD_LIBS_INSTALLED
="-lqthreads"
4532 echo "$ac_t""none; disabled" 1>&6
4548 ## If we're using threads, bring in some other parts of Guile which
4550 if test "${THREAD_PACKAGE}" != "" ; then
4551 cat >> confdefs.h
<<\EOF
4552 #define USE_THREADS 1
4556 ## Include the Guile thread interface in the library...
4557 LIBOBJS
="$LIBOBJS threads.o"
4559 ## ... and tell it which package to talk to.
4560 case "${THREAD_PACKAGE}" in
4562 cat >> confdefs.h
<<\EOF
4563 #define USE_COOP_THREADS 1
4568 { echo "configure: error: invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE}" 1>&2; exit 1; }
4572 ## Bring in scm_internal_select, if appropriate.
4573 if test $ac_cv_func_gettimeofday = yes &&
4574 test $ac_cv_func_select = yes; then
4575 LIBOBJS
="$LIBOBJS iselect.o"
4576 cat >> confdefs.h
<<\EOF
4577 #define GUILE_ISELECT 1
4583 ## If we're using GCC, ask for aggressive warnings.
4586 ## We had -Wstrict-prototypes in here for a bit, but Guile does too
4587 ## much stuff with generic function pointers for that to really be
4588 ## less than exasperating.
4589 CFLAGS
="$CFLAGS -Wall -Wpointer-arith -Wmissing-prototypes" ;;
4592 for ac_prog
in mawk gawk nawk
awk
4594 # Extract the first word of "$ac_prog", so it can be a program name with args.
4595 set dummy
$ac_prog; ac_word
=$2
4596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4597 echo "configure:4598: checking for $ac_word" >&5
4598 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
4599 echo $ac_n "(cached) $ac_c" 1>&6
4601 if test -n "$AWK"; then
4602 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4604 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4605 for ac_dir
in $PATH; do
4606 test -z "$ac_dir" && ac_dir
=.
4607 if test -f $ac_dir/$ac_word; then
4608 ac_cv_prog_AWK
="$ac_prog"
4615 AWK
="$ac_cv_prog_AWK"
4616 if test -n "$AWK"; then
4617 echo "$ac_t""$AWK" 1>&6
4619 echo "$ac_t""no" 1>&6
4622 test -n "$AWK" && break
4626 ## If we're creating a shared library (using libtool!), then we'll
4627 ## need to generate a list of .lo files corresponding to the .o files
4628 ## given in LIBOBJS. We'll call it LIBLOBJS.
4629 LIBLOBJS
="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
4635 GUILE_LIBS
="$LDFLAGS $THREAD_LIBS_INSTALLED $LIBS"
4638 GUILE_STAMP
="`date`"
4645 cat > confcache
<<\EOF
4646 # This file is a shell script that caches the results of configure
4647 # tests run on this system so they can be shared between configure
4648 # scripts and configure runs. It is not useful on other systems.
4649 # If it contains results you don't want to keep, you may remove or edit it.
4651 # By default, configure uses ./config.cache as the cache file,
4652 # creating it if it does not exist already. You can give configure
4653 # the --cache-file=FILE option to use a different cache file; that is
4654 # what configure does when it calls configure scripts in
4655 # subdirectories, so they share the cache.
4656 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4657 # config.status only pays attention to the cache file if you give it the
4658 # --recheck option to rerun configure.
4661 # The following way of writing the cache mishandles newlines in values,
4662 # but we know of no workaround that is simple, portable, and efficient.
4663 # So, don't put newlines in cache variables' values.
4664 # Ultrix sh set writes to stderr and can't be redirected directly,
4665 # and sets the high bit in the cache file unless we assign to the vars.
4667 case `(ac_space=' '; set) 2>&1` in
4669 # `set' does not quote correctly, so add quotes (double-quote substitution
4670 # turns \\\\ into \\, and sed turns \\ into \).
4672 -e "s/'/'\\\\''/g" \
4673 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4676 # `set' quotes correctly as required by POSIX, so do not add quotes.
4677 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4680 if cmp -s $cache_file confcache
; then
4683 if test -w $cache_file; then
4684 echo "updating cache $cache_file"
4685 cat confcache
> $cache_file
4687 echo "not updating unwritable cache $cache_file"
4692 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4694 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4695 # Let make expand exec_prefix.
4696 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4698 # Any assignment to VPATH causes Sun make to only execute
4699 # the first set of double-colon rules, so remove it if not needed.
4700 # If there is a colon in the path, we need to keep it.
4701 if test "x$srcdir" = x.
; then
4702 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4705 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4707 DEFS
=-DHAVE_CONFIG_H
4709 # Without the "./", some shells look in PATH for config.status.
4710 : ${CONFIG_STATUS=./config.status}
4712 echo creating
$CONFIG_STATUS
4713 rm -f $CONFIG_STATUS
4714 cat > $CONFIG_STATUS <<EOF
4716 # Generated automatically by configure.
4717 # Run this file to recreate the current configuration.
4718 # This directory was configured as follows,
4719 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4721 # $0 $ac_configure_args
4723 # Compiler output produced by configure, useful for debugging
4724 # configure, is in ./config.log if it exists.
4726 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4729 case "\$ac_option" in
4730 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4731 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4732 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4733 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4734 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4736 -help | --help | --hel | --he | --h)
4737 echo "\$ac_cs_usage"; exit 0 ;;
4738 *) echo "\$ac_cs_usage"; exit 1 ;;
4742 ac_given_srcdir=$srcdir
4743 ac_given_INSTALL="$INSTALL"
4745 trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile libguile/scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4747 cat >> $CONFIG_STATUS <<EOF
4749 # Protect against being on the right side of a sed subst in config.status.
4750 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4751 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4754 s%@CFLAGS@%$CFLAGS%g
4755 s%@CPPFLAGS@%$CPPFLAGS%g
4756 s%@CXXFLAGS@%$CXXFLAGS%g
4758 s%@LDFLAGS@%$LDFLAGS%g
4760 s%@exec_prefix@%$exec_prefix%g
4761 s%@prefix@%$prefix%g
4762 s%@program_transform_name@%$program_transform_name%g
4763 s%@bindir@%$bindir%g
4764 s%@sbindir@%$sbindir%g
4765 s%@libexecdir@%$libexecdir%g
4766 s%@datadir@%$datadir%g
4767 s%@sysconfdir@%$sysconfdir%g
4768 s%@sharedstatedir@%$sharedstatedir%g
4769 s%@localstatedir@%$localstatedir%g
4770 s%@libdir@%$libdir%g
4771 s%@includedir@%$includedir%g
4772 s%@oldincludedir@%$oldincludedir%g
4773 s%@infodir@%$infodir%g
4774 s%@mandir@%$mandir%g
4775 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4776 s%@INSTALL_DATA@%$INSTALL_DATA%g
4777 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4778 s%@PACKAGE@%$PACKAGE%g
4779 s%@VERSION@%$VERSION%g
4780 s%@ACLOCAL@%$ACLOCAL%g
4781 s%@AUTOCONF@%$AUTOCONF%g
4782 s%@AUTOMAKE@%$AUTOMAKE%g
4783 s%@AUTOHEADER@%$AUTOHEADER%g
4784 s%@MAKEINFO@%$MAKEINFO%g
4785 s%@SET_MAKE@%$SET_MAKE%g
4790 s%@host_alias@%$host_alias%g
4791 s%@host_cpu@%$host_cpu%g
4792 s%@host_vendor@%$host_vendor%g
4793 s%@host_os@%$host_os%g
4794 s%@RANLIB@%$RANLIB%g
4798 s%@LIBTOOL@%$LIBTOOL%g
4799 s%@LIBOBJS@%$LIBOBJS%g
4800 s%@ALLOCA@%$ALLOCA%g
4801 s%@QTHREAD_LTLIBS@%$QTHREAD_LTLIBS%g
4802 s%@qtmd_h@%$qtmd_h%g
4803 s%@qtmds_s@%$qtmds_s%g
4804 s%@qtmdc_c@%$qtmdc_c%g
4805 s%@qtdmdb_s@%$qtdmdb_s%g
4806 s%@THREAD_PACKAGE@%$THREAD_PACKAGE%g
4807 s%@THREAD_CPPFLAGS@%$THREAD_CPPFLAGS%g
4808 s%@THREAD_LIBS_LOCAL@%$THREAD_LIBS_LOCAL%g
4809 s%@THREAD_LIBS_INSTALLED@%$THREAD_LIBS_INSTALLED%g
4811 s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
4812 s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
4813 s%@GUILE_VERSION@%$GUILE_VERSION%g
4814 s%@GUILE_LIBS@%$GUILE_LIBS%g
4815 s%@GUILE_STAMP@%$GUILE_STAMP%g
4816 s%@LIBLOBJS@%$LIBLOBJS%g
4821 cat >> $CONFIG_STATUS <<\EOF
4823 # Split the substitutions into bite-sized pieces for seds with
4824 # small command number limits, like on Digital OSF/1 and HP-UX.
4825 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4826 ac_file
=1 # Number of current file.
4827 ac_beg
=1 # First line for current file.
4828 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4831 while $ac_more_lines; do
4832 if test $ac_beg -gt 1; then
4833 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4835 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4837 if test ! -s conftest.s
$ac_file; then
4839 rm -f conftest.s
$ac_file
4841 if test -z "$ac_sed_cmds"; then
4842 ac_sed_cmds
="sed -f conftest.s$ac_file"
4844 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4846 ac_file
=`expr $ac_file + 1`
4848 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4851 if test -z "$ac_sed_cmds"; then
4856 cat >> $CONFIG_STATUS <<EOF
4858 CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile"}
4860 cat >> $CONFIG_STATUS <<\EOF
4861 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4862 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4864 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4865 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4866 *) ac_file_in
="${ac_file}.in" ;;
4869 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4871 # Remove last slash and all that follows it. Not all systems have dirname.
4872 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4873 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4874 # The file is in a subdirectory.
4875 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4876 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4877 # A "../" for each directory in $ac_dir_suffix.
4878 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4880 ac_dir_suffix
= ac_dots
=
4883 case "$ac_given_srcdir" in
4885 if test -z "$ac_dots"; then top_srcdir
=.
4886 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4887 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4889 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4890 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4893 case "$ac_given_INSTALL" in
4894 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4895 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4898 echo creating
"$ac_file"
4900 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4902 *Makefile
*) ac_comsub
="1i\\
4903 # $configure_input" ;;
4907 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4909 s%@configure_input@%$configure_input%g
4910 s%@srcdir@%$srcdir%g
4911 s%@top_srcdir@%$top_srcdir%g
4912 s%@INSTALL@%$INSTALL%g
4913 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4917 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4918 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4920 # ac_d sets the value in "#define NAME VALUE" lines.
4921 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4922 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4925 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4926 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4927 ac_uB
='\([ ]\)%\1#\2define\3'
4930 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4931 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4932 ac_eB
='$%\1#\2define\3'
4936 if test "${CONFIG_HEADERS+set}" != set; then
4938 cat >> $CONFIG_STATUS <<EOF
4939 CONFIG_HEADERS="libguile/scmconfig.h"
4941 cat >> $CONFIG_STATUS <<\EOF
4943 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4944 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4946 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4947 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4948 *) ac_file_in
="${ac_file}.in" ;;
4951 echo creating
$ac_file
4953 rm -f conftest.frag conftest.
in conftest.out
4954 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4955 cat $ac_file_inputs > conftest.
in
4959 # Transform confdefs.h into a sed script conftest.vals that substitutes
4960 # the proper values into config.h.in to produce config.h. And first:
4961 # Protect against being on the right side of a sed subst in config.status.
4962 # Protect against being in an unquoted here document in config.status.
4964 cat > conftest.hdr
<<\EOF
4967 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4971 sed -n -f conftest.hdr confdefs.h > conftest.vals
4974 # This sed command replaces #undef with comments. This is necessary, for
4975 # example, in the case of _POSIX_SOURCE, which is predefined and required
4976 # on some systems where configure will not decide to define it.
4977 cat >> conftest.vals <<\EOF
4978 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4981 # Break up conftest.vals because some shells have a limit on
4982 # the size of here documents, and old seds have small limits too.
4987 ac_lines=`grep -c . conftest.vals
`
4988 # grep -c gives empty output for an empty file on some AIX systems.
4989 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4990 # Write a limited-size here document to conftest.frag.
4991 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4992 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4994 sed -f conftest.frag conftest.in > conftest.out
4996 mv conftest.out conftest.in
4998 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5000 mv conftest.tail conftest.vals
5004 cat >> $CONFIG_STATUS <<\EOF
5005 rm -f conftest.frag conftest.h
5006 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5007 cat conftest.in >> conftest.h
5009 if cmp -s $ac_file conftest.h 2>/dev/null; then
5010 echo "$ac_file is unchanged"
5013 # Remove last slash and all that follows it. Not all systems have dirname.
5014 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5015 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5016 # The file is in a subdirectory.
5017 test ! -d "$ac_dir" && mkdir "$ac_dir"
5020 mv conftest.h $ac_file
5025 cat >> $CONFIG_STATUS <<EOF
5028 cat >> $CONFIG_STATUS <<\EOF
5029 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
5030 chmod +x libguile/guile-snarf
5033 chmod +x $CONFIG_STATUS
5034 rm -fr confdefs* $ac_clean_files
5035 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1