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