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