* configure.in: Move checks for libraries (-lm, -lnsl, -lsocket,
[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 fi
816
817
818 # Check whether --enable-guile-debug or --disable-guile-debug was given.
819 if test "${enable_guile_debug+set}" = set; then
820 enableval="$enable_guile_debug"
821 :
822 fi
823
824 if test "$enableval" = y || test "$enableval" = yes; then
825 cat >> confdefs.h <<\EOF
826 #define GUILE_DEBUG 1
827 EOF
828
829 fi
830
831 #--------------------------------------------------------------------
832
833 # Extract the first word of "gcc", so it can be a program name with args.
834 set dummy gcc; ac_word=$2
835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
836 echo "configure:837: checking for $ac_word" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
839 else
840 if test -n "$CC"; then
841 ac_cv_prog_CC="$CC" # Let the user override the test.
842 else
843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
844 for ac_dir in $PATH; do
845 test -z "$ac_dir" && ac_dir=.
846 if test -f $ac_dir/$ac_word; then
847 ac_cv_prog_CC="gcc"
848 break
849 fi
850 done
851 IFS="$ac_save_ifs"
852 fi
853 fi
854 CC="$ac_cv_prog_CC"
855 if test -n "$CC"; then
856 echo "$ac_t""$CC" 1>&6
857 else
858 echo "$ac_t""no" 1>&6
859 fi
860
861 if test -z "$CC"; then
862 # Extract the first word of "cc", so it can be a program name with args.
863 set dummy cc; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
868 else
869 if test -n "$CC"; then
870 ac_cv_prog_CC="$CC" # Let the user override the test.
871 else
872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
873 ac_prog_rejected=no
874 for ac_dir in $PATH; do
875 test -z "$ac_dir" && ac_dir=.
876 if test -f $ac_dir/$ac_word; then
877 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
878 ac_prog_rejected=yes
879 continue
880 fi
881 ac_cv_prog_CC="cc"
882 break
883 fi
884 done
885 IFS="$ac_save_ifs"
886 if test $ac_prog_rejected = yes; then
887 # We found a bogon in the path, so make sure we never use it.
888 set dummy $ac_cv_prog_CC
889 shift
890 if test $# -gt 0; then
891 # We chose a different compiler from the bogus one.
892 # However, it has the same basename, so the bogon will be chosen
893 # first if we set CC to just the basename; use the full file name.
894 shift
895 set dummy "$ac_dir/$ac_word" "$@"
896 shift
897 ac_cv_prog_CC="$@"
898 fi
899 fi
900 fi
901 fi
902 CC="$ac_cv_prog_CC"
903 if test -n "$CC"; then
904 echo "$ac_t""$CC" 1>&6
905 else
906 echo "$ac_t""no" 1>&6
907 fi
908
909 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
910 fi
911
912 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
913 echo "configure:914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
914
915 ac_ext=c
916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
917 ac_cpp='$CPP $CPPFLAGS'
918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
919 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
920 cross_compiling=$ac_cv_prog_cc_cross
921
922 cat > conftest.$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
925 main(){return(0);}
926 EOF
927 if { (eval echo configure:928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
928 ac_cv_prog_cc_works=yes
929 # If we can't run a trivial program, we are probably using a cross compiler.
930 if (./conftest; exit) 2>/dev/null; then
931 ac_cv_prog_cc_cross=no
932 else
933 ac_cv_prog_cc_cross=yes
934 fi
935 else
936 echo "configure: failed program was:" >&5
937 cat conftest.$ac_ext >&5
938 ac_cv_prog_cc_works=no
939 fi
940 rm -fr conftest*
941
942 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
943 if test $ac_cv_prog_cc_works = no; then
944 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
945 fi
946 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
947 echo "configure:948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
948 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
949 cross_compiling=$ac_cv_prog_cc_cross
950
951 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
952 echo "configure:953: checking whether we are using GNU C" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
955 else
956 cat > conftest.c <<EOF
957 #ifdef __GNUC__
958 yes;
959 #endif
960 EOF
961 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
962 ac_cv_prog_gcc=yes
963 else
964 ac_cv_prog_gcc=no
965 fi
966 fi
967
968 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
969
970 if test $ac_cv_prog_gcc = yes; then
971 GCC=yes
972 ac_test_CFLAGS="${CFLAGS+set}"
973 ac_save_CFLAGS="$CFLAGS"
974 CFLAGS=
975 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
976 echo "configure:977: checking whether ${CC-cc} accepts -g" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
979 else
980 echo 'void f(){}' > conftest.c
981 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
982 ac_cv_prog_cc_g=yes
983 else
984 ac_cv_prog_cc_g=no
985 fi
986 rm -f conftest*
987
988 fi
989
990 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
991 if test "$ac_test_CFLAGS" = set; then
992 CFLAGS="$ac_save_CFLAGS"
993 elif test $ac_cv_prog_cc_g = yes; then
994 CFLAGS="-g -O2"
995 else
996 CFLAGS="-O2"
997 fi
998 else
999 GCC=
1000 test "${CFLAGS+set}" = set || CFLAGS="-g"
1001 fi
1002
1003 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1004 echo "configure:1005: checking how to run the C preprocessor" >&5
1005 # On Suns, sometimes $CPP names a directory.
1006 if test -n "$CPP" && test -d "$CPP"; then
1007 CPP=
1008 fi
1009 if test -z "$CPP"; then
1010 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1012 else
1013 # This must be in double quotes, not single quotes, because CPP may get
1014 # substituted into the Makefile and "${CC-cc}" will confuse make.
1015 CPP="${CC-cc} -E"
1016 # On the NeXT, cc -E runs the code through the compiler's parser,
1017 # not just through cpp.
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1021 #include <assert.h>
1022 Syntax Error
1023 EOF
1024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1025 { (eval echo configure:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1026 ac_err=`grep -v '^ *+' conftest.out`
1027 if test -z "$ac_err"; then
1028 :
1029 else
1030 echo "$ac_err" >&5
1031 echo "configure: failed program was:" >&5
1032 cat conftest.$ac_ext >&5
1033 rm -rf conftest*
1034 CPP="${CC-cc} -E -traditional-cpp"
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1038 #include <assert.h>
1039 Syntax Error
1040 EOF
1041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1042 { (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1043 ac_err=`grep -v '^ *+' conftest.out`
1044 if test -z "$ac_err"; then
1045 :
1046 else
1047 echo "$ac_err" >&5
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1050 rm -rf conftest*
1051 CPP=/lib/cpp
1052 fi
1053 rm -f conftest*
1054 fi
1055 rm -f conftest*
1056 ac_cv_prog_CPP="$CPP"
1057 fi
1058 CPP="$ac_cv_prog_CPP"
1059 else
1060 ac_cv_prog_CPP="$CPP"
1061 fi
1062 echo "$ac_t""$CPP" 1>&6
1063
1064
1065 # Make sure we can run config.sub.
1066 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1067 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1068 fi
1069
1070 echo $ac_n "checking host system type""... $ac_c" 1>&6
1071 echo "configure:1072: checking host system type" >&5
1072
1073 host_alias=$host
1074 case "$host_alias" in
1075 NONE)
1076 case $nonopt in
1077 NONE)
1078 if host_alias=`$ac_config_guess`; then :
1079 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1080 fi ;;
1081 *) host_alias=$nonopt ;;
1082 esac ;;
1083 esac
1084
1085 host=`$ac_config_sub $host_alias`
1086 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1089 echo "$ac_t""$host" 1>&6
1090
1091 # Extract the first word of "ranlib", so it can be a program name with args.
1092 set dummy ranlib; ac_word=$2
1093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094 echo "configure:1095: checking for $ac_word" >&5
1095 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1097 else
1098 if test -n "$RANLIB"; then
1099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1100 else
1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1102 for ac_dir in $PATH; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_prog_RANLIB="ranlib"
1106 break
1107 fi
1108 done
1109 IFS="$ac_save_ifs"
1110 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1111 fi
1112 fi
1113 RANLIB="$ac_cv_prog_RANLIB"
1114 if test -n "$RANLIB"; then
1115 echo "$ac_t""$RANLIB" 1>&6
1116 else
1117 echo "$ac_t""no" 1>&6
1118 fi
1119
1120
1121
1122
1123
1124 # Always use our own libtool.
1125 LIBTOOL='$(top_builddir)/libtool'
1126
1127
1128 # Check whether --enable-shared or --disable-shared was given.
1129 if test "${enable_shared+set}" = set; then
1130 enableval="$enable_shared"
1131 test "$enableval" = no && libtool_shared=" --disable-shared"
1132 else
1133 libtool_shared=
1134 fi
1135
1136
1137 libtool_flags="$libtool_shared"
1138 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1139 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1140
1141 case "$host" in
1142 *-*-irix6*)
1143 # For IRIX 6, ld needs -n32 if cc uses it.
1144 if echo " $CC $CFLAGS " | egrep -e '[ ]-n32[ ]' > /dev/null; then
1145 LD="${LD-ld} -n32"
1146 fi
1147 ;;
1148
1149 *-*-sco3.2v5*)
1150 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1151 CFLAGS="$CFLAGS -belf"
1152 ;;
1153 esac
1154
1155 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1156 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LD="$LD" RANLIB="$RANLIB" \
1157 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1158 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1159 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1160
1161
1162 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1163 echo "configure:1164: checking for AIX" >&5
1164 cat > conftest.$ac_ext <<EOF
1165 #line 1166 "configure"
1166 #include "confdefs.h"
1167 #ifdef _AIX
1168 yes
1169 #endif
1170
1171 EOF
1172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1173 egrep "yes" >/dev/null 2>&1; then
1174 rm -rf conftest*
1175 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1176 #define _ALL_SOURCE 1
1177 EOF
1178
1179 else
1180 rm -rf conftest*
1181 echo "$ac_t""no" 1>&6
1182 fi
1183 rm -f conftest*
1184
1185
1186 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1187 echo "configure:1188: checking for POSIXized ISC" >&5
1188 if test -d /etc/conf/kconfig.d &&
1189 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1190 then
1191 echo "$ac_t""yes" 1>&6
1192 ISC=yes # If later tests want to check for ISC.
1193 cat >> confdefs.h <<\EOF
1194 #define _POSIX_SOURCE 1
1195 EOF
1196
1197 if test "$GCC" = yes; then
1198 CC="$CC -posix"
1199 else
1200 CC="$CC -Xp"
1201 fi
1202 else
1203 echo "$ac_t""no" 1>&6
1204 ISC=
1205 fi
1206
1207 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1208 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1209 echo "configure:1210: checking for minix/config.h" >&5
1210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213 cat > conftest.$ac_ext <<EOF
1214 #line 1215 "configure"
1215 #include "confdefs.h"
1216 #include <minix/config.h>
1217 EOF
1218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1219 { (eval echo configure:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1220 ac_err=`grep -v '^ *+' conftest.out`
1221 if test -z "$ac_err"; then
1222 rm -rf conftest*
1223 eval "ac_cv_header_$ac_safe=yes"
1224 else
1225 echo "$ac_err" >&5
1226 echo "configure: failed program was:" >&5
1227 cat conftest.$ac_ext >&5
1228 rm -rf conftest*
1229 eval "ac_cv_header_$ac_safe=no"
1230 fi
1231 rm -f conftest*
1232 fi
1233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1234 echo "$ac_t""yes" 1>&6
1235 MINIX=yes
1236 else
1237 echo "$ac_t""no" 1>&6
1238 MINIX=
1239 fi
1240
1241 if test "$MINIX" = yes; then
1242 cat >> confdefs.h <<\EOF
1243 #define _POSIX_SOURCE 1
1244 EOF
1245
1246 cat >> confdefs.h <<\EOF
1247 #define _POSIX_1_SOURCE 2
1248 EOF
1249
1250 cat >> confdefs.h <<\EOF
1251 #define _MINIX 1
1252 EOF
1253
1254 fi
1255
1256
1257 echo $ac_n "checking for working const""... $ac_c" 1>&6
1258 echo "configure:1259: checking for working const" >&5
1259 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265
1266 int main() {
1267
1268 /* Ultrix mips cc rejects this. */
1269 typedef int charset[2]; const charset x;
1270 /* SunOS 4.1.1 cc rejects this. */
1271 char const *const *ccp;
1272 char **p;
1273 /* NEC SVR4.0.2 mips cc rejects this. */
1274 struct point {int x, y;};
1275 static struct point const zero = {0,0};
1276 /* AIX XL C 1.02.0.0 rejects this.
1277 It does not let you subtract one const X* pointer from another in an arm
1278 of an if-expression whose if-part is not a constant expression */
1279 const char *g = "string";
1280 ccp = &g + (g ? g-g : 0);
1281 /* HPUX 7.0 cc rejects these. */
1282 ++ccp;
1283 p = (char**) ccp;
1284 ccp = (char const *const *) p;
1285 { /* SCO 3.2v4 cc rejects this. */
1286 char *t;
1287 char const *s = 0 ? (char *) 0 : (char const *) 0;
1288
1289 *t++ = 0;
1290 }
1291 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1292 int x[] = {25, 17};
1293 const int *foo = &x[0];
1294 ++foo;
1295 }
1296 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1297 typedef const int *iptr;
1298 iptr p = 0;
1299 ++p;
1300 }
1301 { /* AIX XL C 1.02.0.0 rejects this saying
1302 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1303 struct s { int j; const int *ap[3]; };
1304 struct s *b; b->j = 5;
1305 }
1306 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1307 const int foo = 10;
1308 }
1309
1310 ; return 0; }
1311 EOF
1312 if { (eval echo configure:1313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1313 rm -rf conftest*
1314 ac_cv_c_const=yes
1315 else
1316 echo "configure: failed program was:" >&5
1317 cat conftest.$ac_ext >&5
1318 rm -rf conftest*
1319 ac_cv_c_const=no
1320 fi
1321 rm -f conftest*
1322 fi
1323
1324 echo "$ac_t""$ac_cv_c_const" 1>&6
1325 if test $ac_cv_c_const = no; then
1326 cat >> confdefs.h <<\EOF
1327 #define const
1328 EOF
1329
1330 fi
1331
1332
1333 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1334 echo "configure:1335: checking for ANSI C header files" >&5
1335 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1337 else
1338 cat > conftest.$ac_ext <<EOF
1339 #line 1340 "configure"
1340 #include "confdefs.h"
1341 #include <stdlib.h>
1342 #include <stdarg.h>
1343 #include <string.h>
1344 #include <float.h>
1345 EOF
1346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1347 { (eval echo configure:1348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1348 ac_err=`grep -v '^ *+' conftest.out`
1349 if test -z "$ac_err"; then
1350 rm -rf conftest*
1351 ac_cv_header_stdc=yes
1352 else
1353 echo "$ac_err" >&5
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1356 rm -rf conftest*
1357 ac_cv_header_stdc=no
1358 fi
1359 rm -f conftest*
1360
1361 if test $ac_cv_header_stdc = yes; then
1362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1363 cat > conftest.$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1366 #include <string.h>
1367 EOF
1368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1369 egrep "memchr" >/dev/null 2>&1; then
1370 :
1371 else
1372 rm -rf conftest*
1373 ac_cv_header_stdc=no
1374 fi
1375 rm -f conftest*
1376
1377 fi
1378
1379 if test $ac_cv_header_stdc = yes; then
1380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1384 #include <stdlib.h>
1385 EOF
1386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1387 egrep "free" >/dev/null 2>&1; then
1388 :
1389 else
1390 rm -rf conftest*
1391 ac_cv_header_stdc=no
1392 fi
1393 rm -f conftest*
1394
1395 fi
1396
1397 if test $ac_cv_header_stdc = yes; then
1398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1399 if test "$cross_compiling" = yes; then
1400 :
1401 else
1402 cat > conftest.$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1405 #include <ctype.h>
1406 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1407 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1409 int main () { int i; for (i = 0; i < 256; i++)
1410 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1411 exit (0); }
1412
1413 EOF
1414 if { (eval echo configure:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1415 then
1416 :
1417 else
1418 echo "configure: failed program was:" >&5
1419 cat conftest.$ac_ext >&5
1420 rm -fr conftest*
1421 ac_cv_header_stdc=no
1422 fi
1423 rm -fr conftest*
1424 fi
1425
1426 fi
1427 fi
1428
1429 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1430 if test $ac_cv_header_stdc = yes; then
1431 cat >> confdefs.h <<\EOF
1432 #define STDC_HEADERS 1
1433 EOF
1434
1435 fi
1436
1437 ac_header_dirent=no
1438 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1439 do
1440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1441 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1442 echo "configure:1443: checking for $ac_hdr that defines DIR" >&5
1443 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1445 else
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 #include <sys/types.h>
1450 #include <$ac_hdr>
1451 int main() {
1452 DIR *dirp = 0;
1453 ; return 0; }
1454 EOF
1455 if { (eval echo configure:1456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1456 rm -rf conftest*
1457 eval "ac_cv_header_dirent_$ac_safe=yes"
1458 else
1459 echo "configure: failed program was:" >&5
1460 cat conftest.$ac_ext >&5
1461 rm -rf conftest*
1462 eval "ac_cv_header_dirent_$ac_safe=no"
1463 fi
1464 rm -f conftest*
1465 fi
1466 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1467 echo "$ac_t""yes" 1>&6
1468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1469 cat >> confdefs.h <<EOF
1470 #define $ac_tr_hdr 1
1471 EOF
1472 ac_header_dirent=$ac_hdr; break
1473 else
1474 echo "$ac_t""no" 1>&6
1475 fi
1476 done
1477 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1478 if test $ac_header_dirent = dirent.h; then
1479 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1480 echo "configure:1481: checking for opendir in -ldir" >&5
1481 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1484 else
1485 ac_save_LIBS="$LIBS"
1486 LIBS="-ldir $LIBS"
1487 cat > conftest.$ac_ext <<EOF
1488 #line 1489 "configure"
1489 #include "confdefs.h"
1490 /* Override any gcc2 internal prototype to avoid an error. */
1491 /* We use char because int might match the return type of a gcc2
1492 builtin and then its argument prototype would still apply. */
1493 char opendir();
1494
1495 int main() {
1496 opendir()
1497 ; return 0; }
1498 EOF
1499 if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1500 rm -rf conftest*
1501 eval "ac_cv_lib_$ac_lib_var=yes"
1502 else
1503 echo "configure: failed program was:" >&5
1504 cat conftest.$ac_ext >&5
1505 rm -rf conftest*
1506 eval "ac_cv_lib_$ac_lib_var=no"
1507 fi
1508 rm -f conftest*
1509 LIBS="$ac_save_LIBS"
1510
1511 fi
1512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1513 echo "$ac_t""yes" 1>&6
1514 LIBS="$LIBS -ldir"
1515 else
1516 echo "$ac_t""no" 1>&6
1517 fi
1518
1519 else
1520 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1521 echo "configure:1522: checking for opendir in -lx" >&5
1522 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1525 else
1526 ac_save_LIBS="$LIBS"
1527 LIBS="-lx $LIBS"
1528 cat > conftest.$ac_ext <<EOF
1529 #line 1530 "configure"
1530 #include "confdefs.h"
1531 /* Override any gcc2 internal prototype to avoid an error. */
1532 /* We use char because int might match the return type of a gcc2
1533 builtin and then its argument prototype would still apply. */
1534 char opendir();
1535
1536 int main() {
1537 opendir()
1538 ; return 0; }
1539 EOF
1540 if { (eval echo configure:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1541 rm -rf conftest*
1542 eval "ac_cv_lib_$ac_lib_var=yes"
1543 else
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1546 rm -rf conftest*
1547 eval "ac_cv_lib_$ac_lib_var=no"
1548 fi
1549 rm -f conftest*
1550 LIBS="$ac_save_LIBS"
1551
1552 fi
1553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1554 echo "$ac_t""yes" 1>&6
1555 LIBS="$LIBS -lx"
1556 else
1557 echo "$ac_t""no" 1>&6
1558 fi
1559
1560 fi
1561
1562 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether time.h and sys/time.h may both be included" >&5
1564 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 #include <sys/types.h>
1571 #include <sys/time.h>
1572 #include <time.h>
1573 int main() {
1574 struct tm *tp;
1575 ; return 0; }
1576 EOF
1577 if { (eval echo configure:1578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1578 rm -rf conftest*
1579 ac_cv_header_time=yes
1580 else
1581 echo "configure: failed program was:" >&5
1582 cat conftest.$ac_ext >&5
1583 rm -rf conftest*
1584 ac_cv_header_time=no
1585 fi
1586 rm -f conftest*
1587 fi
1588
1589 echo "$ac_t""$ac_cv_header_time" 1>&6
1590 if test $ac_cv_header_time = yes; then
1591 cat >> confdefs.h <<\EOF
1592 #define TIME_WITH_SYS_TIME 1
1593 EOF
1594
1595 fi
1596
1597 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1598 echo "configure:1599: checking for sys/wait.h that is POSIX.1 compatible" >&5
1599 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1601 else
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 #include <sys/types.h>
1606 #include <sys/wait.h>
1607 #ifndef WEXITSTATUS
1608 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1609 #endif
1610 #ifndef WIFEXITED
1611 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1612 #endif
1613 int main() {
1614 int s;
1615 wait (&s);
1616 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1617 ; return 0; }
1618 EOF
1619 if { (eval echo configure:1620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1620 rm -rf conftest*
1621 ac_cv_header_sys_wait_h=yes
1622 else
1623 echo "configure: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1625 rm -rf conftest*
1626 ac_cv_header_sys_wait_h=no
1627 fi
1628 rm -f conftest*
1629 fi
1630
1631 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1632 if test $ac_cv_header_sys_wait_h = yes; then
1633 cat >> confdefs.h <<\EOF
1634 #define HAVE_SYS_WAIT_H 1
1635 EOF
1636
1637 fi
1638
1639 for ac_hdr in libc.h limits.h malloc.h memory.h string.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
1640 do
1641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1643 echo "configure:1644: checking for $ac_hdr" >&5
1644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1646 else
1647 cat > conftest.$ac_ext <<EOF
1648 #line 1649 "configure"
1649 #include "confdefs.h"
1650 #include <$ac_hdr>
1651 EOF
1652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1653 { (eval echo configure:1654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1654 ac_err=`grep -v '^ *+' conftest.out`
1655 if test -z "$ac_err"; then
1656 rm -rf conftest*
1657 eval "ac_cv_header_$ac_safe=yes"
1658 else
1659 echo "$ac_err" >&5
1660 echo "configure: failed program was:" >&5
1661 cat conftest.$ac_ext >&5
1662 rm -rf conftest*
1663 eval "ac_cv_header_$ac_safe=no"
1664 fi
1665 rm -f conftest*
1666 fi
1667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1668 echo "$ac_t""yes" 1>&6
1669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1670 cat >> confdefs.h <<EOF
1671 #define $ac_tr_hdr 1
1672 EOF
1673
1674 else
1675 echo "$ac_t""no" 1>&6
1676 fi
1677 done
1678
1679
1680 for ac_hdr in libc.h unistd.h
1681 do
1682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1684 echo "configure:1685: checking for $ac_hdr" >&5
1685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1687 else
1688 cat > conftest.$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1691 #include <$ac_hdr>
1692 EOF
1693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1694 { (eval echo configure:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1695 ac_err=`grep -v '^ *+' conftest.out`
1696 if test -z "$ac_err"; then
1697 rm -rf conftest*
1698 eval "ac_cv_header_$ac_safe=yes"
1699 else
1700 echo "$ac_err" >&5
1701 echo "configure: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
1703 rm -rf conftest*
1704 eval "ac_cv_header_$ac_safe=no"
1705 fi
1706 rm -f conftest*
1707 fi
1708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1709 echo "$ac_t""yes" 1>&6
1710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1711 cat >> confdefs.h <<EOF
1712 #define $ac_tr_hdr 1
1713 EOF
1714
1715 else
1716 echo "$ac_t""no" 1>&6
1717 fi
1718 done
1719
1720 echo $ac_n "checking "whether libc.h and unistd.h can be included together"""... $ac_c" 1>&6
1721 echo "configure:1722: checking "whether libc.h and unistd.h can be included together"" >&5
1722 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1724 else
1725
1726 if test "$ac_cv_header_libc_h" = "no"; then
1727 guile_cv_header_libc_with_unistd="no"
1728 elif test "$ac_cv_header_unistd.h" = "no"; then
1729 guile_cv_header_libc_with_unistd="yes"
1730 else
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1734
1735 # include <libc.h>
1736 # include <unistd.h>
1737
1738 int main() {
1739
1740 ; return 0; }
1741 EOF
1742 if { (eval echo configure:1743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1743 rm -rf conftest*
1744 guile_cv_header_libc_with_unistd=yes
1745 else
1746 echo "configure: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1748 rm -rf conftest*
1749 guile_cv_header_libc_with_unistd=no
1750
1751 fi
1752 rm -f conftest*
1753 fi
1754
1755
1756 fi
1757
1758 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
1759 if test "$guile_cv_header_libc_with_unistd" = yes; then
1760 cat >> confdefs.h <<\EOF
1761 #define LIBC_H_WITH_UNISTD_H 1
1762 EOF
1763
1764 fi
1765
1766
1767
1768 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1769 echo "configure:1770: checking for uid_t in sys/types.h" >&5
1770 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1772 else
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1776 #include <sys/types.h>
1777 EOF
1778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1779 egrep "uid_t" >/dev/null 2>&1; then
1780 rm -rf conftest*
1781 ac_cv_type_uid_t=yes
1782 else
1783 rm -rf conftest*
1784 ac_cv_type_uid_t=no
1785 fi
1786 rm -f conftest*
1787
1788 fi
1789
1790 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1791 if test $ac_cv_type_uid_t = no; then
1792 cat >> confdefs.h <<\EOF
1793 #define uid_t int
1794 EOF
1795
1796 cat >> confdefs.h <<\EOF
1797 #define gid_t int
1798 EOF
1799
1800 fi
1801
1802 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1803 echo "configure:1804: checking type of array argument to getgroups" >&5
1804 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1806 else
1807 if test "$cross_compiling" = yes; then
1808 ac_cv_type_getgroups=cross
1809 else
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1813
1814 /* Thanks to Mike Rendell for this test. */
1815 #include <sys/types.h>
1816 #define NGID 256
1817 #undef MAX
1818 #define MAX(x, y) ((x) > (y) ? (x) : (y))
1819 main()
1820 {
1821 gid_t gidset[NGID];
1822 int i, n;
1823 union { gid_t gval; long lval; } val;
1824
1825 val.lval = -1;
1826 for (i = 0; i < NGID; i++)
1827 gidset[i] = val.gval;
1828 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1829 gidset);
1830 /* Exit non-zero if getgroups seems to require an array of ints. This
1831 happens when gid_t is short but getgroups modifies an array of ints. */
1832 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1833 }
1834
1835 EOF
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1837 then
1838 ac_cv_type_getgroups=gid_t
1839 else
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1842 rm -fr conftest*
1843 ac_cv_type_getgroups=int
1844 fi
1845 rm -fr conftest*
1846 fi
1847
1848 if test $ac_cv_type_getgroups = cross; then
1849 cat > conftest.$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1852 #include <unistd.h>
1853 EOF
1854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1855 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
1856 rm -rf conftest*
1857 ac_cv_type_getgroups=gid_t
1858 else
1859 rm -rf conftest*
1860 ac_cv_type_getgroups=int
1861 fi
1862 rm -f conftest*
1863
1864 fi
1865 fi
1866
1867 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1868 cat >> confdefs.h <<EOF
1869 #define GETGROUPS_T $ac_cv_type_getgroups
1870 EOF
1871
1872
1873 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1874 echo "configure:1875: checking return type of signal handlers" >&5
1875 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1877 else
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 #include <sys/types.h>
1882 #include <signal.h>
1883 #ifdef signal
1884 #undef signal
1885 #endif
1886 #ifdef __cplusplus
1887 extern "C" void (*signal (int, void (*)(int)))(int);
1888 #else
1889 void (*signal ()) ();
1890 #endif
1891
1892 int main() {
1893 int i;
1894 ; return 0; }
1895 EOF
1896 if { (eval echo configure:1897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1897 rm -rf conftest*
1898 ac_cv_type_signal=void
1899 else
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1902 rm -rf conftest*
1903 ac_cv_type_signal=int
1904 fi
1905 rm -f conftest*
1906 fi
1907
1908 echo "$ac_t""$ac_cv_type_signal" 1>&6
1909 cat >> confdefs.h <<EOF
1910 #define RETSIGTYPE $ac_cv_type_signal
1911 EOF
1912
1913
1914 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1915 echo "configure:1916: checking for mode_t" >&5
1916 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919 cat > conftest.$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1922 #include <sys/types.h>
1923 #if STDC_HEADERS
1924 #include <stdlib.h>
1925 #include <stddef.h>
1926 #endif
1927 EOF
1928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1929 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1930 rm -rf conftest*
1931 ac_cv_type_mode_t=yes
1932 else
1933 rm -rf conftest*
1934 ac_cv_type_mode_t=no
1935 fi
1936 rm -f conftest*
1937
1938 fi
1939 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1940 if test $ac_cv_type_mode_t = no; then
1941 cat >> confdefs.h <<\EOF
1942 #define mode_t int
1943 EOF
1944
1945 fi
1946
1947
1948 echo $ac_n "checking for in -l""... $ac_c" 1>&6
1949 echo "configure:1950: checking for in -l" >&5
1950 ac_lib_var=`echo '_' | sed 'y%./+-%__p_%'`
1951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1953 else
1954 ac_save_LIBS="$LIBS"
1955 LIBS="-l $LIBS"
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1959 /* Override any gcc2 internal prototype to avoid an error. */
1960 /* We use char because int might match the return type of a gcc2
1961 builtin and then its argument prototype would still apply. */
1962 char ();
1963
1964 int main() {
1965 ()
1966 ; return 0; }
1967 EOF
1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1969 rm -rf conftest*
1970 eval "ac_cv_lib_$ac_lib_var=yes"
1971 else
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1974 rm -rf conftest*
1975 eval "ac_cv_lib_$ac_lib_var=no"
1976 fi
1977 rm -f conftest*
1978 LIBS="$ac_save_LIBS"
1979
1980 fi
1981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1983 ac_tr_lib=HAVE_LIB`echo | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1985 cat >> confdefs.h <<EOF
1986 #define $ac_tr_lib 1
1987 EOF
1988
1989 LIBS="-l $LIBS"
1990
1991 else
1992 echo "$ac_t""no" 1>&6
1993 fi
1994 (rx, main)
1995
1996 # Checks for dynamic linking
1997
1998 xtra_PLUGIN_guile_libs=""
1999
2000
2001 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2002 echo "configure:2003: checking for main in -lm" >&5
2003 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
2004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2006 else
2007 ac_save_LIBS="$LIBS"
2008 LIBS="-lm $LIBS"
2009 cat > conftest.$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2012
2013 int main() {
2014 main()
2015 ; return 0; }
2016 EOF
2017 if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2018 rm -rf conftest*
2019 eval "ac_cv_lib_$ac_lib_var=yes"
2020 else
2021 echo "configure: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2023 rm -rf conftest*
2024 eval "ac_cv_lib_$ac_lib_var=no"
2025 fi
2026 rm -f conftest*
2027 LIBS="$ac_save_LIBS"
2028
2029 fi
2030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2033 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2034 cat >> confdefs.h <<EOF
2035 #define $ac_tr_lib 1
2036 EOF
2037
2038 LIBS="-lm $LIBS"
2039
2040 else
2041 echo "$ac_t""no" 1>&6
2042 fi
2043
2044 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2045 echo "configure:2046: checking for gethostbyname" >&5
2046 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2048 else
2049 cat > conftest.$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2052 /* System header to define __stub macros and hopefully few prototypes,
2053 which can conflict with char gethostbyname(); below. */
2054 #include <assert.h>
2055 /* Override any gcc2 internal prototype to avoid an error. */
2056 /* We use char because int might match the return type of a gcc2
2057 builtin and then its argument prototype would still apply. */
2058 char gethostbyname();
2059
2060 int main() {
2061
2062 /* The GNU C library defines this for functions which it implements
2063 to always fail with ENOSYS. Some functions are actually named
2064 something starting with __ and the normal name is an alias. */
2065 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2066 choke me
2067 #else
2068 gethostbyname();
2069 #endif
2070
2071 ; return 0; }
2072 EOF
2073 if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2074 rm -rf conftest*
2075 eval "ac_cv_func_gethostbyname=yes"
2076 else
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2079 rm -rf conftest*
2080 eval "ac_cv_func_gethostbyname=no"
2081 fi
2082 rm -f conftest*
2083 fi
2084
2085 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
2087 :
2088 else
2089 echo "$ac_t""no" 1>&6
2090 fi
2091
2092 if test $ac_cv_func_gethostbyname = no; then
2093 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2094 echo "configure:2095: checking for gethostbyname in -lnsl" >&5
2095 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2098 else
2099 ac_save_LIBS="$LIBS"
2100 LIBS="-lnsl $LIBS"
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 /* Override any gcc2 internal prototype to avoid an error. */
2105 /* We use char because int might match the return type of a gcc2
2106 builtin and then its argument prototype would still apply. */
2107 char gethostbyname();
2108
2109 int main() {
2110 gethostbyname()
2111 ; return 0; }
2112 EOF
2113 if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2114 rm -rf conftest*
2115 eval "ac_cv_lib_$ac_lib_var=yes"
2116 else
2117 echo "configure: failed program was:" >&5
2118 cat conftest.$ac_ext >&5
2119 rm -rf conftest*
2120 eval "ac_cv_lib_$ac_lib_var=no"
2121 fi
2122 rm -f conftest*
2123 LIBS="$ac_save_LIBS"
2124
2125 fi
2126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2127 echo "$ac_t""yes" 1>&6
2128 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2129 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2130 cat >> confdefs.h <<EOF
2131 #define $ac_tr_lib 1
2132 EOF
2133
2134 LIBS="-lnsl $LIBS"
2135
2136 else
2137 echo "$ac_t""no" 1>&6
2138 fi
2139
2140 fi
2141 echo $ac_n "checking for connect""... $ac_c" 1>&6
2142 echo "configure:2143: checking for connect" >&5
2143 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146 cat > conftest.$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 /* System header to define __stub macros and hopefully few prototypes,
2150 which can conflict with char connect(); below. */
2151 #include <assert.h>
2152 /* Override any gcc2 internal prototype to avoid an error. */
2153 /* We use char because int might match the return type of a gcc2
2154 builtin and then its argument prototype would still apply. */
2155 char connect();
2156
2157 int main() {
2158
2159 /* The GNU C library defines this for functions which it implements
2160 to always fail with ENOSYS. Some functions are actually named
2161 something starting with __ and the normal name is an alias. */
2162 #if defined (__stub_connect) || defined (__stub___connect)
2163 choke me
2164 #else
2165 connect();
2166 #endif
2167
2168 ; return 0; }
2169 EOF
2170 if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2171 rm -rf conftest*
2172 eval "ac_cv_func_connect=yes"
2173 else
2174 echo "configure: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2176 rm -rf conftest*
2177 eval "ac_cv_func_connect=no"
2178 fi
2179 rm -f conftest*
2180 fi
2181
2182 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2183 echo "$ac_t""yes" 1>&6
2184 :
2185 else
2186 echo "$ac_t""no" 1>&6
2187 fi
2188
2189 if test $ac_cv_func_connect = no; then
2190 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2191 echo "configure:2192: checking for connect in -lsocket" >&5
2192 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2195 else
2196 ac_save_LIBS="$LIBS"
2197 LIBS="-lsocket $LIBS"
2198 cat > conftest.$ac_ext <<EOF
2199 #line 2200 "configure"
2200 #include "confdefs.h"
2201 /* Override any gcc2 internal prototype to avoid an error. */
2202 /* We use char because int might match the return type of a gcc2
2203 builtin and then its argument prototype would still apply. */
2204 char connect();
2205
2206 int main() {
2207 connect()
2208 ; return 0; }
2209 EOF
2210 if { (eval echo configure:2211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2211 rm -rf conftest*
2212 eval "ac_cv_lib_$ac_lib_var=yes"
2213 else
2214 echo "configure: failed program was:" >&5
2215 cat conftest.$ac_ext >&5
2216 rm -rf conftest*
2217 eval "ac_cv_lib_$ac_lib_var=no"
2218 fi
2219 rm -f conftest*
2220 LIBS="$ac_save_LIBS"
2221
2222 fi
2223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2224 echo "$ac_t""yes" 1>&6
2225 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2226 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2227 cat >> confdefs.h <<EOF
2228 #define $ac_tr_lib 1
2229 EOF
2230
2231 LIBS="-lsocket $LIBS"
2232
2233 else
2234 echo "$ac_t""no" 1>&6
2235 fi
2236
2237 fi
2238
2239 if test "$enable_dynamic_linking" = "yes"; then
2240
2241 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2242 echo "configure:2243: checking for dlopen in -ldl" >&5
2243 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2246 else
2247 ac_save_LIBS="$LIBS"
2248 LIBS="-ldl $LIBS"
2249 cat > conftest.$ac_ext <<EOF
2250 #line 2251 "configure"
2251 #include "confdefs.h"
2252 /* Override any gcc2 internal prototype to avoid an error. */
2253 /* We use char because int might match the return type of a gcc2
2254 builtin and then its argument prototype would still apply. */
2255 char dlopen();
2256
2257 int main() {
2258 dlopen()
2259 ; return 0; }
2260 EOF
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2262 rm -rf conftest*
2263 eval "ac_cv_lib_$ac_lib_var=yes"
2264 else
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 rm -rf conftest*
2268 eval "ac_cv_lib_$ac_lib_var=no"
2269 fi
2270 rm -f conftest*
2271 LIBS="$ac_save_LIBS"
2272
2273 fi
2274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2277 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2278 cat >> confdefs.h <<EOF
2279 #define $ac_tr_lib 1
2280 EOF
2281
2282 LIBS="-ldl $LIBS"
2283
2284 else
2285 echo "$ac_t""no" 1>&6
2286 fi
2287
2288 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2289 xtra_PLUGIN_guile_libs="-lguile -ldl"
2290 cat >> confdefs.h <<\EOF
2291 #define DYNAMIC_LINKING 1
2292 EOF
2293
2294 else
2295 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2296 echo "configure:2297: checking for dld_link in -ldld" >&5
2297 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2300 else
2301 ac_save_LIBS="$LIBS"
2302 LIBS="-ldld $LIBS"
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 /* Override any gcc2 internal prototype to avoid an error. */
2307 /* We use char because int might match the return type of a gcc2
2308 builtin and then its argument prototype would still apply. */
2309 char dld_link();
2310
2311 int main() {
2312 dld_link()
2313 ; return 0; }
2314 EOF
2315 if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2316 rm -rf conftest*
2317 eval "ac_cv_lib_$ac_lib_var=yes"
2318 else
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 rm -rf conftest*
2322 eval "ac_cv_lib_$ac_lib_var=no"
2323 fi
2324 rm -f conftest*
2325 LIBS="$ac_save_LIBS"
2326
2327 fi
2328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2331 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2332 cat >> confdefs.h <<EOF
2333 #define $ac_tr_lib 1
2334 EOF
2335
2336 LIBS="-ldld $LIBS"
2337
2338 else
2339 echo "$ac_t""no" 1>&6
2340 fi
2341
2342 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2343 xtra_PLUGIN_guile_libs="-lguile -ldld"
2344 cat >> confdefs.h <<\EOF
2345 #define DYNAMIC_LINKING 1
2346 EOF
2347
2348 else
2349 for ac_func in shl_load
2350 do
2351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_func" >&5
2353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2355 else
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 /* System header to define __stub macros and hopefully few prototypes,
2360 which can conflict with char $ac_func(); below. */
2361 #include <assert.h>
2362 /* Override any gcc2 internal prototype to avoid an error. */
2363 /* We use char because int might match the return type of a gcc2
2364 builtin and then its argument prototype would still apply. */
2365 char $ac_func();
2366
2367 int main() {
2368
2369 /* The GNU C library defines this for functions which it implements
2370 to always fail with ENOSYS. Some functions are actually named
2371 something starting with __ and the normal name is an alias. */
2372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2373 choke me
2374 #else
2375 $ac_func();
2376 #endif
2377
2378 ; return 0; }
2379 EOF
2380 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2381 rm -rf conftest*
2382 eval "ac_cv_func_$ac_func=yes"
2383 else
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2386 rm -rf conftest*
2387 eval "ac_cv_func_$ac_func=no"
2388 fi
2389 rm -f conftest*
2390 fi
2391
2392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2393 echo "$ac_t""yes" 1>&6
2394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2395 cat >> confdefs.h <<EOF
2396 #define $ac_tr_func 1
2397 EOF
2398
2399 else
2400 echo "$ac_t""no" 1>&6
2401 fi
2402 done
2403
2404 if test "$ac_cv_func_shl_load" = "yes"; then
2405 cat >> confdefs.h <<\EOF
2406 #define DYNAMIC_LINKING 1
2407 EOF
2408
2409 fi
2410 fi
2411 fi
2412
2413 fi
2414
2415
2416 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
2417 do
2418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2419 echo "configure:2420: checking for $ac_func" >&5
2420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2422 else
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 /* System header to define __stub macros and hopefully few prototypes,
2427 which can conflict with char $ac_func(); below. */
2428 #include <assert.h>
2429 /* Override any gcc2 internal prototype to avoid an error. */
2430 /* We use char because int might match the return type of a gcc2
2431 builtin and then its argument prototype would still apply. */
2432 char $ac_func();
2433
2434 int main() {
2435
2436 /* The GNU C library defines this for functions which it implements
2437 to always fail with ENOSYS. Some functions are actually named
2438 something starting with __ and the normal name is an alias. */
2439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2440 choke me
2441 #else
2442 $ac_func();
2443 #endif
2444
2445 ; return 0; }
2446 EOF
2447 if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2448 rm -rf conftest*
2449 eval "ac_cv_func_$ac_func=yes"
2450 else
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2453 rm -rf conftest*
2454 eval "ac_cv_func_$ac_func=no"
2455 fi
2456 rm -f conftest*
2457 fi
2458
2459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2460 echo "$ac_t""yes" 1>&6
2461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2462 cat >> confdefs.h <<EOF
2463 #define $ac_tr_func 1
2464 EOF
2465
2466 else
2467 echo "$ac_t""no" 1>&6
2468 fi
2469 done
2470
2471
2472 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
2473 echo "configure:2474: checking for restartable system calls" >&5
2474 if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2476 else
2477 if test $ac_cv_func_sigaction = yes; then
2478 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2481 #include <signal.h>
2482 int main() {
2483 int a = SA_RESTART
2484 ; return 0; }
2485 EOF
2486 if { (eval echo configure:2487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2487 rm -rf conftest*
2488 scm_cv_restarts=yes
2489 else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 scm_cv_restarts=no
2494 fi
2495 rm -f conftest*
2496 else
2497 scm_cv_restarts=no
2498 fi
2499 fi
2500
2501 echo "$ac_t""$scm_cv_restarts" 1>&6
2502 if test $scm_cv_restarts = yes; then
2503 cat >> confdefs.h <<\EOF
2504 #define HAVE_RESTARTS 1
2505 EOF
2506
2507 fi
2508
2509 for ac_func in regcomp
2510 do
2511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2512 echo "configure:2513: checking for $ac_func" >&5
2513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2515 else
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2519 /* System header to define __stub macros and hopefully few prototypes,
2520 which can conflict with char $ac_func(); below. */
2521 #include <assert.h>
2522 /* Override any gcc2 internal prototype to avoid an error. */
2523 /* We use char because int might match the return type of a gcc2
2524 builtin and then its argument prototype would still apply. */
2525 char $ac_func();
2526
2527 int main() {
2528
2529 /* The GNU C library defines this for functions which it implements
2530 to always fail with ENOSYS. Some functions are actually named
2531 something starting with __ and the normal name is an alias. */
2532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2533 choke me
2534 #else
2535 $ac_func();
2536 #endif
2537
2538 ; return 0; }
2539 EOF
2540 if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2541 rm -rf conftest*
2542 eval "ac_cv_func_$ac_func=yes"
2543 else
2544 echo "configure: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2546 rm -rf conftest*
2547 eval "ac_cv_func_$ac_func=no"
2548 fi
2549 rm -f conftest*
2550 fi
2551
2552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2553 echo "$ac_t""yes" 1>&6
2554 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2555 cat >> confdefs.h <<EOF
2556 #define $ac_tr_func 1
2557 EOF
2558 LIBOBJS="regex-posix.o $LIBOBJS"
2559 else
2560 echo "$ac_t""no" 1>&6
2561 fi
2562 done
2563
2564
2565 for ac_func in inet_aton putenv strerror
2566 do
2567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2568 echo "configure:2569: checking for $ac_func" >&5
2569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2571 else
2572 cat > conftest.$ac_ext <<EOF
2573 #line 2574 "configure"
2574 #include "confdefs.h"
2575 /* System header to define __stub macros and hopefully few prototypes,
2576 which can conflict with char $ac_func(); below. */
2577 #include <assert.h>
2578 /* Override any gcc2 internal prototype to avoid an error. */
2579 /* We use char because int might match the return type of a gcc2
2580 builtin and then its argument prototype would still apply. */
2581 char $ac_func();
2582
2583 int main() {
2584
2585 /* The GNU C library defines this for functions which it implements
2586 to always fail with ENOSYS. Some functions are actually named
2587 something starting with __ and the normal name is an alias. */
2588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2589 choke me
2590 #else
2591 $ac_func();
2592 #endif
2593
2594 ; return 0; }
2595 EOF
2596 if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2597 rm -rf conftest*
2598 eval "ac_cv_func_$ac_func=yes"
2599 else
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 rm -rf conftest*
2603 eval "ac_cv_func_$ac_func=no"
2604 fi
2605 rm -f conftest*
2606 fi
2607
2608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2611 cat >> confdefs.h <<EOF
2612 #define $ac_tr_func 1
2613 EOF
2614
2615 else
2616 echo "$ac_t""no" 1>&6
2617 LIBOBJS="$LIBOBJS ${ac_func}.o"
2618 fi
2619 done
2620
2621
2622
2623 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2624 # for constant arguments. Useless!
2625 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2626 echo "configure:2627: checking for working alloca.h" >&5
2627 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2629 else
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2633 #include <alloca.h>
2634 int main() {
2635 char *p = alloca(2 * sizeof(int));
2636 ; return 0; }
2637 EOF
2638 if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2639 rm -rf conftest*
2640 ac_cv_header_alloca_h=yes
2641 else
2642 echo "configure: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2644 rm -rf conftest*
2645 ac_cv_header_alloca_h=no
2646 fi
2647 rm -f conftest*
2648 fi
2649
2650 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2651 if test $ac_cv_header_alloca_h = yes; then
2652 cat >> confdefs.h <<\EOF
2653 #define HAVE_ALLOCA_H 1
2654 EOF
2655
2656 fi
2657
2658 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2659 echo "configure:2660: checking for alloca" >&5
2660 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2662 else
2663 cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666
2667 #ifdef __GNUC__
2668 # define alloca __builtin_alloca
2669 #else
2670 # if HAVE_ALLOCA_H
2671 # include <alloca.h>
2672 # else
2673 # ifdef _AIX
2674 #pragma alloca
2675 # else
2676 # ifndef alloca /* predefined by HP cc +Olibcalls */
2677 char *alloca ();
2678 # endif
2679 # endif
2680 # endif
2681 #endif
2682
2683 int main() {
2684 char *p = (char *) alloca(1);
2685 ; return 0; }
2686 EOF
2687 if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2688 rm -rf conftest*
2689 ac_cv_func_alloca_works=yes
2690 else
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2693 rm -rf conftest*
2694 ac_cv_func_alloca_works=no
2695 fi
2696 rm -f conftest*
2697 fi
2698
2699 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2700 if test $ac_cv_func_alloca_works = yes; then
2701 cat >> confdefs.h <<\EOF
2702 #define HAVE_ALLOCA 1
2703 EOF
2704
2705 fi
2706
2707 if test $ac_cv_func_alloca_works = no; then
2708 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2709 # that cause trouble. Some versions do not even contain alloca or
2710 # contain a buggy version. If you still want to use their alloca,
2711 # use ar to extract alloca.o from them instead of compiling alloca.c.
2712 ALLOCA=alloca.o
2713 cat >> confdefs.h <<\EOF
2714 #define C_ALLOCA 1
2715 EOF
2716
2717
2718 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2719 echo "configure:2720: checking whether alloca needs Cray hooks" >&5
2720 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2722 else
2723 cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726 #if defined(CRAY) && ! defined(CRAY2)
2727 webecray
2728 #else
2729 wenotbecray
2730 #endif
2731
2732 EOF
2733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2734 egrep "webecray" >/dev/null 2>&1; then
2735 rm -rf conftest*
2736 ac_cv_os_cray=yes
2737 else
2738 rm -rf conftest*
2739 ac_cv_os_cray=no
2740 fi
2741 rm -f conftest*
2742
2743 fi
2744
2745 echo "$ac_t""$ac_cv_os_cray" 1>&6
2746 if test $ac_cv_os_cray = yes; then
2747 for ac_func in _getb67 GETB67 getb67; do
2748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2749 echo "configure:2750: checking for $ac_func" >&5
2750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2752 else
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 /* System header to define __stub macros and hopefully few prototypes,
2757 which can conflict with char $ac_func(); below. */
2758 #include <assert.h>
2759 /* Override any gcc2 internal prototype to avoid an error. */
2760 /* We use char because int might match the return type of a gcc2
2761 builtin and then its argument prototype would still apply. */
2762 char $ac_func();
2763
2764 int main() {
2765
2766 /* The GNU C library defines this for functions which it implements
2767 to always fail with ENOSYS. Some functions are actually named
2768 something starting with __ and the normal name is an alias. */
2769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2770 choke me
2771 #else
2772 $ac_func();
2773 #endif
2774
2775 ; return 0; }
2776 EOF
2777 if { (eval echo configure:2778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2778 rm -rf conftest*
2779 eval "ac_cv_func_$ac_func=yes"
2780 else
2781 echo "configure: failed program was:" >&5
2782 cat conftest.$ac_ext >&5
2783 rm -rf conftest*
2784 eval "ac_cv_func_$ac_func=no"
2785 fi
2786 rm -f conftest*
2787 fi
2788
2789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2790 echo "$ac_t""yes" 1>&6
2791 cat >> confdefs.h <<EOF
2792 #define CRAY_STACKSEG_END $ac_func
2793 EOF
2794
2795 break
2796 else
2797 echo "$ac_t""no" 1>&6
2798 fi
2799
2800 done
2801 fi
2802
2803 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2804 echo "configure:2805: checking stack direction for C alloca" >&5
2805 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2807 else
2808 if test "$cross_compiling" = yes; then
2809 ac_cv_c_stack_direction=0
2810 else
2811 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2814 find_stack_direction ()
2815 {
2816 static char *addr = 0;
2817 auto char dummy;
2818 if (addr == 0)
2819 {
2820 addr = &dummy;
2821 return find_stack_direction ();
2822 }
2823 else
2824 return (&dummy > addr) ? 1 : -1;
2825 }
2826 main ()
2827 {
2828 exit (find_stack_direction() < 0);
2829 }
2830 EOF
2831 if { (eval echo configure:2832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2832 then
2833 ac_cv_c_stack_direction=1
2834 else
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2837 rm -fr conftest*
2838 ac_cv_c_stack_direction=-1
2839 fi
2840 rm -fr conftest*
2841 fi
2842
2843 fi
2844
2845 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2846 cat >> confdefs.h <<EOF
2847 #define STACK_DIRECTION $ac_cv_c_stack_direction
2848 EOF
2849
2850 fi
2851
2852
2853 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2854 echo "configure:2855: checking for st_rdev in struct stat" >&5
2855 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2857 else
2858 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2861 #include <sys/types.h>
2862 #include <sys/stat.h>
2863 int main() {
2864 struct stat s; s.st_rdev;
2865 ; return 0; }
2866 EOF
2867 if { (eval echo configure:2868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2868 rm -rf conftest*
2869 ac_cv_struct_st_rdev=yes
2870 else
2871 echo "configure: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2873 rm -rf conftest*
2874 ac_cv_struct_st_rdev=no
2875 fi
2876 rm -f conftest*
2877 fi
2878
2879 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2880 if test $ac_cv_struct_st_rdev = yes; then
2881 cat >> confdefs.h <<\EOF
2882 #define HAVE_ST_RDEV 1
2883 EOF
2884
2885 fi
2886
2887 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
2888 echo "configure:2889: checking for st_blksize in struct stat" >&5
2889 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2891 else
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2895 #include <sys/types.h>
2896 #include <sys/stat.h>
2897 int main() {
2898 struct stat s; s.st_blksize;
2899 ; return 0; }
2900 EOF
2901 if { (eval echo configure:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2902 rm -rf conftest*
2903 ac_cv_struct_st_blksize=yes
2904 else
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2907 rm -rf conftest*
2908 ac_cv_struct_st_blksize=no
2909 fi
2910 rm -f conftest*
2911 fi
2912
2913 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
2914 if test $ac_cv_struct_st_blksize = yes; then
2915 cat >> confdefs.h <<\EOF
2916 #define HAVE_ST_BLKSIZE 1
2917 EOF
2918
2919 fi
2920
2921
2922 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
2923 # LIBOBJS, which we don't need. This seems more direct.
2924 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
2925 echo "configure:2926: checking for st_blocks in struct stat" >&5
2926 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2928 else
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 #include <sys/types.h>
2933 #include <sys/stat.h>
2934 int main() {
2935 struct stat s; s.st_blocks;
2936 ; return 0; }
2937 EOF
2938 if { (eval echo configure:2939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2939 rm -rf conftest*
2940 ac_cv_struct_st_blocks=yes
2941 else
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 rm -rf conftest*
2945 ac_cv_struct_st_blocks=no
2946 fi
2947 rm -f conftest*
2948 fi
2949
2950 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
2951 if test $ac_cv_struct_st_blocks = yes; then
2952 cat >> confdefs.h <<\EOF
2953 #define HAVE_ST_BLOCKS 1
2954 EOF
2955
2956 fi
2957
2958 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2959 echo "configure:2960: checking whether struct tm is in sys/time.h or time.h" >&5
2960 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2962 else
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966 #include <sys/types.h>
2967 #include <time.h>
2968 int main() {
2969 struct tm *tp; tp->tm_sec;
2970 ; return 0; }
2971 EOF
2972 if { (eval echo configure:2973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2973 rm -rf conftest*
2974 ac_cv_struct_tm=time.h
2975 else
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2978 rm -rf conftest*
2979 ac_cv_struct_tm=sys/time.h
2980 fi
2981 rm -f conftest*
2982 fi
2983
2984 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2985 if test $ac_cv_struct_tm = sys/time.h; then
2986 cat >> confdefs.h <<\EOF
2987 #define TM_IN_SYS_TIME 1
2988 EOF
2989
2990 fi
2991
2992 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2993 echo "configure:2994: checking for tm_zone in struct tm" >&5
2994 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2996 else
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3000 #include <sys/types.h>
3001 #include <$ac_cv_struct_tm>
3002 int main() {
3003 struct tm tm; tm.tm_zone;
3004 ; return 0; }
3005 EOF
3006 if { (eval echo configure:3007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3007 rm -rf conftest*
3008 ac_cv_struct_tm_zone=yes
3009 else
3010 echo "configure: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3012 rm -rf conftest*
3013 ac_cv_struct_tm_zone=no
3014 fi
3015 rm -f conftest*
3016 fi
3017
3018 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3019 if test "$ac_cv_struct_tm_zone" = yes; then
3020 cat >> confdefs.h <<\EOF
3021 #define HAVE_TM_ZONE 1
3022 EOF
3023
3024 else
3025 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3026 echo "configure:3027: checking for tzname" >&5
3027 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3029 else
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3033 #include <time.h>
3034 #ifndef tzname /* For SGI. */
3035 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3036 #endif
3037 int main() {
3038 atoi(*tzname);
3039 ; return 0; }
3040 EOF
3041 if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3042 rm -rf conftest*
3043 ac_cv_var_tzname=yes
3044 else
3045 echo "configure: failed program was:" >&5
3046 cat conftest.$ac_ext >&5
3047 rm -rf conftest*
3048 ac_cv_var_tzname=no
3049 fi
3050 rm -f conftest*
3051 fi
3052
3053 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3054 if test $ac_cv_var_tzname = yes; then
3055 cat >> confdefs.h <<\EOF
3056 #define HAVE_TZNAME 1
3057 EOF
3058
3059 fi
3060 fi
3061
3062
3063 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
3064 echo "configure:3065: checking whether we need POSIX to get struct utimbuf" >&5
3065 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3067 else
3068 cat > conftest.$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071
3072 #ifdef __EMX__
3073 #include <sys/utime.h>
3074 #else
3075 #include <utime.h>
3076 #endif
3077 struct utime blah;
3078
3079 EOF
3080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3081 { (eval echo configure:3082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3082 ac_err=`grep -v '^ *+' conftest.out`
3083 if test -z "$ac_err"; then
3084 rm -rf conftest*
3085 guile_cv_struct_utimbuf_needs_posix=no
3086 else
3087 echo "$ac_err" >&5
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 rm -rf conftest*
3091 guile_cv_struct_utimbuf_needs_posix=yes
3092 fi
3093 rm -f conftest*
3094 fi
3095
3096 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
3097 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
3098 cat >> confdefs.h <<\EOF
3099 #define UTIMBUF_NEEDS_POSIX 1
3100 EOF
3101
3102 fi
3103
3104 #--------------------------------------------------------------------
3105 #
3106 # Which way does the stack grow?
3107 #
3108 #--------------------------------------------------------------------
3109
3110 if test "$cross_compiling" = yes; then
3111 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
3112 else
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 aux (l) unsigned long l;
3117 { int x; exit (l >= ((unsigned long)&x)); }
3118 main () { int q; aux((unsigned long)&q); }
3119 EOF
3120 if { (eval echo configure:3121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3121 then
3122 cat >> confdefs.h <<\EOF
3123 #define SCM_STACK_GROWS_UP 1
3124 EOF
3125
3126 else
3127 echo "configure: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3129 fi
3130 rm -fr conftest*
3131 fi
3132
3133
3134
3135 if test "$cross_compiling" = yes; then
3136 cat >> confdefs.h <<\EOF
3137 #define SCM_SINGLES 1
3138 EOF
3139
3140 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
3141 else
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 main () { exit (sizeof(float) != sizeof(long)); }
3146 EOF
3147 if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3148 then
3149 cat >> confdefs.h <<\EOF
3150 #define SCM_SINGLES 1
3151 EOF
3152
3153 else
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3156 fi
3157 rm -fr conftest*
3158 fi
3159
3160
3161 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
3162 echo "configure:3163: checking for struct linger" >&5
3163 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3165 else
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3169
3170 #include <sys/types.h>
3171 #include <sys/socket.h>
3172 int main() {
3173 struct linger lgr; lgr.l_linger = 100
3174 ; return 0; }
3175 EOF
3176 if { (eval echo configure:3177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3177 rm -rf conftest*
3178 scm_cv_struct_linger="yes"
3179 else
3180 echo "configure: failed program was:" >&5
3181 cat conftest.$ac_ext >&5
3182 rm -rf conftest*
3183 scm_cv_struct_linger="no"
3184 fi
3185 rm -f conftest*
3186 fi
3187
3188 echo "$ac_t""$scm_cv_struct_linger" 1>&6
3189 if test $scm_cv_struct_linger = yes; then
3190 cat >> confdefs.h <<\EOF
3191 #define HAVE_STRUCT_LINGER 1
3192 EOF
3193
3194 fi
3195
3196 #--------------------------------------------------------------------
3197 #
3198 # How can you violate a stdio abstraction by setting a stream's fd?
3199 #
3200 #--------------------------------------------------------------------
3201
3202 echo $ac_n "checking how to set a stream file descriptor""... $ac_c" 1>&6
3203 echo "configure:3204: checking how to set a stream file descriptor" >&5
3204 if eval "test \"`echo '$''{'scm_cv_fd_setter'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3206 else
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3210 #include <stdio.h>
3211 int main() {
3212 stdout->_file = 1
3213 ; return 0; }
3214 EOF
3215 if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3216 rm -rf conftest*
3217 scm_cv_fd_setter="_file"
3218 else
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3221 rm -rf conftest*
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 #include <stdio.h>
3226 int main() {
3227 stdout->_fileno = 1
3228 ; return 0; }
3229 EOF
3230 if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3231 rm -rf conftest*
3232 scm_cv_fd_setter="_fileno"
3233 else
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3236 rm -rf conftest*
3237 scm_cv_fd_setter=""
3238 fi
3239 rm -f conftest*
3240 fi
3241 rm -f conftest*
3242 fi
3243
3244
3245 if test "$scm_cv_fd_setter"; then
3246 echo "$ac_t""$scm_cv_fd_setter" 1>&6
3247 cat >> confdefs.h <<EOF
3248 #define FD_SETTER $scm_cv_fd_setter
3249 EOF
3250
3251 else
3252 echo "$ac_t""we couldn't do it!" 1>&6
3253 fi
3254
3255 #--------------------------------------------------------------------
3256 # How to find out whether a FILE structure contains buffered data.
3257 # From Tk we have the following list:
3258 # _cnt: Most UNIX systems
3259 # __cnt: HPUX
3260 # _r: BSD
3261 # readCount: Sprite
3262 # Or, in GNU libc there are two fields, _gptr and _egptr, which
3263 # have to be compared.
3264 # These can also be known as _IO_read_ptr and _IO_read_end.
3265 #--------------------------------------------------------------------
3266
3267 echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
3268 echo "configure:3269: checking how to get buffer char count from FILE structure" >&5
3269 if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3271 else
3272 cat > conftest.$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3275 #include <stdio.h>
3276 int main() {
3277 FILE *f = stdin; f->_cnt = 0
3278 ; return 0; }
3279 EOF
3280 if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3281 rm -rf conftest*
3282 scm_cv_struct_file_count="_cnt"
3283 else
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3286 rm -rf conftest*
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <stdio.h>
3291 int main() {
3292 FILE *f = stdin; f->_r = 0
3293 ; return 0; }
3294 EOF
3295 if { (eval echo configure:3296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3296 rm -rf conftest*
3297 scm_cv_struct_file_count="_r"
3298 else
3299 echo "configure: failed program was:" >&5
3300 cat conftest.$ac_ext >&5
3301 rm -rf conftest*
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 #include <stdio.h>
3306 int main() {
3307 FILE *f = stdin; f->readCount = 0
3308 ; return 0; }
3309 EOF
3310 if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3311 rm -rf conftest*
3312 scm_cv_struct_file_count="readCount"
3313 else
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3316 rm -rf conftest*
3317 scm_cv_struct_file_count=""
3318 fi
3319 rm -f conftest*
3320 fi
3321 rm -f conftest*
3322 fi
3323 rm -f conftest*
3324 fi
3325
3326 if test "$scm_cv_struct_file_count"; then
3327 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
3328 cat >> confdefs.h <<EOF
3329 #define FILE_CNT_FIELD $scm_cv_struct_file_count
3330 EOF
3331
3332 else
3333 if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3335 else
3336 cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3339 #include <stdio.h>
3340 int main() {
3341 FILE *f = stdin; f->_gptr = f->egptr;
3342 ; return 0; }
3343 EOF
3344 if { (eval echo configure:3345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3345 rm -rf conftest*
3346 scm_cv_struct_file_gptr=1
3347 else
3348 echo "configure: failed program was:" >&5
3349 cat conftest.$ac_ext >&5
3350 rm -rf conftest*
3351 scm_cv_struct_file_gptr=""
3352 fi
3353 rm -f conftest*
3354 fi
3355
3356 if test "$scm_cv_struct_gptr"; then
3357 echo "$ac_t""gptr" 1>&6
3358 cat >> confdefs.h <<EOF
3359 #define FILE_CNT_GPTR $scm_cv_struct_file_gptr
3360 EOF
3361
3362 else
3363 if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3365 else
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 #include <stdio.h>
3370 int main() {
3371 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
3372 ; return 0; }
3373 EOF
3374 if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3375 rm -rf conftest*
3376 scm_cv_struct_file_readptr=1
3377 else
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3380 fi
3381 rm -f conftest*
3382 fi
3383
3384 if test "$scm_cv_struct_file_readptr"; then
3385 echo "$ac_t""read_ptr" 1>&6
3386 cat >> confdefs.h <<EOF
3387 #define FILE_CNT_READPTR $scm_cv_struct_file_readptr
3388 EOF
3389
3390 else
3391 echo "$ac_t""we couldn't do it!" 1>&6
3392 fi
3393 fi
3394 fi
3395
3396 #--------------------------------------------------------------------
3397 #
3398 # Flags for thread support
3399 #
3400 #--------------------------------------------------------------------
3401
3402
3403 echo $ac_n "checking "threads package type"""... $ac_c" 1>&6
3404 echo "configure:3405: checking "threads package type"" >&5
3405 if eval "test \"`echo '$''{'cy_cv_threads_package'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3407 else
3408
3409 if eval "test \"`echo '$''{'cy_cv_threads_cflags'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3411 else
3412
3413 if eval "test \"`echo '$''{'cy_cv_threads_libs'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3415 else
3416
3417 use_threads=no;
3418 # Check whether --with-threads or --without-threads was given.
3419 if test "${with_threads+set}" = set; then
3420 withval="$with_threads"
3421 use_threads=$withval
3422 else
3423 use_threads=no
3424 fi
3425
3426 test -n "$use_threads" || use_threads=qt
3427 threads_package=unknown
3428 if test "$use_threads" != no; then
3429 if test "$use_threads" = yes || test "$use_threads" = qt; then
3430 # Look for qt in source directory.
3431 if test -f $srcdir/qt/qt.c; then
3432 qtsrcdir="`(cd $srcdir; pwd)`/qt"
3433 threads_package=COOP
3434 cy_cv_threads_cflags="-I$qtsrcdir -I../qt"
3435 cy_cv_threads_libs="../qt/libqt.a"
3436 fi
3437 else
3438 if test -f $use_threads/qt.c; then
3439 # FIXME seems as though we should try to use an installed qt here.
3440 threads_package=COOP
3441 cy_cv_threads_cflags="-I$use_threads -I../qt"
3442 cy_cv_threads_libs="../qt/libqt.a"
3443 fi
3444 fi
3445 if test "$use_threads" = pthreads; then
3446 # Look for pthreads in srcdir. See above to understand why
3447 # we always set threads_package.
3448 if test -f $srcdir/../../pthreads/pthreads/queue.c \
3449 || test -f $srcdir/../pthreads/pthreads/queue.c; then
3450 threads_package=MIT
3451 cy_cv_threads_cflags="-I$srcdir/../../pthreads/include"
3452 cy_cv_threads_libs="-L../../pthreads/lib -lpthread"
3453 fi
3454 fi
3455 saved_CPP="$CPPFLAGS"
3456 saved_LD="$LDFLAGS"
3457 saved_LIBS="$LIBS"
3458 if test "$threads_package" = unknown; then
3459 CPPFLAGS="-I$use_threads/include"
3460 LDFLAGS="-L$use_threads/lib"
3461 LIBS="-lgthreads -lmalloc"
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <pthread.h>
3466 int main() {
3467
3468 pthread_equal(NULL,NULL);
3469
3470 ; return 0; }
3471 EOF
3472 if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3473 rm -rf conftest*
3474 threads_package=FSU
3475 else
3476 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3478 fi
3479 rm -f conftest*
3480 fi
3481 if test "$threads_package" = unknown; then
3482 LIBS="-lpthread"
3483 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 #include <pthread.h>
3487 int main() {
3488
3489 pthread_equal(NULL,NULL);
3490
3491 ; return 0; }
3492 EOF
3493 if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3494 rm -rf conftest*
3495 threads_package=MIT
3496 else
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 fi
3500 rm -f conftest*
3501 fi
3502 if test "$threads_package" = unknown; then
3503 LIBS="-lpthreads"
3504 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3507 #include <pthread.h>
3508 int main() {
3509
3510 pthread_equal(NULL,NULL);
3511
3512 ; return 0; }
3513 EOF
3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3515 rm -rf conftest*
3516 threads_package=PCthreads
3517 else
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 fi
3521 rm -f conftest*
3522 fi
3523 cy_cv_threads_cflags="$CPPFLAGS $cy_cv_threads_cflags"
3524 cy_cv_threads_libs="$LDFLAGS $LIBS $cy_cv_threads_libs"
3525 cy_cv_threads_package=$threads_package
3526 CPPFLAGS="$saved_CPP"
3527 LDFLAGS="$saved_LD"
3528 LIBS="$saved_LIBS"
3529 if test "$threads_package" = unknown; then
3530 { echo "configure: error: "cannot find thread library installation"" 1>&2; exit 1; }
3531 fi
3532 fi
3533
3534 fi
3535
3536
3537 fi
3538
3539
3540 fi
3541
3542 echo "$ac_t""$cy_cv_threads_package" 1>&6
3543
3544 CFLAGS="$CFLAGS $cy_cv_threads_cflags"
3545 THREAD_LIBS="$cy_cv_threads_libs"
3546
3547
3548 if test "$cy_cv_threads_package" = FSU; then
3549 cat >> confdefs.h <<\EOF
3550 #define USE_FSU_PTHREADS 1
3551 EOF
3552
3553 else if test "$cy_cv_threads_package" = COOP; then
3554 cat >> confdefs.h <<\EOF
3555 #define USE_COOP_THREADS 1
3556 EOF
3557
3558 else if test "$cy_cv_threads_package" = MIT; then
3559 cat >> confdefs.h <<\EOF
3560 #define USE_MIT_PTHREADS 1
3561 EOF
3562
3563 else if test "$cy_cv_threads_package" = PCthreads; then
3564 cat >> confdefs.h <<\EOF
3565 #define USE_PCTHREADS_PTHREADS 1
3566 EOF
3567
3568 else if test "$cy_cv_threads_package" = unknown; then
3569 { echo "configure: error: "cannot find threads installation"" 1>&2; exit 1; }
3570 fi
3571 fi
3572 fi
3573 fi
3574 fi
3575
3576 if test "$cy_cv_threads_package" != ""; then
3577 cat >> confdefs.h <<\EOF
3578 #define USE_THREADS 1
3579 EOF
3580
3581 LIBOBJS="$LIBOBJS threads.o"
3582 fi
3583
3584 ## If we're using GCC, ask for aggressive warnings.
3585 case "$GCC" in
3586 yes ) CFLAGS="$CFLAGS -Wall -Wpointer-arith" ;;
3587 esac
3588
3589 for ac_prog in mawk gawk nawk awk
3590 do
3591 # Extract the first word of "$ac_prog", so it can be a program name with args.
3592 set dummy $ac_prog; ac_word=$2
3593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_word" >&5
3595 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3597 else
3598 if test -n "$AWK"; then
3599 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3600 else
3601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3602 for ac_dir in $PATH; do
3603 test -z "$ac_dir" && ac_dir=.
3604 if test -f $ac_dir/$ac_word; then
3605 ac_cv_prog_AWK="$ac_prog"
3606 break
3607 fi
3608 done
3609 IFS="$ac_save_ifs"
3610 fi
3611 fi
3612 AWK="$ac_cv_prog_AWK"
3613 if test -n "$AWK"; then
3614 echo "$ac_t""$AWK" 1>&6
3615 else
3616 echo "$ac_t""no" 1>&6
3617 fi
3618
3619 test -n "$AWK" && break
3620 done
3621
3622
3623 ## If we're creating a shared library (using libtool!), then we'll
3624 ## need to generate a list of .lo files corresponding to the .o files
3625 ## given in LIBOBJS. We'll call it LIBLOBJS.
3626 LIBLOBJS="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
3627
3628 cat >> confdefs.h <<EOF
3629 #define GUILE_MAJOR_VERSION "$GUILE_MAJOR_VERSION"
3630 EOF
3631
3632 cat >> confdefs.h <<EOF
3633 #define GUILE_MINOR_VERSION "$GUILE_MINOR_VERSION"
3634 EOF
3635
3636 cat >> confdefs.h <<EOF
3637 #define GUILE_VERSION "$GUILE_VERSION"
3638 EOF
3639
3640
3641
3642
3643
3644
3645
3646 threads_enabled=false
3647 if test "$cy_cv_threads_package" = COOP; then
3648 threads_enabled=true
3649 fi
3650
3651 # Determine the host we are working on
3652
3653 # Make sure we can run config.sub.
3654 if $ac_config_sub sun4 >/dev/null 2>&1; then :
3655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3656 fi
3657
3658 echo $ac_n "checking host system type""... $ac_c" 1>&6
3659 echo "configure:3660: checking host system type" >&5
3660
3661 host_alias=$host
3662 case "$host_alias" in
3663 NONE)
3664 case $nonopt in
3665 NONE)
3666 if host_alias=`$ac_config_guess`; then :
3667 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3668 fi ;;
3669 *) host_alias=$nonopt ;;
3670 esac ;;
3671 esac
3672
3673 host=`$ac_config_sub $host_alias`
3674 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3675 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3676 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3677 echo "$ac_t""$host" 1>&6
3678
3679
3680 # How can we refer to the qt source directory from within the qt build
3681 # directory? For headers, we can rely on the fact that the qt src
3682 # directory appears in the #include path.
3683
3684 qtsrcdir="`(cd $srcdir; pwd)`/qt"
3685
3686 case "$host" in
3687 i[3456]86-*-*)
3688 qtmds_s=$qtsrcdir/md/i386.s
3689 qtmd_h=md/i386.h
3690 qtmdc_c=$qtsrcdir/md/null.c
3691 ;;
3692 mips-sgi-irix5*)
3693 qtmds_s=$qtsrcdir/md/mips-irix5.s
3694 qtmd_h=md/mips.h
3695 qtmdc_c=$qtsrcdir/md/null.c
3696 qtdmdb_s=$qtsrcdir/md/mips_b.s
3697 ;;
3698 mips-*-*)
3699 qtmds_s=$qtsrcdir/md/mips.s
3700 qtmd_h=md/mips.h
3701 qtmdc_c=$qtsrcdir/md/null.c
3702 qtdmdb_s=$qtsrcdir/md/mips_b.s
3703 ;;
3704 sparc-*-sunos*)
3705 qtmd_h=md/sparc.h
3706 qtmdc_c=$qtsrcdir/md/null.c
3707 qtmds_s=$qtsrcdir/md/_sparc.s
3708 qtdmdb_s=$qtsrcdir/md/_sparc_b.s
3709 ;;
3710 sparc-*-*)
3711 qtmd_h=md/sparc.h
3712 qtmdc_c=$qtsrcdir/md/null.c
3713 qtmds_s=$qtsrcdir/md/sparc.s
3714 qtdmdb_s=$qtsrcdir/md/sparc_b.s
3715 ;;
3716 *)
3717 echo "Unknown configuration; threads package disabled"
3718 threads_enabled=false
3719 ;;
3720 esac
3721
3722
3723
3724 if $threads_enabled; then
3725 target_libs=libqt.a
3726 else
3727 target_libs=
3728 fi
3729
3730 # Give the Makefile the names of the object files that will be
3731 # generated by compiling $qtmdc_c and $qtmds_s.
3732 qtmdc_o="`echo ${qtmdc_c} | sed -e 's:^.*/::' | sed -e 's:\.c$:\.o:'`"
3733 qtmds_o="`echo ${qtmds_s} | sed -e 's:^.*/::' | sed -e 's:\.s$:\.o:'`"
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743 trap '' 1 2 15
3744 cat > confcache <<\EOF
3745 # This file is a shell script that caches the results of configure
3746 # tests run on this system so they can be shared between configure
3747 # scripts and configure runs. It is not useful on other systems.
3748 # If it contains results you don't want to keep, you may remove or edit it.
3749 #
3750 # By default, configure uses ./config.cache as the cache file,
3751 # creating it if it does not exist already. You can give configure
3752 # the --cache-file=FILE option to use a different cache file; that is
3753 # what configure does when it calls configure scripts in
3754 # subdirectories, so they share the cache.
3755 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3756 # config.status only pays attention to the cache file if you give it the
3757 # --recheck option to rerun configure.
3758 #
3759 EOF
3760 # The following way of writing the cache mishandles newlines in values,
3761 # but we know of no workaround that is simple, portable, and efficient.
3762 # So, don't put newlines in cache variables' values.
3763 # Ultrix sh set writes to stderr and can't be redirected directly,
3764 # and sets the high bit in the cache file unless we assign to the vars.
3765 (set) 2>&1 |
3766 case `(ac_space=' '; set) 2>&1` in
3767 *ac_space=\ *)
3768 # `set' does not quote correctly, so add quotes (double-quote substitution
3769 # turns \\\\ into \\, and sed turns \\ into \).
3770 sed -n \
3771 -e "s/'/'\\\\''/g" \
3772 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3773 ;;
3774 *)
3775 # `set' quotes correctly as required by POSIX, so do not add quotes.
3776 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3777 ;;
3778 esac >> confcache
3779 if cmp -s $cache_file confcache; then
3780 :
3781 else
3782 if test -w $cache_file; then
3783 echo "updating cache $cache_file"
3784 cat confcache > $cache_file
3785 else
3786 echo "not updating unwritable cache $cache_file"
3787 fi
3788 fi
3789 rm -f confcache
3790
3791 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3792
3793 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3794 # Let make expand exec_prefix.
3795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3796
3797 # Any assignment to VPATH causes Sun make to only execute
3798 # the first set of double-colon rules, so remove it if not needed.
3799 # If there is a colon in the path, we need to keep it.
3800 if test "x$srcdir" = x.; then
3801 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3802 fi
3803
3804 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3805
3806 DEFS=-DHAVE_CONFIG_H
3807
3808 # Without the "./", some shells look in PATH for config.status.
3809 : ${CONFIG_STATUS=./config.status}
3810
3811 echo creating $CONFIG_STATUS
3812 rm -f $CONFIG_STATUS
3813 cat > $CONFIG_STATUS <<EOF
3814 #! /bin/sh
3815 # Generated automatically by configure.
3816 # Run this file to recreate the current configuration.
3817 # This directory was configured as follows,
3818 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3819 #
3820 # $0 $ac_configure_args
3821 #
3822 # Compiler output produced by configure, useful for debugging
3823 # configure, is in ./config.log if it exists.
3824
3825 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3826 for ac_option
3827 do
3828 case "\$ac_option" in
3829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3830 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3831 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3832 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3833 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3834 exit 0 ;;
3835 -help | --help | --hel | --he | --h)
3836 echo "\$ac_cs_usage"; exit 0 ;;
3837 *) echo "\$ac_cs_usage"; exit 1 ;;
3838 esac
3839 done
3840
3841 ac_given_srcdir=$srcdir
3842 ac_given_INSTALL="$INSTALL"
3843
3844 trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile libguile/scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3845 EOF
3846 cat >> $CONFIG_STATUS <<EOF
3847
3848 # Protect against being on the right side of a sed subst in config.status.
3849 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3850 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3851 $ac_vpsub
3852 $extrasub
3853 s%@CFLAGS@%$CFLAGS%g
3854 s%@CPPFLAGS@%$CPPFLAGS%g
3855 s%@CXXFLAGS@%$CXXFLAGS%g
3856 s%@DEFS@%$DEFS%g
3857 s%@LDFLAGS@%$LDFLAGS%g
3858 s%@LIBS@%$LIBS%g
3859 s%@exec_prefix@%$exec_prefix%g
3860 s%@prefix@%$prefix%g
3861 s%@program_transform_name@%$program_transform_name%g
3862 s%@bindir@%$bindir%g
3863 s%@sbindir@%$sbindir%g
3864 s%@libexecdir@%$libexecdir%g
3865 s%@datadir@%$datadir%g
3866 s%@sysconfdir@%$sysconfdir%g
3867 s%@sharedstatedir@%$sharedstatedir%g
3868 s%@localstatedir@%$localstatedir%g
3869 s%@libdir@%$libdir%g
3870 s%@includedir@%$includedir%g
3871 s%@oldincludedir@%$oldincludedir%g
3872 s%@infodir@%$infodir%g
3873 s%@mandir@%$mandir%g
3874 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3875 s%@INSTALL_DATA@%$INSTALL_DATA%g
3876 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3877 s%@PACKAGE@%$PACKAGE%g
3878 s%@VERSION@%$VERSION%g
3879 s%@ACLOCAL@%$ACLOCAL%g
3880 s%@AUTOCONF@%$AUTOCONF%g
3881 s%@AUTOMAKE@%$AUTOMAKE%g
3882 s%@AUTOHEADER@%$AUTOHEADER%g
3883 s%@MAKEINFO@%$MAKEINFO%g
3884 s%@SET_MAKE@%$SET_MAKE%g
3885 s%@MAINT@%$MAINT%g
3886 s%@CC@%$CC%g
3887 s%@CPP@%$CPP%g
3888 s%@host@%$host%g
3889 s%@host_alias@%$host_alias%g
3890 s%@host_cpu@%$host_cpu%g
3891 s%@host_vendor@%$host_vendor%g
3892 s%@host_os@%$host_os%g
3893 s%@RANLIB@%$RANLIB%g
3894 s%@LIBTOOL@%$LIBTOOL%g
3895 s%@xtra_PLUGIN_guile_libs@%$xtra_PLUGIN_guile_libs%g
3896 s%@LIBOBJS@%$LIBOBJS%g
3897 s%@ALLOCA@%$ALLOCA%g
3898 s%@THREAD_LIBS@%$THREAD_LIBS%g
3899 s%@AWK@%$AWK%g
3900 s%@LIBLOBJS@%$LIBLOBJS%g
3901 s%@target_libs@%$target_libs%g
3902 s%@qtmd_h@%$qtmd_h%g
3903 s%@qtmdc_c@%$qtmdc_c%g
3904 s%@qtmdc_o@%$qtmdc_o%g
3905 s%@qtmds_s@%$qtmds_s%g
3906 s%@qtmds_o@%$qtmds_o%g
3907 s%@qtmdb_s@%$qtmdb_s%g
3908
3909 CEOF
3910 EOF
3911
3912 cat >> $CONFIG_STATUS <<\EOF
3913
3914 # Split the substitutions into bite-sized pieces for seds with
3915 # small command number limits, like on Digital OSF/1 and HP-UX.
3916 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3917 ac_file=1 # Number of current file.
3918 ac_beg=1 # First line for current file.
3919 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3920 ac_more_lines=:
3921 ac_sed_cmds=""
3922 while $ac_more_lines; do
3923 if test $ac_beg -gt 1; then
3924 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3925 else
3926 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3927 fi
3928 if test ! -s conftest.s$ac_file; then
3929 ac_more_lines=false
3930 rm -f conftest.s$ac_file
3931 else
3932 if test -z "$ac_sed_cmds"; then
3933 ac_sed_cmds="sed -f conftest.s$ac_file"
3934 else
3935 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3936 fi
3937 ac_file=`expr $ac_file + 1`
3938 ac_beg=$ac_end
3939 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3940 fi
3941 done
3942 if test -z "$ac_sed_cmds"; then
3943 ac_sed_cmds=cat
3944 fi
3945 EOF
3946
3947 cat >> $CONFIG_STATUS <<EOF
3948
3949 CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf ice-9/Makefile qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile"}
3950 EOF
3951 cat >> $CONFIG_STATUS <<\EOF
3952 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3953 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3954 case "$ac_file" in
3955 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3956 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3957 *) ac_file_in="${ac_file}.in" ;;
3958 esac
3959
3960 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3961
3962 # Remove last slash and all that follows it. Not all systems have dirname.
3963 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3964 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3965 # The file is in a subdirectory.
3966 test ! -d "$ac_dir" && mkdir "$ac_dir"
3967 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3968 # A "../" for each directory in $ac_dir_suffix.
3969 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3970 else
3971 ac_dir_suffix= ac_dots=
3972 fi
3973
3974 case "$ac_given_srcdir" in
3975 .) srcdir=.
3976 if test -z "$ac_dots"; then top_srcdir=.
3977 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3978 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3979 *) # Relative path.
3980 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3981 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3982 esac
3983
3984 case "$ac_given_INSTALL" in
3985 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3986 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3987 esac
3988
3989 echo creating "$ac_file"
3990 rm -f "$ac_file"
3991 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3992 case "$ac_file" in
3993 *Makefile*) ac_comsub="1i\\
3994 # $configure_input" ;;
3995 *) ac_comsub= ;;
3996 esac
3997
3998 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3999 sed -e "$ac_comsub
4000 s%@configure_input@%$configure_input%g
4001 s%@srcdir@%$srcdir%g
4002 s%@top_srcdir@%$top_srcdir%g
4003 s%@INSTALL@%$INSTALL%g
4004 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4005 fi; done
4006 rm -f conftest.s*
4007
4008 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4009 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4010 #
4011 # ac_d sets the value in "#define NAME VALUE" lines.
4012 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4013 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4014 ac_dC='\3'
4015 ac_dD='%g'
4016 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4017 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4018 ac_uB='\([ ]\)%\1#\2define\3'
4019 ac_uC=' '
4020 ac_uD='\4%g'
4021 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4022 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4023 ac_eB='$%\1#\2define\3'
4024 ac_eC=' '
4025 ac_eD='%g'
4026
4027 if test "${CONFIG_HEADERS+set}" != set; then
4028 EOF
4029 cat >> $CONFIG_STATUS <<EOF
4030 CONFIG_HEADERS="libguile/scmconfig.h"
4031 EOF
4032 cat >> $CONFIG_STATUS <<\EOF
4033 fi
4034 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4035 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4036 case "$ac_file" in
4037 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4038 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4039 *) ac_file_in="${ac_file}.in" ;;
4040 esac
4041
4042 echo creating $ac_file
4043
4044 rm -f conftest.frag conftest.in conftest.out
4045 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4046 cat $ac_file_inputs > conftest.in
4047
4048 EOF
4049
4050 # Transform confdefs.h into a sed script conftest.vals that substitutes
4051 # the proper values into config.h.in to produce config.h. And first:
4052 # Protect against being on the right side of a sed subst in config.status.
4053 # Protect against being in an unquoted here document in config.status.
4054 rm -f conftest.vals
4055 cat > conftest.hdr <<\EOF
4056 s/[\\&%]/\\&/g
4057 s%[\\$`]%\\&%g
4058 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4059 s%ac_d%ac_u%gp
4060 s%ac_u%ac_e%gp
4061 EOF
4062 sed -n -f conftest.hdr confdefs.h > conftest.vals
4063 rm -f conftest.hdr
4064
4065 # This sed command replaces #undef with comments. This is necessary, for
4066 # example, in the case of _POSIX_SOURCE, which is predefined and required
4067 # on some systems where configure will not decide to define it.
4068 cat >> conftest.vals <<\EOF
4069 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4070 EOF
4071
4072 # Break up conftest.vals because some shells have a limit on
4073 # the size of here documents, and old seds have small limits too.
4074
4075 rm -f conftest.tail
4076 while :
4077 do
4078 ac_lines=`grep -c . conftest.vals`
4079 # grep -c gives empty output for an empty file on some AIX systems.
4080 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4081 # Write a limited-size here document to conftest.frag.
4082 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4083 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4084 echo 'CEOF
4085 sed -f conftest.frag conftest.in > conftest.out
4086 rm -f conftest.in
4087 mv conftest.out conftest.in
4088 ' >> $CONFIG_STATUS
4089 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4090 rm -f conftest.vals
4091 mv conftest.tail conftest.vals
4092 done
4093 rm -f conftest.vals
4094
4095 cat >> $CONFIG_STATUS <<\EOF
4096 rm -f conftest.frag conftest.h
4097 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4098 cat conftest.in >> conftest.h
4099 rm -f conftest.in
4100 if cmp -s $ac_file conftest.h 2>/dev/null; then
4101 echo "$ac_file is unchanged"
4102 rm -f conftest.h
4103 else
4104 # Remove last slash and all that follows it. Not all systems have dirname.
4105 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4106 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4107 # The file is in a subdirectory.
4108 test ! -d "$ac_dir" && mkdir "$ac_dir"
4109 fi
4110 rm -f $ac_file
4111 mv conftest.h $ac_file
4112 fi
4113 fi; done
4114
4115 EOF
4116 cat >> $CONFIG_STATUS <<EOF
4117
4118
4119 EOF
4120 cat >> $CONFIG_STATUS <<\EOF
4121 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
4122 chmod +x libguile/guile-snarf
4123 exit 0
4124 EOF
4125 chmod +x $CONFIG_STATUS
4126 rm -fr confdefs* $ac_clean_files
4127 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4128
4129