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