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 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2103 echo "configure:2104: checking for st_rdev in struct stat" >&5
2104 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 cat > conftest.
$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 #include <sys/types.h>
2111 #include <sys/stat.h>
2113 struct stat s; s.st_rdev;
2116 if { (eval echo configure
:2117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2118 ac_cv_struct_st_rdev
=yes
2120 echo "configure: failed program was:" >&5
2121 cat conftest.
$ac_ext >&5
2123 ac_cv_struct_st_rdev
=no
2128 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2129 if test $ac_cv_struct_st_rdev = yes; then
2130 cat >> confdefs.h
<<\EOF
2131 #define HAVE_ST_RDEV 1
2136 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
2137 echo "configure:2138: checking for st_blksize in struct stat" >&5
2138 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 cat > conftest.
$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2144 #include <sys/types.h>
2145 #include <sys/stat.h>
2147 struct stat s; s.st_blksize;
2150 if { (eval echo configure
:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2152 ac_cv_struct_st_blksize
=yes
2154 echo "configure: failed program was:" >&5
2155 cat conftest.
$ac_ext >&5
2157 ac_cv_struct_st_blksize
=no
2162 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
2163 if test $ac_cv_struct_st_blksize = yes; then
2164 cat >> confdefs.h
<<\EOF
2165 #define HAVE_ST_BLKSIZE 1
2170 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
2171 echo "configure:2172: checking for st_blocks in struct stat" >&5
2172 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 cat > conftest.
$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2178 #include <sys/types.h>
2179 #include <sys/stat.h>
2181 struct stat s; s.st_blocks;
2184 if { (eval echo configure
:2185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2186 ac_cv_struct_st_blocks
=yes
2188 echo "configure: failed program was:" >&5
2189 cat conftest.
$ac_ext >&5
2191 ac_cv_struct_st_blocks
=no
2196 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
2197 if test $ac_cv_struct_st_blocks = yes; then
2198 cat >> confdefs.h
<<\EOF
2199 #define HAVE_ST_BLOCKS 1
2203 LIBOBJS
="$LIBOBJS fileblocks.o"
2207 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
2208 echo "configure:2209: checking whether we need POSIX to get struct utimbuf" >&5
2209 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 cat > conftest.
$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2217 #include <sys/utime.h>
2224 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2225 { (eval echo configure
:2226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2226 ac_err
=`grep -v '^ *+' conftest.out`
2227 if test -z "$ac_err"; then
2229 guile_cv_struct_utimbuf_needs_posix
=no
2232 echo "configure: failed program was:" >&5
2233 cat conftest.
$ac_ext >&5
2235 guile_cv_struct_utimbuf_needs_posix
=yes
2240 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
2241 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
2242 cat >> confdefs.h
<<\EOF
2243 #define UTIMBUF_NEEDS_POSIX 1
2248 # Checks for dynamic linking
2250 xtra_PLUGIN_guile_libs
=""
2253 if test "$enable_dynamic_linking" = "yes"; then
2255 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2256 echo "configure:2257: checking for dlopen in -ldl" >&5
2257 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 ac_save_LIBS
="$LIBS"
2263 cat > conftest.
$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 /* Override any gcc2 internal prototype to avoid an error. */
2267 /* We use char because int might match the return type of a gcc2
2268 builtin and then its argument prototype would still apply. */
2275 if { (eval echo configure
:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2277 eval "ac_cv_lib_$ac_lib_var=yes"
2279 echo "configure: failed program was:" >&5
2280 cat conftest.
$ac_ext >&5
2282 eval "ac_cv_lib_$ac_lib_var=no"
2285 LIBS
="$ac_save_LIBS"
2288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2292 cat >> confdefs.h
<<EOF
2293 #define $ac_tr_lib 1
2299 echo "$ac_t""no" 1>&6
2302 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2303 xtra_PLUGIN_guile_libs
="-lguile -ldl"
2304 cat >> confdefs.h
<<\EOF
2305 #define DYNAMIC_LINKING 1
2309 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2310 echo "configure:2311: checking for dld_link in -ldld" >&5
2311 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2313 echo $ac_n "(cached) $ac_c" 1>&6
2315 ac_save_LIBS
="$LIBS"
2317 cat > conftest.
$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2320 /* Override any gcc2 internal prototype to avoid an error. */
2321 /* We use char because int might match the return type of a gcc2
2322 builtin and then its argument prototype would still apply. */
2329 if { (eval echo configure
:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2331 eval "ac_cv_lib_$ac_lib_var=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.
$ac_ext >&5
2336 eval "ac_cv_lib_$ac_lib_var=no"
2339 LIBS
="$ac_save_LIBS"
2342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2343 echo "$ac_t""yes" 1>&6
2344 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2345 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2346 cat >> confdefs.h
<<EOF
2347 #define $ac_tr_lib 1
2353 echo "$ac_t""no" 1>&6
2356 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2357 xtra_PLUGIN_guile_libs
="-lguile -ldld"
2358 cat >> confdefs.h
<<\EOF
2359 #define DYNAMIC_LINKING 1
2363 for ac_func
in shl_load
2365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_func" >&5
2367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 cat > conftest.
$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2373 /* System header to define __stub macros and hopefully few prototypes,
2374 which can conflict with char $ac_func(); below. */
2376 /* Override any gcc2 internal prototype to avoid an error. */
2377 /* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2383 /* The GNU C library defines this for functions which it implements
2384 to always fail with ENOSYS. Some functions are actually named
2385 something starting with __ and the normal name is an alias. */
2386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2394 if { (eval echo configure
:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2396 eval "ac_cv_func_$ac_func=yes"
2398 echo "configure: failed program was:" >&5
2399 cat conftest.
$ac_ext >&5
2401 eval "ac_cv_func_$ac_func=no"
2406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2407 echo "$ac_t""yes" 1>&6
2408 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2409 cat >> confdefs.h
<<EOF
2410 #define $ac_tr_func 1
2414 echo "$ac_t""no" 1>&6
2418 if test "$ac_cv_func_shl_load" = "yes"; then
2419 cat >> confdefs.h
<<\EOF
2420 #define DYNAMIC_LINKING 1
2427 #--------------------------------------------------------------------
2429 # Which way does the stack grow?
2431 #--------------------------------------------------------------------
2433 if test "$cross_compiling" = yes; then
2434 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
2436 cat > conftest.
$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 aux (l) unsigned long l;
2440 { int x; exit (l >= ((unsigned long)&x)); }
2441 main () { int q; aux((unsigned long)&q); }
2443 if { (eval echo configure
:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2445 cat >> confdefs.h
<<\EOF
2446 #define SCM_STACK_GROWS_UP 1
2450 echo "configure: failed program was:" >&5
2451 cat conftest.
$ac_ext >&5
2458 if test "$cross_compiling" = yes; then
2459 cat >> confdefs.h
<<\EOF
2460 #define SCM_SINGLES 1
2463 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
2465 cat > conftest.
$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 main () { exit (sizeof(float) != sizeof(long)); }
2470 if { (eval echo configure
:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2472 cat >> confdefs.h
<<\EOF
2473 #define SCM_SINGLES 1
2477 echo "configure: failed program was:" >&5
2478 cat conftest.
$ac_ext >&5
2484 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
2485 echo "configure:2486: checking for struct linger" >&5
2486 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 cat > conftest.
$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2493 #include <sys/types.h>
2494 #include <sys/socket.h>
2496 struct linger lgr; lgr.l_linger = 100
2499 if { (eval echo configure
:2500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2501 scm_cv_struct_linger
="yes"
2503 echo "configure: failed program was:" >&5
2504 cat conftest.
$ac_ext >&5
2506 scm_cv_struct_linger
="no"
2511 echo "$ac_t""$scm_cv_struct_linger" 1>&6
2512 if test $scm_cv_struct_linger = yes; then
2513 cat >> confdefs.h
<<\EOF
2514 #define HAVE_STRUCT_LINGER 1
2519 #--------------------------------------------------------------------
2521 # How can you violate a stdio abstraction by setting a stream's fd?
2523 #--------------------------------------------------------------------
2527 if test "x$FD_SETTER" = x
; then
2528 cat > conftest.
$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2537 if { (eval echo configure
:2538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2539 FD_SETTER
="((F)->_file = (D))"
2541 echo "configure: failed program was:" >&5
2542 cat conftest.
$ac_ext >&5
2547 if test "x$FD_SETTER" = x
; then
2548 cat > conftest.
$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2557 if { (eval echo configure
:2558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2559 FD_SETTER
="((F)->_fileno = (D))"
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2568 test "x$FD_SETTER" != x
&& cat >> confdefs.h
<<\EOF
2569 #define HAVE_FD_SETTER 1
2573 #--------------------------------------------------------------------
2574 # How to find out whether a FILE structure contains buffered data.
2575 # From Tk we have the following list:
2576 # _cnt: Most UNIX systems
2580 # Or, in GNU libc there are two fields, _gptr and _egptr, which
2581 # have to be compared.
2582 # These can also be known as _IO_read_ptr and _IO_read_end.
2583 #--------------------------------------------------------------------
2585 echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
2586 echo "configure:2587: checking how to get buffer char count from FILE structure" >&5
2587 if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.
$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2595 FILE *f = stdin; f->_cnt = 0
2598 if { (eval echo configure
:2599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2600 scm_cv_struct_file_count
="_cnt"
2602 echo "configure: failed program was:" >&5
2603 cat conftest.
$ac_ext >&5
2605 cat > conftest.
$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2610 FILE *f = stdin; f->_r = 0
2613 if { (eval echo configure
:2614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2615 scm_cv_struct_file_count
="_r"
2617 echo "configure: failed program was:" >&5
2618 cat conftest.
$ac_ext >&5
2620 cat > conftest.
$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2625 FILE *f = stdin; f->readCount = 0
2628 if { (eval echo configure
:2629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2630 scm_cv_struct_file_count
="readCount"
2632 echo "configure: failed program was:" >&5
2633 cat conftest.
$ac_ext >&5
2635 scm_cv_struct_file_count
=""
2644 if test "$scm_cv_struct_file_count"; then
2645 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
2646 cat >> confdefs.h
<<EOF
2647 #define FILE_CNT_FIELD $scm_cv_struct_file_count
2651 if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2654 cat > conftest.
$ac_ext <<EOF
2655 #line 2656 "configure"
2656 #include "confdefs.h"
2659 FILE *f = stdin; f->_gptr = f->egptr;
2662 if { (eval echo configure
:2663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2664 scm_cv_struct_file_gptr
=1
2666 echo "configure: failed program was:" >&5
2667 cat conftest.
$ac_ext >&5
2669 scm_cv_struct_file_gptr
=""
2674 if test "$scm_cv_struct_gptr"; then
2675 echo "$ac_t""gptr" 1>&6
2676 cat >> confdefs.h
<<EOF
2677 #define FILE_CNT_GPTR $scm_cv_struct_file_gptr
2681 if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 cat > conftest.
$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2689 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
2692 if { (eval echo configure
:2693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2694 scm_cv_struct_file_readptr
=1
2696 echo "configure: failed program was:" >&5
2697 cat conftest.
$ac_ext >&5
2702 if test "$scm_cv_struct_file_readptr"; then
2703 echo "$ac_t""read_ptr" 1>&6
2704 cat >> confdefs.h
<<EOF
2705 #define FILE_CNT_READPTR $scm_cv_struct_file_readptr
2712 #--------------------------------------------------------------------
2714 # Flags for thread support
2716 #--------------------------------------------------------------------
2718 if test "$cy_cv_threads_package" = FSU
; then
2719 cat >> confdefs.h
<<\EOF
2720 #define USE_FSU_PTHREADS 1
2723 else if test "$cy_cv_threads_package" = COOP
; then
2724 cat >> confdefs.h
<<\EOF
2725 #define USE_COOP_THREADS 1
2728 else if test "$cy_cv_threads_package" = MIT
; then
2729 cat >> confdefs.h
<<\EOF
2730 #define USE_MIT_PTHREADS 1
2733 else if test "$cy_cv_threads_package" = PCthreads
; then
2734 cat >> confdefs.h
<<\EOF
2735 #define USE_PCTHREADS_PTHREADS 1
2738 else if test "$cy_cv_threads_package" = unknown
; then
2739 { echo "configure: error: "cannot
find threads installation
"" 1>&2; exit 1; }
2746 if test "$cy_cv_threads_package" != ""; then
2747 cat >> confdefs.h
<<\EOF
2748 #define USE_THREADS 1
2753 ## If we're using GCC, ask for aggressive warnings.
2755 yes ) CFLAGS
="$CFLAGS -Wall -Wpointer-arith" ;;
2758 for ac_prog
in mawk gawk nawk
awk
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy
$ac_prog; ac_word
=$2
2762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2763 echo "configure:2764: checking for $ac_word" >&5
2764 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2767 if test -n "$AWK"; then
2768 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2770 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2771 for ac_dir
in $PATH; do
2772 test -z "$ac_dir" && ac_dir
=.
2773 if test -f $ac_dir/$ac_word; then
2774 ac_cv_prog_AWK
="$ac_prog"
2781 AWK
="$ac_cv_prog_AWK"
2782 if test -n "$AWK"; then
2783 echo "$ac_t""$AWK" 1>&6
2785 echo "$ac_t""no" 1>&6
2788 test -n "$AWK" && break
2791 echo $ac_n "checking whether errno codes can be extracted from errno.h""... $ac_c" 1>&6
2792 echo "configure:2793: checking whether errno codes can be extracted from errno.h" >&5
2794 if test "$GCC" = yes ; then
2795 ${CC-cc} -undef -dM -E $srcdir/errnos_get.c |
egrep ' E.+' | cut
-f2 -d' ' > errnos.list
2796 egrep '^E.+' errnos.list
> /dev
/null
2>&1 && goterrnos
=1
2798 if test $goterrnos = 1 ; then
2799 echo "$ac_t""yes" 1>&6
2801 cp $srcdir/errnos.default errnos.list
2802 echo "$ac_t""no, using default" 1>&6
2805 cat >> confdefs.h
<<EOF
2806 #define GUILE_MAJOR_VERSION "$GUILE_MAJOR_VERSION"
2809 cat >> confdefs.h
<<EOF
2810 #define GUILE_MINOR_VERSION "$GUILE_MINOR_VERSION"
2813 cat >> confdefs.h
<<EOF
2814 #define GUILE_VERSION "$GUILE_VERSION"
2820 cat > confcache
<<\EOF
2821 # This file is a shell script that caches the results of configure
2822 # tests run on this system so they can be shared between configure
2823 # scripts and configure runs. It is not useful on other systems.
2824 # If it contains results you don't want to keep, you may remove or edit it.
2826 # By default, configure uses ./config.cache as the cache file,
2827 # creating it if it does not exist already. You can give configure
2828 # the --cache-file=FILE option to use a different cache file; that is
2829 # what configure does when it calls configure scripts in
2830 # subdirectories, so they share the cache.
2831 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2832 # config.status only pays attention to the cache file if you give it the
2833 # --recheck option to rerun configure.
2836 # The following way of writing the cache mishandles newlines in values,
2837 # but we know of no workaround that is simple, portable, and efficient.
2838 # So, don't put newlines in cache variables' values.
2839 # Ultrix sh set writes to stderr and can't be redirected directly,
2840 # and sets the high bit in the cache file unless we assign to the vars.
2842 case `(ac_space=' '; set) 2>&1` in
2844 # `set' does not quote correctly, so add quotes (double-quote substitution
2845 # turns \\\\ into \\, and sed turns \\ into \).
2847 -e "s/'/'\\\\''/g" \
2848 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2851 # `set' quotes correctly as required by POSIX, so do not add quotes.
2852 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2855 if cmp -s $cache_file confcache
; then
2858 if test -w $cache_file; then
2859 echo "updating cache $cache_file"
2860 cat confcache
> $cache_file
2862 echo "not updating unwritable cache $cache_file"
2867 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2869 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2870 # Let make expand exec_prefix.
2871 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2873 # Any assignment to VPATH causes Sun make to only execute
2874 # the first set of double-colon rules, so remove it if not needed.
2875 # If there is a colon in the path, we need to keep it.
2876 if test "x$srcdir" = x.
; then
2877 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2880 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2882 DEFS
=-DHAVE_CONFIG_H
2884 # Without the "./", some shells look in PATH for config.status.
2885 : ${CONFIG_STATUS=./config.status}
2887 echo creating
$CONFIG_STATUS
2888 rm -f $CONFIG_STATUS
2889 cat > $CONFIG_STATUS <<EOF
2891 # Generated automatically by configure.
2892 # Run this file to recreate the current configuration.
2893 # This directory was configured as follows,
2894 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2896 # $0 $ac_configure_args
2898 # Compiler output produced by configure, useful for debugging
2899 # configure, is in ./config.log if it exists.
2901 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2904 case "\$ac_option" in
2905 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2906 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2907 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2908 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2909 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2911 -help | --help | --hel | --he | --h)
2912 echo "\$ac_cs_usage"; exit 0 ;;
2913 *) echo "\$ac_cs_usage"; exit 1 ;;
2917 ac_given_srcdir=$srcdir
2918 ac_given_INSTALL="$INSTALL"
2920 trap 'rm -fr `echo "Makefile fd.h guile-snarf PLUGIN/guile.libs scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2922 cat >> $CONFIG_STATUS <<EOF
2924 # Protect against being on the right side of a sed subst in config.status.
2925 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2926 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2929 s%@CFLAGS@%$CFLAGS%g
2930 s%@CPPFLAGS@%$CPPFLAGS%g
2931 s%@CXXFLAGS@%$CXXFLAGS%g
2933 s%@LDFLAGS@%$LDFLAGS%g
2935 s%@exec_prefix@%$exec_prefix%g
2936 s%@prefix@%$prefix%g
2937 s%@program_transform_name@%$program_transform_name%g
2938 s%@bindir@%$bindir%g
2939 s%@sbindir@%$sbindir%g
2940 s%@libexecdir@%$libexecdir%g
2941 s%@datadir@%$datadir%g
2942 s%@sysconfdir@%$sysconfdir%g
2943 s%@sharedstatedir@%$sharedstatedir%g
2944 s%@localstatedir@%$localstatedir%g
2945 s%@libdir@%$libdir%g
2946 s%@includedir@%$includedir%g
2947 s%@oldincludedir@%$oldincludedir%g
2948 s%@infodir@%$infodir%g
2949 s%@mandir@%$mandir%g
2950 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2951 s%@INSTALL_DATA@%$INSTALL_DATA%g
2952 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2953 s%@PACKAGE@%$PACKAGE%g
2954 s%@VERSION@%$VERSION%g
2955 s%@SET_MAKE@%$SET_MAKE%g
2956 s%@module@%$module%g
2960 s%@host_alias@%$host_alias%g
2961 s%@host_cpu@%$host_cpu%g
2962 s%@host_vendor@%$host_vendor%g
2963 s%@host_os@%$host_os%g
2964 s%@RANLIB@%$RANLIB%g
2965 s%@LIBTOOL@%$LIBTOOL%g
2966 s%@LIBOBJS@%$LIBOBJS%g
2967 s%@xtra_PLUGIN_guile_libs@%$xtra_PLUGIN_guile_libs%g
2969 s%@FD_SETTER@%$FD_SETTER%g
2974 cat >> $CONFIG_STATUS <<\EOF
2976 # Split the substitutions into bite-sized pieces for seds with
2977 # small command number limits, like on Digital OSF/1 and HP-UX.
2978 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2979 ac_file
=1 # Number of current file.
2980 ac_beg
=1 # First line for current file.
2981 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2984 while $ac_more_lines; do
2985 if test $ac_beg -gt 1; then
2986 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2988 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2990 if test ! -s conftest.s
$ac_file; then
2992 rm -f conftest.s
$ac_file
2994 if test -z "$ac_sed_cmds"; then
2995 ac_sed_cmds
="sed -f conftest.s$ac_file"
2997 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2999 ac_file
=`expr $ac_file + 1`
3001 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3004 if test -z "$ac_sed_cmds"; then
3009 cat >> $CONFIG_STATUS <<EOF
3011 CONFIG_FILES=\${CONFIG_FILES-"Makefile fd.h guile-snarf PLUGIN/guile.libs"}
3013 cat >> $CONFIG_STATUS <<\EOF
3014 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3015 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3017 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3018 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3019 *) ac_file_in
="${ac_file}.in" ;;
3022 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3024 # Remove last slash and all that follows it. Not all systems have dirname.
3025 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3026 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3027 # The file is in a subdirectory.
3028 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3029 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3030 # A "../" for each directory in $ac_dir_suffix.
3031 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3033 ac_dir_suffix
= ac_dots
=
3036 case "$ac_given_srcdir" in
3038 if test -z "$ac_dots"; then top_srcdir
=.
3039 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3040 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3042 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3043 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3046 case "$ac_given_INSTALL" in
3047 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3048 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3051 echo creating
"$ac_file"
3053 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3055 *Makefile
*) ac_comsub
="1i\\
3056 # $configure_input" ;;
3060 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3062 s%@configure_input@%$configure_input%g
3063 s%@srcdir@%$srcdir%g
3064 s%@top_srcdir@%$top_srcdir%g
3065 s%@INSTALL@%$INSTALL%g
3066 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3070 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3071 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3073 # ac_d sets the value in "#define NAME VALUE" lines.
3074 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3075 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3078 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3079 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3080 ac_uB
='\([ ]\)%\1#\2define\3'
3083 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3084 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3085 ac_eB
='$%\1#\2define\3'
3089 if test "${CONFIG_HEADERS+set}" != set; then
3091 cat >> $CONFIG_STATUS <<EOF
3092 CONFIG_HEADERS="scmconfig.h"
3094 cat >> $CONFIG_STATUS <<\EOF
3096 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3097 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3099 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3100 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3101 *) ac_file_in
="${ac_file}.in" ;;
3104 echo creating
$ac_file
3106 rm -f conftest.frag conftest.
in conftest.out
3107 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3108 cat $ac_file_inputs > conftest.
in
3112 # Transform confdefs.h into a sed script conftest.vals that substitutes
3113 # the proper values into config.h.in to produce config.h. And first:
3114 # Protect against being on the right side of a sed subst in config.status.
3115 # Protect against being in an unquoted here document in config.status.
3117 cat > conftest.hdr
<<\EOF
3120 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3124 sed -n -f conftest.hdr confdefs.h > conftest.vals
3127 # This sed command replaces #undef with comments. This is necessary, for
3128 # example, in the case of _POSIX_SOURCE, which is predefined and required
3129 # on some systems where configure will not decide to define it.
3130 cat >> conftest.vals <<\EOF
3131 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3134 # Break up conftest.vals because some shells have a limit on
3135 # the size of here documents, and old seds have small limits too.
3140 ac_lines=`grep -c . conftest.vals
`
3141 # grep -c gives empty output for an empty file on some AIX systems.
3142 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3143 # Write a limited-size here document to conftest.frag.
3144 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3145 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3147 sed -f conftest.frag conftest.in > conftest.out
3149 mv conftest.out conftest.in
3151 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3153 mv conftest.tail conftest.vals
3157 cat >> $CONFIG_STATUS <<\EOF
3158 rm -f conftest.frag conftest.h
3159 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3160 cat conftest.in >> conftest.h
3162 if cmp -s $ac_file conftest.h 2>/dev/null; then
3163 echo "$ac_file is unchanged"
3166 # Remove last slash and all that follows it. Not all systems have dirname.
3167 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3168 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3169 # The file is in a subdirectory.
3170 test ! -d "$ac_dir" && mkdir "$ac_dir"
3173 mv conftest.h $ac_file
3178 cat >> $CONFIG_STATUS <<EOF
3182 cat >> $CONFIG_STATUS <<\EOF
3183 test -z "$CONFIG_HEADER" || echo timestamp > stamp-h
3184 chmod +x guile-snarf
3187 chmod +x $CONFIG_STATUS
3188 rm -fr confdefs* $ac_clean_files
3189 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1