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