*** empty log message ***
[bpt/guile.git] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
17 ac_help="$ac_help
18 --enable-dynamic-linking Include support for dynamic linking"
19 ac_help="$ac_help
20 --enable-guile-debug Include internal debugging functions"
21 ac_help="$ac_help
22 --enable-shared build shared libraries [default=yes]
23 --enable-shared=PKGS only build shared libraries if the current package
24 appears as an element in the PKGS list"
25 ac_help="$ac_help
26 --enable-static build static libraries [default=yes]
27 --enable-static=PKGS only build shared libraries if the current package
28 appears as an element in the PKGS list"
29 ac_help="$ac_help
30 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
31 ac_help="$ac_help
32 --with-threads thread interface"
33
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
37 build=NONE
38 cache_file=./config.cache
39 exec_prefix=NONE
40 host=NONE
41 no_create=
42 nonopt=NONE
43 no_recursion=
44 prefix=NONE
45 program_prefix=NONE
46 program_suffix=NONE
47 program_transform_name=s,x,x,
48 silent=
49 site=
50 srcdir=
51 target=NONE
52 verbose=
53 x_includes=NONE
54 x_libraries=NONE
55 bindir='${exec_prefix}/bin'
56 sbindir='${exec_prefix}/sbin'
57 libexecdir='${exec_prefix}/libexec'
58 datadir='${prefix}/share'
59 sysconfdir='${prefix}/etc'
60 sharedstatedir='${prefix}/com'
61 localstatedir='${prefix}/var'
62 libdir='${exec_prefix}/lib'
63 includedir='${prefix}/include'
64 oldincludedir='/usr/include'
65 infodir='${prefix}/info'
66 mandir='${prefix}/man'
67
68 # Initialize some other variables.
69 subdirs=
70 MFLAGS= MAKEFLAGS=
71 # Maximum number of lines to put in a shell here document.
72 ac_max_here_lines=12
73
74 ac_prev=
75 for ac_option
76 do
77
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
81 ac_prev=
82 continue
83 fi
84
85 case "$ac_option" in
86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 *) ac_optarg= ;;
88 esac
89
90 # Accept the important Cygnus configure options, so we can diagnose typos.
91
92 case "$ac_option" in
93
94 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 ac_prev=bindir ;;
96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97 bindir="$ac_optarg" ;;
98
99 -build | --build | --buil | --bui | --bu)
100 ac_prev=build ;;
101 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102 build="$ac_optarg" ;;
103
104 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;;
110
111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 ac_prev=datadir ;;
113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 | --da=*)
115 datadir="$ac_optarg" ;;
116
117 -disable-* | --disable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 fi
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
125
126 -enable-* | --enable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 fi
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 case "$ac_option" in
134 *=*) ;;
135 *) ac_optarg=yes ;;
136 esac
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
138
139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141 | --exec | --exe | --ex)
142 ac_prev=exec_prefix ;;
143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145 | --exec=* | --exe=* | --ex=*)
146 exec_prefix="$ac_optarg" ;;
147
148 -gas | --gas | --ga | --g)
149 # Obsolete; use --with-gas.
150 with_gas=yes ;;
151
152 -help | --help | --hel | --he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
155 cat << EOF
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
158 Configuration:
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --version print the version of autoconf that created configure
164 Directory and file names:
165 --prefix=PREFIX install architecture-independent files in PREFIX
166 [$ac_default_prefix]
167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 [same as prefix]
169 --bindir=DIR user executables in DIR [EPREFIX/bin]
170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172 --datadir=DIR read-only architecture-independent data in DIR
173 [PREFIX/share]
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 [PREFIX/com]
177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179 --includedir=DIR C header files in DIR [PREFIX/include]
180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181 --infodir=DIR info documentation in DIR [PREFIX/info]
182 --mandir=DIR man documentation in DIR [PREFIX/man]
183 --srcdir=DIR find the sources in DIR [configure dir or ..]
184 --program-prefix=PREFIX prepend PREFIX to installed program names
185 --program-suffix=SUFFIX append SUFFIX to installed program names
186 --program-transform-name=PROGRAM
187 run sed PROGRAM on installed program names
188 EOF
189 cat << EOF
190 Host type:
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194 Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
201 EOF
202 if test -n "$ac_help"; then
203 echo "--enable and --with options recognized:$ac_help"
204 fi
205 exit 0 ;;
206
207 -host | --host | --hos | --ho)
208 ac_prev=host ;;
209 -host=* | --host=* | --hos=* | --ho=*)
210 host="$ac_optarg" ;;
211
212 -includedir | --includedir | --includedi | --included | --include \
213 | --includ | --inclu | --incl | --inc)
214 ac_prev=includedir ;;
215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216 | --includ=* | --inclu=* | --incl=* | --inc=*)
217 includedir="$ac_optarg" ;;
218
219 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 ac_prev=infodir ;;
221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222 infodir="$ac_optarg" ;;
223
224 -libdir | --libdir | --libdi | --libd)
225 ac_prev=libdir ;;
226 -libdir=* | --libdir=* | --libdi=* | --libd=*)
227 libdir="$ac_optarg" ;;
228
229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230 | --libexe | --libex | --libe)
231 ac_prev=libexecdir ;;
232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233 | --libexe=* | --libex=* | --libe=*)
234 libexecdir="$ac_optarg" ;;
235
236 -localstatedir | --localstatedir | --localstatedi | --localstated \
237 | --localstate | --localstat | --localsta | --localst \
238 | --locals | --local | --loca | --loc | --lo)
239 ac_prev=localstatedir ;;
240 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243 localstatedir="$ac_optarg" ;;
244
245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 ac_prev=mandir ;;
247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248 mandir="$ac_optarg" ;;
249
250 -nfp | --nfp | --nf)
251 # Obsolete; use --without-fp.
252 with_fp=no ;;
253
254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255 | --no-cr | --no-c)
256 no_create=yes ;;
257
258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260 no_recursion=yes ;;
261
262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264 | --oldin | --oldi | --old | --ol | --o)
265 ac_prev=oldincludedir ;;
266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269 oldincludedir="$ac_optarg" ;;
270
271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 ac_prev=prefix ;;
273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274 prefix="$ac_optarg" ;;
275
276 -program-prefix | --program-prefix | --program-prefi | --program-pref \
277 | --program-pre | --program-pr | --program-p)
278 ac_prev=program_prefix ;;
279 -program-prefix=* | --program-prefix=* | --program-prefi=* \
280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281 program_prefix="$ac_optarg" ;;
282
283 -program-suffix | --program-suffix | --program-suffi | --program-suff \
284 | --program-suf | --program-su | --program-s)
285 ac_prev=program_suffix ;;
286 -program-suffix=* | --program-suffix=* | --program-suffi=* \
287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288 program_suffix="$ac_optarg" ;;
289
290 -program-transform-name | --program-transform-name \
291 | --program-transform-nam | --program-transform-na \
292 | --program-transform-n | --program-transform- \
293 | --program-transform | --program-transfor \
294 | --program-transfo | --program-transf \
295 | --program-trans | --program-tran \
296 | --progr-tra | --program-tr | --program-t)
297 ac_prev=program_transform_name ;;
298 -program-transform-name=* | --program-transform-name=* \
299 | --program-transform-nam=* | --program-transform-na=* \
300 | --program-transform-n=* | --program-transform-=* \
301 | --program-transform=* | --program-transfor=* \
302 | --program-transfo=* | --program-transf=* \
303 | --program-trans=* | --program-tran=* \
304 | --progr-tra=* | --program-tr=* | --program-t=*)
305 program_transform_name="$ac_optarg" ;;
306
307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308 | -silent | --silent | --silen | --sile | --sil)
309 silent=yes ;;
310
311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 ac_prev=sbindir ;;
313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 | --sbi=* | --sb=*)
315 sbindir="$ac_optarg" ;;
316
317 -sharedstatedir | --sharedstatedir | --sharedstatedi \
318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319 | --sharedst | --shareds | --shared | --share | --shar \
320 | --sha | --sh)
321 ac_prev=sharedstatedir ;;
322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 | --sha=* | --sh=*)
326 sharedstatedir="$ac_optarg" ;;
327
328 -site | --site | --sit)
329 ac_prev=site ;;
330 -site=* | --site=* | --sit=*)
331 site="$ac_optarg" ;;
332
333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 ac_prev=srcdir ;;
335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336 srcdir="$ac_optarg" ;;
337
338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339 | --syscon | --sysco | --sysc | --sys | --sy)
340 ac_prev=sysconfdir ;;
341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343 sysconfdir="$ac_optarg" ;;
344
345 -target | --target | --targe | --targ | --tar | --ta | --t)
346 ac_prev=target ;;
347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348 target="$ac_optarg" ;;
349
350 -v | -verbose | --verbose | --verbos | --verbo | --verb)
351 verbose=yes ;;
352
353 -version | --version | --versio | --versi | --vers)
354 echo "configure generated by autoconf version 2.12"
355 exit 0 ;;
356
357 -with-* | --with-*)
358 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 fi
363 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 case "$ac_option" in
365 *=*) ;;
366 *) ac_optarg=yes ;;
367 esac
368 eval "with_${ac_package}='$ac_optarg'" ;;
369
370 -without-* | --without-*)
371 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 fi
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}=no" ;;
378
379 --x)
380 # Obsolete; use --with-x.
381 with_x=yes ;;
382
383 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384 | --x-incl | --x-inc | --x-in | --x-i)
385 ac_prev=x_includes ;;
386 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388 x_includes="$ac_optarg" ;;
389
390 -x-libraries | --x-libraries | --x-librarie | --x-librari \
391 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392 ac_prev=x_libraries ;;
393 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395 x_libraries="$ac_optarg" ;;
396
397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 ;;
399
400 *)
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 fi
404 if test "x$nonopt" != xNONE; then
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406 fi
407 nonopt="$ac_option"
408 ;;
409
410 esac
411 done
412
413 if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 fi
416
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418
419 # File descriptor usage:
420 # 0 standard input
421 # 1 file creation
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
428 exec 6>/dev/null
429 else
430 exec 6>&1
431 fi
432 exec 5>./config.log
433
434 echo "\
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
437 " 1>&5
438
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
441 ac_configure_args=
442 for ac_arg
443 do
444 case "$ac_arg" in
445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446 | --no-cr | --no-c) ;;
447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452 esac
453 done
454
455 # NLS nuisances.
456 # Only set these to C if already set. These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 echo > confdefs.h
469
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=Makefile.in
473
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476 ac_srcdir_defaulted=yes
477 # Try the directory containing this script, then its parent.
478 ac_prog=$0
479 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 srcdir=$ac_confdir
482 if test ! -r $srcdir/$ac_unique_file; then
483 srcdir=..
484 fi
485 else
486 ac_srcdir_defaulted=no
487 fi
488 if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 else
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 fi
494 fi
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE; then
500 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 else
502 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 fi
504 fi
505 for ac_site_file in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file"
508 . "$ac_site_file"
509 fi
510 done
511
512 if test -r "$cache_file"; then
513 echo "loading cache $cache_file"
514 . $cache_file
515 else
516 echo "creating cache $cache_file"
517 > $cache_file
518 fi
519
520 ac_ext=c
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp='$CPP $CPPFLAGS'
523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling=$ac_cv_prog_cc_cross
526
527 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
528 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530 ac_n= ac_c='
531 ' ac_t=' '
532 else
533 ac_n=-n ac_c= ac_t=
534 fi
535 else
536 ac_n= ac_c='\c' ac_t=
537 fi
538
539
540 . $srcdir/GUILE-VERSION
541 ac_aux_dir=
542 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
543 if test -f $ac_dir/install-sh; then
544 ac_aux_dir=$ac_dir
545 ac_install_sh="$ac_aux_dir/install-sh -c"
546 break
547 elif test -f $ac_dir/install.sh; then
548 ac_aux_dir=$ac_dir
549 ac_install_sh="$ac_aux_dir/install.sh -c"
550 break
551 fi
552 done
553 if test -z "$ac_aux_dir"; then
554 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
555 fi
556 ac_config_guess=$ac_aux_dir/config.guess
557 ac_config_sub=$ac_aux_dir/config.sub
558 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559
560 # Find a good install program. We prefer a C program (faster),
561 # so one script is as good as another. But avoid the broken or
562 # incompatible versions:
563 # SysV /etc/install, /usr/sbin/install
564 # SunOS /usr/etc/install
565 # IRIX /sbin/install
566 # AIX /bin/install
567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
569 # ./install, which can be erroneously created by make from ./install.sh.
570 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
571 echo "configure:572: checking for a BSD compatible install" >&5
572 if test -z "$INSTALL"; then
573 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
575 else
576 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
577 for ac_dir in $PATH; do
578 # Account for people who put trailing slashes in PATH elements.
579 case "$ac_dir/" in
580 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
581 *)
582 # OSF1 and SCO ODT 3.0 have their own names for install.
583 for ac_prog in ginstall installbsd scoinst install; do
584 if test -f $ac_dir/$ac_prog; then
585 if test $ac_prog = install &&
586 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
587 # AIX install. It has an incompatible calling convention.
588 # OSF/1 installbsd also uses dspmsg, but is usable.
589 :
590 else
591 ac_cv_path_install="$ac_dir/$ac_prog -c"
592 break 2
593 fi
594 fi
595 done
596 ;;
597 esac
598 done
599 IFS="$ac_save_IFS"
600
601 fi
602 if test "${ac_cv_path_install+set}" = set; then
603 INSTALL="$ac_cv_path_install"
604 else
605 # As a last resort, use the slow shell script. We don't cache a
606 # path for INSTALL within a source directory, because that will
607 # break other packages using the cache if that directory is
608 # removed, or if the path is relative.
609 INSTALL="$ac_install_sh"
610 fi
611 fi
612 echo "$ac_t""$INSTALL" 1>&6
613
614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
615 # It thinks the first close brace ends the variable substitution.
616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
617
618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
619
620
621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
622
623 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
624 echo "configure:625: checking whether build environment is sane" >&5
625 # Just in case
626 sleep 1
627 echo timestamp > conftestfile
628 # Do `set' in a subshell so we don't clobber the current shell's
629 # arguments. Must try -L first in case configure is actually a
630 # symlink; some systems play weird games with the mod time of symlinks
631 # (eg FreeBSD returns the mod time of the symlink's containing
632 # directory).
633 if (
634 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
635 if test "$*" = "X"; then
636 # -L didn't work.
637 set X `ls -t $srcdir/configure conftestfile`
638 fi
639 if test "$*" != "X $srcdir/configure conftestfile" \
640 && test "$*" != "X conftestfile $srcdir/configure"; then
641
642 # If neither matched, then we have a broken ls. This can happen
643 # if, for instance, CONFIG_SHELL is bash and it inherits a
644 # broken ls alias from the environment. This has actually
645 # happened. Such a system could not be considered "sane".
646 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
647 alias in your environment" 1>&2; exit 1; }
648 fi
649
650 test "$2" = conftestfile
651 )
652 then
653 # Ok.
654 :
655 else
656 { echo "configure: error: newly created file is older than distributed files!
657 Check your system clock" 1>&2; exit 1; }
658 fi
659 rm -f conftest*
660 echo "$ac_t""yes" 1>&6
661 if test "$program_transform_name" = s,x,x,; then
662 program_transform_name=
663 else
664 # Double any \ or $. echo might interpret backslashes.
665 cat <<\EOF_SED > conftestsed
666 s,\\,\\\\,g; s,\$,$$,g
667 EOF_SED
668 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
669 rm -f conftestsed
670 fi
671 test "$program_prefix" != NONE &&
672 program_transform_name="s,^,${program_prefix},; $program_transform_name"
673 # Use a double $ so make ignores it.
674 test "$program_suffix" != NONE &&
675 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
676
677 # sed with no file args requires a program.
678 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
679
680 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
681 echo "configure:682: checking whether ${MAKE-make} sets \${MAKE}" >&5
682 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
683 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
685 else
686 cat > conftestmake <<\EOF
687 all:
688 @echo 'ac_maketemp="${MAKE}"'
689 EOF
690 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
691 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
692 if test -n "$ac_maketemp"; then
693 eval ac_cv_prog_make_${ac_make}_set=yes
694 else
695 eval ac_cv_prog_make_${ac_make}_set=no
696 fi
697 rm -f conftestmake
698 fi
699 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
700 echo "$ac_t""yes" 1>&6
701 SET_MAKE=
702 else
703 echo "$ac_t""no" 1>&6
704 SET_MAKE="MAKE=${MAKE-make}"
705 fi
706
707
708 PACKAGE=$PACKAGE
709
710 VERSION=$VERSION
711
712 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
713 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
714 fi
715
716
717
718 missing_dir=`cd $ac_aux_dir && pwd`
719 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
720 echo "configure:721: checking for working aclocal" >&5
721 # Run test in a subshell; some versions of sh will print an error if
722 # an executable is not found, even if stderr is redirected.
723 # Redirect stdin to placate older versions of autoconf. Sigh.
724 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
725 ACLOCAL=aclocal
726 echo "$ac_t""found" 1>&6
727 else
728 ACLOCAL="$missing_dir/missing aclocal"
729 echo "$ac_t""missing" 1>&6
730 fi
731
732 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
733 echo "configure:734: checking for working autoconf" >&5
734 # Run test in a subshell; some versions of sh will print an error if
735 # an executable is not found, even if stderr is redirected.
736 # Redirect stdin to placate older versions of autoconf. Sigh.
737 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
738 AUTOCONF=autoconf
739 echo "$ac_t""found" 1>&6
740 else
741 AUTOCONF="$missing_dir/missing autoconf"
742 echo "$ac_t""missing" 1>&6
743 fi
744
745 echo $ac_n "checking for working automake""... $ac_c" 1>&6
746 echo "configure:747: checking for working automake" >&5
747 # Run test in a subshell; some versions of sh will print an error if
748 # an executable is not found, even if stderr is redirected.
749 # Redirect stdin to placate older versions of autoconf. Sigh.
750 if (automake --version) < /dev/null > /dev/null 2>&1; then
751 AUTOMAKE=automake
752 echo "$ac_t""found" 1>&6
753 else
754 AUTOMAKE="$missing_dir/missing automake"
755 echo "$ac_t""missing" 1>&6
756 fi
757
758 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
759 echo "configure:760: checking for working autoheader" >&5
760 # Run test in a subshell; some versions of sh will print an error if
761 # an executable is not found, even if stderr is redirected.
762 # Redirect stdin to placate older versions of autoconf. Sigh.
763 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
764 AUTOHEADER=autoheader
765 echo "$ac_t""found" 1>&6
766 else
767 AUTOHEADER="$missing_dir/missing autoheader"
768 echo "$ac_t""missing" 1>&6
769 fi
770
771 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
772 echo "configure:773: checking for working makeinfo" >&5
773 # Run test in a subshell; some versions of sh will print an error if
774 # an executable is not found, even if stderr is redirected.
775 # Redirect stdin to placate older versions of autoconf. Sigh.
776 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
777 MAKEINFO=makeinfo
778 echo "$ac_t""found" 1>&6
779 else
780 MAKEINFO="$missing_dir/missing makeinfo"
781 echo "$ac_t""missing" 1>&6
782 fi
783
784
785 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
786 echo "configure:787: checking whether to enable maintainer-specific portions of Makefiles" >&5
787 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
788 if test "${enable_maintainer_mode+set}" = set; then
789 enableval="$enable_maintainer_mode"
790 USE_MAINTAINER_MODE=$enableval
791 else
792 USE_MAINTAINER_MODE=no
793 fi
794
795 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
796 if test $USE_MAINTAINER_MODE = yes; then
797 MAINT=
798 else
799 MAINT='#M#'
800 fi
801
802
803
804
805
806
807 #--------------------------------------------------------------------
808 #
809 # User options
810 #
811 #--------------------------------------------------------------------
812
813 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
814 if test "${enable_dynamic_linking+set}" = set; then
815 enableval="$enable_dynamic_linking"
816 :
817 else
818 enable_dynamic_linking=yes
819 fi
820
821
822 # Check whether --enable-guile-debug or --disable-guile-debug was given.
823 if test "${enable_guile_debug+set}" = set; then
824 enableval="$enable_guile_debug"
825 :
826 fi
827
828 if test "$enableval" = y || test "$enableval" = yes; then
829 cat >> confdefs.h <<\EOF
830 #define GUILE_DEBUG 1
831 EOF
832
833 fi
834
835 cat >> confdefs.h <<\EOF
836 #define DEBUG_EXTENSIONS 1
837 EOF
838
839 cat >> confdefs.h <<\EOF
840 #define READER_EXTENSIONS 1
841 EOF
842
843
844 #--------------------------------------------------------------------
845
846 # Extract the first word of "gcc", so it can be a program name with args.
847 set dummy gcc; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
852 else
853 if test -n "$CC"; then
854 ac_cv_prog_CC="$CC" # Let the user override the test.
855 else
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
857 for ac_dir in $PATH; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 ac_cv_prog_CC="gcc"
861 break
862 fi
863 done
864 IFS="$ac_save_ifs"
865 fi
866 fi
867 CC="$ac_cv_prog_CC"
868 if test -n "$CC"; then
869 echo "$ac_t""$CC" 1>&6
870 else
871 echo "$ac_t""no" 1>&6
872 fi
873
874 if test -z "$CC"; then
875 # Extract the first word of "cc", so it can be a program name with args.
876 set dummy cc; ac_word=$2
877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
878 echo "configure:879: checking for $ac_word" >&5
879 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
881 else
882 if test -n "$CC"; then
883 ac_cv_prog_CC="$CC" # Let the user override the test.
884 else
885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
886 ac_prog_rejected=no
887 for ac_dir in $PATH; do
888 test -z "$ac_dir" && ac_dir=.
889 if test -f $ac_dir/$ac_word; then
890 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
891 ac_prog_rejected=yes
892 continue
893 fi
894 ac_cv_prog_CC="cc"
895 break
896 fi
897 done
898 IFS="$ac_save_ifs"
899 if test $ac_prog_rejected = yes; then
900 # We found a bogon in the path, so make sure we never use it.
901 set dummy $ac_cv_prog_CC
902 shift
903 if test $# -gt 0; then
904 # We chose a different compiler from the bogus one.
905 # However, it has the same basename, so the bogon will be chosen
906 # first if we set CC to just the basename; use the full file name.
907 shift
908 set dummy "$ac_dir/$ac_word" "$@"
909 shift
910 ac_cv_prog_CC="$@"
911 fi
912 fi
913 fi
914 fi
915 CC="$ac_cv_prog_CC"
916 if test -n "$CC"; then
917 echo "$ac_t""$CC" 1>&6
918 else
919 echo "$ac_t""no" 1>&6
920 fi
921
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
923 fi
924
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
927
928 ac_ext=c
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cc_cross
934
935 cat > conftest.$ac_ext <<EOF
936 #line 937 "configure"
937 #include "confdefs.h"
938 main(){return(0);}
939 EOF
940 if { (eval echo configure:941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
941 ac_cv_prog_cc_works=yes
942 # If we can't run a trivial program, we are probably using a cross compiler.
943 if (./conftest; exit) 2>/dev/null; then
944 ac_cv_prog_cc_cross=no
945 else
946 ac_cv_prog_cc_cross=yes
947 fi
948 else
949 echo "configure: failed program was:" >&5
950 cat conftest.$ac_ext >&5
951 ac_cv_prog_cc_works=no
952 fi
953 rm -fr conftest*
954
955 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
956 if test $ac_cv_prog_cc_works = no; then
957 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
958 fi
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
961 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
962 cross_compiling=$ac_cv_prog_cc_cross
963
964 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
965 echo "configure:966: checking whether we are using GNU C" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
968 else
969 cat > conftest.c <<EOF
970 #ifdef __GNUC__
971 yes;
972 #endif
973 EOF
974 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
975 ac_cv_prog_gcc=yes
976 else
977 ac_cv_prog_gcc=no
978 fi
979 fi
980
981 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
982
983 if test $ac_cv_prog_gcc = yes; then
984 GCC=yes
985 ac_test_CFLAGS="${CFLAGS+set}"
986 ac_save_CFLAGS="$CFLAGS"
987 CFLAGS=
988 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
989 echo "configure:990: checking whether ${CC-cc} accepts -g" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
992 else
993 echo 'void f(){}' > conftest.c
994 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
995 ac_cv_prog_cc_g=yes
996 else
997 ac_cv_prog_cc_g=no
998 fi
999 rm -f conftest*
1000
1001 fi
1002
1003 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1004 if test "$ac_test_CFLAGS" = set; then
1005 CFLAGS="$ac_save_CFLAGS"
1006 elif test $ac_cv_prog_cc_g = yes; then
1007 CFLAGS="-g -O2"
1008 else
1009 CFLAGS="-O2"
1010 fi
1011 else
1012 GCC=
1013 test "${CFLAGS+set}" = set || CFLAGS="-g"
1014 fi
1015
1016 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1017 echo "configure:1018: checking how to run the C preprocessor" >&5
1018 # On Suns, sometimes $CPP names a directory.
1019 if test -n "$CPP" && test -d "$CPP"; then
1020 CPP=
1021 fi
1022 if test -z "$CPP"; then
1023 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1025 else
1026 # This must be in double quotes, not single quotes, because CPP may get
1027 # substituted into the Makefile and "${CC-cc}" will confuse make.
1028 CPP="${CC-cc} -E"
1029 # On the NeXT, cc -E runs the code through the compiler's parser,
1030 # not just through cpp.
1031 cat > conftest.$ac_ext <<EOF
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1034 #include <assert.h>
1035 Syntax Error
1036 EOF
1037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1038 { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1039 ac_err=`grep -v '^ *+' conftest.out`
1040 if test -z "$ac_err"; then
1041 :
1042 else
1043 echo "$ac_err" >&5
1044 echo "configure: failed program was:" >&5
1045 cat conftest.$ac_ext >&5
1046 rm -rf conftest*
1047 CPP="${CC-cc} -E -traditional-cpp"
1048 cat > conftest.$ac_ext <<EOF
1049 #line 1050 "configure"
1050 #include "confdefs.h"
1051 #include <assert.h>
1052 Syntax Error
1053 EOF
1054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1055 { (eval echo configure:1056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1056 ac_err=`grep -v '^ *+' conftest.out`
1057 if test -z "$ac_err"; then
1058 :
1059 else
1060 echo "$ac_err" >&5
1061 echo "configure: failed program was:" >&5
1062 cat conftest.$ac_ext >&5
1063 rm -rf conftest*
1064 CPP=/lib/cpp
1065 fi
1066 rm -f conftest*
1067 fi
1068 rm -f conftest*
1069 ac_cv_prog_CPP="$CPP"
1070 fi
1071 CPP="$ac_cv_prog_CPP"
1072 else
1073 ac_cv_prog_CPP="$CPP"
1074 fi
1075 echo "$ac_t""$CPP" 1>&6
1076
1077 # Check whether --enable-shared or --disable-shared was given.
1078 if test "${enable_shared+set}" = set; then
1079 enableval="$enable_shared"
1080 p=${PACKAGE-default}
1081 case "$enableval" in
1082 yes) enable_shared=yes ;;
1083 no) enable_shared=no ;;
1084 *)
1085 enable_shared=no
1086 # Look at the argument we got. We use all the common list separators.
1087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1088 for pkg in $enableval; do
1089 if test "X$pkg" = "X$p"; then
1090 enable_shared=yes
1091 fi
1092 done
1093 IFS="$ac_save_ifs"
1094 ;;
1095 esac
1096 else
1097 enable_shared=yes
1098 fi
1099
1100 # Check whether --enable-static or --disable-static was given.
1101 if test "${enable_static+set}" = set; then
1102 enableval="$enable_static"
1103 p=${PACKAGE-default}
1104 case "$enableval" in
1105 yes) enable_static=yes ;;
1106 no) enable_static=no ;;
1107 *)
1108 enable_static=no
1109 # Look at the argument we got. We use all the common list separators.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1111 for pkg in $enableval; do
1112 if test "X$pkg" = "X$p"; then
1113 enable_static=yes
1114 fi
1115 done
1116 IFS="$ac_save_ifs"
1117 ;;
1118 esac
1119 else
1120 enable_static=yes
1121 fi
1122
1123
1124 # Make sure we can run config.sub.
1125 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1126 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1127 fi
1128
1129 echo $ac_n "checking host system type""... $ac_c" 1>&6
1130 echo "configure:1131: checking host system type" >&5
1131
1132 host_alias=$host
1133 case "$host_alias" in
1134 NONE)
1135 case $nonopt in
1136 NONE)
1137 if host_alias=`$ac_config_guess`; then :
1138 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1139 fi ;;
1140 *) host_alias=$nonopt ;;
1141 esac ;;
1142 esac
1143
1144 host=`$ac_config_sub $host_alias`
1145 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1146 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1147 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1148 echo "$ac_t""$host" 1>&6
1149
1150 # Extract the first word of "ranlib", so it can be a program name with args.
1151 set dummy ranlib; ac_word=$2
1152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153 echo "configure:1154: checking for $ac_word" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1156 else
1157 if test -n "$RANLIB"; then
1158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1159 else
1160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1161 for ac_dir in $PATH; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_RANLIB="ranlib"
1165 break
1166 fi
1167 done
1168 IFS="$ac_save_ifs"
1169 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1170 fi
1171 fi
1172 RANLIB="$ac_cv_prog_RANLIB"
1173 if test -n "$RANLIB"; then
1174 echo "$ac_t""$RANLIB" 1>&6
1175 else
1176 echo "$ac_t""no" 1>&6
1177 fi
1178
1179 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1180 if test "${with_gnu_ld+set}" = set; then
1181 withval="$with_gnu_ld"
1182 test "$withval" = no || with_gnu_ld=yes
1183 else
1184 with_gnu_ld=no
1185 fi
1186
1187
1188 ac_prog=ld
1189 if test "$ac_cv_prog_gcc" = yes; then
1190 # Check if gcc -print-prog-name=ld gives a path.
1191 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1192 echo "configure:1193: checking for ld used by GCC" >&5
1193 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1194 case "$ac_prog" in
1195 # Accept absolute paths.
1196 /* | A-Za-z:\\*)
1197 test -z "$LD" && LD="$ac_prog"
1198 ;;
1199 "")
1200 # If it fails, then pretend we aren't using GCC.
1201 ac_prog=ld
1202 ;;
1203 *)
1204 # If it is relative, then search for the first ld in PATH.
1205 with_gnu_ld=unknown
1206 ;;
1207 esac
1208 elif test "$with_gnu_ld" = yes; then
1209 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1210 echo "configure:1211: checking for GNU ld" >&5
1211 else
1212 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1213 echo "configure:1214: checking for non-GNU ld" >&5
1214 fi
1215 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 if test -z "$LD"; then
1219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1220 for ac_dir in $PATH; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f "$ac_dir/$ac_prog"; then
1223 ac_cv_path_LD="$ac_dir/$ac_prog"
1224 # Check to see if the program is GNU ld. I'd rather use --version,
1225 # but apparently some GNU ld's only accept -v.
1226 # Break only if it was the GNU/non-GNU ld that we prefer.
1227 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1228 test "$with_gnu_ld" != no && break
1229 else
1230 test "$with_gnu_ld" != yes && break
1231 fi
1232 fi
1233 done
1234 IFS="$ac_save_ifs"
1235 else
1236 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1237 fi
1238 fi
1239
1240 LD="$ac_cv_path_LD"
1241 if test -n "$LD"; then
1242 echo "$ac_t""$LD" 1>&6
1243 else
1244 echo "$ac_t""no" 1>&6
1245 fi
1246 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1247
1248 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1249 echo "configure:1250: checking if the linker ($LD) is GNU ld" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1254 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1255 ac_cv_prog_gnu_ld=yes
1256 else
1257 ac_cv_prog_gnu_ld=no
1258 fi
1259 fi
1260
1261 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1262
1263
1264 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1265 echo "configure:1266: checking for BSD-compatible nm" >&5
1266 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1268 else
1269 case "$NM" in
1270 /* | A-Za-z:\\*)
1271 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1272 ;;
1273 *)
1274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1275 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1276 test -z "$ac_dir" && ac_dir=.
1277 if test -f $ac_dir/nm; then
1278 # Check to see if the nm accepts a BSD-compat flag.
1279 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1280 # nm: unknown option "B" ignored
1281 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1282 ac_cv_path_NM="$ac_dir/nm -B"
1283 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1284 ac_cv_path_NM="$ac_dir/nm -p"
1285 else
1286 ac_cv_path_NM="$ac_dir/nm"
1287 fi
1288 break
1289 fi
1290 done
1291 IFS="$ac_save_ifs"
1292 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1293 ;;
1294 esac
1295 fi
1296
1297 NM="$ac_cv_path_NM"
1298 echo "$ac_t""$NM" 1>&6
1299
1300
1301 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1302 echo "configure:1303: checking whether ln -s works" >&5
1303 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1305 else
1306 rm -f conftestdata
1307 if ln -s X conftestdata 2>/dev/null
1308 then
1309 rm -f conftestdata
1310 ac_cv_prog_LN_S="ln -s"
1311 else
1312 ac_cv_prog_LN_S=ln
1313 fi
1314 fi
1315 LN_S="$ac_cv_prog_LN_S"
1316 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1317 echo "$ac_t""yes" 1>&6
1318 else
1319 echo "$ac_t""no" 1>&6
1320 fi
1321
1322 # Always use our own libtool.
1323 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1324
1325 # Check for any special flags to pass to ltconfig.
1326 libtool_flags=
1327 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1328 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1329 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1330 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1331 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1332
1333 # Some flags need to be propagated to the compiler or linker for good
1334 # libtool support.
1335 case "$host" in
1336 *-*-irix6*)
1337 # Find out which ABI we are using.
1338 echo '#line 1339 "configure"' > conftest.$ac_ext
1339 if { (eval echo configure:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1340 case "`/usr/bin/file conftest.o`" in
1341 *32-bit*)
1342 LD="${LD-ld} -32"
1343 ;;
1344 *N32*)
1345 LD="${LD-ld} -n32"
1346 ;;
1347 *64-bit*)
1348 LD="${LD-ld} -64"
1349 ;;
1350 esac
1351 fi
1352 rm -rf conftest*
1353 ;;
1354
1355 *-*-sco3.2v5*)
1356 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1357 CFLAGS="$CFLAGS -belf"
1358 ;;
1359 esac
1360
1361 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1362 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1363 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1364 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1365 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1366 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1367
1368
1369 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1370 echo "configure:1371: checking for AIX" >&5
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 #ifdef _AIX
1375 yes
1376 #endif
1377
1378 EOF
1379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1380 egrep "yes" >/dev/null 2>&1; then
1381 rm -rf conftest*
1382 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1383 #define _ALL_SOURCE 1
1384 EOF
1385
1386 else
1387 rm -rf conftest*
1388 echo "$ac_t""no" 1>&6
1389 fi
1390 rm -f conftest*
1391
1392
1393 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1394 echo "configure:1395: checking for POSIXized ISC" >&5
1395 if test -d /etc/conf/kconfig.d &&
1396 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1397 then
1398 echo "$ac_t""yes" 1>&6
1399 ISC=yes # If later tests want to check for ISC.
1400 cat >> confdefs.h <<\EOF
1401 #define _POSIX_SOURCE 1
1402 EOF
1403
1404 if test "$GCC" = yes; then
1405 CC="$CC -posix"
1406 else
1407 CC="$CC -Xp"
1408 fi
1409 else
1410 echo "$ac_t""no" 1>&6
1411 ISC=
1412 fi
1413
1414 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1415 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1416 echo "configure:1417: checking for minix/config.h" >&5
1417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1419 else
1420 cat > conftest.$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1423 #include <minix/config.h>
1424 EOF
1425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1426 { (eval echo configure:1427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1427 ac_err=`grep -v '^ *+' conftest.out`
1428 if test -z "$ac_err"; then
1429 rm -rf conftest*
1430 eval "ac_cv_header_$ac_safe=yes"
1431 else
1432 echo "$ac_err" >&5
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1435 rm -rf conftest*
1436 eval "ac_cv_header_$ac_safe=no"
1437 fi
1438 rm -f conftest*
1439 fi
1440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1442 MINIX=yes
1443 else
1444 echo "$ac_t""no" 1>&6
1445 MINIX=
1446 fi
1447
1448 if test "$MINIX" = yes; then
1449 cat >> confdefs.h <<\EOF
1450 #define _POSIX_SOURCE 1
1451 EOF
1452
1453 cat >> confdefs.h <<\EOF
1454 #define _POSIX_1_SOURCE 2
1455 EOF
1456
1457 cat >> confdefs.h <<\EOF
1458 #define _MINIX 1
1459 EOF
1460
1461 fi
1462
1463
1464 echo $ac_n "checking for working const""... $ac_c" 1>&6
1465 echo "configure:1466: checking for working const" >&5
1466 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1468 else
1469 cat > conftest.$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1472
1473 int main() {
1474
1475 /* Ultrix mips cc rejects this. */
1476 typedef int charset[2]; const charset x;
1477 /* SunOS 4.1.1 cc rejects this. */
1478 char const *const *ccp;
1479 char **p;
1480 /* NEC SVR4.0.2 mips cc rejects this. */
1481 struct point {int x, y;};
1482 static struct point const zero = {0,0};
1483 /* AIX XL C 1.02.0.0 rejects this.
1484 It does not let you subtract one const X* pointer from another in an arm
1485 of an if-expression whose if-part is not a constant expression */
1486 const char *g = "string";
1487 ccp = &g + (g ? g-g : 0);
1488 /* HPUX 7.0 cc rejects these. */
1489 ++ccp;
1490 p = (char**) ccp;
1491 ccp = (char const *const *) p;
1492 { /* SCO 3.2v4 cc rejects this. */
1493 char *t;
1494 char const *s = 0 ? (char *) 0 : (char const *) 0;
1495
1496 *t++ = 0;
1497 }
1498 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1499 int x[] = {25, 17};
1500 const int *foo = &x[0];
1501 ++foo;
1502 }
1503 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1504 typedef const int *iptr;
1505 iptr p = 0;
1506 ++p;
1507 }
1508 { /* AIX XL C 1.02.0.0 rejects this saying
1509 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1510 struct s { int j; const int *ap[3]; };
1511 struct s *b; b->j = 5;
1512 }
1513 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1514 const int foo = 10;
1515 }
1516
1517 ; return 0; }
1518 EOF
1519 if { (eval echo configure:1520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1520 rm -rf conftest*
1521 ac_cv_c_const=yes
1522 else
1523 echo "configure: failed program was:" >&5
1524 cat conftest.$ac_ext >&5
1525 rm -rf conftest*
1526 ac_cv_c_const=no
1527 fi
1528 rm -f conftest*
1529 fi
1530
1531 echo "$ac_t""$ac_cv_c_const" 1>&6
1532 if test $ac_cv_c_const = no; then
1533 cat >> confdefs.h <<\EOF
1534 #define const
1535 EOF
1536
1537 fi
1538
1539
1540 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1541 echo "configure:1542: checking for ANSI C header files" >&5
1542 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1544 else
1545 cat > conftest.$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1548 #include <stdlib.h>
1549 #include <stdarg.h>
1550 #include <string.h>
1551 #include <float.h>
1552 EOF
1553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1554 { (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1555 ac_err=`grep -v '^ *+' conftest.out`
1556 if test -z "$ac_err"; then
1557 rm -rf conftest*
1558 ac_cv_header_stdc=yes
1559 else
1560 echo "$ac_err" >&5
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1563 rm -rf conftest*
1564 ac_cv_header_stdc=no
1565 fi
1566 rm -f conftest*
1567
1568 if test $ac_cv_header_stdc = yes; then
1569 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1573 #include <string.h>
1574 EOF
1575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1576 egrep "memchr" >/dev/null 2>&1; then
1577 :
1578 else
1579 rm -rf conftest*
1580 ac_cv_header_stdc=no
1581 fi
1582 rm -f conftest*
1583
1584 fi
1585
1586 if test $ac_cv_header_stdc = yes; then
1587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 #include <stdlib.h>
1592 EOF
1593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1594 egrep "free" >/dev/null 2>&1; then
1595 :
1596 else
1597 rm -rf conftest*
1598 ac_cv_header_stdc=no
1599 fi
1600 rm -f conftest*
1601
1602 fi
1603
1604 if test $ac_cv_header_stdc = yes; then
1605 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1606 if test "$cross_compiling" = yes; then
1607 :
1608 else
1609 cat > conftest.$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1612 #include <ctype.h>
1613 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1614 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1615 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1616 int main () { int i; for (i = 0; i < 256; i++)
1617 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1618 exit (0); }
1619
1620 EOF
1621 if { (eval echo configure:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1622 then
1623 :
1624 else
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1627 rm -fr conftest*
1628 ac_cv_header_stdc=no
1629 fi
1630 rm -fr conftest*
1631 fi
1632
1633 fi
1634 fi
1635
1636 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1637 if test $ac_cv_header_stdc = yes; then
1638 cat >> confdefs.h <<\EOF
1639 #define STDC_HEADERS 1
1640 EOF
1641
1642 fi
1643
1644 ac_header_dirent=no
1645 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1646 do
1647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1648 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1649 echo "configure:1650: checking for $ac_hdr that defines DIR" >&5
1650 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1652 else
1653 cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1656 #include <sys/types.h>
1657 #include <$ac_hdr>
1658 int main() {
1659 DIR *dirp = 0;
1660 ; return 0; }
1661 EOF
1662 if { (eval echo configure:1663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1663 rm -rf conftest*
1664 eval "ac_cv_header_dirent_$ac_safe=yes"
1665 else
1666 echo "configure: failed program was:" >&5
1667 cat conftest.$ac_ext >&5
1668 rm -rf conftest*
1669 eval "ac_cv_header_dirent_$ac_safe=no"
1670 fi
1671 rm -f conftest*
1672 fi
1673 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1674 echo "$ac_t""yes" 1>&6
1675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1676 cat >> confdefs.h <<EOF
1677 #define $ac_tr_hdr 1
1678 EOF
1679 ac_header_dirent=$ac_hdr; break
1680 else
1681 echo "$ac_t""no" 1>&6
1682 fi
1683 done
1684 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1685 if test $ac_header_dirent = dirent.h; then
1686 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1687 echo "configure:1688: checking for opendir in -ldir" >&5
1688 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1691 else
1692 ac_save_LIBS="$LIBS"
1693 LIBS="-ldir $LIBS"
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1697 /* Override any gcc2 internal prototype to avoid an error. */
1698 /* We use char because int might match the return type of a gcc2
1699 builtin and then its argument prototype would still apply. */
1700 char opendir();
1701
1702 int main() {
1703 opendir()
1704 ; return 0; }
1705 EOF
1706 if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1707 rm -rf conftest*
1708 eval "ac_cv_lib_$ac_lib_var=yes"
1709 else
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1712 rm -rf conftest*
1713 eval "ac_cv_lib_$ac_lib_var=no"
1714 fi
1715 rm -f conftest*
1716 LIBS="$ac_save_LIBS"
1717
1718 fi
1719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1720 echo "$ac_t""yes" 1>&6
1721 LIBS="$LIBS -ldir"
1722 else
1723 echo "$ac_t""no" 1>&6
1724 fi
1725
1726 else
1727 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1728 echo "configure:1729: checking for opendir in -lx" >&5
1729 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1732 else
1733 ac_save_LIBS="$LIBS"
1734 LIBS="-lx $LIBS"
1735 cat > conftest.$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1738 /* Override any gcc2 internal prototype to avoid an error. */
1739 /* We use char because int might match the return type of a gcc2
1740 builtin and then its argument prototype would still apply. */
1741 char opendir();
1742
1743 int main() {
1744 opendir()
1745 ; return 0; }
1746 EOF
1747 if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1748 rm -rf conftest*
1749 eval "ac_cv_lib_$ac_lib_var=yes"
1750 else
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1753 rm -rf conftest*
1754 eval "ac_cv_lib_$ac_lib_var=no"
1755 fi
1756 rm -f conftest*
1757 LIBS="$ac_save_LIBS"
1758
1759 fi
1760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1761 echo "$ac_t""yes" 1>&6
1762 LIBS="$LIBS -lx"
1763 else
1764 echo "$ac_t""no" 1>&6
1765 fi
1766
1767 fi
1768
1769 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1770 echo "configure:1771: checking whether time.h and sys/time.h may both be included" >&5
1771 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1773 else
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1777 #include <sys/types.h>
1778 #include <sys/time.h>
1779 #include <time.h>
1780 int main() {
1781 struct tm *tp;
1782 ; return 0; }
1783 EOF
1784 if { (eval echo configure:1785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1785 rm -rf conftest*
1786 ac_cv_header_time=yes
1787 else
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1790 rm -rf conftest*
1791 ac_cv_header_time=no
1792 fi
1793 rm -f conftest*
1794 fi
1795
1796 echo "$ac_t""$ac_cv_header_time" 1>&6
1797 if test $ac_cv_header_time = yes; then
1798 cat >> confdefs.h <<\EOF
1799 #define TIME_WITH_SYS_TIME 1
1800 EOF
1801
1802 fi
1803
1804 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1805 echo "configure:1806: checking for sys/wait.h that is POSIX.1 compatible" >&5
1806 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1808 else
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1812 #include <sys/types.h>
1813 #include <sys/wait.h>
1814 #ifndef WEXITSTATUS
1815 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1816 #endif
1817 #ifndef WIFEXITED
1818 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1819 #endif
1820 int main() {
1821 int s;
1822 wait (&s);
1823 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1824 ; return 0; }
1825 EOF
1826 if { (eval echo configure:1827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1827 rm -rf conftest*
1828 ac_cv_header_sys_wait_h=yes
1829 else
1830 echo "configure: failed program was:" >&5
1831 cat conftest.$ac_ext >&5
1832 rm -rf conftest*
1833 ac_cv_header_sys_wait_h=no
1834 fi
1835 rm -f conftest*
1836 fi
1837
1838 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1839 if test $ac_cv_header_sys_wait_h = yes; then
1840 cat >> confdefs.h <<\EOF
1841 #define HAVE_SYS_WAIT_H 1
1842 EOF
1843
1844 fi
1845
1846 for ac_hdr in libc.h limits.h malloc.h memory.h string.h regex.h rxposix.h rx/rxposix.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/utime.h time.h unistd.h utime.h
1847 do
1848 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1850 echo "configure:1851: checking for $ac_hdr" >&5
1851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1853 else
1854 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1857 #include <$ac_hdr>
1858 EOF
1859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1860 { (eval echo configure:1861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1861 ac_err=`grep -v '^ *+' conftest.out`
1862 if test -z "$ac_err"; then
1863 rm -rf conftest*
1864 eval "ac_cv_header_$ac_safe=yes"
1865 else
1866 echo "$ac_err" >&5
1867 echo "configure: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1869 rm -rf conftest*
1870 eval "ac_cv_header_$ac_safe=no"
1871 fi
1872 rm -f conftest*
1873 fi
1874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1875 echo "$ac_t""yes" 1>&6
1876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1877 cat >> confdefs.h <<EOF
1878 #define $ac_tr_hdr 1
1879 EOF
1880
1881 else
1882 echo "$ac_t""no" 1>&6
1883 fi
1884 done
1885
1886
1887 for ac_hdr in libc.h unistd.h
1888 do
1889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1891 echo "configure:1892: checking for $ac_hdr" >&5
1892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1894 else
1895 cat > conftest.$ac_ext <<EOF
1896 #line 1897 "configure"
1897 #include "confdefs.h"
1898 #include <$ac_hdr>
1899 EOF
1900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1901 { (eval echo configure:1902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1902 ac_err=`grep -v '^ *+' conftest.out`
1903 if test -z "$ac_err"; then
1904 rm -rf conftest*
1905 eval "ac_cv_header_$ac_safe=yes"
1906 else
1907 echo "$ac_err" >&5
1908 echo "configure: failed program was:" >&5
1909 cat conftest.$ac_ext >&5
1910 rm -rf conftest*
1911 eval "ac_cv_header_$ac_safe=no"
1912 fi
1913 rm -f conftest*
1914 fi
1915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1916 echo "$ac_t""yes" 1>&6
1917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1918 cat >> confdefs.h <<EOF
1919 #define $ac_tr_hdr 1
1920 EOF
1921
1922 else
1923 echo "$ac_t""no" 1>&6
1924 fi
1925 done
1926
1927 echo $ac_n "checking "whether libc.h and unistd.h can be included together"""... $ac_c" 1>&6
1928 echo "configure:1929: checking "whether libc.h and unistd.h can be included together"" >&5
1929 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1931 else
1932
1933 if test "$ac_cv_header_libc_h" = "no"; then
1934 guile_cv_header_libc_with_unistd="no"
1935 elif test "$ac_cv_header_unistd.h" = "no"; then
1936 guile_cv_header_libc_with_unistd="yes"
1937 else
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1941
1942 # include <libc.h>
1943 # include <unistd.h>
1944
1945 int main() {
1946
1947 ; return 0; }
1948 EOF
1949 if { (eval echo configure:1950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1950 rm -rf conftest*
1951 guile_cv_header_libc_with_unistd=yes
1952 else
1953 echo "configure: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1955 rm -rf conftest*
1956 guile_cv_header_libc_with_unistd=no
1957
1958 fi
1959 rm -f conftest*
1960 fi
1961
1962
1963 fi
1964
1965 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
1966 if test "$guile_cv_header_libc_with_unistd" = yes; then
1967 cat >> confdefs.h <<\EOF
1968 #define LIBC_H_WITH_UNISTD_H 1
1969 EOF
1970
1971 fi
1972
1973
1974
1975 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1976 echo "configure:1977: checking for uid_t in sys/types.h" >&5
1977 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1979 else
1980 cat > conftest.$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1983 #include <sys/types.h>
1984 EOF
1985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1986 egrep "uid_t" >/dev/null 2>&1; then
1987 rm -rf conftest*
1988 ac_cv_type_uid_t=yes
1989 else
1990 rm -rf conftest*
1991 ac_cv_type_uid_t=no
1992 fi
1993 rm -f conftest*
1994
1995 fi
1996
1997 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1998 if test $ac_cv_type_uid_t = no; then
1999 cat >> confdefs.h <<\EOF
2000 #define uid_t int
2001 EOF
2002
2003 cat >> confdefs.h <<\EOF
2004 #define gid_t int
2005 EOF
2006
2007 fi
2008
2009 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2010 echo "configure:2011: checking type of array argument to getgroups" >&5
2011 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2013 else
2014 if test "$cross_compiling" = yes; then
2015 ac_cv_type_getgroups=cross
2016 else
2017 cat > conftest.$ac_ext <<EOF
2018 #line 2019 "configure"
2019 #include "confdefs.h"
2020
2021 /* Thanks to Mike Rendell for this test. */
2022 #include <sys/types.h>
2023 #define NGID 256
2024 #undef MAX
2025 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2026 main()
2027 {
2028 gid_t gidset[NGID];
2029 int i, n;
2030 union { gid_t gval; long lval; } val;
2031
2032 val.lval = -1;
2033 for (i = 0; i < NGID; i++)
2034 gidset[i] = val.gval;
2035 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2036 gidset);
2037 /* Exit non-zero if getgroups seems to require an array of ints. This
2038 happens when gid_t is short but getgroups modifies an array of ints. */
2039 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2040 }
2041
2042 EOF
2043 if { (eval echo configure:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2044 then
2045 ac_cv_type_getgroups=gid_t
2046 else
2047 echo "configure: failed program was:" >&5
2048 cat conftest.$ac_ext >&5
2049 rm -fr conftest*
2050 ac_cv_type_getgroups=int
2051 fi
2052 rm -fr conftest*
2053 fi
2054
2055 if test $ac_cv_type_getgroups = cross; then
2056 cat > conftest.$ac_ext <<EOF
2057 #line 2058 "configure"
2058 #include "confdefs.h"
2059 #include <unistd.h>
2060 EOF
2061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2062 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2063 rm -rf conftest*
2064 ac_cv_type_getgroups=gid_t
2065 else
2066 rm -rf conftest*
2067 ac_cv_type_getgroups=int
2068 fi
2069 rm -f conftest*
2070
2071 fi
2072 fi
2073
2074 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2075 cat >> confdefs.h <<EOF
2076 #define GETGROUPS_T $ac_cv_type_getgroups
2077 EOF
2078
2079
2080 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2081 echo "configure:2082: checking return type of signal handlers" >&5
2082 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2084 else
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2088 #include <sys/types.h>
2089 #include <signal.h>
2090 #ifdef signal
2091 #undef signal
2092 #endif
2093 #ifdef __cplusplus
2094 extern "C" void (*signal (int, void (*)(int)))(int);
2095 #else
2096 void (*signal ()) ();
2097 #endif
2098
2099 int main() {
2100 int i;
2101 ; return 0; }
2102 EOF
2103 if { (eval echo configure:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2104 rm -rf conftest*
2105 ac_cv_type_signal=void
2106 else
2107 echo "configure: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 rm -rf conftest*
2110 ac_cv_type_signal=int
2111 fi
2112 rm -f conftest*
2113 fi
2114
2115 echo "$ac_t""$ac_cv_type_signal" 1>&6
2116 cat >> confdefs.h <<EOF
2117 #define RETSIGTYPE $ac_cv_type_signal
2118 EOF
2119
2120
2121 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2122 echo "configure:2123: checking for mode_t" >&5
2123 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2125 else
2126 cat > conftest.$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2129 #include <sys/types.h>
2130 #if STDC_HEADERS
2131 #include <stdlib.h>
2132 #include <stddef.h>
2133 #endif
2134 EOF
2135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2136 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2137 rm -rf conftest*
2138 ac_cv_type_mode_t=yes
2139 else
2140 rm -rf conftest*
2141 ac_cv_type_mode_t=no
2142 fi
2143 rm -f conftest*
2144
2145 fi
2146 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2147 if test $ac_cv_type_mode_t = no; then
2148 cat >> confdefs.h <<\EOF
2149 #define mode_t int
2150 EOF
2151
2152 fi
2153
2154
2155 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2156 echo "configure:2157: checking for main in -lm" >&5
2157 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
2158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2160 else
2161 ac_save_LIBS="$LIBS"
2162 LIBS="-lm $LIBS"
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2166
2167 int main() {
2168 main()
2169 ; return 0; }
2170 EOF
2171 if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2172 rm -rf conftest*
2173 eval "ac_cv_lib_$ac_lib_var=yes"
2174 else
2175 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2177 rm -rf conftest*
2178 eval "ac_cv_lib_$ac_lib_var=no"
2179 fi
2180 rm -f conftest*
2181 LIBS="$ac_save_LIBS"
2182
2183 fi
2184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2185 echo "$ac_t""yes" 1>&6
2186 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2188 cat >> confdefs.h <<EOF
2189 #define $ac_tr_lib 1
2190 EOF
2191
2192 LIBS="-lm $LIBS"
2193
2194 else
2195 echo "$ac_t""no" 1>&6
2196 fi
2197
2198 for ac_func in gethostbyname
2199 do
2200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2201 echo "configure:2202: checking for $ac_func" >&5
2202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2204 else
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2208 /* System header to define __stub macros and hopefully few prototypes,
2209 which can conflict with char $ac_func(); below. */
2210 #include <assert.h>
2211 /* Override any gcc2 internal prototype to avoid an error. */
2212 /* We use char because int might match the return type of a gcc2
2213 builtin and then its argument prototype would still apply. */
2214 char $ac_func();
2215
2216 int main() {
2217
2218 /* The GNU C library defines this for functions which it implements
2219 to always fail with ENOSYS. Some functions are actually named
2220 something starting with __ and the normal name is an alias. */
2221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2222 choke me
2223 #else
2224 $ac_func();
2225 #endif
2226
2227 ; return 0; }
2228 EOF
2229 if { (eval echo configure:2230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2230 rm -rf conftest*
2231 eval "ac_cv_func_$ac_func=yes"
2232 else
2233 echo "configure: failed program was:" >&5
2234 cat conftest.$ac_ext >&5
2235 rm -rf conftest*
2236 eval "ac_cv_func_$ac_func=no"
2237 fi
2238 rm -f conftest*
2239 fi
2240
2241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2242 echo "$ac_t""yes" 1>&6
2243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2244 cat >> confdefs.h <<EOF
2245 #define $ac_tr_func 1
2246 EOF
2247
2248 else
2249 echo "$ac_t""no" 1>&6
2250 fi
2251 done
2252
2253 if test $ac_cv_func_gethostbyname = no; then
2254 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2255 echo "configure:2256: checking for gethostbyname in -lnsl" >&5
2256 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2259 else
2260 ac_save_LIBS="$LIBS"
2261 LIBS="-lnsl $LIBS"
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 /* Override any gcc2 internal prototype to avoid an error. */
2266 /* We use char because int might match the return type of a gcc2
2267 builtin and then its argument prototype would still apply. */
2268 char gethostbyname();
2269
2270 int main() {
2271 gethostbyname()
2272 ; return 0; }
2273 EOF
2274 if { (eval echo configure:2275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2275 rm -rf conftest*
2276 eval "ac_cv_lib_$ac_lib_var=yes"
2277 else
2278 echo "configure: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2280 rm -rf conftest*
2281 eval "ac_cv_lib_$ac_lib_var=no"
2282 fi
2283 rm -f conftest*
2284 LIBS="$ac_save_LIBS"
2285
2286 fi
2287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2288 echo "$ac_t""yes" 1>&6
2289 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2290 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2291 cat >> confdefs.h <<EOF
2292 #define $ac_tr_lib 1
2293 EOF
2294
2295 LIBS="-lnsl $LIBS"
2296
2297 else
2298 echo "$ac_t""no" 1>&6
2299 fi
2300
2301 fi
2302 for ac_func in connect
2303 do
2304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2305 echo "configure:2306: checking for $ac_func" >&5
2306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2308 else
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 /* System header to define __stub macros and hopefully few prototypes,
2313 which can conflict with char $ac_func(); below. */
2314 #include <assert.h>
2315 /* Override any gcc2 internal prototype to avoid an error. */
2316 /* We use char because int might match the return type of a gcc2
2317 builtin and then its argument prototype would still apply. */
2318 char $ac_func();
2319
2320 int main() {
2321
2322 /* The GNU C library defines this for functions which it implements
2323 to always fail with ENOSYS. Some functions are actually named
2324 something starting with __ and the normal name is an alias. */
2325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2326 choke me
2327 #else
2328 $ac_func();
2329 #endif
2330
2331 ; return 0; }
2332 EOF
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2334 rm -rf conftest*
2335 eval "ac_cv_func_$ac_func=yes"
2336 else
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2339 rm -rf conftest*
2340 eval "ac_cv_func_$ac_func=no"
2341 fi
2342 rm -f conftest*
2343 fi
2344
2345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2346 echo "$ac_t""yes" 1>&6
2347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2348 cat >> confdefs.h <<EOF
2349 #define $ac_tr_func 1
2350 EOF
2351
2352 else
2353 echo "$ac_t""no" 1>&6
2354 fi
2355 done
2356
2357 if test $ac_cv_func_connect = no; then
2358 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2359 echo "configure:2360: checking for connect in -lsocket" >&5
2360 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2363 else
2364 ac_save_LIBS="$LIBS"
2365 LIBS="-lsocket $LIBS"
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 /* Override any gcc2 internal prototype to avoid an error. */
2370 /* We use char because int might match the return type of a gcc2
2371 builtin and then its argument prototype would still apply. */
2372 char connect();
2373
2374 int main() {
2375 connect()
2376 ; return 0; }
2377 EOF
2378 if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2379 rm -rf conftest*
2380 eval "ac_cv_lib_$ac_lib_var=yes"
2381 else
2382 echo "configure: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2384 rm -rf conftest*
2385 eval "ac_cv_lib_$ac_lib_var=no"
2386 fi
2387 rm -f conftest*
2388 LIBS="$ac_save_LIBS"
2389
2390 fi
2391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2392 echo "$ac_t""yes" 1>&6
2393 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2395 cat >> confdefs.h <<EOF
2396 #define $ac_tr_lib 1
2397 EOF
2398
2399 LIBS="-lsocket $LIBS"
2400
2401 else
2402 echo "$ac_t""no" 1>&6
2403 fi
2404
2405 fi
2406 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
2407 echo "configure:2408: checking for tgoto in -ltermcap" >&5
2408 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
2409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2411 else
2412 ac_save_LIBS="$LIBS"
2413 LIBS="-ltermcap $LIBS"
2414 cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2417 /* Override any gcc2 internal prototype to avoid an error. */
2418 /* We use char because int might match the return type of a gcc2
2419 builtin and then its argument prototype would still apply. */
2420 char tgoto();
2421
2422 int main() {
2423 tgoto()
2424 ; return 0; }
2425 EOF
2426 if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2427 rm -rf conftest*
2428 eval "ac_cv_lib_$ac_lib_var=yes"
2429 else
2430 echo "configure: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
2432 rm -rf conftest*
2433 eval "ac_cv_lib_$ac_lib_var=no"
2434 fi
2435 rm -f conftest*
2436 LIBS="$ac_save_LIBS"
2437
2438 fi
2439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2440 echo "$ac_t""yes" 1>&6
2441 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2442 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2443 cat >> confdefs.h <<EOF
2444 #define $ac_tr_lib 1
2445 EOF
2446
2447 LIBS="-ltermcap $LIBS"
2448
2449 else
2450 echo "$ac_t""no" 1>&6
2451 fi
2452
2453 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2454 echo "configure:2455: checking for readline in -lreadline" >&5
2455 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2458 else
2459 ac_save_LIBS="$LIBS"
2460 LIBS="-lreadline $LIBS"
2461 cat > conftest.$ac_ext <<EOF
2462 #line 2463 "configure"
2463 #include "confdefs.h"
2464 /* Override any gcc2 internal prototype to avoid an error. */
2465 /* We use char because int might match the return type of a gcc2
2466 builtin and then its argument prototype would still apply. */
2467 char readline();
2468
2469 int main() {
2470 readline()
2471 ; return 0; }
2472 EOF
2473 if { (eval echo configure:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2474 rm -rf conftest*
2475 eval "ac_cv_lib_$ac_lib_var=yes"
2476 else
2477 echo "configure: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 rm -rf conftest*
2480 eval "ac_cv_lib_$ac_lib_var=no"
2481 fi
2482 rm -f conftest*
2483 LIBS="$ac_save_LIBS"
2484
2485 fi
2486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2487 echo "$ac_t""yes" 1>&6
2488 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2489 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2490 cat >> confdefs.h <<EOF
2491 #define $ac_tr_lib 1
2492 EOF
2493
2494 LIBS="-lreadline $LIBS"
2495
2496 else
2497 echo "$ac_t""no" 1>&6
2498 fi
2499
2500 for ac_func in rl_getc_function rl_clear_signals rl_cleanup_after_signal
2501 do
2502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_func" >&5
2504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2506 else
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2510 /* System header to define __stub macros and hopefully few prototypes,
2511 which can conflict with char $ac_func(); below. */
2512 #include <assert.h>
2513 /* Override any gcc2 internal prototype to avoid an error. */
2514 /* We use char because int might match the return type of a gcc2
2515 builtin and then its argument prototype would still apply. */
2516 char $ac_func();
2517
2518 int main() {
2519
2520 /* The GNU C library defines this for functions which it implements
2521 to always fail with ENOSYS. Some functions are actually named
2522 something starting with __ and the normal name is an alias. */
2523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2524 choke me
2525 #else
2526 $ac_func();
2527 #endif
2528
2529 ; return 0; }
2530 EOF
2531 if { (eval echo configure:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2532 rm -rf conftest*
2533 eval "ac_cv_func_$ac_func=yes"
2534 else
2535 echo "configure: failed program was:" >&5
2536 cat conftest.$ac_ext >&5
2537 rm -rf conftest*
2538 eval "ac_cv_func_$ac_func=no"
2539 fi
2540 rm -f conftest*
2541 fi
2542
2543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2544 echo "$ac_t""yes" 1>&6
2545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2546 cat >> confdefs.h <<EOF
2547 #define $ac_tr_func 1
2548 EOF
2549
2550 else
2551 echo "$ac_t""no" 1>&6
2552 fi
2553 done
2554
2555 if test $ac_cv_lib_readline_readline = yes -a $ac_cv_func_rl_getc_function = no; then
2556 echo 'Warning: libreadline is too old on your system. Need >= 2.1.'
2557 fi
2558
2559 # Checks for dynamic linking
2560
2561 if test "$enable_dynamic_linking" = "yes"; then
2562
2563 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2564 echo "configure:2565: checking for dlopen in -ldl" >&5
2565 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2568 else
2569 ac_save_LIBS="$LIBS"
2570 LIBS="-ldl $LIBS"
2571 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 /* Override any gcc2 internal prototype to avoid an error. */
2575 /* We use char because int might match the return type of a gcc2
2576 builtin and then its argument prototype would still apply. */
2577 char dlopen();
2578
2579 int main() {
2580 dlopen()
2581 ; return 0; }
2582 EOF
2583 if { (eval echo configure:2584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2584 rm -rf conftest*
2585 eval "ac_cv_lib_$ac_lib_var=yes"
2586 else
2587 echo "configure: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2589 rm -rf conftest*
2590 eval "ac_cv_lib_$ac_lib_var=no"
2591 fi
2592 rm -f conftest*
2593 LIBS="$ac_save_LIBS"
2594
2595 fi
2596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2597 echo "$ac_t""yes" 1>&6
2598 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2599 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2600 cat >> confdefs.h <<EOF
2601 #define $ac_tr_lib 1
2602 EOF
2603
2604 LIBS="-ldl $LIBS"
2605
2606 else
2607 echo "$ac_t""no" 1>&6
2608 fi
2609
2610 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2611 for ac_func in dlopen
2612 do
2613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2614 echo "configure:2615: checking for $ac_func" >&5
2615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2617 else
2618 cat > conftest.$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2621 /* System header to define __stub macros and hopefully few prototypes,
2622 which can conflict with char $ac_func(); below. */
2623 #include <assert.h>
2624 /* Override any gcc2 internal prototype to avoid an error. */
2625 /* We use char because int might match the return type of a gcc2
2626 builtin and then its argument prototype would still apply. */
2627 char $ac_func();
2628
2629 int main() {
2630
2631 /* The GNU C library defines this for functions which it implements
2632 to always fail with ENOSYS. Some functions are actually named
2633 something starting with __ and the normal name is an alias. */
2634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2635 choke me
2636 #else
2637 $ac_func();
2638 #endif
2639
2640 ; return 0; }
2641 EOF
2642 if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2643 rm -rf conftest*
2644 eval "ac_cv_func_$ac_func=yes"
2645 else
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 rm -rf conftest*
2649 eval "ac_cv_func_$ac_func=no"
2650 fi
2651 rm -f conftest*
2652 fi
2653
2654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2655 echo "$ac_t""yes" 1>&6
2656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2657 cat >> confdefs.h <<EOF
2658 #define $ac_tr_func 1
2659 EOF
2660
2661 else
2662 echo "$ac_t""no" 1>&6
2663 fi
2664 done
2665
2666 cat >> confdefs.h <<\EOF
2667 #define DYNAMIC_LINKING 1
2668 EOF
2669
2670 else
2671 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2672 echo "configure:2673: checking for dld_link in -ldld" >&5
2673 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2676 else
2677 ac_save_LIBS="$LIBS"
2678 LIBS="-ldld $LIBS"
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2682 /* Override any gcc2 internal prototype to avoid an error. */
2683 /* We use char because int might match the return type of a gcc2
2684 builtin and then its argument prototype would still apply. */
2685 char dld_link();
2686
2687 int main() {
2688 dld_link()
2689 ; return 0; }
2690 EOF
2691 if { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2692 rm -rf conftest*
2693 eval "ac_cv_lib_$ac_lib_var=yes"
2694 else
2695 echo "configure: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2697 rm -rf conftest*
2698 eval "ac_cv_lib_$ac_lib_var=no"
2699 fi
2700 rm -f conftest*
2701 LIBS="$ac_save_LIBS"
2702
2703 fi
2704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2705 echo "$ac_t""yes" 1>&6
2706 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2707 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2708 cat >> confdefs.h <<EOF
2709 #define $ac_tr_lib 1
2710 EOF
2711
2712 LIBS="-ldld $LIBS"
2713
2714 else
2715 echo "$ac_t""no" 1>&6
2716 fi
2717
2718 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2719 cat >> confdefs.h <<\EOF
2720 #define DYNAMIC_LINKING 1
2721 EOF
2722
2723 else
2724 for ac_func in shl_load
2725 do
2726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2727 echo "configure:2728: checking for $ac_func" >&5
2728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730 else
2731 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2734 /* System header to define __stub macros and hopefully few prototypes,
2735 which can conflict with char $ac_func(); below. */
2736 #include <assert.h>
2737 /* Override any gcc2 internal prototype to avoid an error. */
2738 /* We use char because int might match the return type of a gcc2
2739 builtin and then its argument prototype would still apply. */
2740 char $ac_func();
2741
2742 int main() {
2743
2744 /* The GNU C library defines this for functions which it implements
2745 to always fail with ENOSYS. Some functions are actually named
2746 something starting with __ and the normal name is an alias. */
2747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2748 choke me
2749 #else
2750 $ac_func();
2751 #endif
2752
2753 ; return 0; }
2754 EOF
2755 if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2756 rm -rf conftest*
2757 eval "ac_cv_func_$ac_func=yes"
2758 else
2759 echo "configure: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2761 rm -rf conftest*
2762 eval "ac_cv_func_$ac_func=no"
2763 fi
2764 rm -f conftest*
2765 fi
2766
2767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2768 echo "$ac_t""yes" 1>&6
2769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2770 cat >> confdefs.h <<EOF
2771 #define $ac_tr_func 1
2772 EOF
2773
2774 else
2775 echo "$ac_t""no" 1>&6
2776 fi
2777 done
2778
2779 if test "$ac_cv_func_shl_load" = "yes"; then
2780 cat >> confdefs.h <<\EOF
2781 #define DYNAMIC_LINKING 1
2782 EOF
2783
2784 else
2785 for ac_func in dlopen
2786 do
2787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2788 echo "configure:2789: checking for $ac_func" >&5
2789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2791 else
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795 /* System header to define __stub macros and hopefully few prototypes,
2796 which can conflict with char $ac_func(); below. */
2797 #include <assert.h>
2798 /* Override any gcc2 internal prototype to avoid an error. */
2799 /* We use char because int might match the return type of a gcc2
2800 builtin and then its argument prototype would still apply. */
2801 char $ac_func();
2802
2803 int main() {
2804
2805 /* The GNU C library defines this for functions which it implements
2806 to always fail with ENOSYS. Some functions are actually named
2807 something starting with __ and the normal name is an alias. */
2808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2809 choke me
2810 #else
2811 $ac_func();
2812 #endif
2813
2814 ; return 0; }
2815 EOF
2816 if { (eval echo configure:2817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2817 rm -rf conftest*
2818 eval "ac_cv_func_$ac_func=yes"
2819 else
2820 echo "configure: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2822 rm -rf conftest*
2823 eval "ac_cv_func_$ac_func=no"
2824 fi
2825 rm -f conftest*
2826 fi
2827
2828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2829 echo "$ac_t""yes" 1>&6
2830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2831 cat >> confdefs.h <<EOF
2832 #define $ac_tr_func 1
2833 EOF
2834
2835 else
2836 echo "$ac_t""no" 1>&6
2837 fi
2838 done
2839
2840 if test "$ac_cv_func_dlopen" = "yes"; then
2841 cat >> confdefs.h <<\EOF
2842 #define DYNAMIC_LINKING 1
2843 EOF
2844
2845 fi
2846 fi
2847 fi
2848 fi
2849
2850 fi
2851
2852
2853 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
2854 echo "configure:2855: checking for underscore before symbols" >&5
2855 if eval "test \"`echo '$''{'guile_cv_uscore'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2857 else
2858
2859 echo "main(){int i=1;}
2860 fnord(){int i=23; int ltuae=42;}" > conftest.c
2861 ${CC} conftest.c > /dev/null
2862 if (nm a.out | grep _fnord) > /dev/null; then
2863 guile_cv_uscore=yes
2864 else
2865 guile_cv_uscore=no
2866 fi
2867 fi
2868
2869 echo "$ac_t""$guile_cv_uscore" 1>&6
2870 rm -f conftest.c a.out
2871
2872 if test $guile_cv_uscore = yes; then
2873 cat >> confdefs.h <<\EOF
2874 #define USCORE 1
2875 EOF
2876
2877
2878 if test $ac_cv_func_dlopen = yes -o $ac_cv_lib_dl_dlopen = yes ; then
2879 echo $ac_n "checking whether dlsym always adds an underscore for us""... $ac_c" 1>&6
2880 echo "configure:2881: checking whether dlsym always adds an underscore for us" >&5
2881 if eval "test \"`echo '$''{'guile_cv_dlsym_adds_uscore'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2883 else
2884 if test "$cross_compiling" = yes; then
2885 guile_cv_dlsym_adds_uscore=no
2886 else
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890
2891 #include <dlfcn.h>
2892 #include <stdio.h>
2893 fnord() { int i=42;}
2894 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
2895 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
2896 if(ptr1 && !ptr2) exit(0); } exit(1); }
2897
2898 EOF
2899 if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2900 then
2901 guile_cv_dlsym_adds_uscore=yes
2902 cat >> confdefs.h <<\EOF
2903 #define DLSYM_ADDS_USCORE 1
2904 EOF
2905
2906 else
2907 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5
2909 rm -fr conftest*
2910 guile_cv_dlsym_adds_uscore=no
2911 fi
2912 rm -fr conftest*
2913 fi
2914
2915 fi
2916
2917
2918 echo "$ac_t""$guile_cv_dlsym_adds_uscore" 1>&6
2919 fi
2920 fi
2921
2922
2923 for ac_func in ctermid ftime getcwd geteuid gethostent gettimeofday lstat mkdir mknod nice readlink rename rmdir select setegid seteuid setlocale setpgid setsid sigaction strftime strptime symlink sync tcgetpgrp tcsetpgrp times uname waitpid bzero strdup system usleep
2924 do
2925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2926 echo "configure:2927: checking for $ac_func" >&5
2927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2929 else
2930 cat > conftest.$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933 /* System header to define __stub macros and hopefully few prototypes,
2934 which can conflict with char $ac_func(); below. */
2935 #include <assert.h>
2936 /* Override any gcc2 internal prototype to avoid an error. */
2937 /* We use char because int might match the return type of a gcc2
2938 builtin and then its argument prototype would still apply. */
2939 char $ac_func();
2940
2941 int main() {
2942
2943 /* The GNU C library defines this for functions which it implements
2944 to always fail with ENOSYS. Some functions are actually named
2945 something starting with __ and the normal name is an alias. */
2946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2947 choke me
2948 #else
2949 $ac_func();
2950 #endif
2951
2952 ; return 0; }
2953 EOF
2954 if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2955 rm -rf conftest*
2956 eval "ac_cv_func_$ac_func=yes"
2957 else
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2960 rm -rf conftest*
2961 eval "ac_cv_func_$ac_func=no"
2962 fi
2963 rm -f conftest*
2964 fi
2965
2966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2969 cat >> confdefs.h <<EOF
2970 #define $ac_tr_func 1
2971 EOF
2972
2973 else
2974 echo "$ac_t""no" 1>&6
2975 fi
2976 done
2977
2978
2979 ### Some systems don't declare some functions. On such systems, we
2980 ### need to at least provide our own K&R-style declarations.
2981
2982 ### GUILE_FUNC_DECLARED(function, headerfile)
2983
2984 ### Check for a declaration of FUNCTION in HEADERFILE; if it is
2985 ### not there, #define MISSING_FUNCTION_DECL.
2986
2987
2988
2989 echo $ac_n "checking for strptime declaration""... $ac_c" 1>&6
2990 echo "configure:2991: checking for strptime declaration" >&5
2991 if eval "test \"`echo '$''{'ac_cv_func_strptime_declared'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2993 else
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2997 #include <time.h>
2998 EOF
2999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3000 egrep "strptime" >/dev/null 2>&1; then
3001 rm -rf conftest*
3002 ac_cv_func_strptime_declared=yes
3003 else
3004 rm -rf conftest*
3005 ac_cv_func_strptime_declared=no
3006 fi
3007 rm -f conftest*
3008
3009 fi
3010
3011 echo "$ac_t""$ac_cv_func_strptime_declared" 1>&6
3012 if test x$ac_cv_func_strptime_declared = xno; then
3013 cat >> confdefs.h <<\EOF
3014 #define MISSING_STRPTIME_DECL 1
3015 EOF
3016
3017 fi
3018
3019
3020 echo $ac_n "checking for bzero declaration""... $ac_c" 1>&6
3021 echo "configure:3022: checking for bzero declaration" >&5
3022 if eval "test \"`echo '$''{'ac_cv_func_bzero_declared'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3024 else
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 #include <string.h>
3029 EOF
3030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3031 egrep "bzero" >/dev/null 2>&1; then
3032 rm -rf conftest*
3033 ac_cv_func_bzero_declared=yes
3034 else
3035 rm -rf conftest*
3036 ac_cv_func_bzero_declared=no
3037 fi
3038 rm -f conftest*
3039
3040 fi
3041
3042 echo "$ac_t""$ac_cv_func_bzero_declared" 1>&6
3043 if test x$ac_cv_func_bzero_declared = xno; then
3044 cat >> confdefs.h <<\EOF
3045 #define MISSING_BZERO_DECL 1
3046 EOF
3047
3048 fi
3049
3050
3051 echo $ac_n "checking for sleep declaration""... $ac_c" 1>&6
3052 echo "configure:3053: checking for sleep declaration" >&5
3053 if eval "test \"`echo '$''{'ac_cv_func_sleep_declared'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3055 else
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3059 #include <unistd.h>
3060 EOF
3061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3062 egrep "sleep" >/dev/null 2>&1; then
3063 rm -rf conftest*
3064 ac_cv_func_sleep_declared=yes
3065 else
3066 rm -rf conftest*
3067 ac_cv_func_sleep_declared=no
3068 fi
3069 rm -f conftest*
3070
3071 fi
3072
3073 echo "$ac_t""$ac_cv_func_sleep_declared" 1>&6
3074 if test x$ac_cv_func_sleep_declared = xno; then
3075 cat >> confdefs.h <<\EOF
3076 #define MISSING_SLEEP_DECL 1
3077 EOF
3078
3079 fi
3080
3081
3082 echo $ac_n "checking for usleep declaration""... $ac_c" 1>&6
3083 echo "configure:3084: checking for usleep declaration" >&5
3084 if eval "test \"`echo '$''{'ac_cv_func_usleep_declared'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3086 else
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 #include <unistd.h>
3091 EOF
3092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3093 egrep "usleep" >/dev/null 2>&1; then
3094 rm -rf conftest*
3095 ac_cv_func_usleep_declared=yes
3096 else
3097 rm -rf conftest*
3098 ac_cv_func_usleep_declared=no
3099 fi
3100 rm -f conftest*
3101
3102 fi
3103
3104 echo "$ac_t""$ac_cv_func_usleep_declared" 1>&6
3105 if test x$ac_cv_func_usleep_declared = xno; then
3106 cat >> confdefs.h <<\EOF
3107 #define MISSING_USLEEP_DECL 1
3108 EOF
3109
3110 fi
3111
3112
3113 # On some systems usleep has no return value
3114 cat > conftest.$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3117 #include </usr/include/unistd.h>
3118 EOF
3119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3120 egrep "void[ ][ ]*usleep" >/dev/null 2>&1; then
3121 rm -rf conftest*
3122 cat >> confdefs.h <<\EOF
3123 #define USLEEP_RETURNS_VOID 1
3124 EOF
3125
3126
3127 fi
3128 rm -f conftest*
3129
3130
3131
3132
3133 ac_safe=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
3134 echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
3135 echo "configure:3136: checking for sys/un.h" >&5
3136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3138 else
3139 cat > conftest.$ac_ext <<EOF
3140 #line 3141 "configure"
3141 #include "confdefs.h"
3142 #include <sys/un.h>
3143 EOF
3144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3145 { (eval echo configure:3146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3146 ac_err=`grep -v '^ *+' conftest.out`
3147 if test -z "$ac_err"; then
3148 rm -rf conftest*
3149 eval "ac_cv_header_$ac_safe=yes"
3150 else
3151 echo "$ac_err" >&5
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3154 rm -rf conftest*
3155 eval "ac_cv_header_$ac_safe=no"
3156 fi
3157 rm -f conftest*
3158 fi
3159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3160 echo "$ac_t""yes" 1>&6
3161 have_sys_un_h=1
3162 else
3163 echo "$ac_t""no" 1>&6
3164 fi
3165
3166 if test -n "$have_sys_un_h" ; then
3167 cat >> confdefs.h <<\EOF
3168 #define HAVE_UNIX_DOMAIN_SOCKETS 1
3169 EOF
3170
3171 fi
3172
3173 for ac_func in socketpair getgroups setpwent pause tzset
3174 do
3175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3176 echo "configure:3177: checking for $ac_func" >&5
3177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3179 else
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3183 /* System header to define __stub macros and hopefully few prototypes,
3184 which can conflict with char $ac_func(); below. */
3185 #include <assert.h>
3186 /* Override any gcc2 internal prototype to avoid an error. */
3187 /* We use char because int might match the return type of a gcc2
3188 builtin and then its argument prototype would still apply. */
3189 char $ac_func();
3190
3191 int main() {
3192
3193 /* The GNU C library defines this for functions which it implements
3194 to always fail with ENOSYS. Some functions are actually named
3195 something starting with __ and the normal name is an alias. */
3196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3197 choke me
3198 #else
3199 $ac_func();
3200 #endif
3201
3202 ; return 0; }
3203 EOF
3204 if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3205 rm -rf conftest*
3206 eval "ac_cv_func_$ac_func=yes"
3207 else
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3210 rm -rf conftest*
3211 eval "ac_cv_func_$ac_func=no"
3212 fi
3213 rm -f conftest*
3214 fi
3215
3216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3219 cat >> confdefs.h <<EOF
3220 #define $ac_tr_func 1
3221 EOF
3222
3223 else
3224 echo "$ac_t""no" 1>&6
3225 fi
3226 done
3227
3228
3229
3230
3231
3232 for ac_func in sethostent endhostent getnetent setnetent endnetent getprotoent endprotoent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof
3233 do
3234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3235 echo "configure:3236: checking for $ac_func" >&5
3236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3238 else
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 /* System header to define __stub macros and hopefully few prototypes,
3243 which can conflict with char $ac_func(); below. */
3244 #include <assert.h>
3245 /* Override any gcc2 internal prototype to avoid an error. */
3246 /* We use char because int might match the return type of a gcc2
3247 builtin and then its argument prototype would still apply. */
3248 char $ac_func();
3249
3250 int main() {
3251
3252 /* The GNU C library defines this for functions which it implements
3253 to always fail with ENOSYS. Some functions are actually named
3254 something starting with __ and the normal name is an alias. */
3255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3256 choke me
3257 #else
3258 $ac_func();
3259 #endif
3260
3261 ; return 0; }
3262 EOF
3263 if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3264 rm -rf conftest*
3265 eval "ac_cv_func_$ac_func=yes"
3266 else
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3269 rm -rf conftest*
3270 eval "ac_cv_func_$ac_func=no"
3271 fi
3272 rm -f conftest*
3273 fi
3274
3275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3276 echo "$ac_t""yes" 1>&6
3277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3278 cat >> confdefs.h <<EOF
3279 #define $ac_tr_func 1
3280 EOF
3281
3282 else
3283 echo "$ac_t""no" 1>&6
3284 fi
3285 done
3286
3287
3288
3289 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
3290 echo "configure:3291: checking for restartable system calls" >&5
3291 if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3293 else
3294 if test $ac_cv_func_sigaction = yes; then
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 #include <signal.h>
3299 int main() {
3300 int a = SA_RESTART
3301 ; return 0; }
3302 EOF
3303 if { (eval echo configure:3304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3304 rm -rf conftest*
3305 scm_cv_restarts=yes
3306 else
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 rm -rf conftest*
3310 scm_cv_restarts=no
3311 fi
3312 rm -f conftest*
3313 else
3314 scm_cv_restarts=no
3315 fi
3316 fi
3317
3318 echo "$ac_t""$scm_cv_restarts" 1>&6
3319 if test $scm_cv_restarts = yes; then
3320 cat >> confdefs.h <<\EOF
3321 #define HAVE_RESTARTS 1
3322 EOF
3323
3324 fi
3325
3326 if test "$ac_cv_header_regex_h" = yes ||
3327 test "$ac_cv_header_rxposix_h" = yes ||
3328 test "$ac_cv_header_rx_rxposix_h" = yes; then
3329 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3330 echo "configure:3331: checking for regcomp" >&5
3331 if eval "test \"`echo '$''{'ac_cv_func_regcomp_norx'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3333 else
3334 cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 /* System header to define __stub macros and hopefully few prototypes,
3338 which can conflict with char regcomp(); below. */
3339 #include <assert.h>
3340 /* Override any gcc2 internal prototype to avoid an error. */
3341 /* We use char because int might match the return type of a gcc2
3342 builtin and then its argument prototype would still apply. */
3343 char regcomp();
3344
3345 int main() {
3346
3347 /* The GNU C library defines this for functions which it implements
3348 to always fail with ENOSYS. Some functions are actually named
3349 something starting with __ and the normal name is an alias. */
3350 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3351 choke me
3352 #else
3353 regcomp();
3354 #endif
3355
3356 ; return 0; }
3357 EOF
3358 if { (eval echo configure:3359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3359 rm -rf conftest*
3360 eval "ac_cv_func_regcomp_norx=yes"
3361 else
3362 echo "configure: failed program was:" >&5
3363 cat conftest.$ac_ext >&5
3364 rm -rf conftest*
3365 eval "ac_cv_func_regcomp_norx=no"
3366 fi
3367 rm -f conftest*
3368 fi
3369
3370 if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3372 LIBOBJS="regex-posix.o $LIBOBJS"
3373 else
3374 echo "$ac_t""no" 1>&6
3375 echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
3376 echo "configure:3377: checking for main in -lrx" >&5
3377 ac_lib_var=`echo rx'_'main | sed 'y%./+-%__p_%'`
3378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3379 echo $ac_n "(cached) $ac_c" 1>&6
3380 else
3381 ac_save_LIBS="$LIBS"
3382 LIBS="-lrx $LIBS"
3383 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386
3387 int main() {
3388 main()
3389 ; return 0; }
3390 EOF
3391 if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3392 rm -rf conftest*
3393 eval "ac_cv_lib_$ac_lib_var=yes"
3394 else
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 rm -rf conftest*
3398 eval "ac_cv_lib_$ac_lib_var=no"
3399 fi
3400 rm -f conftest*
3401 LIBS="$ac_save_LIBS"
3402
3403 fi
3404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3405 echo "$ac_t""yes" 1>&6
3406 ac_tr_lib=HAVE_LIB`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3407 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3408 cat >> confdefs.h <<EOF
3409 #define $ac_tr_lib 1
3410 EOF
3411
3412 LIBS="-lrx $LIBS"
3413
3414 else
3415 echo "$ac_t""no" 1>&6
3416 fi
3417
3418 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3419 echo "configure:3420: checking for regcomp" >&5
3420 if eval "test \"`echo '$''{'ac_cv_func_regcomp_rx'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3422 else
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 /* System header to define __stub macros and hopefully few prototypes,
3427 which can conflict with char regcomp(); below. */
3428 #include <assert.h>
3429 /* Override any gcc2 internal prototype to avoid an error. */
3430 /* We use char because int might match the return type of a gcc2
3431 builtin and then its argument prototype would still apply. */
3432 char regcomp();
3433
3434 int main() {
3435
3436 /* The GNU C library defines this for functions which it implements
3437 to always fail with ENOSYS. Some functions are actually named
3438 something starting with __ and the normal name is an alias. */
3439 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3440 choke me
3441 #else
3442 regcomp();
3443 #endif
3444
3445 ; return 0; }
3446 EOF
3447 if { (eval echo configure:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3448 rm -rf conftest*
3449 eval "ac_cv_func_regcomp_rx=yes"
3450 else
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3453 rm -rf conftest*
3454 eval "ac_cv_func_regcomp_rx=no"
3455 fi
3456 rm -f conftest*
3457 fi
3458
3459 if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3461 LIBOBJS="regex-posix.o $LIBOBJS"
3462 else
3463 echo "$ac_t""no" 1>&6
3464 fi
3465
3466
3467 fi
3468
3469 if test "$ac_cv_func_regcomp_norx" = yes ||
3470 test "$ac_cv_func_regcomp_rx" = yes; then
3471 cat >> confdefs.h <<\EOF
3472 #define HAVE_REGCOMP 1
3473 EOF
3474
3475 fi
3476 fi
3477
3478 for ac_func in inet_aton putenv strerror
3479 do
3480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3481 echo "configure:3482: checking for $ac_func" >&5
3482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3484 else
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 /* System header to define __stub macros and hopefully few prototypes,
3489 which can conflict with char $ac_func(); below. */
3490 #include <assert.h>
3491 /* Override any gcc2 internal prototype to avoid an error. */
3492 /* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3494 char $ac_func();
3495
3496 int main() {
3497
3498 /* The GNU C library defines this for functions which it implements
3499 to always fail with ENOSYS. Some functions are actually named
3500 something starting with __ and the normal name is an alias. */
3501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3502 choke me
3503 #else
3504 $ac_func();
3505 #endif
3506
3507 ; return 0; }
3508 EOF
3509 if { (eval echo configure:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3510 rm -rf conftest*
3511 eval "ac_cv_func_$ac_func=yes"
3512 else
3513 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5
3515 rm -rf conftest*
3516 eval "ac_cv_func_$ac_func=no"
3517 fi
3518 rm -f conftest*
3519 fi
3520
3521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3522 echo "$ac_t""yes" 1>&6
3523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3524 cat >> confdefs.h <<EOF
3525 #define $ac_tr_func 1
3526 EOF
3527
3528 else
3529 echo "$ac_t""no" 1>&6
3530 LIBOBJS="$LIBOBJS ${ac_func}.o"
3531 fi
3532 done
3533
3534
3535
3536 # When testing for the presence of alloca, we need to add alloca.o
3537 # explicitly to LIBOBJS to make sure that it is translated to
3538 # `alloca.lo' for libtool later on. This can and should be done more cleanly.
3539 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3540 # for constant arguments. Useless!
3541 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3542 echo "configure:3543: checking for working alloca.h" >&5
3543 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3545 else
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3549 #include <alloca.h>
3550 int main() {
3551 char *p = alloca(2 * sizeof(int));
3552 ; return 0; }
3553 EOF
3554 if { (eval echo configure:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3555 rm -rf conftest*
3556 ac_cv_header_alloca_h=yes
3557 else
3558 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3560 rm -rf conftest*
3561 ac_cv_header_alloca_h=no
3562 fi
3563 rm -f conftest*
3564 fi
3565
3566 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3567 if test $ac_cv_header_alloca_h = yes; then
3568 cat >> confdefs.h <<\EOF
3569 #define HAVE_ALLOCA_H 1
3570 EOF
3571
3572 fi
3573
3574 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3575 echo "configure:3576: checking for alloca" >&5
3576 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3578 else
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582
3583 #ifdef __GNUC__
3584 # define alloca __builtin_alloca
3585 #else
3586 # if HAVE_ALLOCA_H
3587 # include <alloca.h>
3588 # else
3589 # ifdef _AIX
3590 #pragma alloca
3591 # else
3592 # ifndef alloca /* predefined by HP cc +Olibcalls */
3593 char *alloca ();
3594 # endif
3595 # endif
3596 # endif
3597 #endif
3598
3599 int main() {
3600 char *p = (char *) alloca(1);
3601 ; return 0; }
3602 EOF
3603 if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3604 rm -rf conftest*
3605 ac_cv_func_alloca_works=yes
3606 else
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3609 rm -rf conftest*
3610 ac_cv_func_alloca_works=no
3611 fi
3612 rm -f conftest*
3613 fi
3614
3615 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3616 if test $ac_cv_func_alloca_works = yes; then
3617 cat >> confdefs.h <<\EOF
3618 #define HAVE_ALLOCA 1
3619 EOF
3620
3621 fi
3622
3623 if test $ac_cv_func_alloca_works = no; then
3624 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3625 # that cause trouble. Some versions do not even contain alloca or
3626 # contain a buggy version. If you still want to use their alloca,
3627 # use ar to extract alloca.o from them instead of compiling alloca.c.
3628 ALLOCA=alloca.o
3629 cat >> confdefs.h <<\EOF
3630 #define C_ALLOCA 1
3631 EOF
3632
3633
3634 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3635 echo "configure:3636: checking whether alloca needs Cray hooks" >&5
3636 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3638 else
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 #if defined(CRAY) && ! defined(CRAY2)
3643 webecray
3644 #else
3645 wenotbecray
3646 #endif
3647
3648 EOF
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 egrep "webecray" >/dev/null 2>&1; then
3651 rm -rf conftest*
3652 ac_cv_os_cray=yes
3653 else
3654 rm -rf conftest*
3655 ac_cv_os_cray=no
3656 fi
3657 rm -f conftest*
3658
3659 fi
3660
3661 echo "$ac_t""$ac_cv_os_cray" 1>&6
3662 if test $ac_cv_os_cray = yes; then
3663 for ac_func in _getb67 GETB67 getb67; do
3664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3665 echo "configure:3666: checking for $ac_func" >&5
3666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3668 else
3669 cat > conftest.$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3672 /* System header to define __stub macros and hopefully few prototypes,
3673 which can conflict with char $ac_func(); below. */
3674 #include <assert.h>
3675 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3678 char $ac_func();
3679
3680 int main() {
3681
3682 /* The GNU C library defines this for functions which it implements
3683 to always fail with ENOSYS. Some functions are actually named
3684 something starting with __ and the normal name is an alias. */
3685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3686 choke me
3687 #else
3688 $ac_func();
3689 #endif
3690
3691 ; return 0; }
3692 EOF
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3694 rm -rf conftest*
3695 eval "ac_cv_func_$ac_func=yes"
3696 else
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3699 rm -rf conftest*
3700 eval "ac_cv_func_$ac_func=no"
3701 fi
3702 rm -f conftest*
3703 fi
3704
3705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 cat >> confdefs.h <<EOF
3708 #define CRAY_STACKSEG_END $ac_func
3709 EOF
3710
3711 break
3712 else
3713 echo "$ac_t""no" 1>&6
3714 fi
3715
3716 done
3717 fi
3718
3719 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3720 echo "configure:3721: checking stack direction for C alloca" >&5
3721 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3723 else
3724 if test "$cross_compiling" = yes; then
3725 ac_cv_c_stack_direction=0
3726 else
3727 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 find_stack_direction ()
3731 {
3732 static char *addr = 0;
3733 auto char dummy;
3734 if (addr == 0)
3735 {
3736 addr = &dummy;
3737 return find_stack_direction ();
3738 }
3739 else
3740 return (&dummy > addr) ? 1 : -1;
3741 }
3742 main ()
3743 {
3744 exit (find_stack_direction() < 0);
3745 }
3746 EOF
3747 if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3748 then
3749 ac_cv_c_stack_direction=1
3750 else
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 rm -fr conftest*
3754 ac_cv_c_stack_direction=-1
3755 fi
3756 rm -fr conftest*
3757 fi
3758
3759 fi
3760
3761 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3762 cat >> confdefs.h <<EOF
3763 #define STACK_DIRECTION $ac_cv_c_stack_direction
3764 EOF
3765
3766 fi
3767
3768 if test "$ALLOCA" = "alloca.o"; then LIBOBJS="alloca.o $LIBOBJS"; fi
3769
3770 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3771 echo "configure:3772: checking for st_rdev in struct stat" >&5
3772 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3774 else
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 #include <sys/types.h>
3779 #include <sys/stat.h>
3780 int main() {
3781 struct stat s; s.st_rdev;
3782 ; return 0; }
3783 EOF
3784 if { (eval echo configure:3785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3785 rm -rf conftest*
3786 ac_cv_struct_st_rdev=yes
3787 else
3788 echo "configure: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3790 rm -rf conftest*
3791 ac_cv_struct_st_rdev=no
3792 fi
3793 rm -f conftest*
3794 fi
3795
3796 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3797 if test $ac_cv_struct_st_rdev = yes; then
3798 cat >> confdefs.h <<\EOF
3799 #define HAVE_ST_RDEV 1
3800 EOF
3801
3802 fi
3803
3804 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3805 echo "configure:3806: checking for st_blksize in struct stat" >&5
3806 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3808 else
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 #include <sys/types.h>
3813 #include <sys/stat.h>
3814 int main() {
3815 struct stat s; s.st_blksize;
3816 ; return 0; }
3817 EOF
3818 if { (eval echo configure:3819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3819 rm -rf conftest*
3820 ac_cv_struct_st_blksize=yes
3821 else
3822 echo "configure: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3824 rm -rf conftest*
3825 ac_cv_struct_st_blksize=no
3826 fi
3827 rm -f conftest*
3828 fi
3829
3830 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3831 if test $ac_cv_struct_st_blksize = yes; then
3832 cat >> confdefs.h <<\EOF
3833 #define HAVE_ST_BLKSIZE 1
3834 EOF
3835
3836 fi
3837
3838
3839 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
3840 # LIBOBJS, which we don't need. This seems more direct.
3841 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3842 echo "configure:3843: checking for st_blocks in struct stat" >&5
3843 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3844 echo $ac_n "(cached) $ac_c" 1>&6
3845 else
3846 cat > conftest.$ac_ext <<EOF
3847 #line 3848 "configure"
3848 #include "confdefs.h"
3849 #include <sys/types.h>
3850 #include <sys/stat.h>
3851 int main() {
3852 struct stat s; s.st_blocks;
3853 ; return 0; }
3854 EOF
3855 if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3856 rm -rf conftest*
3857 ac_cv_struct_st_blocks=yes
3858 else
3859 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3861 rm -rf conftest*
3862 ac_cv_struct_st_blocks=no
3863 fi
3864 rm -f conftest*
3865 fi
3866
3867 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3868 if test $ac_cv_struct_st_blocks = yes; then
3869 cat >> confdefs.h <<\EOF
3870 #define HAVE_ST_BLOCKS 1
3871 EOF
3872
3873 fi
3874
3875 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3876 echo "configure:3877: checking whether struct tm is in sys/time.h or time.h" >&5
3877 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3879 else
3880 cat > conftest.$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3883 #include <sys/types.h>
3884 #include <time.h>
3885 int main() {
3886 struct tm *tp; tp->tm_sec;
3887 ; return 0; }
3888 EOF
3889 if { (eval echo configure:3890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3890 rm -rf conftest*
3891 ac_cv_struct_tm=time.h
3892 else
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3895 rm -rf conftest*
3896 ac_cv_struct_tm=sys/time.h
3897 fi
3898 rm -f conftest*
3899 fi
3900
3901 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3902 if test $ac_cv_struct_tm = sys/time.h; then
3903 cat >> confdefs.h <<\EOF
3904 #define TM_IN_SYS_TIME 1
3905 EOF
3906
3907 fi
3908
3909 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3910 echo "configure:3911: checking for tm_zone in struct tm" >&5
3911 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3913 else
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 #include <sys/types.h>
3918 #include <$ac_cv_struct_tm>
3919 int main() {
3920 struct tm tm; tm.tm_zone;
3921 ; return 0; }
3922 EOF
3923 if { (eval echo configure:3924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3924 rm -rf conftest*
3925 ac_cv_struct_tm_zone=yes
3926 else
3927 echo "configure: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3929 rm -rf conftest*
3930 ac_cv_struct_tm_zone=no
3931 fi
3932 rm -f conftest*
3933 fi
3934
3935 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3936 if test "$ac_cv_struct_tm_zone" = yes; then
3937 cat >> confdefs.h <<\EOF
3938 #define HAVE_TM_ZONE 1
3939 EOF
3940
3941 else
3942 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3943 echo "configure:3944: checking for tzname" >&5
3944 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3946 else
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3950 #include <time.h>
3951 #ifndef tzname /* For SGI. */
3952 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3953 #endif
3954 int main() {
3955 atoi(*tzname);
3956 ; return 0; }
3957 EOF
3958 if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3959 rm -rf conftest*
3960 ac_cv_var_tzname=yes
3961 else
3962 echo "configure: failed program was:" >&5
3963 cat conftest.$ac_ext >&5
3964 rm -rf conftest*
3965 ac_cv_var_tzname=no
3966 fi
3967 rm -f conftest*
3968 fi
3969
3970 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3971 if test $ac_cv_var_tzname = yes; then
3972 cat >> confdefs.h <<\EOF
3973 #define HAVE_TZNAME 1
3974 EOF
3975
3976 fi
3977 fi
3978
3979
3980 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
3981 echo "configure:3982: checking whether we need POSIX to get struct utimbuf" >&5
3982 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3984 else
3985 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3988
3989 #ifdef __EMX__
3990 #include <sys/utime.h>
3991 #else
3992 #include <utime.h>
3993 #endif
3994 struct utime blah;
3995
3996 EOF
3997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3998 { (eval echo configure:3999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3999 ac_err=`grep -v '^ *+' conftest.out`
4000 if test -z "$ac_err"; then
4001 rm -rf conftest*
4002 guile_cv_struct_utimbuf_needs_posix=no
4003 else
4004 echo "$ac_err" >&5
4005 echo "configure: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4007 rm -rf conftest*
4008 guile_cv_struct_utimbuf_needs_posix=yes
4009 fi
4010 rm -f conftest*
4011 fi
4012
4013 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
4014 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
4015 cat >> confdefs.h <<\EOF
4016 #define UTIMBUF_NEEDS_POSIX 1
4017 EOF
4018
4019 fi
4020
4021 #--------------------------------------------------------------------
4022 #
4023 # Which way does the stack grow?
4024 #
4025 #--------------------------------------------------------------------
4026
4027 if test "$cross_compiling" = yes; then
4028 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
4029 else
4030 cat > conftest.$ac_ext <<EOF
4031 #line 4032 "configure"
4032 #include "confdefs.h"
4033 aux (l) unsigned long l;
4034 { int x; exit (l >= ((unsigned long)&x)); }
4035 main () { int q; aux((unsigned long)&q); }
4036 EOF
4037 if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4038 then
4039 cat >> confdefs.h <<\EOF
4040 #define SCM_STACK_GROWS_UP 1
4041 EOF
4042
4043 else
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4046 fi
4047 rm -fr conftest*
4048 fi
4049
4050
4051
4052 if test "$cross_compiling" = yes; then
4053 cat >> confdefs.h <<\EOF
4054 #define SCM_SINGLES 1
4055 EOF
4056
4057 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
4058 else
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4062 main () { exit (sizeof(float) != sizeof(long)); }
4063 EOF
4064 if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4065 then
4066 cat >> confdefs.h <<\EOF
4067 #define SCM_SINGLES 1
4068 EOF
4069
4070 else
4071 echo "configure: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4073 fi
4074 rm -fr conftest*
4075 fi
4076
4077
4078 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
4079 echo "configure:4080: checking for struct linger" >&5
4080 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
4081 echo $ac_n "(cached) $ac_c" 1>&6
4082 else
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4086
4087 #include <sys/types.h>
4088 #include <sys/socket.h>
4089 int main() {
4090 struct linger lgr; lgr.l_linger = 100
4091 ; return 0; }
4092 EOF
4093 if { (eval echo configure:4094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4094 rm -rf conftest*
4095 scm_cv_struct_linger="yes"
4096 else
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4099 rm -rf conftest*
4100 scm_cv_struct_linger="no"
4101 fi
4102 rm -f conftest*
4103 fi
4104
4105 echo "$ac_t""$scm_cv_struct_linger" 1>&6
4106 if test $scm_cv_struct_linger = yes; then
4107 cat >> confdefs.h <<\EOF
4108 #define HAVE_STRUCT_LINGER 1
4109 EOF
4110
4111 fi
4112
4113 #--------------------------------------------------------------------
4114 #
4115 # How can you violate a stdio abstraction by setting a stream's fd?
4116 #
4117 #--------------------------------------------------------------------
4118
4119 echo $ac_n "checking how to set a stream file descriptor""... $ac_c" 1>&6
4120 echo "configure:4121: checking how to set a stream file descriptor" >&5
4121 if eval "test \"`echo '$''{'scm_cv_fd_setter'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4123 else
4124 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4127 #include <stdio.h>
4128 int main() {
4129 stdout->_file = 1
4130 ; return 0; }
4131 EOF
4132 if { (eval echo configure:4133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4133 rm -rf conftest*
4134 scm_cv_fd_setter="_file"
4135 else
4136 echo "configure: failed program was:" >&5
4137 cat conftest.$ac_ext >&5
4138 rm -rf conftest*
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4142 #include <stdio.h>
4143 int main() {
4144 stdout->__file = 1
4145 ; return 0; }
4146 EOF
4147 if { (eval echo configure:4148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4148 rm -rf conftest*
4149 scm_cv_fd_setter="__file"
4150 else
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4153 rm -rf conftest*
4154 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4157 #include <stdio.h>
4158 int main() {
4159 stdout->_fileno = 1
4160 ; return 0; }
4161 EOF
4162 if { (eval echo configure:4163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4163 rm -rf conftest*
4164 scm_cv_fd_setter="_fileno"
4165 else
4166 echo "configure: failed program was:" >&5
4167 cat conftest.$ac_ext >&5
4168 rm -rf conftest*
4169 scm_cv_fd_setter=""
4170 fi
4171 rm -f conftest*
4172 fi
4173 rm -f conftest*
4174 fi
4175 rm -f conftest*
4176 fi
4177
4178
4179 if test "$scm_cv_fd_setter"; then
4180 echo "$ac_t""$scm_cv_fd_setter" 1>&6
4181 cat >> confdefs.h <<EOF
4182 #define FD_SETTER $scm_cv_fd_setter
4183 EOF
4184
4185 else
4186 echo "$ac_t""we couldn't do it!" 1>&6
4187 fi
4188
4189 #--------------------------------------------------------------------
4190 # How to find out whether a FILE structure contains buffered data.
4191 # From Tk we have the following list:
4192 # _cnt: Most UNIX systems
4193 # __cnt: HPUX and SCO
4194 # _r: BSD
4195 # readCount: Sprite
4196 # Or, in GNU libc there are two fields, _gptr and _egptr, which
4197 # have to be compared.
4198 # These can also be known as _IO_read_ptr and _IO_read_end.
4199 #--------------------------------------------------------------------
4200
4201 echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
4202 echo "configure:4203: checking how to get buffer char count from FILE structure" >&5
4203 if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4205 else
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 #include <stdio.h>
4210 int main() {
4211 FILE *f = stdin; f->_cnt = 0
4212 ; return 0; }
4213 EOF
4214 if { (eval echo configure:4215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4215 rm -rf conftest*
4216 scm_cv_struct_file_count="_cnt"
4217 else
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4220 rm -rf conftest*
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 #include <stdio.h>
4225 int main() {
4226 FILE *f = stdin; f->__cnt = 0
4227 ; return 0; }
4228 EOF
4229 if { (eval echo configure:4230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4230 rm -rf conftest*
4231 scm_cv_struct_file_count="__cnt"
4232 else
4233 echo "configure: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4235 rm -rf conftest*
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4239 #include <stdio.h>
4240 int main() {
4241 FILE *f = stdin; f->_r = 0
4242 ; return 0; }
4243 EOF
4244 if { (eval echo configure:4245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4245 rm -rf conftest*
4246 scm_cv_struct_file_count="_r"
4247 else
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 rm -rf conftest*
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 #include <stdio.h>
4255 int main() {
4256 FILE *f = stdin; f->readCount = 0
4257 ; return 0; }
4258 EOF
4259 if { (eval echo configure:4260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4260 rm -rf conftest*
4261 scm_cv_struct_file_count="readCount"
4262 else
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4265 rm -rf conftest*
4266 scm_cv_struct_file_count=""
4267 fi
4268 rm -f conftest*
4269 fi
4270 rm -f conftest*
4271 fi
4272 rm -f conftest*
4273 fi
4274 rm -f conftest*
4275 fi
4276
4277 if test "$scm_cv_struct_file_count"; then
4278 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
4279 cat >> confdefs.h <<EOF
4280 #define FILE_CNT_FIELD $scm_cv_struct_file_count
4281 EOF
4282
4283 else
4284 if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4286 else
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 #include <stdio.h>
4291 int main() {
4292 FILE *f = stdin; f->_gptr = f->egptr;
4293 ; return 0; }
4294 EOF
4295 if { (eval echo configure:4296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4296 rm -rf conftest*
4297 scm_cv_struct_file_gptr=1
4298 else
4299 echo "configure: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4301 rm -rf conftest*
4302 scm_cv_struct_file_gptr=""
4303 fi
4304 rm -f conftest*
4305 fi
4306
4307 if test "$scm_cv_struct_gptr"; then
4308 echo "$ac_t""gptr" 1>&6
4309 cat >> confdefs.h <<EOF
4310 #define FILE_CNT_GPTR $scm_cv_struct_file_gptr
4311 EOF
4312
4313 else
4314 if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4316 else
4317 cat > conftest.$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4320 #include <stdio.h>
4321 int main() {
4322 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
4323 ; return 0; }
4324 EOF
4325 if { (eval echo configure:4326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4326 rm -rf conftest*
4327 scm_cv_struct_file_readptr=1
4328 else
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4331 fi
4332 rm -f conftest*
4333 fi
4334
4335 if test "$scm_cv_struct_file_readptr"; then
4336 echo "$ac_t""read_ptr" 1>&6
4337 cat >> confdefs.h <<EOF
4338 #define FILE_CNT_READPTR $scm_cv_struct_file_readptr
4339 EOF
4340
4341 else
4342 echo "$ac_t""we couldn't do it!" 1>&6
4343 fi
4344 fi
4345 fi
4346
4347 #--------------------------------------------------------------------
4348 #
4349 # Flags for thread support
4350 #
4351 #--------------------------------------------------------------------
4352
4353 ### What thread package has the user asked for?
4354 # Check whether --with-threads or --without-threads was given.
4355 if test "${with_threads+set}" = set; then
4356 withval="$with_threads"
4357 :
4358 else
4359 with_threads=no
4360 fi
4361
4362
4363 ### Turn $with_threads into either the name of a threads package, like
4364 ### `qt', or `no', meaning that threads should not be supported.
4365 echo $ac_n "checking whether to support threads""... $ac_c" 1>&6
4366 echo "configure:4367: checking whether to support threads" >&5
4367 case "$with_threads" in
4368 "yes" | "qt" | "coop" | "")
4369 with_threads=qt
4370 ;;
4371 "no" )
4372 ;;
4373 * )
4374 { echo "configure: error: invalid value for --with-threads: $with_threads" 1>&2; exit 1; }
4375 ;;
4376 esac
4377 echo "$ac_t""$with_threads" 1>&6
4378
4379 ## Make sure the threads package we've chosen is actually supported on
4380 ## the present platform.
4381 case "${with_threads}" in
4382 "qt" )
4383 ## This configures the QuickThreads package, and sets or clears
4384 ## the THREAD_PACKAGE variable if qthreads don't configure
4385 ## correctly.
4386
4387
4388
4389 echo $ac_n "checking QuickThreads configuration""... $ac_c" 1>&6
4390 echo "configure:4391: checking QuickThreads configuration" >&5
4391 # How can we refer to the qt source directory from within the qt build
4392 # directory? For headers, we can rely on the fact that the qt src
4393 # directory appears in the #include path.
4394 qtsrcdir="`(cd $srcdir; pwd)`/qt"
4395
4396
4397 THREAD_PACKAGE=QT
4398 case "$host" in
4399 i[3456]86-*-*)
4400 port_name=i386
4401 qtmd_h=md/i386.h
4402 qtmds_s=md/i386.s
4403 qtmdc_c=md/null.c
4404 qtdmdb_s=
4405 ;;
4406 mips-sgi-irix[56]*)
4407 port_name=irix
4408 qtmd_h=md/mips.h
4409 qtmds_s=md/mips-irix5.s
4410 qtmdc_c=md/null.c
4411 qtdmdb_s=md/mips_b.s
4412 ;;
4413 mips-*-*)
4414 port_name=mips
4415 qtmd_h=md/mips.h
4416 qtmds_s=md/mips.s
4417 qtmdc_c=md/null.c
4418 qtdmdb_s=md/mips_b.s
4419 ;;
4420 sparc-*-sunos*)
4421 port_name=sparc-sunos
4422 qtmd_h=md/sparc.h
4423 qtmds_s=md/_sparc.s
4424 qtmdc_c=md/null.c
4425 qtdmdb_s=md/_sparc_b.s
4426 ;;
4427 sparc-*-*)
4428 port_name=sparc
4429 qtmd_h=md/sparc.h
4430 qtmds_s=md/sparc.s
4431 qtmdc_c=md/null.c
4432 qtdmdb_s=md/sparc_b.s
4433 ;;
4434 alpha-*-*)
4435 port_name=alpha
4436 qtmd_h=md/axp.h
4437 qtmds_s=md/axp.s
4438 qtmdc_c=md/null.c
4439 qtdmdb_s=md/axp_b.s
4440 ;;
4441 *)
4442 echo "Unknown configuration; threads package disabled"
4443 THREAD_PACKAGE=""
4444 ;;
4445 esac
4446
4447
4448 # Did configuration succeed?
4449 if test -n "$THREAD_PACKAGE"; then
4450 echo "$ac_t""$port_name" 1>&6
4451 QTHREAD_LTLIBS=libqthreads.la
4452 THREAD_CPPFLAGS="-I$qtsrcdir -I../qt"
4453 THREAD_LIBS_LOCAL="../qt/libqthreads.la"
4454 THREAD_LIBS_INSTALLED="-lqthreads"
4455 else
4456 echo "$ac_t""none; disabled" 1>&6
4457 fi
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469 ;;
4470 esac
4471
4472 ## If we're using threads, bring in some other parts of Guile which
4473 ## work with them.
4474 if test "${THREAD_PACKAGE}" != "" ; then
4475 cat >> confdefs.h <<\EOF
4476 #define USE_THREADS 1
4477 EOF
4478
4479
4480 ## Include the Guile thread interface in the library...
4481 LIBOBJS="$LIBOBJS threads.o"
4482
4483 ## ... and tell it which package to talk to.
4484 case "${THREAD_PACKAGE}" in
4485 "QT" )
4486 cat >> confdefs.h <<\EOF
4487 #define USE_COOP_THREADS 1
4488 EOF
4489
4490 ;;
4491 * )
4492 { echo "configure: error: invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE}" 1>&2; exit 1; }
4493 ;;
4494 esac
4495
4496 ## Bring in scm_internal_select, if appropriate.
4497 if test $ac_cv_func_gettimeofday = yes &&
4498 test $ac_cv_func_select = yes; then
4499 LIBOBJS="$LIBOBJS iselect.o"
4500 cat >> confdefs.h <<\EOF
4501 #define GUILE_ISELECT 1
4502 EOF
4503
4504 fi
4505 fi
4506
4507 ## If we're using GCC, ask for aggressive warnings.
4508 case "$GCC" in
4509 yes )
4510 ## We had -Wstrict-prototypes in here for a bit, but Guile does too
4511 ## much stuff with generic function pointers for that to really be
4512 ## less than exasperating.
4513 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wmissing-prototypes" ;;
4514 esac
4515
4516 for ac_prog in mawk gawk nawk awk
4517 do
4518 # Extract the first word of "$ac_prog", so it can be a program name with args.
4519 set dummy $ac_prog; ac_word=$2
4520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4521 echo "configure:4522: checking for $ac_word" >&5
4522 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4524 else
4525 if test -n "$AWK"; then
4526 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4527 else
4528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4529 for ac_dir in $PATH; do
4530 test -z "$ac_dir" && ac_dir=.
4531 if test -f $ac_dir/$ac_word; then
4532 ac_cv_prog_AWK="$ac_prog"
4533 break
4534 fi
4535 done
4536 IFS="$ac_save_ifs"
4537 fi
4538 fi
4539 AWK="$ac_cv_prog_AWK"
4540 if test -n "$AWK"; then
4541 echo "$ac_t""$AWK" 1>&6
4542 else
4543 echo "$ac_t""no" 1>&6
4544 fi
4545
4546 test -n "$AWK" && break
4547 done
4548
4549
4550 ## If we're creating a shared library (using libtool!), then we'll
4551 ## need to generate a list of .lo files corresponding to the .o files
4552 ## given in LIBOBJS. We'll call it LIBLOBJS.
4553 LIBLOBJS="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
4554
4555
4556
4557
4558
4559 GUILE_LIBS="$LDFLAGS $THREAD_LIBS_INSTALLED $LIBS"
4560
4561
4562 GUILE_STAMP="`date`"
4563
4564
4565
4566
4567
4568 trap '' 1 2 15
4569 cat > confcache <<\EOF
4570 # This file is a shell script that caches the results of configure
4571 # tests run on this system so they can be shared between configure
4572 # scripts and configure runs. It is not useful on other systems.
4573 # If it contains results you don't want to keep, you may remove or edit it.
4574 #
4575 # By default, configure uses ./config.cache as the cache file,
4576 # creating it if it does not exist already. You can give configure
4577 # the --cache-file=FILE option to use a different cache file; that is
4578 # what configure does when it calls configure scripts in
4579 # subdirectories, so they share the cache.
4580 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4581 # config.status only pays attention to the cache file if you give it the
4582 # --recheck option to rerun configure.
4583 #
4584 EOF
4585 # The following way of writing the cache mishandles newlines in values,
4586 # but we know of no workaround that is simple, portable, and efficient.
4587 # So, don't put newlines in cache variables' values.
4588 # Ultrix sh set writes to stderr and can't be redirected directly,
4589 # and sets the high bit in the cache file unless we assign to the vars.
4590 (set) 2>&1 |
4591 case `(ac_space=' '; set) 2>&1` in
4592 *ac_space=\ *)
4593 # `set' does not quote correctly, so add quotes (double-quote substitution
4594 # turns \\\\ into \\, and sed turns \\ into \).
4595 sed -n \
4596 -e "s/'/'\\\\''/g" \
4597 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4598 ;;
4599 *)
4600 # `set' quotes correctly as required by POSIX, so do not add quotes.
4601 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4602 ;;
4603 esac >> confcache
4604 if cmp -s $cache_file confcache; then
4605 :
4606 else
4607 if test -w $cache_file; then
4608 echo "updating cache $cache_file"
4609 cat confcache > $cache_file
4610 else
4611 echo "not updating unwritable cache $cache_file"
4612 fi
4613 fi
4614 rm -f confcache
4615
4616 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4617
4618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4619 # Let make expand exec_prefix.
4620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4621
4622 # Any assignment to VPATH causes Sun make to only execute
4623 # the first set of double-colon rules, so remove it if not needed.
4624 # If there is a colon in the path, we need to keep it.
4625 if test "x$srcdir" = x.; then
4626 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4627 fi
4628
4629 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4630
4631 DEFS=-DHAVE_CONFIG_H
4632
4633 # Without the "./", some shells look in PATH for config.status.
4634 : ${CONFIG_STATUS=./config.status}
4635
4636 echo creating $CONFIG_STATUS
4637 rm -f $CONFIG_STATUS
4638 cat > $CONFIG_STATUS <<EOF
4639 #! /bin/sh
4640 # Generated automatically by configure.
4641 # Run this file to recreate the current configuration.
4642 # This directory was configured as follows,
4643 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4644 #
4645 # $0 $ac_configure_args
4646 #
4647 # Compiler output produced by configure, useful for debugging
4648 # configure, is in ./config.log if it exists.
4649
4650 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4651 for ac_option
4652 do
4653 case "\$ac_option" in
4654 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4655 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4656 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4657 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4658 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4659 exit 0 ;;
4660 -help | --help | --hel | --he | --h)
4661 echo "\$ac_cs_usage"; exit 0 ;;
4662 *) echo "\$ac_cs_usage"; exit 1 ;;
4663 esac
4664 done
4665
4666 ac_given_srcdir=$srcdir
4667 ac_given_INSTALL="$INSTALL"
4668
4669 trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile libguile/scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4670 EOF
4671 cat >> $CONFIG_STATUS <<EOF
4672
4673 # Protect against being on the right side of a sed subst in config.status.
4674 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4675 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4676 $ac_vpsub
4677 $extrasub
4678 s%@CFLAGS@%$CFLAGS%g
4679 s%@CPPFLAGS@%$CPPFLAGS%g
4680 s%@CXXFLAGS@%$CXXFLAGS%g
4681 s%@DEFS@%$DEFS%g
4682 s%@LDFLAGS@%$LDFLAGS%g
4683 s%@LIBS@%$LIBS%g
4684 s%@exec_prefix@%$exec_prefix%g
4685 s%@prefix@%$prefix%g
4686 s%@program_transform_name@%$program_transform_name%g
4687 s%@bindir@%$bindir%g
4688 s%@sbindir@%$sbindir%g
4689 s%@libexecdir@%$libexecdir%g
4690 s%@datadir@%$datadir%g
4691 s%@sysconfdir@%$sysconfdir%g
4692 s%@sharedstatedir@%$sharedstatedir%g
4693 s%@localstatedir@%$localstatedir%g
4694 s%@libdir@%$libdir%g
4695 s%@includedir@%$includedir%g
4696 s%@oldincludedir@%$oldincludedir%g
4697 s%@infodir@%$infodir%g
4698 s%@mandir@%$mandir%g
4699 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4700 s%@INSTALL_DATA@%$INSTALL_DATA%g
4701 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4702 s%@PACKAGE@%$PACKAGE%g
4703 s%@VERSION@%$VERSION%g
4704 s%@ACLOCAL@%$ACLOCAL%g
4705 s%@AUTOCONF@%$AUTOCONF%g
4706 s%@AUTOMAKE@%$AUTOMAKE%g
4707 s%@AUTOHEADER@%$AUTOHEADER%g
4708 s%@MAKEINFO@%$MAKEINFO%g
4709 s%@SET_MAKE@%$SET_MAKE%g
4710 s%@MAINT@%$MAINT%g
4711 s%@CC@%$CC%g
4712 s%@CPP@%$CPP%g
4713 s%@host@%$host%g
4714 s%@host_alias@%$host_alias%g
4715 s%@host_cpu@%$host_cpu%g
4716 s%@host_vendor@%$host_vendor%g
4717 s%@host_os@%$host_os%g
4718 s%@RANLIB@%$RANLIB%g
4719 s%@LD@%$LD%g
4720 s%@NM@%$NM%g
4721 s%@LN_S@%$LN_S%g
4722 s%@LIBTOOL@%$LIBTOOL%g
4723 s%@LIBOBJS@%$LIBOBJS%g
4724 s%@ALLOCA@%$ALLOCA%g
4725 s%@QTHREAD_LTLIBS@%$QTHREAD_LTLIBS%g
4726 s%@qtmd_h@%$qtmd_h%g
4727 s%@qtmds_s@%$qtmds_s%g
4728 s%@qtmdc_c@%$qtmdc_c%g
4729 s%@qtdmdb_s@%$qtdmdb_s%g
4730 s%@THREAD_PACKAGE@%$THREAD_PACKAGE%g
4731 s%@THREAD_CPPFLAGS@%$THREAD_CPPFLAGS%g
4732 s%@THREAD_LIBS_LOCAL@%$THREAD_LIBS_LOCAL%g
4733 s%@THREAD_LIBS_INSTALLED@%$THREAD_LIBS_INSTALLED%g
4734 s%@AWK@%$AWK%g
4735 s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
4736 s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
4737 s%@GUILE_VERSION@%$GUILE_VERSION%g
4738 s%@GUILE_LIBS@%$GUILE_LIBS%g
4739 s%@GUILE_STAMP@%$GUILE_STAMP%g
4740 s%@LIBLOBJS@%$LIBLOBJS%g
4741
4742 CEOF
4743 EOF
4744
4745 cat >> $CONFIG_STATUS <<\EOF
4746
4747 # Split the substitutions into bite-sized pieces for seds with
4748 # small command number limits, like on Digital OSF/1 and HP-UX.
4749 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4750 ac_file=1 # Number of current file.
4751 ac_beg=1 # First line for current file.
4752 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4753 ac_more_lines=:
4754 ac_sed_cmds=""
4755 while $ac_more_lines; do
4756 if test $ac_beg -gt 1; then
4757 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4758 else
4759 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4760 fi
4761 if test ! -s conftest.s$ac_file; then
4762 ac_more_lines=false
4763 rm -f conftest.s$ac_file
4764 else
4765 if test -z "$ac_sed_cmds"; then
4766 ac_sed_cmds="sed -f conftest.s$ac_file"
4767 else
4768 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4769 fi
4770 ac_file=`expr $ac_file + 1`
4771 ac_beg=$ac_end
4772 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4773 fi
4774 done
4775 if test -z "$ac_sed_cmds"; then
4776 ac_sed_cmds=cat
4777 fi
4778 EOF
4779
4780 cat >> $CONFIG_STATUS <<EOF
4781
4782 CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile"}
4783 EOF
4784 cat >> $CONFIG_STATUS <<\EOF
4785 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4786 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4787 case "$ac_file" in
4788 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4789 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4790 *) ac_file_in="${ac_file}.in" ;;
4791 esac
4792
4793 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4794
4795 # Remove last slash and all that follows it. Not all systems have dirname.
4796 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4797 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4798 # The file is in a subdirectory.
4799 test ! -d "$ac_dir" && mkdir "$ac_dir"
4800 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4801 # A "../" for each directory in $ac_dir_suffix.
4802 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4803 else
4804 ac_dir_suffix= ac_dots=
4805 fi
4806
4807 case "$ac_given_srcdir" in
4808 .) srcdir=.
4809 if test -z "$ac_dots"; then top_srcdir=.
4810 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4811 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4812 *) # Relative path.
4813 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4814 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4815 esac
4816
4817 case "$ac_given_INSTALL" in
4818 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4819 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4820 esac
4821
4822 echo creating "$ac_file"
4823 rm -f "$ac_file"
4824 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4825 case "$ac_file" in
4826 *Makefile*) ac_comsub="1i\\
4827 # $configure_input" ;;
4828 *) ac_comsub= ;;
4829 esac
4830
4831 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4832 sed -e "$ac_comsub
4833 s%@configure_input@%$configure_input%g
4834 s%@srcdir@%$srcdir%g
4835 s%@top_srcdir@%$top_srcdir%g
4836 s%@INSTALL@%$INSTALL%g
4837 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4838 fi; done
4839 rm -f conftest.s*
4840
4841 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4842 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4843 #
4844 # ac_d sets the value in "#define NAME VALUE" lines.
4845 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4846 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4847 ac_dC='\3'
4848 ac_dD='%g'
4849 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4850 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4851 ac_uB='\([ ]\)%\1#\2define\3'
4852 ac_uC=' '
4853 ac_uD='\4%g'
4854 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4855 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4856 ac_eB='$%\1#\2define\3'
4857 ac_eC=' '
4858 ac_eD='%g'
4859
4860 if test "${CONFIG_HEADERS+set}" != set; then
4861 EOF
4862 cat >> $CONFIG_STATUS <<EOF
4863 CONFIG_HEADERS="libguile/scmconfig.h"
4864 EOF
4865 cat >> $CONFIG_STATUS <<\EOF
4866 fi
4867 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4869 case "$ac_file" in
4870 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4871 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4872 *) ac_file_in="${ac_file}.in" ;;
4873 esac
4874
4875 echo creating $ac_file
4876
4877 rm -f conftest.frag conftest.in conftest.out
4878 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4879 cat $ac_file_inputs > conftest.in
4880
4881 EOF
4882
4883 # Transform confdefs.h into a sed script conftest.vals that substitutes
4884 # the proper values into config.h.in to produce config.h. And first:
4885 # Protect against being on the right side of a sed subst in config.status.
4886 # Protect against being in an unquoted here document in config.status.
4887 rm -f conftest.vals
4888 cat > conftest.hdr <<\EOF
4889 s/[\\&%]/\\&/g
4890 s%[\\$`]%\\&%g
4891 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4892 s%ac_d%ac_u%gp
4893 s%ac_u%ac_e%gp
4894 EOF
4895 sed -n -f conftest.hdr confdefs.h > conftest.vals
4896 rm -f conftest.hdr
4897
4898 # This sed command replaces #undef with comments. This is necessary, for
4899 # example, in the case of _POSIX_SOURCE, which is predefined and required
4900 # on some systems where configure will not decide to define it.
4901 cat >> conftest.vals <<\EOF
4902 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4903 EOF
4904
4905 # Break up conftest.vals because some shells have a limit on
4906 # the size of here documents, and old seds have small limits too.
4907
4908 rm -f conftest.tail
4909 while :
4910 do
4911 ac_lines=`grep -c . conftest.vals`
4912 # grep -c gives empty output for an empty file on some AIX systems.
4913 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4914 # Write a limited-size here document to conftest.frag.
4915 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4916 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4917 echo 'CEOF
4918 sed -f conftest.frag conftest.in > conftest.out
4919 rm -f conftest.in
4920 mv conftest.out conftest.in
4921 ' >> $CONFIG_STATUS
4922 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4923 rm -f conftest.vals
4924 mv conftest.tail conftest.vals
4925 done
4926 rm -f conftest.vals
4927
4928 cat >> $CONFIG_STATUS <<\EOF
4929 rm -f conftest.frag conftest.h
4930 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4931 cat conftest.in >> conftest.h
4932 rm -f conftest.in
4933 if cmp -s $ac_file conftest.h 2>/dev/null; then
4934 echo "$ac_file is unchanged"
4935 rm -f conftest.h
4936 else
4937 # Remove last slash and all that follows it. Not all systems have dirname.
4938 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4939 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4940 # The file is in a subdirectory.
4941 test ! -d "$ac_dir" && mkdir "$ac_dir"
4942 fi
4943 rm -f $ac_file
4944 mv conftest.h $ac_file
4945 fi
4946 fi; done
4947
4948 EOF
4949 cat >> $CONFIG_STATUS <<EOF
4950
4951 EOF
4952 cat >> $CONFIG_STATUS <<\EOF
4953 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
4954 chmod +x libguile/guile-snarf
4955 exit 0
4956 EOF
4957 chmod +x $CONFIG_STATUS
4958 rm -fr confdefs* $ac_clean_files
4959 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4960
4961