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