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 --disable-debug Don't include debugging support"
17 --enable-dynamic-linking Include support for dynamic linking"
19 --enable-shared build shared libraries [default=yes]"
21 --with-threads thread interface"
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
27 cache_file
=.
/config.cache
36 program_transform_name
=s
,x
,x
,
44 bindir
='${exec_prefix}/bin'
45 sbindir
='${exec_prefix}/sbin'
46 libexecdir
='${exec_prefix}/libexec'
47 datadir
='${prefix}/share'
48 sysconfdir
='${prefix}/etc'
49 sharedstatedir
='${prefix}/com'
50 localstatedir
='${prefix}/var'
51 libdir
='${exec_prefix}/lib'
52 includedir
='${prefix}/include'
53 oldincludedir
='/usr/include'
54 infodir
='${prefix}/info'
55 mandir
='${prefix}/man'
57 # Initialize some other variables.
60 # Maximum number of lines to put in a shell here document.
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
75 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 # Accept the important Cygnus configure options, so we can diagnose typos.
83 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
85 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
86 bindir
="$ac_optarg" ;;
88 -build |
--build |
--buil |
--bui |
--bu)
90 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
93 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
94 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
96 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
97 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
98 cache_file
="$ac_optarg" ;;
100 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
102 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
104 datadir
="$ac_optarg" ;;
106 -disable-* |
--disable-*)
107 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
115 -enable-* |
--enable-*)
116 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
128 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
129 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
130 |
--exec |
--exe |
--ex)
131 ac_prev
=exec_prefix
;;
132 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
133 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
134 |
--exec=* |
--exe=* |
--ex=*)
135 exec_prefix
="$ac_optarg" ;;
137 -gas |
--gas |
--ga |
--g)
138 # Obsolete; use --with-gas.
141 -help |
--help |
--hel |
--he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
196 -host |
--host |
--hos |
--ho)
198 -host=* |
--host=* |
--hos=* |
--ho=*)
201 -includedir |
--includedir |
--includedi |
--included |
--include \
202 |
--includ |
--inclu |
--incl |
--inc)
203 ac_prev
=includedir
;;
204 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
205 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
206 includedir
="$ac_optarg" ;;
208 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
210 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
211 infodir
="$ac_optarg" ;;
213 -libdir |
--libdir |
--libdi |
--libd)
215 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
216 libdir
="$ac_optarg" ;;
218 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
219 |
--libexe |
--libex |
--libe)
220 ac_prev
=libexecdir
;;
221 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
222 |
--libexe=* |
--libex=* |
--libe=*)
223 libexecdir
="$ac_optarg" ;;
225 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
226 |
--localstate |
--localstat |
--localsta |
--localst \
227 |
--locals |
--local |
--loca |
--loc |
--lo)
228 ac_prev
=localstatedir
;;
229 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
230 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
231 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
232 localstatedir
="$ac_optarg" ;;
234 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
236 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
237 mandir
="$ac_optarg" ;;
240 # Obsolete; use --without-fp.
243 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
247 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
248 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
251 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
252 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
253 |
--oldin |
--oldi |
--old |
--ol |
--o)
254 ac_prev
=oldincludedir
;;
255 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
256 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
257 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
258 oldincludedir
="$ac_optarg" ;;
260 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
262 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
263 prefix
="$ac_optarg" ;;
265 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
266 |
--program-pre |
--program-pr |
--program-p)
267 ac_prev
=program_prefix
;;
268 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
269 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
270 program_prefix
="$ac_optarg" ;;
272 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
273 |
--program-suf |
--program-su |
--program-s)
274 ac_prev
=program_suffix
;;
275 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
276 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
277 program_suffix
="$ac_optarg" ;;
279 -program-transform-name |
--program-transform-name \
280 |
--program-transform-nam |
--program-transform-na \
281 |
--program-transform-n |
--program-transform- \
282 |
--program-transform |
--program-transfor \
283 |
--program-transfo |
--program-transf \
284 |
--program-trans |
--program-tran \
285 |
--progr-tra |
--program-tr |
--program-t)
286 ac_prev
=program_transform_name
;;
287 -program-transform-name=* |
--program-transform-name=* \
288 |
--program-transform-nam=* |
--program-transform-na=* \
289 |
--program-transform-n=* |
--program-transform-=* \
290 |
--program-transform=* |
--program-transfor=* \
291 |
--program-transfo=* |
--program-transf=* \
292 |
--program-trans=* |
--program-tran=* \
293 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
294 program_transform_name
="$ac_optarg" ;;
296 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
297 |
-silent |
--silent |
--silen |
--sile |
--sil)
300 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
302 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
304 sbindir
="$ac_optarg" ;;
306 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
307 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
308 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
310 ac_prev
=sharedstatedir
;;
311 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
312 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
313 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
315 sharedstatedir
="$ac_optarg" ;;
317 -site |
--site |
--sit)
319 -site=* |
--site=* |
--sit=*)
322 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
324 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
325 srcdir
="$ac_optarg" ;;
327 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
328 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
329 ac_prev
=sysconfdir
;;
330 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
331 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
332 sysconfdir
="$ac_optarg" ;;
334 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
336 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
337 target
="$ac_optarg" ;;
339 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
342 -version |
--version |
--versio |
--versi |
--vers)
343 echo "configure generated by autoconf version 2.12"
347 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352 ac_package
=`echo $ac_package| sed 's/-/_/g'`
357 eval "with_${ac_package}='$ac_optarg'" ;;
359 -without-* |
--without-*)
360 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package
=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
369 # Obsolete; use --with-x.
372 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
373 |
--x-incl |
--x-inc |
--x-in |
--x-i)
374 ac_prev
=x_includes
;;
375 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
376 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
377 x_includes
="$ac_optarg" ;;
379 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
380 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
381 ac_prev
=x_libraries
;;
382 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
383 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
384 x_libraries
="$ac_optarg" ;;
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
393 if test "x$nonopt" != xNONE
; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408 # File descriptor usage:
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
434 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
435 |
--no-cr |
--no-c) ;;
436 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
437 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
438 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
445 # Only set these to C if already set. These must not be set unconditionally
446 # because not all systems understand e.g. LANG=C (notably SCO).
447 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448 # Non-C LC_CTYPE values break the ctype check.
449 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
450 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
451 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
452 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
455 rm -rf conftest
* confdefs.h
456 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 # A filename unique to this package, relative to the directory that
460 # configure is in, which we can look for to find out if srcdir is correct.
461 ac_unique_file
=eval.c
463 # Find the source files, if location was not specified.
464 if test -z "$srcdir"; then
465 ac_srcdir_defaulted
=yes
466 # Try the directory containing this script, then its parent.
468 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
471 if test ! -r $srcdir/$ac_unique_file; then
475 ac_srcdir_defaulted
=no
477 if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486 # Prefer explicitly selected file to automatically selected ones.
487 if test -z "$CONFIG_SITE"; then
488 if test "x$prefix" != xNONE
; then
489 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
491 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494 for ac_site_file
in $CONFIG_SITE; do
495 if test -r "$ac_site_file"; then
496 echo "loading site script $ac_site_file"
501 if test -r "$cache_file"; then
502 echo "loading cache $cache_file"
505 echo "creating cache $cache_file"
510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511 ac_cpp
='$CPP $CPPFLAGS'
512 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514 cross_compiling
=$ac_cv_prog_cc_cross
516 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
517 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
525 ac_n
= ac_c
='\c' ac_t
=
533 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
534 if test -f $ac_dir/install-sh
; then
536 ac_install_sh
="$ac_aux_dir/install-sh -c"
538 elif test -f $ac_dir/install.sh
; then
540 ac_install_sh
="$ac_aux_dir/install.sh -c"
544 if test -z "$ac_aux_dir"; then
545 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
547 ac_config_guess
=$ac_aux_dir/config.guess
548 ac_config_sub
=$ac_aux_dir/config.sub
549 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
551 # Find a good install program. We prefer a C program (faster),
552 # so one script is as good as another. But avoid the broken or
553 # incompatible versions:
554 # SysV /etc/install, /usr/sbin/install
555 # SunOS /usr/etc/install
558 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
559 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
560 # ./install, which can be erroneously created by make from ./install.sh.
561 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
562 echo "configure:563: checking for a BSD compatible install" >&5
563 if test -z "$INSTALL"; then
564 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
565 echo $ac_n "(cached) $ac_c" 1>&6
567 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
568 for ac_dir
in $PATH; do
569 # Account for people who put trailing slashes in PATH elements.
571 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
573 # OSF1 and SCO ODT 3.0 have their own names for install.
574 for ac_prog
in ginstall installbsd scoinst
install; do
575 if test -f $ac_dir/$ac_prog; then
576 if test $ac_prog = install &&
577 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
578 # AIX install. It has an incompatible calling convention.
579 # OSF/1 installbsd also uses dspmsg, but is usable.
582 ac_cv_path_install
="$ac_dir/$ac_prog -c"
593 if test "${ac_cv_path_install+set}" = set; then
594 INSTALL
="$ac_cv_path_install"
596 # As a last resort, use the slow shell script. We don't cache a
597 # path for INSTALL within a source directory, because that will
598 # break other packages using the cache if that directory is
599 # removed, or if the path is relative.
600 INSTALL
="$ac_install_sh"
603 echo "$ac_t""$INSTALL" 1>&6
605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
606 # It thinks the first close brace ends the variable substitution.
607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
609 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
615 .
$srcdir/..
/GUILE-VERSION
619 cat >> confdefs.h
<<EOF
620 #define PACKAGE "$PACKAGE"
625 cat >> confdefs.h
<<EOF
626 #define VERSION "$VERSION"
629 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
630 echo "configure:631: checking whether build environment is sane" >&5
631 echo timestamp
> conftestfile
632 # Do this in a subshell so we don't clobber the current shell's
633 # arguments. FIXME: maybe try `-L' hack like GETLOADAVG test?
634 if (set X
`ls -t $srcdir/configure conftestfile`; test "$2" = conftestfile
)
639 { echo "configure: error: newly created file is older than distributed files!
640 Check your system clock" 1>&2; exit 1; }
643 echo "$ac_t""yes" 1>&6
644 if test "$program_transform_name" = s
,x
,x
,; then
645 program_transform_name
=
647 # Double any \ or $. echo might interpret backslashes.
648 cat <<\EOF_SED
> conftestsed
649 s
,\\,\\\\,g
; s
,\$
,$$
,g
651 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
654 test "$program_prefix" != NONE
&&
655 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
656 # Use a double $ so make ignores it.
657 test "$program_suffix" != NONE
&&
658 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
660 # sed with no file args requires a program.
661 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
663 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
664 echo "configure:665: checking whether ${MAKE-make} sets \${MAKE}" >&5
665 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
666 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
669 cat > conftestmake
<<\EOF
671 @
echo 'ac_maketemp="${MAKE}"'
673 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
674 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
675 if test -n "$ac_maketemp"; then
676 eval ac_cv_prog_make_
${ac_make}_set
=yes
678 eval ac_cv_prog_make_
${ac_make}_set
=no
682 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
683 echo "$ac_t""yes" 1>&6
686 echo "$ac_t""no" 1>&6
687 SET_MAKE
="MAKE=${MAKE-make}"
691 for ac_dir
in ..
$srcdir/..
; do
692 if test -f $ac_dir/install-sh
; then
694 ac_install_sh
="$ac_aux_dir/install-sh -c"
696 elif test -f $ac_dir/install.sh
; then
698 ac_install_sh
="$ac_aux_dir/install.sh -c"
702 if test -z "$ac_aux_dir"; then
703 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
705 ac_config_guess
=$ac_aux_dir/config.guess
706 ac_config_sub
=$ac_aux_dir/config.sub
707 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
712 #--------------------------------------------------------------------
716 #--------------------------------------------------------------------
718 # Check whether --enable-debug or --disable-debug was given.
719 if test "${enable_debug+set}" = set; then
720 enableval
="$enable_debug"
724 if test "$enableval" != n
&& test "$enableval" != no
; then
725 cat >> confdefs.h
<<\EOF
726 #define DEBUG_EXTENSIONS 1
729 cat >> confdefs.h
<<\EOF
730 #define READER_EXTENSIONS 1
733 LIBOBJS
="backtrace.o stacks.o debug.o srcprop.o $LIBOBJS"
736 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
737 if test "${enable_dynamic_linking+set}" = set; then
738 enableval
="$enable_dynamic_linking"
743 #--------------------------------------------------------------------
745 # Extract the first word of "gcc", so it can be a program name with args.
746 set dummy gcc
; ac_word
=$2
747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
748 echo "configure:749: checking for $ac_word" >&5
749 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 if test -n "$CC"; then
753 ac_cv_prog_CC
="$CC" # Let the user override the test.
755 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
756 for ac_dir
in $PATH; do
757 test -z "$ac_dir" && ac_dir
=.
758 if test -f $ac_dir/$ac_word; then
767 if test -n "$CC"; then
768 echo "$ac_t""$CC" 1>&6
770 echo "$ac_t""no" 1>&6
773 if test -z "$CC"; then
774 # Extract the first word of "cc", so it can be a program name with args.
775 set dummy cc
; ac_word
=$2
776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777 echo "configure:778: checking for $ac_word" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 if test -n "$CC"; then
782 ac_cv_prog_CC
="$CC" # Let the user override the test.
784 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
786 for ac_dir
in $PATH; do
787 test -z "$ac_dir" && ac_dir
=.
788 if test -f $ac_dir/$ac_word; then
789 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
798 if test $ac_prog_rejected = yes; then
799 # We found a bogon in the path, so make sure we never use it.
800 set dummy
$ac_cv_prog_CC
802 if test $# -gt 0; then
803 # We chose a different compiler from the bogus one.
804 # However, it has the same basename, so the bogon will be chosen
805 # first if we set CC to just the basename; use the full file name.
807 set dummy
"$ac_dir/$ac_word" "$@"
815 if test -n "$CC"; then
816 echo "$ac_t""$CC" 1>&6
818 echo "$ac_t""no" 1>&6
821 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
824 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
825 echo "configure:826: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
828 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
829 ac_cpp
='$CPP $CPPFLAGS'
830 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
831 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
832 cross_compiling
=$ac_cv_prog_cc_cross
834 cat > conftest.
$ac_ext <<EOF
835 #line 836 "configure"
836 #include "confdefs.h"
839 if { (eval echo configure
:840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
840 ac_cv_prog_cc_works
=yes
841 # If we can't run a trivial program, we are probably using a cross compiler.
842 if (.
/conftest
; exit) 2>/dev
/null
; then
843 ac_cv_prog_cc_cross
=no
845 ac_cv_prog_cc_cross
=yes
848 echo "configure: failed program was:" >&5
849 cat conftest.
$ac_ext >&5
850 ac_cv_prog_cc_works
=no
854 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
855 if test $ac_cv_prog_cc_works = no
; then
856 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
858 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
859 echo "configure:860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
860 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
861 cross_compiling
=$ac_cv_prog_cc_cross
863 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
864 echo "configure:865: checking whether we are using GNU C" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 cat > conftest.c
<<EOF
873 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
880 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
882 if test $ac_cv_prog_gcc = yes; then
884 ac_test_CFLAGS
="${CFLAGS+set}"
885 ac_save_CFLAGS
="$CFLAGS"
887 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
888 echo "configure:889: checking whether ${CC-cc} accepts -g" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 echo 'void f(){}' > conftest.c
893 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
902 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
903 if test "$ac_test_CFLAGS" = set; then
904 CFLAGS
="$ac_save_CFLAGS"
905 elif test $ac_cv_prog_cc_g = yes; then
912 test "${CFLAGS+set}" = set || CFLAGS
="-g"
915 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
916 echo "configure:917: checking how to run the C preprocessor" >&5
917 # On Suns, sometimes $CPP names a directory.
918 if test -n "$CPP" && test -d "$CPP"; then
921 if test -z "$CPP"; then
922 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 # This must be in double quotes, not single quotes, because CPP may get
926 # substituted into the Makefile and "${CC-cc}" will confuse make.
928 # On the NeXT, cc -E runs the code through the compiler's parser,
929 # not just through cpp.
930 cat > conftest.
$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
937 { (eval echo configure
:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
938 ac_err
=`grep -v '^ *+' conftest.out`
939 if test -z "$ac_err"; then
943 echo "configure: failed program was:" >&5
944 cat conftest.
$ac_ext >&5
946 CPP
="${CC-cc} -E -traditional-cpp"
947 cat > conftest.
$ac_ext <<EOF
948 #line 949 "configure"
949 #include "confdefs.h"
953 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
954 { (eval echo configure
:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
955 ac_err
=`grep -v '^ *+' conftest.out`
956 if test -z "$ac_err"; then
960 echo "configure: failed program was:" >&5
961 cat conftest.
$ac_ext >&5
968 ac_cv_prog_CPP
="$CPP"
970 CPP
="$ac_cv_prog_CPP"
972 ac_cv_prog_CPP
="$CPP"
974 echo "$ac_t""$CPP" 1>&6
977 # Make sure we can run config.sub.
978 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
979 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
982 echo $ac_n "checking host system type""... $ac_c" 1>&6
983 echo "configure:984: checking host system type" >&5
986 case "$host_alias" in
990 if host_alias
=`$ac_config_guess`; then :
991 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
993 *) host_alias
=$nonopt ;;
997 host=`$ac_config_sub $host_alias`
998 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
999 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1000 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1001 echo "$ac_t""$host" 1>&6
1003 # Extract the first word of "ranlib", so it can be a program name with args.
1004 set dummy ranlib
; ac_word
=$2
1005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1006 echo "configure:1007: checking for $ac_word" >&5
1007 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 if test -n "$RANLIB"; then
1011 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1013 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1014 for ac_dir
in $PATH; do
1015 test -z "$ac_dir" && ac_dir
=.
1016 if test -f $ac_dir/$ac_word; then
1017 ac_cv_prog_RANLIB
="ranlib"
1022 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1025 RANLIB
="$ac_cv_prog_RANLIB"
1026 if test -n "$RANLIB"; then
1027 echo "$ac_t""$RANLIB" 1>&6
1029 echo "$ac_t""no" 1>&6
1036 # Always use our own libtool.
1037 LIBTOOL
='$(top_builddir)/libtool'
1040 # Check whether --enable-shared or --disable-shared was given.
1041 if test "${enable_shared+set}" = set; then
1042 enableval
="$enable_shared"
1043 test "$enableval" = no
&& libtool_shared
=" --disable-shared"
1049 libtool_flags
="$libtool_shared"
1050 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1051 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1053 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1054 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" LD
="$LD" RANLIB
="$RANLIB" \
1055 $ac_aux_dir/ltconfig
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1056 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1059 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1060 echo "configure:1061: checking for AIX" >&5
1061 cat > conftest.
$ac_ext <<EOF
1062 #line 1063 "configure"
1063 #include "confdefs.h"
1069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1070 egrep "yes" >/dev
/null
2>&1; then
1072 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1073 #define _ALL_SOURCE 1
1078 echo "$ac_t""no" 1>&6
1083 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1084 echo "configure:1085: checking for POSIXized ISC" >&5
1085 if test -d /etc
/conf
/kconfig.d
&&
1086 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1088 echo "$ac_t""yes" 1>&6
1089 ISC
=yes # If later tests want to check for ISC.
1090 cat >> confdefs.h
<<\EOF
1091 #define _POSIX_SOURCE 1
1094 if test "$GCC" = yes; then
1100 echo "$ac_t""no" 1>&6
1104 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1105 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1106 echo "configure:1107: checking for minix/config.h" >&5
1107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 cat > conftest.
$ac_ext <<EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1113 #include <minix/config.h>
1115 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1116 { (eval echo configure
:1117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1117 ac_err
=`grep -v '^ *+' conftest.out`
1118 if test -z "$ac_err"; then
1120 eval "ac_cv_header_$ac_safe=yes"
1123 echo "configure: failed program was:" >&5
1124 cat conftest.
$ac_ext >&5
1126 eval "ac_cv_header_$ac_safe=no"
1130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1131 echo "$ac_t""yes" 1>&6
1134 echo "$ac_t""no" 1>&6
1138 if test "$MINIX" = yes; then
1139 cat >> confdefs.h
<<\EOF
1140 #define _POSIX_SOURCE 1
1143 cat >> confdefs.h
<<\EOF
1144 #define _POSIX_1_SOURCE 2
1147 cat >> confdefs.h
<<\EOF
1155 echo $ac_n "checking "threads package
type"""... $ac_c" 1>&6
1156 echo "configure:1157: checking "threads package
type"" >&5
1157 if eval "test \"`echo '$''{'cy_cv_threads_package'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1161 if eval "test \"`echo '$''{'cy_cv_threads_cflags'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1165 if eval "test \"`echo '$''{'cy_cv_threads_libs'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1170 # Check whether --with-threads or --without-threads was given.
1171 if test "${with_threads+set}" = set; then
1172 withval
="$with_threads"
1173 use_threads
=$withval
1178 test -n "$use_threads" || use_threads
=qt
1179 threads_package
=unknown
1180 if test "$use_threads" != no
; then
1181 if test "$use_threads" = yes ||
test "$use_threads" = qt
; then
1182 # Look for qt in source directory. This is a hack: we look in
1183 # "./qt" because this check might be run at the top level.
1184 if test -f $srcdir/..
/qt
/qt.c ||
test -f $srcdir/qt
/qt.c
; then
1185 threads_package
=COOP
1186 cy_cv_threads_cflags
="-I$srcdir/../qt -I../qt"
1187 cy_cv_threads_libs
="../threads/libthreads.a ../qt/libqt.a"
1190 if test -f $use_threads/qt.c
; then
1191 # FIXME seems as though we should try to use an installed qt here.
1192 threads_package
=COOP
1193 cy_cv_threads_cflags
="-I$use_threads -I../qt"
1194 cy_cv_threads_libs
="../threads/libthreads.a ../qt/libqt.a"
1197 if test "$use_threads" = pthreads
; then
1198 # Look for pthreads in srcdir. See above to understand why
1199 # we always set threads_package.
1200 if test -f $srcdir/..
/..
/pthreads
/pthreads
/queue.c \
1201 ||
test -f $srcdir/..
/pthreads
/pthreads
/queue.c
; then
1203 cy_cv_threads_cflags
="-I$srcdir/../../pthreads/include"
1204 cy_cv_threads_libs
="-L../../pthreads/lib -lpthread"
1207 saved_CPP
="$CPPFLAGS"
1210 if test "$threads_package" = unknown
; then
1211 CPPFLAGS
="-I$use_threads/include"
1212 LDFLAGS
="-L$use_threads/lib"
1213 LIBS
="-lgthreads -lmalloc"
1214 cat > conftest.
$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1217 #include <pthread.h>
1220 pthread_equal(NULL,NULL);
1224 if { (eval echo configure
:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1228 echo "configure: failed program was:" >&5
1229 cat conftest.
$ac_ext >&5
1233 if test "$threads_package" = unknown
; then
1235 cat > conftest.
$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1238 #include <pthread.h>
1241 pthread_equal(NULL,NULL);
1245 if { (eval echo configure
:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1249 echo "configure: failed program was:" >&5
1250 cat conftest.
$ac_ext >&5
1254 if test "$threads_package" = unknown
; then
1256 cat > conftest.
$ac_ext <<EOF
1257 #line 1258 "configure"
1258 #include "confdefs.h"
1259 #include <pthread.h>
1262 pthread_equal(NULL,NULL);
1266 if { (eval echo configure
:1267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1268 threads_package
=PCthreads
1270 echo "configure: failed program was:" >&5
1271 cat conftest.
$ac_ext >&5
1275 cy_cv_threads_cflags
="$CPPFLAGS $cy_cv_threads_cflags"
1276 cy_cv_threads_libs
="$LDFLAGS $LIBS $cy_cv_threads_libs"
1277 cy_cv_threads_package
=$threads_package
1278 CPPFLAGS
="$saved_CPP"
1281 if test "$threads_package" = unknown
; then
1282 { echo "configure: error: "cannot
find thread library installation
"" 1>&2; exit 1; }
1294 echo "$ac_t""$cy_cv_threads_package" 1>&6
1297 echo $ac_n "checking for working const""... $ac_c" 1>&6
1298 echo "configure:1299: checking for working const" >&5
1299 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 cat > conftest.
$ac_ext <<EOF
1303 #line 1304 "configure"
1304 #include "confdefs.h"
1308 /* Ultrix mips cc rejects this. */
1309 typedef int charset[2]; const charset x;
1310 /* SunOS 4.1.1 cc rejects this. */
1311 char const *const *ccp;
1313 /* NEC SVR4.0.2 mips cc rejects this. */
1314 struct point {int x, y;};
1315 static struct point const zero = {0,0};
1316 /* AIX XL C 1.02.0.0 rejects this.
1317 It does not let you subtract one const X* pointer from another in an arm
1318 of an if-expression whose if-part is not a constant expression */
1319 const char *g = "string";
1320 ccp = &g + (g ? g-g : 0);
1321 /* HPUX 7.0 cc rejects these. */
1324 ccp = (char const *const *) p;
1325 { /* SCO 3.2v4 cc rejects this. */
1327 char const *s = 0 ? (char *) 0 : (char const *) 0;
1331 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1333 const int *foo = &x[0];
1336 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1337 typedef const int *iptr;
1341 { /* AIX XL C 1.02.0.0 rejects this saying
1342 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1343 struct s { int j; const int *ap[3]; };
1344 struct s *b; b->j = 5;
1346 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1352 if { (eval echo configure
:1353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1356 echo "configure: failed program was:" >&5
1357 cat conftest.
$ac_ext >&5
1364 echo "$ac_t""$ac_cv_c_const" 1>&6
1365 if test $ac_cv_c_const = no
; then
1366 cat >> confdefs.h
<<\EOF
1373 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1374 echo "configure:1375: checking for ANSI C header files" >&5
1375 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 cat > conftest.
$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1386 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1387 { (eval echo configure
:1388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1388 ac_err
=`grep -v '^ *+' conftest.out`
1389 if test -z "$ac_err"; then
1391 ac_cv_header_stdc
=yes
1394 echo "configure: failed program was:" >&5
1395 cat conftest.
$ac_ext >&5
1397 ac_cv_header_stdc
=no
1401 if test $ac_cv_header_stdc = yes; then
1402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1403 cat > conftest.
$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1409 egrep "memchr" >/dev
/null
2>&1; then
1413 ac_cv_header_stdc
=no
1419 if test $ac_cv_header_stdc = yes; then
1420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1421 cat > conftest.
$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1427 egrep "free" >/dev
/null
2>&1; then
1431 ac_cv_header_stdc
=no
1437 if test $ac_cv_header_stdc = yes; then
1438 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1439 if test "$cross_compiling" = yes; then
1442 cat > conftest.
$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1446 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1447 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1448 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1449 int main () { int i; for (i = 0; i < 256; i++)
1450 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1454 if { (eval echo configure
:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1458 echo "configure: failed program was:" >&5
1459 cat conftest.
$ac_ext >&5
1461 ac_cv_header_stdc
=no
1469 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1470 if test $ac_cv_header_stdc = yes; then
1471 cat >> confdefs.h
<<\EOF
1472 #define STDC_HEADERS 1
1478 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1480 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1481 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1482 echo "configure:1483: checking for $ac_hdr that defines DIR" >&5
1483 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 cat > conftest.
$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1489 #include <sys/types.h>
1495 if { (eval echo configure
:1496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1497 eval "ac_cv_header_dirent_$ac_safe=yes"
1499 echo "configure: failed program was:" >&5
1500 cat conftest.
$ac_ext >&5
1502 eval "ac_cv_header_dirent_$ac_safe=no"
1506 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1507 echo "$ac_t""yes" 1>&6
1508 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1509 cat >> confdefs.h
<<EOF
1510 #define $ac_tr_hdr 1
1512 ac_header_dirent
=$ac_hdr; break
1514 echo "$ac_t""no" 1>&6
1517 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1518 if test $ac_header_dirent = dirent.h
; then
1519 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1520 echo "configure:1521: checking for opendir in -ldir" >&5
1521 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 ac_save_LIBS
="$LIBS"
1527 cat > conftest.
$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1530 /* Override any gcc2 internal prototype to avoid an error. */
1531 /* We use char because int might match the return type of a gcc2
1532 builtin and then its argument prototype would still apply. */
1539 if { (eval echo configure
:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1541 eval "ac_cv_lib_$ac_lib_var=yes"
1543 echo "configure: failed program was:" >&5
1544 cat conftest.
$ac_ext >&5
1546 eval "ac_cv_lib_$ac_lib_var=no"
1549 LIBS
="$ac_save_LIBS"
1552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1556 echo "$ac_t""no" 1>&6
1560 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1561 echo "configure:1562: checking for opendir in -lx" >&5
1562 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 ac_save_LIBS
="$LIBS"
1568 cat > conftest.
$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1571 /* Override any gcc2 internal prototype to avoid an error. */
1572 /* We use char because int might match the return type of a gcc2
1573 builtin and then its argument prototype would still apply. */
1580 if { (eval echo configure
:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1582 eval "ac_cv_lib_$ac_lib_var=yes"
1584 echo "configure: failed program was:" >&5
1585 cat conftest.
$ac_ext >&5
1587 eval "ac_cv_lib_$ac_lib_var=no"
1590 LIBS
="$ac_save_LIBS"
1593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1594 echo "$ac_t""yes" 1>&6
1597 echo "$ac_t""no" 1>&6
1602 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1603 echo "configure:1604: checking whether time.h and sys/time.h may both be included" >&5
1604 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 cat > conftest.
$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 #include <sys/types.h>
1611 #include <sys/time.h>
1617 if { (eval echo configure
:1618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1619 ac_cv_header_time
=yes
1621 echo "configure: failed program was:" >&5
1622 cat conftest.
$ac_ext >&5
1624 ac_cv_header_time
=no
1629 echo "$ac_t""$ac_cv_header_time" 1>&6
1630 if test $ac_cv_header_time = yes; then
1631 cat >> confdefs.h
<<\EOF
1632 #define TIME_WITH_SYS_TIME 1
1637 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1638 echo "configure:1639: checking for sys/wait.h that is POSIX.1 compatible" >&5
1639 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 cat > conftest.
$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 #include <sys/types.h>
1646 #include <sys/wait.h>
1648 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1651 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1656 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1659 if { (eval echo configure
:1660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1661 ac_cv_header_sys_wait_h
=yes
1663 echo "configure: failed program was:" >&5
1664 cat conftest.
$ac_ext >&5
1666 ac_cv_header_sys_wait_h
=no
1671 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1672 if test $ac_cv_header_sys_wait_h = yes; then
1673 cat >> confdefs.h
<<\EOF
1674 #define HAVE_SYS_WAIT_H 1
1679 for ac_hdr
in libc.h limits.h malloc.h memory.h string.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
1681 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1683 echo "configure:1684: checking for $ac_hdr" >&5
1684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1687 cat > conftest.
$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1692 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1693 { (eval echo configure
:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1694 ac_err
=`grep -v '^ *+' conftest.out`
1695 if test -z "$ac_err"; then
1697 eval "ac_cv_header_$ac_safe=yes"
1700 echo "configure: failed program was:" >&5
1701 cat conftest.
$ac_ext >&5
1703 eval "ac_cv_header_$ac_safe=no"
1707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1708 echo "$ac_t""yes" 1>&6
1709 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1710 cat >> confdefs.h
<<EOF
1711 #define $ac_tr_hdr 1
1715 echo "$ac_t""no" 1>&6
1720 for ac_hdr
in libc.h unistd.h
1722 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $ac_hdr" >&5
1725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 cat > conftest.
$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1733 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1734 { (eval echo configure
:1735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1735 ac_err
=`grep -v '^ *+' conftest.out`
1736 if test -z "$ac_err"; then
1738 eval "ac_cv_header_$ac_safe=yes"
1741 echo "configure: failed program was:" >&5
1742 cat conftest.
$ac_ext >&5
1744 eval "ac_cv_header_$ac_safe=no"
1748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1750 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1751 cat >> confdefs.h
<<EOF
1752 #define $ac_tr_hdr 1
1756 echo "$ac_t""no" 1>&6
1760 echo $ac_n "checking "whether libc.h and unistd.h can be included together
"""... $ac_c" 1>&6
1761 echo "configure:1762: checking "whether libc.h and unistd.h can be included together
"" >&5
1762 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1766 if test "$ac_cv_header_libc_h" = "no"; then
1767 guile_cv_header_libc_with_unistd
="no"
1768 elif test "$ac_cv_header_unistd.h" = "no"; then
1769 guile_cv_header_libc_with_unistd
="yes"
1771 cat > conftest.
$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1776 # include <unistd.h>
1782 if { (eval echo configure
:1783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1784 guile_cv_header_libc_with_unistd
=yes
1786 echo "configure: failed program was:" >&5
1787 cat conftest.
$ac_ext >&5
1789 guile_cv_header_libc_with_unistd
=no
1798 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
1799 if test "$guile_cv_header_libc_with_unistd" = yes; then
1800 cat >> confdefs.h
<<\EOF
1801 #define LIBC_H_WITH_UNISTD_H 1
1808 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1809 echo "configure:1810: checking for uid_t in sys/types.h" >&5
1810 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1813 cat > conftest.
$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1816 #include <sys/types.h>
1818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1819 egrep "uid_t" >/dev
/null
2>&1; then
1821 ac_cv_type_uid_t
=yes
1830 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1831 if test $ac_cv_type_uid_t = no
; then
1832 cat >> confdefs.h
<<\EOF
1836 cat >> confdefs.h
<<\EOF
1842 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1843 echo "configure:1844: checking type of array argument to getgroups" >&5
1844 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 if test "$cross_compiling" = yes; then
1848 ac_cv_type_getgroups
=cross
1850 cat > conftest.
$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1854 /* Thanks to Mike Rendell for this test. */
1855 #include <sys/types.h>
1858 #define MAX(x, y) ((x) > (y) ? (x) : (y))
1863 union { gid_t gval; long lval; } val;
1866 for (i = 0; i < NGID; i++)
1867 gidset[i] = val.gval;
1868 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1870 /* Exit non-zero if getgroups seems to require an array of ints. This
1871 happens when gid_t is short but getgroups modifies an array of ints. */
1872 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1876 if { (eval echo configure
:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1878 ac_cv_type_getgroups
=gid_t
1880 echo "configure: failed program was:" >&5
1881 cat conftest.
$ac_ext >&5
1883 ac_cv_type_getgroups
=int
1888 if test $ac_cv_type_getgroups = cross
; then
1889 cat > conftest.
$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1895 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
1897 ac_cv_type_getgroups
=gid_t
1900 ac_cv_type_getgroups
=int
1907 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1908 cat >> confdefs.h
<<EOF
1909 #define GETGROUPS_T $ac_cv_type_getgroups
1913 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1914 echo "configure:1915: checking return type of signal handlers" >&5
1915 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1918 cat > conftest.
$ac_ext <<EOF
1919 #line 1920 "configure"
1920 #include "confdefs.h"
1921 #include <sys/types.h>
1927 extern "C" void (*signal (int, void (*)(int)))(int);
1929 void (*signal ()) ();
1936 if { (eval echo configure
:1937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1938 ac_cv_type_signal
=void
1940 echo "configure: failed program was:" >&5
1941 cat conftest.
$ac_ext >&5
1943 ac_cv_type_signal
=int
1948 echo "$ac_t""$ac_cv_type_signal" 1>&6
1949 cat >> confdefs.h
<<EOF
1950 #define RETSIGTYPE $ac_cv_type_signal
1954 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1955 echo "configure:1956: checking for mode_t" >&5
1956 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 cat > conftest.
$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1962 #include <sys/types.h>
1968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1969 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1971 ac_cv_type_mode_t
=yes
1974 ac_cv_type_mode_t
=no
1979 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1980 if test $ac_cv_type_mode_t = no
; then
1981 cat >> confdefs.h
<<\EOF
1988 for ac_func
in ctermid ftime getcwd geteuid lstat mkdir mknod nice putenv readlink rename
rmdir select setegid seteuid setlocale setpgid setsid strftime strptime symlink sync tcgetpgrp tcsetpgrp
times uname waitpid
1990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1991 echo "configure:1992: checking for $ac_func" >&5
1992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 cat > conftest.
$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
1998 /* System header to define __stub macros and hopefully few prototypes,
1999 which can conflict with char $ac_func(); below. */
2001 /* Override any gcc2 internal prototype to avoid an error. */
2002 /* We use char because int might match the return type of a gcc2
2003 builtin and then its argument prototype would still apply. */
2008 /* The GNU C library defines this for functions which it implements
2009 to always fail with ENOSYS. Some functions are actually named
2010 something starting with __ and the normal name is an alias. */
2011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2019 if { (eval echo configure
:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2021 eval "ac_cv_func_$ac_func=yes"
2023 echo "configure: failed program was:" >&5
2024 cat conftest.
$ac_ext >&5
2026 eval "ac_cv_func_$ac_func=no"
2031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2032 echo "$ac_t""yes" 1>&6
2033 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2034 cat >> confdefs.h
<<EOF
2035 #define $ac_tr_func 1
2039 echo "$ac_t""no" 1>&6
2044 for ac_func
in inet_aton strerror
2046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2047 echo "configure:2048: checking for $ac_func" >&5
2048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 cat > conftest.
$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2054 /* System header to define __stub macros and hopefully few prototypes,
2055 which can conflict with char $ac_func(); below. */
2057 /* Override any gcc2 internal prototype to avoid an error. */
2058 /* We use char because int might match the return type of a gcc2
2059 builtin and then its argument prototype would still apply. */
2064 /* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2075 if { (eval echo configure
:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2077 eval "ac_cv_func_$ac_func=yes"
2079 echo "configure: failed program was:" >&5
2080 cat conftest.
$ac_ext >&5
2082 eval "ac_cv_func_$ac_func=no"
2087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2090 cat >> confdefs.h
<<EOF
2091 #define $ac_tr_func 1
2095 echo "$ac_t""no" 1>&6
2096 LIBOBJS
="$LIBOBJS ${ac_func}.o"
2102 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2103 # for constant arguments. Useless!
2104 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2105 echo "configure:2106: checking for working alloca.h" >&5
2106 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 cat > conftest.
$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2114 char *p = alloca(2 * sizeof(int));
2117 if { (eval echo configure
:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2119 ac_cv_header_alloca_h
=yes
2121 echo "configure: failed program was:" >&5
2122 cat conftest.
$ac_ext >&5
2124 ac_cv_header_alloca_h
=no
2129 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2130 if test $ac_cv_header_alloca_h = yes; then
2131 cat >> confdefs.h
<<\EOF
2132 #define HAVE_ALLOCA_H 1
2137 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2138 echo "configure:2139: checking for alloca" >&5
2139 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.
$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2147 # define alloca __builtin_alloca
2150 # include <alloca.h>
2155 # ifndef alloca /* predefined by HP cc +Olibcalls */
2163 char *p = (char *) alloca(1);
2166 if { (eval echo configure
:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2168 ac_cv_func_alloca_works
=yes
2170 echo "configure: failed program was:" >&5
2171 cat conftest.
$ac_ext >&5
2173 ac_cv_func_alloca_works
=no
2178 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2179 if test $ac_cv_func_alloca_works = yes; then
2180 cat >> confdefs.h
<<\EOF
2181 #define HAVE_ALLOCA 1
2186 if test $ac_cv_func_alloca_works = no
; then
2187 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2188 # that cause trouble. Some versions do not even contain alloca or
2189 # contain a buggy version. If you still want to use their alloca,
2190 # use ar to extract alloca.o from them instead of compiling alloca.c.
2192 cat >> confdefs.h
<<\EOF
2197 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2198 echo "configure:2199: checking whether alloca needs Cray hooks" >&5
2199 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 cat > conftest.
$ac_ext <<EOF
2203 #line 2204 "configure"
2204 #include "confdefs.h"
2205 #if defined(CRAY) && ! defined(CRAY2)
2212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2213 egrep "webecray" >/dev
/null
2>&1; then
2224 echo "$ac_t""$ac_cv_os_cray" 1>&6
2225 if test $ac_cv_os_cray = yes; then
2226 for ac_func
in _getb67 GETB67 getb67
; do
2227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_func" >&5
2229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.
$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 /* System header to define __stub macros and hopefully few prototypes,
2236 which can conflict with char $ac_func(); below. */
2238 /* Override any gcc2 internal prototype to avoid an error. */
2239 /* We use char because int might match the return type of a gcc2
2240 builtin and then its argument prototype would still apply. */
2245 /* The GNU C library defines this for functions which it implements
2246 to always fail with ENOSYS. Some functions are actually named
2247 something starting with __ and the normal name is an alias. */
2248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2256 if { (eval echo configure
:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2258 eval "ac_cv_func_$ac_func=yes"
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 eval "ac_cv_func_$ac_func=no"
2268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 cat >> confdefs.h
<<EOF
2271 #define CRAY_STACKSEG_END $ac_func
2276 echo "$ac_t""no" 1>&6
2282 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2283 echo "configure:2284: checking stack direction for C alloca" >&5
2284 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2287 if test "$cross_compiling" = yes; then
2288 ac_cv_c_stack_direction
=0
2290 cat > conftest.
$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2293 find_stack_direction ()
2295 static char *addr = 0;
2300 return find_stack_direction ();
2303 return (&dummy > addr) ? 1 : -1;
2307 exit (find_stack_direction() < 0);
2310 if { (eval echo configure
:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2312 ac_cv_c_stack_direction
=1
2314 echo "configure: failed program was:" >&5
2315 cat conftest.
$ac_ext >&5
2317 ac_cv_c_stack_direction
=-1
2324 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2325 cat >> confdefs.h
<<EOF
2326 #define STACK_DIRECTION $ac_cv_c_stack_direction
2332 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2333 echo "configure:2334: checking for st_rdev in struct stat" >&5
2334 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 cat > conftest.
$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2340 #include <sys/types.h>
2341 #include <sys/stat.h>
2343 struct stat s; s.st_rdev;
2346 if { (eval echo configure
:2347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2348 ac_cv_struct_st_rdev
=yes
2350 echo "configure: failed program was:" >&5
2351 cat conftest.
$ac_ext >&5
2353 ac_cv_struct_st_rdev
=no
2358 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2359 if test $ac_cv_struct_st_rdev = yes; then
2360 cat >> confdefs.h
<<\EOF
2361 #define HAVE_ST_RDEV 1
2366 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
2367 echo "configure:2368: checking for st_blksize in struct stat" >&5
2368 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <sys/types.h>
2375 #include <sys/stat.h>
2377 struct stat s; s.st_blksize;
2380 if { (eval echo configure
:2381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2382 ac_cv_struct_st_blksize
=yes
2384 echo "configure: failed program was:" >&5
2385 cat conftest.
$ac_ext >&5
2387 ac_cv_struct_st_blksize
=no
2392 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
2393 if test $ac_cv_struct_st_blksize = yes; then
2394 cat >> confdefs.h
<<\EOF
2395 #define HAVE_ST_BLKSIZE 1
2400 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
2401 echo "configure:2402: checking for st_blocks in struct stat" >&5
2402 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 cat > conftest.
$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 #include <sys/types.h>
2409 #include <sys/stat.h>
2411 struct stat s; s.st_blocks;
2414 if { (eval echo configure
:2415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2416 ac_cv_struct_st_blocks
=yes
2418 echo "configure: failed program was:" >&5
2419 cat conftest.
$ac_ext >&5
2421 ac_cv_struct_st_blocks
=no
2426 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
2427 if test $ac_cv_struct_st_blocks = yes; then
2428 cat >> confdefs.h
<<\EOF
2429 #define HAVE_ST_BLOCKS 1
2433 LIBOBJS
="$LIBOBJS fileblocks.o"
2437 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
2438 echo "configure:2439: checking whether we need POSIX to get struct utimbuf" >&5
2439 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 cat > conftest.
$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2447 #include <sys/utime.h>
2454 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2455 { (eval echo configure
:2456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2456 ac_err
=`grep -v '^ *+' conftest.out`
2457 if test -z "$ac_err"; then
2459 guile_cv_struct_utimbuf_needs_posix
=no
2462 echo "configure: failed program was:" >&5
2463 cat conftest.
$ac_ext >&5
2465 guile_cv_struct_utimbuf_needs_posix
=yes
2470 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
2471 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
2472 cat >> confdefs.h
<<\EOF
2473 #define UTIMBUF_NEEDS_POSIX 1
2478 # Checks for dynamic linking
2480 xtra_PLUGIN_guile_libs
=""
2483 if test "$enable_dynamic_linking" = "yes"; then
2485 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2486 echo "configure:2487: checking for dlopen in -ldl" >&5
2487 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 ac_save_LIBS
="$LIBS"
2493 cat > conftest.
$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 /* Override any gcc2 internal prototype to avoid an error. */
2497 /* We use char because int might match the return type of a gcc2
2498 builtin and then its argument prototype would still apply. */
2505 if { (eval echo configure
:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2507 eval "ac_cv_lib_$ac_lib_var=yes"
2509 echo "configure: failed program was:" >&5
2510 cat conftest.
$ac_ext >&5
2512 eval "ac_cv_lib_$ac_lib_var=no"
2515 LIBS
="$ac_save_LIBS"
2518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2522 cat >> confdefs.h
<<EOF
2523 #define $ac_tr_lib 1
2529 echo "$ac_t""no" 1>&6
2532 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2533 xtra_PLUGIN_guile_libs
="-lguile -ldl"
2534 cat >> confdefs.h
<<\EOF
2535 #define DYNAMIC_LINKING 1
2539 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2540 echo "configure:2541: checking for dld_link in -ldld" >&5
2541 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 ac_save_LIBS
="$LIBS"
2547 cat > conftest.
$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 /* Override any gcc2 internal prototype to avoid an error. */
2551 /* We use char because int might match the return type of a gcc2
2552 builtin and then its argument prototype would still apply. */
2559 if { (eval echo configure
:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2561 eval "ac_cv_lib_$ac_lib_var=yes"
2563 echo "configure: failed program was:" >&5
2564 cat conftest.
$ac_ext >&5
2566 eval "ac_cv_lib_$ac_lib_var=no"
2569 LIBS
="$ac_save_LIBS"
2572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2574 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2575 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2576 cat >> confdefs.h
<<EOF
2577 #define $ac_tr_lib 1
2583 echo "$ac_t""no" 1>&6
2586 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2587 xtra_PLUGIN_guile_libs
="-lguile -ldld"
2588 cat >> confdefs.h
<<\EOF
2589 #define DYNAMIC_LINKING 1
2593 for ac_func
in shl_load
2595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2596 echo "configure:2597: checking for $ac_func" >&5
2597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 cat > conftest.
$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2603 /* System header to define __stub macros and hopefully few prototypes,
2604 which can conflict with char $ac_func(); below. */
2606 /* Override any gcc2 internal prototype to avoid an error. */
2607 /* We use char because int might match the return type of a gcc2
2608 builtin and then its argument prototype would still apply. */
2613 /* The GNU C library defines this for functions which it implements
2614 to always fail with ENOSYS. Some functions are actually named
2615 something starting with __ and the normal name is an alias. */
2616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2624 if { (eval echo configure
:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2626 eval "ac_cv_func_$ac_func=yes"
2628 echo "configure: failed program was:" >&5
2629 cat conftest.
$ac_ext >&5
2631 eval "ac_cv_func_$ac_func=no"
2636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2637 echo "$ac_t""yes" 1>&6
2638 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2639 cat >> confdefs.h
<<EOF
2640 #define $ac_tr_func 1
2644 echo "$ac_t""no" 1>&6
2648 if test "$ac_cv_func_shl_load" = "yes"; then
2649 cat >> confdefs.h
<<\EOF
2650 #define DYNAMIC_LINKING 1
2657 #--------------------------------------------------------------------
2659 # Which way does the stack grow?
2661 #--------------------------------------------------------------------
2663 if test "$cross_compiling" = yes; then
2664 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
2666 cat > conftest.
$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 aux (l) unsigned long l;
2670 { int x; exit (l >= ((unsigned long)&x)); }
2671 main () { int q; aux((unsigned long)&q); }
2673 if { (eval echo configure
:2674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2675 cat >> confdefs.h
<<\EOF
2676 #define SCM_STACK_GROWS_UP 1
2680 echo "configure: failed program was:" >&5
2681 cat conftest.
$ac_ext >&5
2688 if test "$cross_compiling" = yes; then
2689 cat >> confdefs.h
<<\EOF
2690 #define SCM_SINGLES 1
2693 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
2695 cat > conftest.
$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 main () { exit (sizeof(float) != sizeof(long)); }
2700 if { (eval echo configure
:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2702 cat >> confdefs.h
<<\EOF
2703 #define SCM_SINGLES 1
2707 echo "configure: failed program was:" >&5
2708 cat conftest.
$ac_ext >&5
2714 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
2715 echo "configure:2716: checking for struct linger" >&5
2716 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 cat > conftest.
$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2723 #include <sys/types.h>
2724 #include <sys/socket.h>
2726 struct linger lgr; lgr.l_linger = 100
2729 if { (eval echo configure
:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2731 scm_cv_struct_linger
="yes"
2733 echo "configure: failed program was:" >&5
2734 cat conftest.
$ac_ext >&5
2736 scm_cv_struct_linger
="no"
2741 echo "$ac_t""$scm_cv_struct_linger" 1>&6
2742 if test $scm_cv_struct_linger = yes; then
2743 cat >> confdefs.h
<<\EOF
2744 #define HAVE_STRUCT_LINGER 1
2749 #--------------------------------------------------------------------
2751 # How can you violate a stdio abstraction by setting a stream's fd?
2753 #--------------------------------------------------------------------
2757 if test "x$FD_SETTER" = x
; then
2758 cat > conftest.
$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2767 if { (eval echo configure
:2768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2769 FD_SETTER
="((F)->_file = (D))"
2771 echo "configure: failed program was:" >&5
2772 cat conftest.
$ac_ext >&5
2777 if test "x$FD_SETTER" = x
; then
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2787 if { (eval echo configure
:2788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2789 FD_SETTER
="((F)->_fileno = (D))"
2791 echo "configure: failed program was:" >&5
2792 cat conftest.
$ac_ext >&5
2798 test "x$FD_SETTER" != x
&& cat >> confdefs.h
<<\EOF
2799 #define HAVE_FD_SETTER 1
2803 #--------------------------------------------------------------------
2804 # How to find out whether a FILE structure contains buffered data.
2805 # From Tk we have the following list:
2806 # _cnt: Most UNIX systems
2810 # Or, in GNU libc there are two fields, _gptr and _egptr, which
2811 # have to be compared.
2812 # These can also be known as _IO_read_ptr and _IO_read_end.
2813 #--------------------------------------------------------------------
2815 echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
2816 echo "configure:2817: checking how to get buffer char count from FILE structure" >&5
2817 if eval "test \"`echo '$''{'scm_cv_struct_file_count'+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"
2825 FILE *f = stdin; f->_cnt = 0
2828 if { (eval echo configure
:2829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2830 scm_cv_struct_file_count
="_cnt"
2832 echo "configure: failed program was:" >&5
2833 cat conftest.
$ac_ext >&5
2835 cat > conftest.
$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2840 FILE *f = stdin; f->_r = 0
2843 if { (eval echo configure
:2844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2845 scm_cv_struct_file_count
="_r"
2847 echo "configure: failed program was:" >&5
2848 cat conftest.
$ac_ext >&5
2850 cat > conftest.
$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2855 FILE *f = stdin; f->readCount = 0
2858 if { (eval echo configure
:2859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2860 scm_cv_struct_file_count
="readCount"
2862 echo "configure: failed program was:" >&5
2863 cat conftest.
$ac_ext >&5
2865 scm_cv_struct_file_count
=""
2874 if test "$scm_cv_struct_file_count"; then
2875 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
2876 cat >> confdefs.h
<<EOF
2877 #define FILE_CNT_FIELD $scm_cv_struct_file_count
2881 if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 cat > conftest.
$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2889 FILE *f = stdin; f->_gptr = f->egptr;
2892 if { (eval echo configure
:2893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2894 scm_cv_struct_file_gptr
=1
2896 echo "configure: failed program was:" >&5
2897 cat conftest.
$ac_ext >&5
2899 scm_cv_struct_file_gptr
=""
2904 if test "$scm_cv_struct_gptr"; then
2905 echo "$ac_t""gptr" 1>&6
2906 cat >> confdefs.h
<<EOF
2907 #define FILE_CNT_GPTR $scm_cv_struct_file_gptr
2911 if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 cat > conftest.
$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2919 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
2922 if { (eval echo configure
:2923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2924 scm_cv_struct_file_readptr
=1
2926 echo "configure: failed program was:" >&5
2927 cat conftest.
$ac_ext >&5
2932 if test "$scm_cv_struct_file_readptr"; then
2933 echo "$ac_t""read_ptr" 1>&6
2934 cat >> confdefs.h
<<EOF
2935 #define FILE_CNT_READPTR $scm_cv_struct_file_readptr
2942 #--------------------------------------------------------------------
2944 # Flags for thread support
2946 #--------------------------------------------------------------------
2948 if test "$cy_cv_threads_package" = FSU
; then
2949 cat >> confdefs.h
<<\EOF
2950 #define USE_FSU_PTHREADS 1
2953 else if test "$cy_cv_threads_package" = COOP
; then
2954 cat >> confdefs.h
<<\EOF
2955 #define USE_COOP_THREADS 1
2958 else if test "$cy_cv_threads_package" = MIT
; then
2959 cat >> confdefs.h
<<\EOF
2960 #define USE_MIT_PTHREADS 1
2963 else if test "$cy_cv_threads_package" = PCthreads
; then
2964 cat >> confdefs.h
<<\EOF
2965 #define USE_PCTHREADS_PTHREADS 1
2968 else if test "$cy_cv_threads_package" = unknown
; then
2969 { echo "configure: error: "cannot
find threads installation
"" 1>&2; exit 1; }
2976 if test "$cy_cv_threads_package" != ""; then
2977 cat >> confdefs.h
<<\EOF
2978 #define USE_THREADS 1
2983 ## If we're using GCC, ask for aggressive warnings.
2985 yes ) CFLAGS
="$CFLAGS -Wall -Wpointer-arith" ;;
2988 for ac_prog
in mawk gawk nawk
awk
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy
$ac_prog; ac_word
=$2
2992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2993 echo "configure:2994: checking for $ac_word" >&5
2994 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 if test -n "$AWK"; then
2998 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3000 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3001 for ac_dir
in $PATH; do
3002 test -z "$ac_dir" && ac_dir
=.
3003 if test -f $ac_dir/$ac_word; then
3004 ac_cv_prog_AWK
="$ac_prog"
3011 AWK
="$ac_cv_prog_AWK"
3012 if test -n "$AWK"; then
3013 echo "$ac_t""$AWK" 1>&6
3015 echo "$ac_t""no" 1>&6
3018 test -n "$AWK" && break
3021 echo $ac_n "checking whether errno codes can be extracted from errno.h""... $ac_c" 1>&6
3022 echo "configure:3023: checking whether errno codes can be extracted from errno.h" >&5
3023 if test "$GCC" = yes ; then
3024 echo "$ac_t""yes" 1>&6
3025 ERRNO_EXTRACT
="${CC-cc} -undef -dM -E $srcdir/errnos_get.c | egrep ' E.+' | cut -f2 -d' ' > errnos.list"
3027 ERRNO_EXTRACT
="cp $srcdir/errnos.default errnos.list"
3028 echo "$ac_t""no, using default" 1>&6
3031 ## If we're creating a shared library (using libtool!), then we'll
3032 ## need to generate a list of .lo files corresponding to the .o files
3033 ## given in LIBOBJS. We'll call it LIBLOBJS.
3034 LIBLOBJS
="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
3036 cat >> confdefs.h
<<EOF
3037 #define GUILE_MAJOR_VERSION "$GUILE_MAJOR_VERSION"
3040 cat >> confdefs.h
<<EOF
3041 #define GUILE_MINOR_VERSION "$GUILE_MINOR_VERSION"
3044 cat >> confdefs.h
<<EOF
3045 #define GUILE_VERSION "$GUILE_VERSION"
3054 cat > confcache
<<\EOF
3055 # This file is a shell script that caches the results of configure
3056 # tests run on this system so they can be shared between configure
3057 # scripts and configure runs. It is not useful on other systems.
3058 # If it contains results you don't want to keep, you may remove or edit it.
3060 # By default, configure uses ./config.cache as the cache file,
3061 # creating it if it does not exist already. You can give configure
3062 # the --cache-file=FILE option to use a different cache file; that is
3063 # what configure does when it calls configure scripts in
3064 # subdirectories, so they share the cache.
3065 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3066 # config.status only pays attention to the cache file if you give it the
3067 # --recheck option to rerun configure.
3070 # The following way of writing the cache mishandles newlines in values,
3071 # but we know of no workaround that is simple, portable, and efficient.
3072 # So, don't put newlines in cache variables' values.
3073 # Ultrix sh set writes to stderr and can't be redirected directly,
3074 # and sets the high bit in the cache file unless we assign to the vars.
3076 case `(ac_space=' '; set) 2>&1` in
3078 # `set' does not quote correctly, so add quotes (double-quote substitution
3079 # turns \\\\ into \\, and sed turns \\ into \).
3081 -e "s/'/'\\\\''/g" \
3082 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3085 # `set' quotes correctly as required by POSIX, so do not add quotes.
3086 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3089 if cmp -s $cache_file confcache
; then
3092 if test -w $cache_file; then
3093 echo "updating cache $cache_file"
3094 cat confcache
> $cache_file
3096 echo "not updating unwritable cache $cache_file"
3101 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3103 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3104 # Let make expand exec_prefix.
3105 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3107 # Any assignment to VPATH causes Sun make to only execute
3108 # the first set of double-colon rules, so remove it if not needed.
3109 # If there is a colon in the path, we need to keep it.
3110 if test "x$srcdir" = x.
; then
3111 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3114 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3116 DEFS
=-DHAVE_CONFIG_H
3118 # Without the "./", some shells look in PATH for config.status.
3119 : ${CONFIG_STATUS=./config.status}
3121 echo creating
$CONFIG_STATUS
3122 rm -f $CONFIG_STATUS
3123 cat > $CONFIG_STATUS <<EOF
3125 # Generated automatically by configure.
3126 # Run this file to recreate the current configuration.
3127 # This directory was configured as follows,
3128 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3130 # $0 $ac_configure_args
3132 # Compiler output produced by configure, useful for debugging
3133 # configure, is in ./config.log if it exists.
3135 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3138 case "\$ac_option" in
3139 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3140 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3141 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3142 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3143 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3145 -help | --help | --hel | --he | --h)
3146 echo "\$ac_cs_usage"; exit 0 ;;
3147 *) echo "\$ac_cs_usage"; exit 1 ;;
3151 ac_given_srcdir=$srcdir
3152 ac_given_INSTALL="$INSTALL"
3154 trap 'rm -fr `echo "Makefile fd.h guile-snarf PLUGIN/guile.libs scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3156 cat >> $CONFIG_STATUS <<EOF
3158 # Protect against being on the right side of a sed subst in config.status.
3159 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3160 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3163 s%@CFLAGS@%$CFLAGS%g
3164 s%@CPPFLAGS@%$CPPFLAGS%g
3165 s%@CXXFLAGS@%$CXXFLAGS%g
3167 s%@LDFLAGS@%$LDFLAGS%g
3169 s%@exec_prefix@%$exec_prefix%g
3170 s%@prefix@%$prefix%g
3171 s%@program_transform_name@%$program_transform_name%g
3172 s%@bindir@%$bindir%g
3173 s%@sbindir@%$sbindir%g
3174 s%@libexecdir@%$libexecdir%g
3175 s%@datadir@%$datadir%g
3176 s%@sysconfdir@%$sysconfdir%g
3177 s%@sharedstatedir@%$sharedstatedir%g
3178 s%@localstatedir@%$localstatedir%g
3179 s%@libdir@%$libdir%g
3180 s%@includedir@%$includedir%g
3181 s%@oldincludedir@%$oldincludedir%g
3182 s%@infodir@%$infodir%g
3183 s%@mandir@%$mandir%g
3184 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3185 s%@INSTALL_DATA@%$INSTALL_DATA%g
3186 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3187 s%@PACKAGE@%$PACKAGE%g
3188 s%@VERSION@%$VERSION%g
3189 s%@SET_MAKE@%$SET_MAKE%g
3190 s%@module@%$module%g
3194 s%@host_alias@%$host_alias%g
3195 s%@host_cpu@%$host_cpu%g
3196 s%@host_vendor@%$host_vendor%g
3197 s%@host_os@%$host_os%g
3198 s%@RANLIB@%$RANLIB%g
3199 s%@LIBTOOL@%$LIBTOOL%g
3200 s%@LIBOBJS@%$LIBOBJS%g
3201 s%@ALLOCA@%$ALLOCA%g
3202 s%@xtra_PLUGIN_guile_libs@%$xtra_PLUGIN_guile_libs%g
3204 s%@FD_SETTER@%$FD_SETTER%g
3205 s%@ERRNO_EXTRACT@%$ERRNO_EXTRACT%g
3206 s%@LIBLOBJS@%$LIBLOBJS%g
3211 cat >> $CONFIG_STATUS <<\EOF
3213 # Split the substitutions into bite-sized pieces for seds with
3214 # small command number limits, like on Digital OSF/1 and HP-UX.
3215 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3216 ac_file
=1 # Number of current file.
3217 ac_beg
=1 # First line for current file.
3218 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3221 while $ac_more_lines; do
3222 if test $ac_beg -gt 1; then
3223 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3225 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3227 if test ! -s conftest.s
$ac_file; then
3229 rm -f conftest.s
$ac_file
3231 if test -z "$ac_sed_cmds"; then
3232 ac_sed_cmds
="sed -f conftest.s$ac_file"
3234 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3236 ac_file
=`expr $ac_file + 1`
3238 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3241 if test -z "$ac_sed_cmds"; then
3246 cat >> $CONFIG_STATUS <<EOF
3248 CONFIG_FILES=\${CONFIG_FILES-"Makefile fd.h guile-snarf PLUGIN/guile.libs"}
3250 cat >> $CONFIG_STATUS <<\EOF
3251 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3254 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3255 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3256 *) ac_file_in
="${ac_file}.in" ;;
3259 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3261 # Remove last slash and all that follows it. Not all systems have dirname.
3262 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3263 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3264 # The file is in a subdirectory.
3265 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3266 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3267 # A "../" for each directory in $ac_dir_suffix.
3268 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3270 ac_dir_suffix
= ac_dots
=
3273 case "$ac_given_srcdir" in
3275 if test -z "$ac_dots"; then top_srcdir
=.
3276 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3277 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3279 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3280 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3283 case "$ac_given_INSTALL" in
3284 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3285 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3288 echo creating
"$ac_file"
3290 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3292 *Makefile
*) ac_comsub
="1i\\
3293 # $configure_input" ;;
3297 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3299 s%@configure_input@%$configure_input%g
3300 s%@srcdir@%$srcdir%g
3301 s%@top_srcdir@%$top_srcdir%g
3302 s%@INSTALL@%$INSTALL%g
3303 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3307 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3308 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3310 # ac_d sets the value in "#define NAME VALUE" lines.
3311 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3312 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3315 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3316 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3317 ac_uB
='\([ ]\)%\1#\2define\3'
3320 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3321 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3322 ac_eB
='$%\1#\2define\3'
3326 if test "${CONFIG_HEADERS+set}" != set; then
3328 cat >> $CONFIG_STATUS <<EOF
3329 CONFIG_HEADERS="scmconfig.h"
3331 cat >> $CONFIG_STATUS <<\EOF
3333 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3334 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3336 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3337 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3338 *) ac_file_in
="${ac_file}.in" ;;
3341 echo creating
$ac_file
3343 rm -f conftest.frag conftest.
in conftest.out
3344 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3345 cat $ac_file_inputs > conftest.
in
3349 # Transform confdefs.h into a sed script conftest.vals that substitutes
3350 # the proper values into config.h.in to produce config.h. And first:
3351 # Protect against being on the right side of a sed subst in config.status.
3352 # Protect against being in an unquoted here document in config.status.
3354 cat > conftest.hdr
<<\EOF
3357 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3361 sed -n -f conftest.hdr confdefs.h > conftest.vals
3364 # This sed command replaces #undef with comments. This is necessary, for
3365 # example, in the case of _POSIX_SOURCE, which is predefined and required
3366 # on some systems where configure will not decide to define it.
3367 cat >> conftest.vals <<\EOF
3368 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3371 # Break up conftest.vals because some shells have a limit on
3372 # the size of here documents, and old seds have small limits too.
3377 ac_lines=`grep -c . conftest.vals
`
3378 # grep -c gives empty output for an empty file on some AIX systems.
3379 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3380 # Write a limited-size here document to conftest.frag.
3381 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3382 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3384 sed -f conftest.frag conftest.in > conftest.out
3386 mv conftest.out conftest.in
3388 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3390 mv conftest.tail conftest.vals
3394 cat >> $CONFIG_STATUS <<\EOF
3395 rm -f conftest.frag conftest.h
3396 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3397 cat conftest.in >> conftest.h
3399 if cmp -s $ac_file conftest.h 2>/dev/null; then
3400 echo "$ac_file is unchanged"
3403 # Remove last slash and all that follows it. Not all systems have dirname.
3404 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3405 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3406 # The file is in a subdirectory.
3407 test ! -d "$ac_dir" && mkdir "$ac_dir"
3410 mv conftest.h $ac_file
3415 cat >> $CONFIG_STATUS <<EOF
3419 cat >> $CONFIG_STATUS <<\EOF
3420 test -z "$CONFIG_HEADER" || echo timestamp > stamp-h
3421 chmod +x guile-snarf
3424 chmod +x $CONFIG_STATUS
3425 rm -fr confdefs* $ac_clean_files
3426 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1