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