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