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