3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-debug Don't include debugging support"
20 --enable-dynamic-linking Include support for dynamic linking"
22 --enable-guile-debug Include internal debugging functions"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --enable-shared build shared libraries [default=yes]"
28 --enable-static build static libraries [default=yes]"
30 --with-threads thread interface"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file
=.
/config.cache
45 program_transform_name
=s
,x
,x
,
53 bindir
='${exec_prefix}/bin'
54 sbindir
='${exec_prefix}/sbin'
55 libexecdir
='${exec_prefix}/libexec'
56 datadir
='${prefix}/share'
57 sysconfdir
='${prefix}/etc'
58 sharedstatedir
='${prefix}/com'
59 localstatedir
='${prefix}/var'
60 libdir
='${exec_prefix}/lib'
61 includedir
='${prefix}/include'
62 oldincludedir
='/usr/include'
63 infodir
='${prefix}/info'
64 mandir
='${prefix}/man'
66 # Initialize some other variables.
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
94 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
95 bindir
="$ac_optarg" ;;
97 -build |
--build |
--buil |
--bui |
--bu)
99 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
100 build
="$ac_optarg" ;;
102 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
103 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
104 ac_prev
=cache_file
;;
105 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
106 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
107 cache_file
="$ac_optarg" ;;
109 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
111 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
113 datadir
="$ac_optarg" ;;
115 -disable-* |
--disable-*)
116 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* |
--enable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
138 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
139 |
--exec |
--exe |
--ex)
140 ac_prev
=exec_prefix
;;
141 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
142 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
143 |
--exec=* |
--exe=* |
--ex=*)
144 exec_prefix
="$ac_optarg" ;;
146 -gas |
--gas |
--ga |
--g)
147 # Obsolete; use --with-gas.
150 -help |
--help |
--hel |
--he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
205 -host |
--host |
--hos |
--ho)
207 -host=* |
--host=* |
--hos=* |
--ho=*)
210 -includedir |
--includedir |
--includedi |
--included |
--include \
211 |
--includ |
--inclu |
--incl |
--inc)
212 ac_prev
=includedir
;;
213 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
214 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
215 includedir
="$ac_optarg" ;;
217 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
219 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
220 infodir
="$ac_optarg" ;;
222 -libdir |
--libdir |
--libdi |
--libd)
224 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
225 libdir
="$ac_optarg" ;;
227 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
228 |
--libexe |
--libex |
--libe)
229 ac_prev
=libexecdir
;;
230 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
231 |
--libexe=* |
--libex=* |
--libe=*)
232 libexecdir
="$ac_optarg" ;;
234 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
235 |
--localstate |
--localstat |
--localsta |
--localst \
236 |
--locals |
--local |
--loca |
--loc |
--lo)
237 ac_prev
=localstatedir
;;
238 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
239 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
240 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
241 localstatedir
="$ac_optarg" ;;
243 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
245 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
246 mandir
="$ac_optarg" ;;
249 # Obsolete; use --without-fp.
252 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
256 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
257 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
260 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
261 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
262 |
--oldin |
--oldi |
--old |
--ol |
--o)
263 ac_prev
=oldincludedir
;;
264 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
265 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
266 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
267 oldincludedir
="$ac_optarg" ;;
269 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
271 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
272 prefix
="$ac_optarg" ;;
274 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
275 |
--program-pre |
--program-pr |
--program-p)
276 ac_prev
=program_prefix
;;
277 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
278 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
279 program_prefix
="$ac_optarg" ;;
281 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
282 |
--program-suf |
--program-su |
--program-s)
283 ac_prev
=program_suffix
;;
284 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
285 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
286 program_suffix
="$ac_optarg" ;;
288 -program-transform-name |
--program-transform-name \
289 |
--program-transform-nam |
--program-transform-na \
290 |
--program-transform-n |
--program-transform- \
291 |
--program-transform |
--program-transfor \
292 |
--program-transfo |
--program-transf \
293 |
--program-trans |
--program-tran \
294 |
--progr-tra |
--program-tr |
--program-t)
295 ac_prev
=program_transform_name
;;
296 -program-transform-name=* |
--program-transform-name=* \
297 |
--program-transform-nam=* |
--program-transform-na=* \
298 |
--program-transform-n=* |
--program-transform-=* \
299 |
--program-transform=* |
--program-transfor=* \
300 |
--program-transfo=* |
--program-transf=* \
301 |
--program-trans=* |
--program-tran=* \
302 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
303 program_transform_name
="$ac_optarg" ;;
305 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
306 |
-silent |
--silent |
--silen |
--sile |
--sil)
309 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
311 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
313 sbindir
="$ac_optarg" ;;
315 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
316 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
317 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
319 ac_prev
=sharedstatedir
;;
320 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
321 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
322 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
324 sharedstatedir
="$ac_optarg" ;;
326 -site |
--site |
--sit)
328 -site=* |
--site=* |
--sit=*)
331 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
333 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
334 srcdir
="$ac_optarg" ;;
336 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
337 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
338 ac_prev
=sysconfdir
;;
339 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
340 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
341 sysconfdir
="$ac_optarg" ;;
343 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
345 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
346 target
="$ac_optarg" ;;
348 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
351 -version |
--version |
--versio |
--versi |
--vers)
352 echo "configure generated by autoconf version 2.12"
356 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package
=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* |
--without-*)
369 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
382 |
--x-incl |
--x-inc |
--x-in |
--x-i)
383 ac_prev
=x_includes
;;
384 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
385 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
386 x_includes
="$ac_optarg" ;;
388 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
389 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
390 ac_prev
=x_libraries
;;
391 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
392 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
393 x_libraries
="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE
; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
444 |
--no-cr |
--no-c) ;;
445 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
446 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
447 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest
* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file
=Makefile.
in
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted
=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted
=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE
; then
498 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file
in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
510 if test -r "$cache_file"; then
511 echo "loading cache $cache_file"
514 echo "creating cache $cache_file"
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp
='$CPP $CPPFLAGS'
521 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling
=$ac_cv_prog_cc_cross
525 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
534 ac_n
= ac_c
='\c' ac_t
=
538 .
$srcdir/GUILE-VERSION
540 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
541 if test -f $ac_dir/install-sh
; then
543 ac_install_sh
="$ac_aux_dir/install-sh -c"
545 elif test -f $ac_dir/install.sh
; then
547 ac_install_sh
="$ac_aux_dir/install.sh -c"
551 if test -z "$ac_aux_dir"; then
552 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
554 ac_config_guess
=$ac_aux_dir/config.guess
555 ac_config_sub
=$ac_aux_dir/config.sub
556 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
558 # Find a good install program. We prefer a C program (faster),
559 # so one script is as good as another. But avoid the broken or
560 # incompatible versions:
561 # SysV /etc/install, /usr/sbin/install
562 # SunOS /usr/etc/install
565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
567 # ./install, which can be erroneously created by make from ./install.sh.
568 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
569 echo "configure:570: checking for a BSD compatible install" >&5
570 if test -z "$INSTALL"; then
571 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
572 echo $ac_n "(cached) $ac_c" 1>&6
574 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
575 for ac_dir
in $PATH; do
576 # Account for people who put trailing slashes in PATH elements.
578 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
580 # OSF1 and SCO ODT 3.0 have their own names for install.
581 for ac_prog
in ginstall installbsd scoinst
install; do
582 if test -f $ac_dir/$ac_prog; then
583 if test $ac_prog = install &&
584 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
585 # AIX install. It has an incompatible calling convention.
586 # OSF/1 installbsd also uses dspmsg, but is usable.
589 ac_cv_path_install
="$ac_dir/$ac_prog -c"
600 if test "${ac_cv_path_install+set}" = set; then
601 INSTALL
="$ac_cv_path_install"
603 # As a last resort, use the slow shell script. We don't cache a
604 # path for INSTALL within a source directory, because that will
605 # break other packages using the cache if that directory is
606 # removed, or if the path is relative.
607 INSTALL
="$ac_install_sh"
610 echo "$ac_t""$INSTALL" 1>&6
612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
613 # It thinks the first close brace ends the variable substitution.
614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
616 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
626 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
627 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
630 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
631 echo "configure:632: checking whether build environment is sane" >&5
634 echo timestamp
> conftestfile
635 # Do `set' in a subshell so we don't clobber the current shell's
636 # arguments. Must try -L first in case configure is actually a
637 # symlink; some systems play weird games with the mod time of symlinks
638 # (eg FreeBSD returns the mod time of the symlink's containing
641 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
642 if test "" = "X"; then
644 set X
`ls -t $srcdir/configure conftestfile`
646 test "$2" = conftestfile
652 { echo "configure: error: newly created file is older than distributed files!
653 Check your system clock" 1>&2; exit 1; }
656 echo "$ac_t""yes" 1>&6
657 if test "$program_transform_name" = s
,x
,x
,; then
658 program_transform_name
=
660 # Double any \ or $. echo might interpret backslashes.
661 cat <<\EOF_SED
> conftestsed
662 s
,\\,\\\\,g
; s
,\$
,$$
,g
664 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
667 test "$program_prefix" != NONE
&&
668 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
669 # Use a double $ so make ignores it.
670 test "$program_suffix" != NONE
&&
671 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
673 # sed with no file args requires a program.
674 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
676 missing_dir
=`cd $ac_aux_dir && pwd`
677 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
678 echo "configure:679: checking for working aclocal" >&5
679 # Run test in a subshell; some versions of sh will print an error if
680 # an executable is not found, even if stderr is redirected.
681 # Redirect stdin to placate older versions of autoconf. Sigh.
682 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
684 echo "$ac_t""found" 1>&6
686 ACLOCAL
="$missing_dir/missing aclocal"
687 echo "$ac_t""missing" 1>&6
690 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
691 echo "configure:692: checking for working autoconf" >&5
692 # Run test in a subshell; some versions of sh will print an error if
693 # an executable is not found, even if stderr is redirected.
694 # Redirect stdin to placate older versions of autoconf. Sigh.
695 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
697 echo "$ac_t""found" 1>&6
699 AUTOCONF
="$missing_dir/missing autoconf"
700 echo "$ac_t""missing" 1>&6
703 echo $ac_n "checking for working automake""... $ac_c" 1>&6
704 echo "configure:705: checking for working automake" >&5
705 # Run test in a subshell; some versions of sh will print an error if
706 # an executable is not found, even if stderr is redirected.
707 # Redirect stdin to placate older versions of autoconf. Sigh.
708 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
710 echo "$ac_t""found" 1>&6
712 AUTOMAKE
="$missing_dir/missing automake"
713 echo "$ac_t""missing" 1>&6
716 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
717 echo "configure:718: checking for working autoheader" >&5
718 # Run test in a subshell; some versions of sh will print an error if
719 # an executable is not found, even if stderr is redirected.
720 # Redirect stdin to placate older versions of autoconf. Sigh.
721 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
722 AUTOHEADER
=autoheader
723 echo "$ac_t""found" 1>&6
725 AUTOHEADER
="$missing_dir/missing autoheader"
726 echo "$ac_t""missing" 1>&6
729 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
730 echo "configure:731: checking for working makeinfo" >&5
731 # Run test in a subshell; some versions of sh will print an error if
732 # an executable is not found, even if stderr is redirected.
733 # Redirect stdin to placate older versions of autoconf. Sigh.
734 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
736 echo "$ac_t""found" 1>&6
738 MAKEINFO
="$missing_dir/missing makeinfo"
739 echo "$ac_t""missing" 1>&6
742 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
743 echo "configure:744: checking whether ${MAKE-make} sets \${MAKE}" >&5
744 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
745 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
748 cat > conftestmake
<<\EOF
750 @
echo 'ac_maketemp="${MAKE}"'
752 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
753 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
754 if test -n "$ac_maketemp"; then
755 eval ac_cv_prog_make_
${ac_make}_set
=yes
757 eval ac_cv_prog_make_
${ac_make}_set
=no
761 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
762 echo "$ac_t""yes" 1>&6
765 echo "$ac_t""no" 1>&6
766 SET_MAKE
="MAKE=${MAKE-make}"
769 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
770 echo "configure:771: checking whether to enable maintainer-specific portions of Makefiles" >&5
771 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
772 if test "${enable_maintainer_mode+set}" = set; then
773 enableval
="$enable_maintainer_mode"
774 USE_MAINTAINER_MODE
=$enableval
776 USE_MAINTAINER_MODE
=no
779 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
780 if test $USE_MAINTAINER_MODE = yes; then
791 #--------------------------------------------------------------------
795 #--------------------------------------------------------------------
797 # Check whether --enable-debug or --disable-debug was given.
798 if test "${enable_debug+set}" = set; then
799 enableval
="$enable_debug"
803 if test "$enableval" != n
&& test "$enableval" != no
; then
804 cat >> confdefs.h
<<\EOF
805 #define DEBUG_EXTENSIONS 1
808 cat >> confdefs.h
<<\EOF
809 #define READER_EXTENSIONS 1
812 LIBOBJS
="backtrace.o stacks.o debug.o srcprop.o $LIBOBJS"
815 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
816 if test "${enable_dynamic_linking+set}" = set; then
817 enableval
="$enable_dynamic_linking"
820 enable_dynamic_linking
=yes
824 # Check whether --enable-guile-debug or --disable-guile-debug was given.
825 if test "${enable_guile_debug+set}" = set; then
826 enableval
="$enable_guile_debug"
830 if test "$enableval" = y ||
test "$enableval" = yes; then
831 cat >> confdefs.h
<<\EOF
832 #define GUILE_DEBUG 1
837 #--------------------------------------------------------------------
839 # Extract the first word of "gcc", so it can be a program name with args.
840 set dummy gcc
; ac_word
=$2
841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
842 echo "configure:843: checking for $ac_word" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 if test -n "$CC"; then
847 ac_cv_prog_CC
="$CC" # Let the user override the test.
849 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
850 for ac_dir
in $PATH; do
851 test -z "$ac_dir" && ac_dir
=.
852 if test -f $ac_dir/$ac_word; then
861 if test -n "$CC"; then
862 echo "$ac_t""$CC" 1>&6
864 echo "$ac_t""no" 1>&6
867 if test -z "$CC"; then
868 # Extract the first word of "cc", so it can be a program name with args.
869 set dummy cc
; ac_word
=$2
870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871 echo "configure:872: checking for $ac_word" >&5
872 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
875 if test -n "$CC"; then
876 ac_cv_prog_CC
="$CC" # Let the user override the test.
878 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
880 for ac_dir
in $PATH; do
881 test -z "$ac_dir" && ac_dir
=.
882 if test -f $ac_dir/$ac_word; then
883 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
892 if test $ac_prog_rejected = yes; then
893 # We found a bogon in the path, so make sure we never use it.
894 set dummy
$ac_cv_prog_CC
896 if test $# -gt 0; then
897 # We chose a different compiler from the bogus one.
898 # However, it has the same basename, so the bogon will be chosen
899 # first if we set CC to just the basename; use the full file name.
901 set dummy
"$ac_dir/$ac_word" "$@"
909 if test -n "$CC"; then
910 echo "$ac_t""$CC" 1>&6
912 echo "$ac_t""no" 1>&6
915 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
918 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
919 echo "configure:920: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
923 ac_cpp
='$CPP $CPPFLAGS'
924 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
925 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
926 cross_compiling
=$ac_cv_prog_cc_cross
928 cat > conftest.
$ac_ext <<EOF
929 #line 930 "configure"
930 #include "confdefs.h"
933 if { (eval echo configure
:934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
934 ac_cv_prog_cc_works
=yes
935 # If we can't run a trivial program, we are probably using a cross compiler.
936 if (.
/conftest
; exit) 2>/dev
/null
; then
937 ac_cv_prog_cc_cross
=no
939 ac_cv_prog_cc_cross
=yes
942 echo "configure: failed program was:" >&5
943 cat conftest.
$ac_ext >&5
944 ac_cv_prog_cc_works
=no
948 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
949 if test $ac_cv_prog_cc_works = no
; then
950 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
952 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
953 echo "configure:954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
954 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
955 cross_compiling
=$ac_cv_prog_cc_cross
957 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
958 echo "configure:959: checking whether we are using GNU C" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 cat > conftest.c
<<EOF
967 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
974 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
976 if test $ac_cv_prog_gcc = yes; then
978 ac_test_CFLAGS
="${CFLAGS+set}"
979 ac_save_CFLAGS
="$CFLAGS"
981 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
982 echo "configure:983: checking whether ${CC-cc} accepts -g" >&5
983 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 echo 'void f(){}' > conftest.c
987 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
996 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
997 if test "$ac_test_CFLAGS" = set; then
998 CFLAGS
="$ac_save_CFLAGS"
999 elif test $ac_cv_prog_cc_g = yes; then
1006 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1009 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1010 echo "configure:1011: checking how to run the C preprocessor" >&5
1011 # On Suns, sometimes $CPP names a directory.
1012 if test -n "$CPP" && test -d "$CPP"; then
1015 if test -z "$CPP"; then
1016 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 # This must be in double quotes, not single quotes, because CPP may get
1020 # substituted into the Makefile and "${CC-cc}" will confuse make.
1022 # On the NeXT, cc -E runs the code through the compiler's parser,
1023 # not just through cpp.
1024 cat > conftest.
$ac_ext <<EOF
1025 #line 1026 "configure"
1026 #include "confdefs.h"
1030 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031 { (eval echo configure
:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1032 ac_err
=`grep -v '^ *+' conftest.out`
1033 if test -z "$ac_err"; then
1037 echo "configure: failed program was:" >&5
1038 cat conftest.
$ac_ext >&5
1040 CPP
="${CC-cc} -E -traditional-cpp"
1041 cat > conftest.
$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure
:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err
=`grep -v '^ *+' conftest.out`
1050 if test -z "$ac_err"; then
1054 echo "configure: failed program was:" >&5
1055 cat conftest.
$ac_ext >&5
1062 ac_cv_prog_CPP
="$CPP"
1064 CPP
="$ac_cv_prog_CPP"
1066 ac_cv_prog_CPP
="$CPP"
1068 echo "$ac_t""$CPP" 1>&6
1071 # Make sure we can run config.sub.
1072 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1073 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1076 echo $ac_n "checking host system type""... $ac_c" 1>&6
1077 echo "configure:1078: checking host system type" >&5
1080 case "$host_alias" in
1084 if host_alias
=`$ac_config_guess`; then :
1085 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1087 *) host_alias
=$nonopt ;;
1091 host=`$ac_config_sub $host_alias`
1092 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1093 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1094 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1095 echo "$ac_t""$host" 1>&6
1097 # Extract the first word of "ranlib", so it can be a program name with args.
1098 set dummy ranlib
; ac_word
=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 if test -n "$RANLIB"; then
1105 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1107 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1108 for ac_dir
in $PATH; do
1109 test -z "$ac_dir" && ac_dir
=.
1110 if test -f $ac_dir/$ac_word; then
1111 ac_cv_prog_RANLIB
="ranlib"
1116 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1119 RANLIB
="$ac_cv_prog_RANLIB"
1120 if test -n "$RANLIB"; then
1121 echo "$ac_t""$RANLIB" 1>&6
1123 echo "$ac_t""no" 1>&6
1126 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1127 if test "${with_gnu_ld+set}" = set; then
1128 withval
="$with_gnu_ld"
1129 test "$withval" = no || with_gnu_ld
=yes
1134 if test "$with_gnu_ld" = yes; then
1135 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1136 echo "configure:1137: checking for GNU ld" >&5
1138 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1139 echo "configure:1140: checking for non-GNU ld" >&5
1141 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1146 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1149 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1150 for ac_dir
in $PATH; do
1151 test -z "$ac_dir" && ac_dir
=.
1152 if test -f "$ac_dir/ld"; then
1153 ac_cv_path_LD
="$ac_dir/ld"
1154 # Check to see if the program is GNU ld. I'd rather use --version,
1155 # but apparently some GNU ld's only accept -v.
1156 # Break only if it was the GNU/non-GNU ld that we prefer.
1157 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU ld|with BFD)' > /dev
/null
; then
1158 test "$with_gnu_ld" = yes && break
1160 test "$with_gnu_ld" != yes && break
1170 if test -n "$LD"; then
1171 echo "$ac_t""$LD" 1>&6
1173 echo "$ac_t""no" 1>&6
1175 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1177 echo $ac_n "checking whether we are using GNU ld""... $ac_c" 1>&6
1178 echo "configure:1179: checking whether we are using GNU ld" >&5
1179 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1183 if $LD -v 2>&1 </dev
/null |
egrep '(GNU ld|with BFD)' > /dev
/null
; then
1184 ac_cv_prog_gnu_ld
=yes
1186 ac_cv_prog_gnu_ld
=no
1190 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1193 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether ln -s works" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1199 if ln -s X conftestdata
2>/dev
/null
1202 ac_cv_prog_LN_S
="ln -s"
1207 LN_S
="$ac_cv_prog_LN_S"
1208 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1209 echo "$ac_t""yes" 1>&6
1211 echo "$ac_t""no" 1>&6
1220 # Always use our own libtool.
1221 LIBTOOL
='$(top_builddir)/libtool'
1224 # Check whether --enable-shared or --disable-shared was given.
1225 if test "${enable_shared+set}" = set; then
1226 enableval
="$enable_shared"
1227 test "$enableval" = no
&& libtool_shared
=" --disable-shared"
1233 # Check whether --enable-static or --disable-static was given.
1234 if test "${enable_static+set}" = set; then
1235 enableval
="$enable_static"
1236 test "$enableval" = no
&& libtool_static
=" --disable-static"
1242 libtool_flags
="$libtool_shared$libtool_static"
1243 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1244 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1245 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1247 # Some flags need to be propagated to the compiler or linker for good
1251 for f
in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
1252 if echo " $CC $CFLAGS " |
egrep -e "[ ]$f[ ]" > /dev
/null
; then
1259 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1260 CFLAGS
="$CFLAGS -belf"
1264 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1265 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1266 LD
="$LD" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1267 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1268 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1269 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1272 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1273 echo "configure:1274: checking for AIX" >&5
1274 cat > conftest.
$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1283 egrep "yes" >/dev
/null
2>&1; then
1285 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1286 #define _ALL_SOURCE 1
1291 echo "$ac_t""no" 1>&6
1296 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1297 echo "configure:1298: checking for POSIXized ISC" >&5
1298 if test -d /etc
/conf
/kconfig.d
&&
1299 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1301 echo "$ac_t""yes" 1>&6
1302 ISC
=yes # If later tests want to check for ISC.
1303 cat >> confdefs.h
<<\EOF
1304 #define _POSIX_SOURCE 1
1307 if test "$GCC" = yes; then
1313 echo "$ac_t""no" 1>&6
1317 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1318 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1319 echo "configure:1320: checking for minix/config.h" >&5
1320 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1323 cat > conftest.
$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1326 #include <minix/config.h>
1328 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1329 { (eval echo configure
:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1330 ac_err
=`grep -v '^ *+' conftest.out`
1331 if test -z "$ac_err"; then
1333 eval "ac_cv_header_$ac_safe=yes"
1336 echo "configure: failed program was:" >&5
1337 cat conftest.
$ac_ext >&5
1339 eval "ac_cv_header_$ac_safe=no"
1343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1344 echo "$ac_t""yes" 1>&6
1347 echo "$ac_t""no" 1>&6
1351 if test "$MINIX" = yes; then
1352 cat >> confdefs.h
<<\EOF
1353 #define _POSIX_SOURCE 1
1356 cat >> confdefs.h
<<\EOF
1357 #define _POSIX_1_SOURCE 2
1360 cat >> confdefs.h
<<\EOF
1367 echo $ac_n "checking for working const""... $ac_c" 1>&6
1368 echo "configure:1369: checking for working const" >&5
1369 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 cat > conftest.
$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1378 /* Ultrix mips cc rejects this. */
1379 typedef int charset[2]; const charset x;
1380 /* SunOS 4.1.1 cc rejects this. */
1381 char const *const *ccp;
1383 /* NEC SVR4.0.2 mips cc rejects this. */
1384 struct point {int x, y;};
1385 static struct point const zero = {0,0};
1386 /* AIX XL C 1.02.0.0 rejects this.
1387 It does not let you subtract one const X* pointer from another in an arm
1388 of an if-expression whose if-part is not a constant expression */
1389 const char *g = "string";
1390 ccp = &g + (g ? g-g : 0);
1391 /* HPUX 7.0 cc rejects these. */
1394 ccp = (char const *const *) p;
1395 { /* SCO 3.2v4 cc rejects this. */
1397 char const *s = 0 ? (char *) 0 : (char const *) 0;
1401 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1403 const int *foo = &x[0];
1406 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1407 typedef const int *iptr;
1411 { /* AIX XL C 1.02.0.0 rejects this saying
1412 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1413 struct s { int j; const int *ap[3]; };
1414 struct s *b; b->j = 5;
1416 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1422 if { (eval echo configure
:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1426 echo "configure: failed program was:" >&5
1427 cat conftest.
$ac_ext >&5
1434 echo "$ac_t""$ac_cv_c_const" 1>&6
1435 if test $ac_cv_c_const = no
; then
1436 cat >> confdefs.h
<<\EOF
1443 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1444 echo "configure:1445: checking for ANSI C header files" >&5
1445 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 cat > conftest.
$ac_ext <<EOF
1449 #line 1450 "configure"
1450 #include "confdefs.h"
1456 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1457 { (eval echo configure
:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1458 ac_err
=`grep -v '^ *+' conftest.out`
1459 if test -z "$ac_err"; then
1461 ac_cv_header_stdc
=yes
1464 echo "configure: failed program was:" >&5
1465 cat conftest.
$ac_ext >&5
1467 ac_cv_header_stdc
=no
1471 if test $ac_cv_header_stdc = yes; then
1472 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1473 cat > conftest.
$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1479 egrep "memchr" >/dev
/null
2>&1; then
1483 ac_cv_header_stdc
=no
1489 if test $ac_cv_header_stdc = yes; then
1490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1491 cat > conftest.
$ac_ext <<EOF
1492 #line 1493 "configure"
1493 #include "confdefs.h"
1496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1497 egrep "free" >/dev
/null
2>&1; then
1501 ac_cv_header_stdc
=no
1507 if test $ac_cv_header_stdc = yes; then
1508 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1509 if test "$cross_compiling" = yes; then
1512 cat > conftest.
$ac_ext <<EOF
1513 #line 1514 "configure"
1514 #include "confdefs.h"
1516 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1517 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1518 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1519 int main () { int i; for (i = 0; i < 256; i++)
1520 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1524 if { (eval echo configure
:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1528 echo "configure: failed program was:" >&5
1529 cat conftest.
$ac_ext >&5
1531 ac_cv_header_stdc
=no
1539 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1540 if test $ac_cv_header_stdc = yes; then
1541 cat >> confdefs.h
<<\EOF
1542 #define STDC_HEADERS 1
1548 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1550 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1551 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_hdr that defines DIR" >&5
1553 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 cat > conftest.
$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1559 #include <sys/types.h>
1565 if { (eval echo configure
:1566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1567 eval "ac_cv_header_dirent_$ac_safe=yes"
1569 echo "configure: failed program was:" >&5
1570 cat conftest.
$ac_ext >&5
1572 eval "ac_cv_header_dirent_$ac_safe=no"
1576 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1577 echo "$ac_t""yes" 1>&6
1578 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1579 cat >> confdefs.h
<<EOF
1580 #define $ac_tr_hdr 1
1582 ac_header_dirent
=$ac_hdr; break
1584 echo "$ac_t""no" 1>&6
1587 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1588 if test $ac_header_dirent = dirent.h
; then
1589 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1590 echo "configure:1591: checking for opendir in -ldir" >&5
1591 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 ac_save_LIBS
="$LIBS"
1597 cat > conftest.
$ac_ext <<EOF
1598 #line 1599 "configure"
1599 #include "confdefs.h"
1600 /* Override any gcc2 internal prototype to avoid an error. */
1601 /* We use char because int might match the return type of a gcc2
1602 builtin and then its argument prototype would still apply. */
1609 if { (eval echo configure
:1610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1611 eval "ac_cv_lib_$ac_lib_var=yes"
1613 echo "configure: failed program was:" >&5
1614 cat conftest.
$ac_ext >&5
1616 eval "ac_cv_lib_$ac_lib_var=no"
1619 LIBS
="$ac_save_LIBS"
1622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1623 echo "$ac_t""yes" 1>&6
1626 echo "$ac_t""no" 1>&6
1630 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1631 echo "configure:1632: checking for opendir in -lx" >&5
1632 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1636 ac_save_LIBS
="$LIBS"
1638 cat > conftest.
$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1641 /* Override any gcc2 internal prototype to avoid an error. */
1642 /* We use char because int might match the return type of a gcc2
1643 builtin and then its argument prototype would still apply. */
1650 if { (eval echo configure
:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1652 eval "ac_cv_lib_$ac_lib_var=yes"
1654 echo "configure: failed program was:" >&5
1655 cat conftest.
$ac_ext >&5
1657 eval "ac_cv_lib_$ac_lib_var=no"
1660 LIBS
="$ac_save_LIBS"
1663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1664 echo "$ac_t""yes" 1>&6
1667 echo "$ac_t""no" 1>&6
1672 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether time.h and sys/time.h may both be included" >&5
1674 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 cat > conftest.
$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1680 #include <sys/types.h>
1681 #include <sys/time.h>
1687 if { (eval echo configure
:1688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1689 ac_cv_header_time
=yes
1691 echo "configure: failed program was:" >&5
1692 cat conftest.
$ac_ext >&5
1694 ac_cv_header_time
=no
1699 echo "$ac_t""$ac_cv_header_time" 1>&6
1700 if test $ac_cv_header_time = yes; then
1701 cat >> confdefs.h
<<\EOF
1702 #define TIME_WITH_SYS_TIME 1
1707 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1708 echo "configure:1709: checking for sys/wait.h that is POSIX.1 compatible" >&5
1709 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.
$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 #include <sys/types.h>
1716 #include <sys/wait.h>
1718 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1721 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1726 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1729 if { (eval echo configure
:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1731 ac_cv_header_sys_wait_h
=yes
1733 echo "configure: failed program was:" >&5
1734 cat conftest.
$ac_ext >&5
1736 ac_cv_header_sys_wait_h
=no
1741 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1742 if test $ac_cv_header_sys_wait_h = yes; then
1743 cat >> confdefs.h
<<\EOF
1744 #define HAVE_SYS_WAIT_H 1
1749 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
1751 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1753 echo "configure:1754: checking for $ac_hdr" >&5
1754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 cat > conftest.
$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1762 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1763 { (eval echo configure
:1764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1764 ac_err
=`grep -v '^ *+' conftest.out`
1765 if test -z "$ac_err"; then
1767 eval "ac_cv_header_$ac_safe=yes"
1770 echo "configure: failed program was:" >&5
1771 cat conftest.
$ac_ext >&5
1773 eval "ac_cv_header_$ac_safe=no"
1777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1778 echo "$ac_t""yes" 1>&6
1779 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1780 cat >> confdefs.h
<<EOF
1781 #define $ac_tr_hdr 1
1785 echo "$ac_t""no" 1>&6
1790 for ac_hdr
in libc.h unistd.h
1792 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1794 echo "configure:1795: checking for $ac_hdr" >&5
1795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1798 cat > conftest.
$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1803 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1804 { (eval echo configure
:1805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1805 ac_err
=`grep -v '^ *+' conftest.out`
1806 if test -z "$ac_err"; then
1808 eval "ac_cv_header_$ac_safe=yes"
1811 echo "configure: failed program was:" >&5
1812 cat conftest.
$ac_ext >&5
1814 eval "ac_cv_header_$ac_safe=no"
1818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1819 echo "$ac_t""yes" 1>&6
1820 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1821 cat >> confdefs.h
<<EOF
1822 #define $ac_tr_hdr 1
1826 echo "$ac_t""no" 1>&6
1830 echo $ac_n "checking "whether libc.h and unistd.h can be included together
"""... $ac_c" 1>&6
1831 echo "configure:1832: checking "whether libc.h and unistd.h can be included together
"" >&5
1832 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1836 if test "$ac_cv_header_libc_h" = "no"; then
1837 guile_cv_header_libc_with_unistd
="no"
1838 elif test "$ac_cv_header_unistd.h" = "no"; then
1839 guile_cv_header_libc_with_unistd
="yes"
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1846 # include <unistd.h>
1852 if { (eval echo configure
:1853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1854 guile_cv_header_libc_with_unistd
=yes
1856 echo "configure: failed program was:" >&5
1857 cat conftest.
$ac_ext >&5
1859 guile_cv_header_libc_with_unistd
=no
1868 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
1869 if test "$guile_cv_header_libc_with_unistd" = yes; then
1870 cat >> confdefs.h
<<\EOF
1871 #define LIBC_H_WITH_UNISTD_H 1
1878 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1879 echo "configure:1880: checking for uid_t in sys/types.h" >&5
1880 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 cat > conftest.
$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1886 #include <sys/types.h>
1888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1889 egrep "uid_t" >/dev
/null
2>&1; then
1891 ac_cv_type_uid_t
=yes
1900 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1901 if test $ac_cv_type_uid_t = no
; then
1902 cat >> confdefs.h
<<\EOF
1906 cat >> confdefs.h
<<\EOF
1912 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1913 echo "configure:1914: checking type of array argument to getgroups" >&5
1914 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1917 if test "$cross_compiling" = yes; then
1918 ac_cv_type_getgroups
=cross
1920 cat > conftest.
$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1924 /* Thanks to Mike Rendell for this test. */
1925 #include <sys/types.h>
1928 #define MAX(x, y) ((x) > (y) ? (x) : (y))
1933 union { gid_t gval; long lval; } val;
1936 for (i = 0; i < NGID; i++)
1937 gidset[i] = val.gval;
1938 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1940 /* Exit non-zero if getgroups seems to require an array of ints. This
1941 happens when gid_t is short but getgroups modifies an array of ints. */
1942 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1946 if { (eval echo configure
:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1948 ac_cv_type_getgroups
=gid_t
1950 echo "configure: failed program was:" >&5
1951 cat conftest.
$ac_ext >&5
1953 ac_cv_type_getgroups
=int
1958 if test $ac_cv_type_getgroups = cross
; then
1959 cat > conftest.
$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1965 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
1967 ac_cv_type_getgroups
=gid_t
1970 ac_cv_type_getgroups
=int
1977 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1978 cat >> confdefs.h
<<EOF
1979 #define GETGROUPS_T $ac_cv_type_getgroups
1983 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1984 echo "configure:1985: checking return type of signal handlers" >&5
1985 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1988 cat > conftest.
$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 #include <sys/types.h>
1997 extern "C" void (*signal (int, void (*)(int)))(int);
1999 void (*signal ()) ();
2006 if { (eval echo configure
:2007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2008 ac_cv_type_signal
=void
2010 echo "configure: failed program was:" >&5
2011 cat conftest.
$ac_ext >&5
2013 ac_cv_type_signal
=int
2018 echo "$ac_t""$ac_cv_type_signal" 1>&6
2019 cat >> confdefs.h
<<EOF
2020 #define RETSIGTYPE $ac_cv_type_signal
2024 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2025 echo "configure:2026: checking for mode_t" >&5
2026 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 cat > conftest.
$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2032 #include <sys/types.h>
2038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2039 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2041 ac_cv_type_mode_t
=yes
2044 ac_cv_type_mode_t
=no
2049 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2050 if test $ac_cv_type_mode_t = no
; then
2051 cat >> confdefs.h
<<\EOF
2058 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2059 echo "configure:2060: checking for main in -lm" >&5
2060 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
2061 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2064 ac_save_LIBS
="$LIBS"
2066 cat > conftest.
$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2074 if { (eval echo configure
:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2076 eval "ac_cv_lib_$ac_lib_var=yes"
2078 echo "configure: failed program was:" >&5
2079 cat conftest.
$ac_ext >&5
2081 eval "ac_cv_lib_$ac_lib_var=no"
2084 LIBS
="$ac_save_LIBS"
2087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2090 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2091 cat >> confdefs.h
<<EOF
2092 #define $ac_tr_lib 1
2098 echo "$ac_t""no" 1>&6
2101 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2102 echo "configure:2103: checking for gethostbyname" >&5
2103 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 cat > conftest.
$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 /* System header to define __stub macros and hopefully few prototypes,
2110 which can conflict with char gethostbyname(); below. */
2112 /* Override any gcc2 internal prototype to avoid an error. */
2113 /* We use char because int might match the return type of a gcc2
2114 builtin and then its argument prototype would still apply. */
2115 char gethostbyname();
2119 /* The GNU C library defines this for functions which it implements
2120 to always fail with ENOSYS. Some functions are actually named
2121 something starting with __ and the normal name is an alias. */
2122 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2130 if { (eval echo configure
:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2132 eval "ac_cv_func_gethostbyname=yes"
2134 echo "configure: failed program was:" >&5
2135 cat conftest.
$ac_ext >&5
2137 eval "ac_cv_func_gethostbyname=no"
2142 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2143 echo "$ac_t""yes" 1>&6
2146 echo "$ac_t""no" 1>&6
2149 if test $ac_cv_func_gethostbyname = no
; then
2150 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2151 echo "configure:2152: checking for gethostbyname in -lnsl" >&5
2152 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 ac_save_LIBS
="$LIBS"
2158 cat > conftest.
$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2161 /* Override any gcc2 internal prototype to avoid an error. */
2162 /* We use char because int might match the return type of a gcc2
2163 builtin and then its argument prototype would still apply. */
2164 char gethostbyname();
2170 if { (eval echo configure
:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2172 eval "ac_cv_lib_$ac_lib_var=yes"
2174 echo "configure: failed program was:" >&5
2175 cat conftest.
$ac_ext >&5
2177 eval "ac_cv_lib_$ac_lib_var=no"
2180 LIBS
="$ac_save_LIBS"
2183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2184 echo "$ac_t""yes" 1>&6
2185 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2187 cat >> confdefs.h
<<EOF
2188 #define $ac_tr_lib 1
2194 echo "$ac_t""no" 1>&6
2198 echo $ac_n "checking for connect""... $ac_c" 1>&6
2199 echo "configure:2200: checking for connect" >&5
2200 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 cat > conftest.
$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2206 /* System header to define __stub macros and hopefully few prototypes,
2207 which can conflict with char connect(); below. */
2209 /* Override any gcc2 internal prototype to avoid an error. */
2210 /* We use char because int might match the return type of a gcc2
2211 builtin and then its argument prototype would still apply. */
2216 /* The GNU C library defines this for functions which it implements
2217 to always fail with ENOSYS. Some functions are actually named
2218 something starting with __ and the normal name is an alias. */
2219 #if defined (__stub_connect) || defined (__stub___connect)
2227 if { (eval echo configure
:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2229 eval "ac_cv_func_connect=yes"
2231 echo "configure: failed program was:" >&5
2232 cat conftest.
$ac_ext >&5
2234 eval "ac_cv_func_connect=no"
2239 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2240 echo "$ac_t""yes" 1>&6
2243 echo "$ac_t""no" 1>&6
2246 if test $ac_cv_func_connect = no
; then
2247 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2248 echo "configure:2249: checking for connect in -lsocket" >&5
2249 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 ac_save_LIBS
="$LIBS"
2254 LIBS
="-lsocket $LIBS"
2255 cat > conftest.
$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2258 /* Override any gcc2 internal prototype to avoid an error. */
2259 /* We use char because int might match the return type of a gcc2
2260 builtin and then its argument prototype would still apply. */
2267 if { (eval echo configure
:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2269 eval "ac_cv_lib_$ac_lib_var=yes"
2271 echo "configure: failed program was:" >&5
2272 cat conftest.
$ac_ext >&5
2274 eval "ac_cv_lib_$ac_lib_var=no"
2277 LIBS
="$ac_save_LIBS"
2280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2281 echo "$ac_t""yes" 1>&6
2282 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2284 cat >> confdefs.h
<<EOF
2285 #define $ac_tr_lib 1
2288 LIBS
="-lsocket $LIBS"
2291 echo "$ac_t""no" 1>&6
2296 # Checks for dynamic linking
2298 if test "$enable_dynamic_linking" = "yes"; then
2300 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2301 echo "configure:2302: checking for dlopen in -ldl" >&5
2302 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 ac_save_LIBS
="$LIBS"
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 /* Override any gcc2 internal prototype to avoid an error. */
2312 /* We use char because int might match the return type of a gcc2
2313 builtin and then its argument prototype would still apply. */
2320 if { (eval echo configure
:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2322 eval "ac_cv_lib_$ac_lib_var=yes"
2324 echo "configure: failed program was:" >&5
2325 cat conftest.
$ac_ext >&5
2327 eval "ac_cv_lib_$ac_lib_var=no"
2330 LIBS
="$ac_save_LIBS"
2333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2334 echo "$ac_t""yes" 1>&6
2335 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2336 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2337 cat >> confdefs.h
<<EOF
2338 #define $ac_tr_lib 1
2344 echo "$ac_t""no" 1>&6
2347 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2348 cat >> confdefs.h
<<\EOF
2349 #define DYNAMIC_LINKING 1
2353 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2354 echo "configure:2355: checking for dld_link in -ldld" >&5
2355 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 ac_save_LIBS
="$LIBS"
2361 cat > conftest.
$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 /* Override any gcc2 internal prototype to avoid an error. */
2365 /* We use char because int might match the return type of a gcc2
2366 builtin and then its argument prototype would still apply. */
2373 if { (eval echo configure
:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2375 eval "ac_cv_lib_$ac_lib_var=yes"
2377 echo "configure: failed program was:" >&5
2378 cat conftest.
$ac_ext >&5
2380 eval "ac_cv_lib_$ac_lib_var=no"
2383 LIBS
="$ac_save_LIBS"
2386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2387 echo "$ac_t""yes" 1>&6
2388 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2389 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2390 cat >> confdefs.h
<<EOF
2391 #define $ac_tr_lib 1
2397 echo "$ac_t""no" 1>&6
2400 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2401 cat >> confdefs.h
<<\EOF
2402 #define DYNAMIC_LINKING 1
2406 for ac_func
in shl_load
2408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2409 echo "configure:2410: checking for $ac_func" >&5
2410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 cat > conftest.
$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 /* System header to define __stub macros and hopefully few prototypes,
2417 which can conflict with char $ac_func(); below. */
2419 /* Override any gcc2 internal prototype to avoid an error. */
2420 /* We use char because int might match the return type of a gcc2
2421 builtin and then its argument prototype would still apply. */
2426 /* The GNU C library defines this for functions which it implements
2427 to always fail with ENOSYS. Some functions are actually named
2428 something starting with __ and the normal name is an alias. */
2429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2437 if { (eval echo configure
:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2439 eval "ac_cv_func_$ac_func=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2444 eval "ac_cv_func_$ac_func=no"
2449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2450 echo "$ac_t""yes" 1>&6
2451 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2452 cat >> confdefs.h
<<EOF
2453 #define $ac_tr_func 1
2457 echo "$ac_t""no" 1>&6
2461 if test "$ac_cv_func_shl_load" = "yes"; then
2462 cat >> confdefs.h
<<\EOF
2463 #define DYNAMIC_LINKING 1
2473 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
2475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2476 echo "configure:2477: checking for $ac_func" >&5
2477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 cat > conftest.
$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 /* System header to define __stub macros and hopefully few prototypes,
2484 which can conflict with char $ac_func(); below. */
2486 /* Override any gcc2 internal prototype to avoid an error. */
2487 /* We use char because int might match the return type of a gcc2
2488 builtin and then its argument prototype would still apply. */
2493 /* The GNU C library defines this for functions which it implements
2494 to always fail with ENOSYS. Some functions are actually named
2495 something starting with __ and the normal name is an alias. */
2496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2504 if { (eval echo configure
:2505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2506 eval "ac_cv_func_$ac_func=yes"
2508 echo "configure: failed program was:" >&5
2509 cat conftest.
$ac_ext >&5
2511 eval "ac_cv_func_$ac_func=no"
2516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2517 echo "$ac_t""yes" 1>&6
2518 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2519 cat >> confdefs.h
<<EOF
2520 #define $ac_tr_func 1
2524 echo "$ac_t""no" 1>&6
2530 ac_safe
=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
2531 echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
2532 echo "configure:2533: checking for sys/un.h" >&5
2533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2541 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2542 { (eval echo configure
:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2543 ac_err
=`grep -v '^ *+' conftest.out`
2544 if test -z "$ac_err"; then
2546 eval "ac_cv_header_$ac_safe=yes"
2549 echo "configure: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2552 eval "ac_cv_header_$ac_safe=no"
2556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2557 echo "$ac_t""yes" 1>&6
2560 echo "$ac_t""no" 1>&6
2563 if test -n "$have_sys_un_h" ; then
2564 cat >> confdefs.h
<<\EOF
2565 #define HAVE_UNIX_DOMAIN_SOCKETS 1
2570 for ac_func
in socketpair getgroups setpwent pause tzset
2572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2573 echo "configure:2574: checking for $ac_func" >&5
2574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2577 cat > conftest.
$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2580 /* System header to define __stub macros and hopefully few prototypes,
2581 which can conflict with char $ac_func(); below. */
2583 /* Override any gcc2 internal prototype to avoid an error. */
2584 /* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2590 /* The GNU C library defines this for functions which it implements
2591 to always fail with ENOSYS. Some functions are actually named
2592 something starting with __ and the normal name is an alias. */
2593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2601 if { (eval echo configure
:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2603 eval "ac_cv_func_$ac_func=yes"
2605 echo "configure: failed program was:" >&5
2606 cat conftest.
$ac_ext >&5
2608 eval "ac_cv_func_$ac_func=no"
2613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2615 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2616 cat >> confdefs.h
<<EOF
2617 #define $ac_tr_func 1
2621 echo "$ac_t""no" 1>&6
2629 for ac_func
in sethostent endhostent getnetent setnetent endnetent getprotoent endprotoent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof
2631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2632 echo "configure:2633: checking for $ac_func" >&5
2633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6
2636 cat > conftest.
$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2639 /* System header to define __stub macros and hopefully few prototypes,
2640 which can conflict with char $ac_func(); below. */
2642 /* Override any gcc2 internal prototype to avoid an error. */
2643 /* We use char because int might match the return type of a gcc2
2644 builtin and then its argument prototype would still apply. */
2649 /* The GNU C library defines this for functions which it implements
2650 to always fail with ENOSYS. Some functions are actually named
2651 something starting with __ and the normal name is an alias. */
2652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2660 if { (eval echo configure
:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2662 eval "ac_cv_func_$ac_func=yes"
2664 echo "configure: failed program was:" >&5
2665 cat conftest.
$ac_ext >&5
2667 eval "ac_cv_func_$ac_func=no"
2672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2673 echo "$ac_t""yes" 1>&6
2674 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2675 cat >> confdefs.h
<<EOF
2676 #define $ac_tr_func 1
2680 echo "$ac_t""no" 1>&6
2686 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
2687 echo "configure:2688: checking for restartable system calls" >&5
2688 if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 if test $ac_cv_func_sigaction = yes; then
2692 cat > conftest.
$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2700 if { (eval echo configure
:2701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2704 echo "configure: failed program was:" >&5
2705 cat conftest.
$ac_ext >&5
2715 echo "$ac_t""$scm_cv_restarts" 1>&6
2716 if test $scm_cv_restarts = yes; then
2717 cat >> confdefs.h
<<\EOF
2718 #define HAVE_RESTARTS 1
2723 if test "$ac_cv_header_regex_h" = yes ||
2724 test "$ac_cv_header_rxposix_h" = yes ||
2725 test "$ac_cv_header_rx_rxposix_h" = yes; then
2726 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
2727 echo "configure:2728: checking for regcomp" >&5
2728 if eval "test \"`echo '$''{'ac_cv_func_regcomp_norx'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 cat > conftest.
$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2734 /* System header to define __stub macros and hopefully few prototypes,
2735 which can conflict with char regcomp(); below. */
2737 /* Override any gcc2 internal prototype to avoid an error. */
2738 /* We use char because int might match the return type of a gcc2
2739 builtin and then its argument prototype would still apply. */
2744 /* The GNU C library defines this for functions which it implements
2745 to always fail with ENOSYS. Some functions are actually named
2746 something starting with __ and the normal name is an alias. */
2747 #if defined (__stub_regcomp) || defined (__stub___regcomp)
2755 if { (eval echo configure
:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2757 eval "ac_cv_func_regcomp_norx=yes"
2759 echo "configure: failed program was:" >&5
2760 cat conftest.
$ac_ext >&5
2762 eval "ac_cv_func_regcomp_norx=no"
2767 if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
2768 echo "$ac_t""yes" 1>&6
2769 LIBOBJS
="regex-posix.o $LIBOBJS"
2771 echo "$ac_t""no" 1>&6
2772 echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
2773 echo "configure:2774: checking for main in -lrx" >&5
2774 ac_lib_var
=`echo rx'_'main | sed 'y%./+-%__p_%'`
2775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 ac_save_LIBS
="$LIBS"
2780 cat > conftest.
$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2788 if { (eval echo configure
:2789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2790 eval "ac_cv_lib_$ac_lib_var=yes"
2792 echo "configure: failed program was:" >&5
2793 cat conftest.
$ac_ext >&5
2795 eval "ac_cv_lib_$ac_lib_var=no"
2798 LIBS
="$ac_save_LIBS"
2801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2803 ac_tr_lib
=HAVE_LIB
`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2805 cat >> confdefs.h
<<EOF
2806 #define $ac_tr_lib 1
2812 echo "$ac_t""no" 1>&6
2815 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
2816 echo "configure:2817: checking for regcomp" >&5
2817 if eval "test \"`echo '$''{'ac_cv_func_regcomp_rx'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2820 cat > conftest.
$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2823 /* System header to define __stub macros and hopefully few prototypes,
2824 which can conflict with char regcomp(); below. */
2826 /* Override any gcc2 internal prototype to avoid an error. */
2827 /* We use char because int might match the return type of a gcc2
2828 builtin and then its argument prototype would still apply. */
2833 /* The GNU C library defines this for functions which it implements
2834 to always fail with ENOSYS. Some functions are actually named
2835 something starting with __ and the normal name is an alias. */
2836 #if defined (__stub_regcomp) || defined (__stub___regcomp)
2844 if { (eval echo configure
:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2846 eval "ac_cv_func_regcomp_rx=yes"
2848 echo "configure: failed program was:" >&5
2849 cat conftest.
$ac_ext >&5
2851 eval "ac_cv_func_regcomp_rx=no"
2856 if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
2857 echo "$ac_t""yes" 1>&6
2858 LIBOBJS
="regex-posix.o $LIBOBJS"
2860 echo "$ac_t""no" 1>&6
2866 if test "$ac_cv_func_regcomp_norx" = yes ||
2867 test "$ac_cv_func_regcomp_rx" = yes; then
2868 cat >> confdefs.h
<<\EOF
2869 #define HAVE_REGCOMP 1
2875 for ac_func
in inet_aton putenv strerror
2877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2878 echo "configure:2879: checking for $ac_func" >&5
2879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 cat > conftest.
$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2885 /* System header to define __stub macros and hopefully few prototypes,
2886 which can conflict with char $ac_func(); below. */
2888 /* Override any gcc2 internal prototype to avoid an error. */
2889 /* We use char because int might match the return type of a gcc2
2890 builtin and then its argument prototype would still apply. */
2895 /* The GNU C library defines this for functions which it implements
2896 to always fail with ENOSYS. Some functions are actually named
2897 something starting with __ and the normal name is an alias. */
2898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2906 if { (eval echo configure
:2907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2908 eval "ac_cv_func_$ac_func=yes"
2910 echo "configure: failed program was:" >&5
2911 cat conftest.
$ac_ext >&5
2913 eval "ac_cv_func_$ac_func=no"
2918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2919 echo "$ac_t""yes" 1>&6
2920 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2921 cat >> confdefs.h
<<EOF
2922 #define $ac_tr_func 1
2926 echo "$ac_t""no" 1>&6
2927 LIBOBJS
="$LIBOBJS ${ac_func}.o"
2933 # When testing for the presence of alloca, we need to add alloca.o
2934 # explicitly to LIBOBJS to make sure that it is translated to
2935 # `alloca.lo' for libtool later on. This can and should be done more cleanly.
2936 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2937 # for constant arguments. Useless!
2938 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2939 echo "configure:2940: checking for working alloca.h" >&5
2940 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2943 cat > conftest.
$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2948 char *p = alloca(2 * sizeof(int));
2951 if { (eval echo configure
:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2953 ac_cv_header_alloca_h
=yes
2955 echo "configure: failed program was:" >&5
2956 cat conftest.
$ac_ext >&5
2958 ac_cv_header_alloca_h
=no
2963 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2964 if test $ac_cv_header_alloca_h = yes; then
2965 cat >> confdefs.h
<<\EOF
2966 #define HAVE_ALLOCA_H 1
2971 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2972 echo "configure:2973: checking for alloca" >&5
2973 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 cat > conftest.
$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2981 # define alloca __builtin_alloca
2984 # include <alloca.h>
2989 # ifndef alloca /* predefined by HP cc +Olibcalls */
2997 char *p = (char *) alloca(1);
3000 if { (eval echo configure
:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3002 ac_cv_func_alloca_works
=yes
3004 echo "configure: failed program was:" >&5
3005 cat conftest.
$ac_ext >&5
3007 ac_cv_func_alloca_works
=no
3012 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3013 if test $ac_cv_func_alloca_works = yes; then
3014 cat >> confdefs.h
<<\EOF
3015 #define HAVE_ALLOCA 1
3020 if test $ac_cv_func_alloca_works = no
; then
3021 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3022 # that cause trouble. Some versions do not even contain alloca or
3023 # contain a buggy version. If you still want to use their alloca,
3024 # use ar to extract alloca.o from them instead of compiling alloca.c.
3026 cat >> confdefs.h
<<\EOF
3031 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3032 echo "configure:3033: checking whether alloca needs Cray hooks" >&5
3033 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 cat > conftest.
$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3039 #if defined(CRAY) && ! defined(CRAY2)
3046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3047 egrep "webecray" >/dev
/null
2>&1; then
3058 echo "$ac_t""$ac_cv_os_cray" 1>&6
3059 if test $ac_cv_os_cray = yes; then
3060 for ac_func
in _getb67 GETB67 getb67
; do
3061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3062 echo "configure:3063: checking for $ac_func" >&5
3063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 cat > conftest.
$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 /* System header to define __stub macros and hopefully few prototypes,
3070 which can conflict with char $ac_func(); below. */
3072 /* Override any gcc2 internal prototype to avoid an error. */
3073 /* We use char because int might match the return type of a gcc2
3074 builtin and then its argument prototype would still apply. */
3079 /* The GNU C library defines this for functions which it implements
3080 to always fail with ENOSYS. Some functions are actually named
3081 something starting with __ and the normal name is an alias. */
3082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3090 if { (eval echo configure
:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3092 eval "ac_cv_func_$ac_func=yes"
3094 echo "configure: failed program was:" >&5
3095 cat conftest.
$ac_ext >&5
3097 eval "ac_cv_func_$ac_func=no"
3102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3104 cat >> confdefs.h
<<EOF
3105 #define CRAY_STACKSEG_END $ac_func
3110 echo "$ac_t""no" 1>&6
3116 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3117 echo "configure:3118: checking stack direction for C alloca" >&5
3118 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 if test "$cross_compiling" = yes; then
3122 ac_cv_c_stack_direction
=0
3124 cat > conftest.
$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 find_stack_direction ()
3129 static char *addr = 0;
3134 return find_stack_direction ();
3137 return (&dummy > addr) ? 1 : -1;
3141 exit (find_stack_direction() < 0);
3144 if { (eval echo configure
:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3146 ac_cv_c_stack_direction
=1
3148 echo "configure: failed program was:" >&5
3149 cat conftest.
$ac_ext >&5
3151 ac_cv_c_stack_direction
=-1
3158 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3159 cat >> confdefs.h
<<EOF
3160 #define STACK_DIRECTION $ac_cv_c_stack_direction
3165 if test "$ALLOCA" = "alloca.o"; then LIBOBJS
="alloca.o $LIBOBJS"; fi
3167 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3168 echo "configure:3169: checking for st_rdev in struct stat" >&5
3169 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3172 cat > conftest.
$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3175 #include <sys/types.h>
3176 #include <sys/stat.h>
3178 struct stat s; s.st_rdev;
3181 if { (eval echo configure
:3182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3183 ac_cv_struct_st_rdev
=yes
3185 echo "configure: failed program was:" >&5
3186 cat conftest.
$ac_ext >&5
3188 ac_cv_struct_st_rdev
=no
3193 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3194 if test $ac_cv_struct_st_rdev = yes; then
3195 cat >> confdefs.h
<<\EOF
3196 #define HAVE_ST_RDEV 1
3201 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3202 echo "configure:3203: checking for st_blksize in struct stat" >&5
3203 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3206 cat > conftest.
$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3209 #include <sys/types.h>
3210 #include <sys/stat.h>
3212 struct stat s; s.st_blksize;
3215 if { (eval echo configure
:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3217 ac_cv_struct_st_blksize
=yes
3219 echo "configure: failed program was:" >&5
3220 cat conftest.
$ac_ext >&5
3222 ac_cv_struct_st_blksize
=no
3227 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3228 if test $ac_cv_struct_st_blksize = yes; then
3229 cat >> confdefs.h
<<\EOF
3230 #define HAVE_ST_BLKSIZE 1
3236 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
3237 # LIBOBJS, which we don't need. This seems more direct.
3238 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3239 echo "configure:3240: checking for st_blocks in struct stat" >&5
3240 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 cat > conftest.
$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 #include <sys/types.h>
3247 #include <sys/stat.h>
3249 struct stat s; s.st_blocks;
3252 if { (eval echo configure
:3253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3254 ac_cv_struct_st_blocks
=yes
3256 echo "configure: failed program was:" >&5
3257 cat conftest.
$ac_ext >&5
3259 ac_cv_struct_st_blocks
=no
3264 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3265 if test $ac_cv_struct_st_blocks = yes; then
3266 cat >> confdefs.h
<<\EOF
3267 #define HAVE_ST_BLOCKS 1
3272 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3273 echo "configure:3274: checking whether struct tm is in sys/time.h or time.h" >&5
3274 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 cat > conftest.
$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3280 #include <sys/types.h>
3283 struct tm *tp; tp->tm_sec;
3286 if { (eval echo configure
:3287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3288 ac_cv_struct_tm
=time.h
3290 echo "configure: failed program was:" >&5
3291 cat conftest.
$ac_ext >&5
3293 ac_cv_struct_tm
=sys
/time.h
3298 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3299 if test $ac_cv_struct_tm = sys
/time.h
; then
3300 cat >> confdefs.h
<<\EOF
3301 #define TM_IN_SYS_TIME 1
3306 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3307 echo "configure:3308: checking for tm_zone in struct tm" >&5
3308 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 cat > conftest.
$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 #include <sys/types.h>
3315 #include <$ac_cv_struct_tm>
3317 struct tm tm; tm.tm_zone;
3320 if { (eval echo configure
:3321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3322 ac_cv_struct_tm_zone
=yes
3324 echo "configure: failed program was:" >&5
3325 cat conftest.
$ac_ext >&5
3327 ac_cv_struct_tm_zone
=no
3332 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3333 if test "$ac_cv_struct_tm_zone" = yes; then
3334 cat >> confdefs.h
<<\EOF
3335 #define HAVE_TM_ZONE 1
3339 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3340 echo "configure:3341: checking for tzname" >&5
3341 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 cat > conftest.
$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3348 #ifndef tzname /* For SGI. */
3349 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3355 if { (eval echo configure
:3356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3357 ac_cv_var_tzname
=yes
3359 echo "configure: failed program was:" >&5
3360 cat conftest.
$ac_ext >&5
3367 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3368 if test $ac_cv_var_tzname = yes; then
3369 cat >> confdefs.h
<<\EOF
3370 #define HAVE_TZNAME 1
3377 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
3378 echo "configure:3379: checking whether we need POSIX to get struct utimbuf" >&5
3379 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 cat > conftest.
$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3387 #include <sys/utime.h>
3394 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3395 { (eval echo configure
:3396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3396 ac_err
=`grep -v '^ *+' conftest.out`
3397 if test -z "$ac_err"; then
3399 guile_cv_struct_utimbuf_needs_posix
=no
3402 echo "configure: failed program was:" >&5
3403 cat conftest.
$ac_ext >&5
3405 guile_cv_struct_utimbuf_needs_posix
=yes
3410 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
3411 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
3412 cat >> confdefs.h
<<\EOF
3413 #define UTIMBUF_NEEDS_POSIX 1
3418 #--------------------------------------------------------------------
3420 # Which way does the stack grow?
3422 #--------------------------------------------------------------------
3424 if test "$cross_compiling" = yes; then
3425 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
3427 cat > conftest.
$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 aux (l) unsigned long l;
3431 { int x; exit (l >= ((unsigned long)&x)); }
3432 main () { int q; aux((unsigned long)&q); }
3434 if { (eval echo configure
:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3436 cat >> confdefs.h
<<\EOF
3437 #define SCM_STACK_GROWS_UP 1
3441 echo "configure: failed program was:" >&5
3442 cat conftest.
$ac_ext >&5
3449 if test "$cross_compiling" = yes; then
3450 cat >> confdefs.h
<<\EOF
3451 #define SCM_SINGLES 1
3454 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
3456 cat > conftest.
$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3459 main () { exit (sizeof(float) != sizeof(long)); }
3461 if { (eval echo configure
:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3463 cat >> confdefs.h
<<\EOF
3464 #define SCM_SINGLES 1
3468 echo "configure: failed program was:" >&5
3469 cat conftest.
$ac_ext >&5
3475 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
3476 echo "configure:3477: checking for struct linger" >&5
3477 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3480 cat > conftest.
$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3484 #include <sys/types.h>
3485 #include <sys/socket.h>
3487 struct linger lgr; lgr.l_linger = 100
3490 if { (eval echo configure
:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3492 scm_cv_struct_linger
="yes"
3494 echo "configure: failed program was:" >&5
3495 cat conftest.
$ac_ext >&5
3497 scm_cv_struct_linger
="no"
3502 echo "$ac_t""$scm_cv_struct_linger" 1>&6
3503 if test $scm_cv_struct_linger = yes; then
3504 cat >> confdefs.h
<<\EOF
3505 #define HAVE_STRUCT_LINGER 1
3510 #--------------------------------------------------------------------
3512 # How can you violate a stdio abstraction by setting a stream's fd?
3514 #--------------------------------------------------------------------
3516 echo $ac_n "checking how to set a stream file descriptor""... $ac_c" 1>&6
3517 echo "configure:3518: checking how to set a stream file descriptor" >&5
3518 if eval "test \"`echo '$''{'scm_cv_fd_setter'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3521 cat > conftest.
$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3529 if { (eval echo configure
:3530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3531 scm_cv_fd_setter
="_file"
3533 echo "configure: failed program was:" >&5
3534 cat conftest.
$ac_ext >&5
3536 cat > conftest.
$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3544 if { (eval echo configure
:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3546 scm_cv_fd_setter
="_fileno"
3548 echo "configure: failed program was:" >&5
3549 cat conftest.
$ac_ext >&5
3559 if test "$scm_cv_fd_setter"; then
3560 echo "$ac_t""$scm_cv_fd_setter" 1>&6
3561 cat >> confdefs.h
<<EOF
3562 #define FD_SETTER $scm_cv_fd_setter
3566 echo "$ac_t""we couldn't do it!" 1>&6
3569 #--------------------------------------------------------------------
3570 # How to find out whether a FILE structure contains buffered data.
3571 # From Tk we have the following list:
3572 # _cnt: Most UNIX systems
3576 # Or, in GNU libc there are two fields, _gptr and _egptr, which
3577 # have to be compared.
3578 # These can also be known as _IO_read_ptr and _IO_read_end.
3579 #--------------------------------------------------------------------
3581 echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
3582 echo "configure:3583: checking how to get buffer char count from FILE structure" >&5
3583 if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 cat > conftest.
$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3591 FILE *f = stdin; f->_cnt = 0
3594 if { (eval echo configure
:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3596 scm_cv_struct_file_count
="_cnt"
3598 echo "configure: failed program was:" >&5
3599 cat conftest.
$ac_ext >&5
3601 cat > conftest.
$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3606 FILE *f = stdin; f->_r = 0
3609 if { (eval echo configure
:3610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3611 scm_cv_struct_file_count
="_r"
3613 echo "configure: failed program was:" >&5
3614 cat conftest.
$ac_ext >&5
3616 cat > conftest.
$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3621 FILE *f = stdin; f->readCount = 0
3624 if { (eval echo configure
:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3626 scm_cv_struct_file_count
="readCount"
3628 echo "configure: failed program was:" >&5
3629 cat conftest.
$ac_ext >&5
3631 scm_cv_struct_file_count
=""
3640 if test "$scm_cv_struct_file_count"; then
3641 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
3642 cat >> confdefs.h
<<EOF
3643 #define FILE_CNT_FIELD $scm_cv_struct_file_count
3647 if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 cat > conftest.
$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3655 FILE *f = stdin; f->_gptr = f->egptr;
3658 if { (eval echo configure
:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3660 scm_cv_struct_file_gptr
=1
3662 echo "configure: failed program was:" >&5
3663 cat conftest.
$ac_ext >&5
3665 scm_cv_struct_file_gptr
=""
3670 if test "$scm_cv_struct_gptr"; then
3671 echo "$ac_t""gptr" 1>&6
3672 cat >> confdefs.h
<<EOF
3673 #define FILE_CNT_GPTR $scm_cv_struct_file_gptr
3677 if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 cat > conftest.
$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3685 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
3688 if { (eval echo configure
:3689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3690 scm_cv_struct_file_readptr
=1
3692 echo "configure: failed program was:" >&5
3693 cat conftest.
$ac_ext >&5
3698 if test "$scm_cv_struct_file_readptr"; then
3699 echo "$ac_t""read_ptr" 1>&6
3700 cat >> confdefs.h
<<EOF
3701 #define FILE_CNT_READPTR $scm_cv_struct_file_readptr
3705 echo "$ac_t""we couldn't do it!" 1>&6
3710 #--------------------------------------------------------------------
3712 # Flags for thread support
3714 #--------------------------------------------------------------------
3717 echo $ac_n "checking "threads package
type"""... $ac_c" 1>&6
3718 echo "configure:3719: checking "threads package
type"" >&5
3719 if eval "test \"`echo '$''{'cy_cv_threads_package'+set}'`\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3723 if eval "test \"`echo '$''{'cy_cv_threads_cflags'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3727 if eval "test \"`echo '$''{'cy_cv_threads_libs'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3732 # Check whether --with-threads or --without-threads was given.
3733 if test "${with_threads+set}" = set; then
3734 withval
="$with_threads"
3735 use_threads
=$withval
3740 test -n "$use_threads" || use_threads
=qt
3741 threads_package
=unknown
3742 if test "$use_threads" != no
; then
3743 if test "$use_threads" = yes ||
test "$use_threads" = qt
; then
3744 # Look for qt in source directory.
3745 if test -f $srcdir/qt
/qt.c
; then
3746 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
3747 threads_package
=COOP
3748 cy_cv_threads_cflags
="-I$qtsrcdir -I../qt"
3749 cy_cv_threads_libs
="../qt/libqt.a"
3752 if test -f $use_threads/qt.c
; then
3753 # FIXME seems as though we should try to use an installed qt here.
3754 threads_package
=COOP
3755 cy_cv_threads_cflags
="-I$use_threads -I../qt"
3756 cy_cv_threads_libs
="../qt/libqt.a"
3759 if test "$use_threads" = pthreads
; then
3760 # Look for pthreads in srcdir. See above to understand why
3761 # we always set threads_package.
3762 if test -f $srcdir/..
/..
/pthreads
/pthreads
/queue.c \
3763 ||
test -f $srcdir/..
/pthreads
/pthreads
/queue.c
; then
3765 cy_cv_threads_cflags
="-I$srcdir/../../pthreads/include"
3766 cy_cv_threads_libs
="-L../../pthreads/lib -lpthread"
3769 saved_CPP
="$CPPFLAGS"
3772 if test "$threads_package" = unknown
; then
3773 CPPFLAGS
="-I$use_threads/include"
3774 LDFLAGS
="-L$use_threads/lib"
3775 LIBS
="-lgthreads -lmalloc"
3776 cat > conftest.
$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 #include <pthread.h>
3782 pthread_equal(NULL,NULL);
3786 if { (eval echo configure
:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3790 echo "configure: failed program was:" >&5
3791 cat conftest.
$ac_ext >&5
3795 if test "$threads_package" = unknown
; then
3797 cat > conftest.
$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 #include <pthread.h>
3803 pthread_equal(NULL,NULL);
3807 if { (eval echo configure
:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3811 echo "configure: failed program was:" >&5
3812 cat conftest.
$ac_ext >&5
3816 if test "$threads_package" = unknown
; then
3818 cat > conftest.
$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 #include <pthread.h>
3824 pthread_equal(NULL,NULL);
3828 if { (eval echo configure
:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3830 threads_package
=PCthreads
3832 echo "configure: failed program was:" >&5
3833 cat conftest.
$ac_ext >&5
3837 cy_cv_threads_cflags
="$CPPFLAGS $cy_cv_threads_cflags"
3838 cy_cv_threads_libs
="$LDFLAGS $LIBS $cy_cv_threads_libs"
3839 cy_cv_threads_package
=$threads_package
3840 CPPFLAGS
="$saved_CPP"
3843 if test "$threads_package" = unknown
; then
3844 { echo "configure: error: "cannot
find thread library installation
"" 1>&2; exit 1; }
3856 echo "$ac_t""$cy_cv_threads_package" 1>&6
3858 CFLAGS
="$CFLAGS $cy_cv_threads_cflags"
3859 THREAD_LIBS
="$cy_cv_threads_libs"
3862 if test "$cy_cv_threads_package" = FSU
; then
3863 cat >> confdefs.h
<<\EOF
3864 #define USE_FSU_PTHREADS 1
3867 else if test "$cy_cv_threads_package" = COOP
; then
3868 cat >> confdefs.h
<<\EOF
3869 #define USE_COOP_THREADS 1
3872 else if test "$cy_cv_threads_package" = MIT
; then
3873 cat >> confdefs.h
<<\EOF
3874 #define USE_MIT_PTHREADS 1
3877 else if test "$cy_cv_threads_package" = PCthreads
; then
3878 cat >> confdefs.h
<<\EOF
3879 #define USE_PCTHREADS_PTHREADS 1
3882 else if test "$cy_cv_threads_package" = unknown
; then
3883 { echo "configure: error: "cannot
find threads installation
"" 1>&2; exit 1; }
3890 if test "$cy_cv_threads_package" != ""; then
3891 cat >> confdefs.h
<<\EOF
3892 #define USE_THREADS 1
3895 LIBOBJS
="$LIBOBJS threads.o"
3898 ## If we're using GCC, ask for aggressive warnings.
3900 yes ) CFLAGS
="$CFLAGS -Wall -Wpointer-arith" ;;
3903 for ac_prog
in mawk gawk nawk
awk
3905 # Extract the first word of "$ac_prog", so it can be a program name with args.
3906 set dummy
$ac_prog; ac_word
=$2
3907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3908 echo "configure:3909: checking for $ac_word" >&5
3909 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3912 if test -n "$AWK"; then
3913 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3915 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3916 for ac_dir
in $PATH; do
3917 test -z "$ac_dir" && ac_dir
=.
3918 if test -f $ac_dir/$ac_word; then
3919 ac_cv_prog_AWK
="$ac_prog"
3926 AWK
="$ac_cv_prog_AWK"
3927 if test -n "$AWK"; then
3928 echo "$ac_t""$AWK" 1>&6
3930 echo "$ac_t""no" 1>&6
3933 test -n "$AWK" && break
3937 ## If we're creating a shared library (using libtool!), then we'll
3938 ## need to generate a list of .lo files corresponding to the .o files
3939 ## given in LIBOBJS. We'll call it LIBLOBJS.
3940 LIBLOBJS
="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
3946 GUILE_STAMP
="`date`"
3954 threads_enabled
=false
3955 if test "$cy_cv_threads_package" = COOP
; then
3956 threads_enabled
=true
3959 # Determine the host we are working on
3961 # Make sure we can run config.sub.
3962 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
3963 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3966 echo $ac_n "checking host system type""... $ac_c" 1>&6
3967 echo "configure:3968: checking host system type" >&5
3970 case "$host_alias" in
3974 if host_alias
=`$ac_config_guess`; then :
3975 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3977 *) host_alias
=$nonopt ;;
3981 host=`$ac_config_sub $host_alias`
3982 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3983 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3984 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3985 echo "$ac_t""$host" 1>&6
3988 # How can we refer to the qt source directory from within the qt build
3989 # directory? For headers, we can rely on the fact that the qt src
3990 # directory appears in the #include path.
3992 qtsrcdir
="`(cd $srcdir; pwd)`/qt"
3996 qtmds_s
=$qtsrcdir/md
/i386.s
3998 qtmdc_c
=$qtsrcdir/md
/null.c
4001 qtmds_s
=$qtsrcdir/md
/mips-irix5.s
4003 qtmdc_c
=$qtsrcdir/md
/null.c
4004 qtdmdb_s
=$qtsrcdir/md
/mips_b.s
4007 qtmds_s
=$qtsrcdir/md
/mips.s
4009 qtmdc_c
=$qtsrcdir/md
/null.c
4010 qtdmdb_s
=$qtsrcdir/md
/mips_b.s
4014 qtmdc_c
=$qtsrcdir/md
/null.c
4015 qtmds_s
=$qtsrcdir/md
/_sparc.s
4016 qtdmdb_s
=$qtsrcdir/md
/_sparc_b.s
4020 qtmdc_c
=$qtsrcdir/md
/null.c
4021 qtmds_s
=$qtsrcdir/md
/sparc.s
4022 qtdmdb_s
=$qtsrcdir/md
/sparc_b.s
4026 qtmdc_c
=$qtsrcdir/md
/null.c
4027 qtmds_s
=$qtsrcdir/md
/axp.s
4028 qtdmdb_s
=$qtsrcdir/md
/axp_b.s
4031 echo "Unknown configuration; threads package disabled"
4032 threads_enabled
=false
4038 if $threads_enabled; then
4044 # Give the Makefile the names of the object files that will be
4045 # generated by compiling $qtmdc_c and $qtmds_s.
4046 qtmdc_o
="`echo ${qtmdc_c} | sed -e 's:^.*/::' | sed -e 's:\.c$:\.o:'`"
4047 qtmds_o
="`echo ${qtmds_s} | sed -e 's:^.*/::' | sed -e 's:\.s$:\.o:'`"
4058 cat > confcache
<<\EOF
4059 # This file is a shell script that caches the results of configure
4060 # tests run on this system so they can be shared between configure
4061 # scripts and configure runs. It is not useful on other systems.
4062 # If it contains results you don't want to keep, you may remove or edit it.
4064 # By default, configure uses ./config.cache as the cache file,
4065 # creating it if it does not exist already. You can give configure
4066 # the --cache-file=FILE option to use a different cache file; that is
4067 # what configure does when it calls configure scripts in
4068 # subdirectories, so they share the cache.
4069 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4070 # config.status only pays attention to the cache file if you give it the
4071 # --recheck option to rerun configure.
4074 # The following way of writing the cache mishandles newlines in values,
4075 # but we know of no workaround that is simple, portable, and efficient.
4076 # So, don't put newlines in cache variables' values.
4077 # Ultrix sh set writes to stderr and can't be redirected directly,
4078 # and sets the high bit in the cache file unless we assign to the vars.
4080 case `(ac_space=' '; set) 2>&1` in
4082 # `set' does not quote correctly, so add quotes (double-quote substitution
4083 # turns \\\\ into \\, and sed turns \\ into \).
4085 -e "s/'/'\\\\''/g" \
4086 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4089 # `set' quotes correctly as required by POSIX, so do not add quotes.
4090 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4093 if cmp -s $cache_file confcache
; then
4096 if test -w $cache_file; then
4097 echo "updating cache $cache_file"
4098 cat confcache
> $cache_file
4100 echo "not updating unwritable cache $cache_file"
4105 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4107 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4108 # Let make expand exec_prefix.
4109 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4111 # Any assignment to VPATH causes Sun make to only execute
4112 # the first set of double-colon rules, so remove it if not needed.
4113 # If there is a colon in the path, we need to keep it.
4114 if test "x$srcdir" = x.
; then
4115 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4118 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4120 DEFS
=-DHAVE_CONFIG_H
4122 # Without the "./", some shells look in PATH for config.status.
4123 : ${CONFIG_STATUS=./config.status}
4125 echo creating
$CONFIG_STATUS
4126 rm -f $CONFIG_STATUS
4127 cat > $CONFIG_STATUS <<EOF
4129 # Generated automatically by configure.
4130 # Run this file to recreate the current configuration.
4131 # This directory was configured as follows,
4132 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4134 # $0 $ac_configure_args
4136 # Compiler output produced by configure, useful for debugging
4137 # configure, is in ./config.log if it exists.
4139 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4142 case "\$ac_option" in
4143 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4144 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4145 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4146 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4147 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4149 -help | --help | --hel | --he | --h)
4150 echo "\$ac_cs_usage"; exit 0 ;;
4151 *) echo "\$ac_cs_usage"; exit 1 ;;
4155 ac_given_srcdir=$srcdir
4156 ac_given_INSTALL="$INSTALL"
4158 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 libguile/scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4160 cat >> $CONFIG_STATUS <<EOF
4162 # Protect against being on the right side of a sed subst in config.status.
4163 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4164 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4167 s%@CFLAGS@%$CFLAGS%g
4168 s%@CPPFLAGS@%$CPPFLAGS%g
4169 s%@CXXFLAGS@%$CXXFLAGS%g
4171 s%@LDFLAGS@%$LDFLAGS%g
4173 s%@exec_prefix@%$exec_prefix%g
4174 s%@prefix@%$prefix%g
4175 s%@program_transform_name@%$program_transform_name%g
4176 s%@bindir@%$bindir%g
4177 s%@sbindir@%$sbindir%g
4178 s%@libexecdir@%$libexecdir%g
4179 s%@datadir@%$datadir%g
4180 s%@sysconfdir@%$sysconfdir%g
4181 s%@sharedstatedir@%$sharedstatedir%g
4182 s%@localstatedir@%$localstatedir%g
4183 s%@libdir@%$libdir%g
4184 s%@includedir@%$includedir%g
4185 s%@oldincludedir@%$oldincludedir%g
4186 s%@infodir@%$infodir%g
4187 s%@mandir@%$mandir%g
4188 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4189 s%@INSTALL_DATA@%$INSTALL_DATA%g
4190 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4191 s%@PACKAGE@%$PACKAGE%g
4192 s%@VERSION@%$VERSION%g
4193 s%@ACLOCAL@%$ACLOCAL%g
4194 s%@AUTOCONF@%$AUTOCONF%g
4195 s%@AUTOMAKE@%$AUTOMAKE%g
4196 s%@AUTOHEADER@%$AUTOHEADER%g
4197 s%@MAKEINFO@%$MAKEINFO%g
4198 s%@SET_MAKE@%$SET_MAKE%g
4203 s%@host_alias@%$host_alias%g
4204 s%@host_cpu@%$host_cpu%g
4205 s%@host_vendor@%$host_vendor%g
4206 s%@host_os@%$host_os%g
4207 s%@RANLIB@%$RANLIB%g
4210 s%@LIBTOOL@%$LIBTOOL%g
4211 s%@LIBOBJS@%$LIBOBJS%g
4212 s%@ALLOCA@%$ALLOCA%g
4213 s%@THREAD_LIBS@%$THREAD_LIBS%g
4215 s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
4216 s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
4217 s%@GUILE_VERSION@%$GUILE_VERSION%g
4218 s%@GUILE_STAMP@%$GUILE_STAMP%g
4219 s%@LIBLOBJS@%$LIBLOBJS%g
4220 s%@target_libs@%$target_libs%g
4221 s%@qtmd_h@%$qtmd_h%g
4222 s%@qtmdc_c@%$qtmdc_c%g
4223 s%@qtmdc_o@%$qtmdc_o%g
4224 s%@qtmds_s@%$qtmds_s%g
4225 s%@qtmds_o@%$qtmds_o%g
4226 s%@qtmdb_s@%$qtmdb_s%g
4231 cat >> $CONFIG_STATUS <<\EOF
4233 # Split the substitutions into bite-sized pieces for seds with
4234 # small command number limits, like on Digital OSF/1 and HP-UX.
4235 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4236 ac_file
=1 # Number of current file.
4237 ac_beg
=1 # First line for current file.
4238 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4241 while $ac_more_lines; do
4242 if test $ac_beg -gt 1; then
4243 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4245 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4247 if test ! -s conftest.s
$ac_file; then
4249 rm -f conftest.s
$ac_file
4251 if test -z "$ac_sed_cmds"; then
4252 ac_sed_cmds
="sed -f conftest.s$ac_file"
4254 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4256 ac_file
=`expr $ac_file + 1`
4258 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4261 if test -z "$ac_sed_cmds"; then
4266 cat >> $CONFIG_STATUS <<EOF
4268 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"}
4270 cat >> $CONFIG_STATUS <<\EOF
4271 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4272 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4274 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4275 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4276 *) ac_file_in
="${ac_file}.in" ;;
4279 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4281 # Remove last slash and all that follows it. Not all systems have dirname.
4282 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4283 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4284 # The file is in a subdirectory.
4285 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4286 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4287 # A "../" for each directory in $ac_dir_suffix.
4288 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4290 ac_dir_suffix
= ac_dots
=
4293 case "$ac_given_srcdir" in
4295 if test -z "$ac_dots"; then top_srcdir
=.
4296 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4297 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4299 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4300 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4303 case "$ac_given_INSTALL" in
4304 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4305 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4308 echo creating
"$ac_file"
4310 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4312 *Makefile
*) ac_comsub
="1i\\
4313 # $configure_input" ;;
4317 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4319 s%@configure_input@%$configure_input%g
4320 s%@srcdir@%$srcdir%g
4321 s%@top_srcdir@%$top_srcdir%g
4322 s%@INSTALL@%$INSTALL%g
4323 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4327 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4328 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4330 # ac_d sets the value in "#define NAME VALUE" lines.
4331 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4332 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4335 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4336 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4337 ac_uB
='\([ ]\)%\1#\2define\3'
4340 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4341 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4342 ac_eB
='$%\1#\2define\3'
4346 if test "${CONFIG_HEADERS+set}" != set; then
4348 cat >> $CONFIG_STATUS <<EOF
4349 CONFIG_HEADERS="libguile/scmconfig.h"
4351 cat >> $CONFIG_STATUS <<\EOF
4353 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4356 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4357 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4358 *) ac_file_in
="${ac_file}.in" ;;
4361 echo creating
$ac_file
4363 rm -f conftest.frag conftest.
in conftest.out
4364 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4365 cat $ac_file_inputs > conftest.
in
4369 # Transform confdefs.h into a sed script conftest.vals that substitutes
4370 # the proper values into config.h.in to produce config.h. And first:
4371 # Protect against being on the right side of a sed subst in config.status.
4372 # Protect against being in an unquoted here document in config.status.
4374 cat > conftest.hdr
<<\EOF
4377 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4381 sed -n -f conftest.hdr confdefs.h > conftest.vals
4384 # This sed command replaces #undef with comments. This is necessary, for
4385 # example, in the case of _POSIX_SOURCE, which is predefined and required
4386 # on some systems where configure will not decide to define it.
4387 cat >> conftest.vals <<\EOF
4388 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4391 # Break up conftest.vals because some shells have a limit on
4392 # the size of here documents, and old seds have small limits too.
4397 ac_lines=`grep -c . conftest.vals
`
4398 # grep -c gives empty output for an empty file on some AIX systems.
4399 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4400 # Write a limited-size here document to conftest.frag.
4401 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4402 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4404 sed -f conftest.frag conftest.in > conftest.out
4406 mv conftest.out conftest.in
4408 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4410 mv conftest.tail conftest.vals
4414 cat >> $CONFIG_STATUS <<\EOF
4415 rm -f conftest.frag conftest.h
4416 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4417 cat conftest.in >> conftest.h
4419 if cmp -s $ac_file conftest.h 2>/dev/null; then
4420 echo "$ac_file is unchanged"
4423 # Remove last slash and all that follows it. Not all systems have dirname.
4424 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4425 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4426 # The file is in a subdirectory.
4427 test ! -d "$ac_dir" && mkdir "$ac_dir"
4430 mv conftest.h $ac_file
4435 cat >> $CONFIG_STATUS <<EOF
4439 cat >> $CONFIG_STATUS <<\EOF
4440 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
4441 chmod +x libguile/guile-snarf
4444 chmod +x $CONFIG_STATUS
4445 rm -fr confdefs* $ac_clean_files
4446 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1