*** empty log message ***
[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
1465
1466
1467 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1468 echo "configure:1469: checking for ${CC-cc} option to accept ANSI C" >&5
1469 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472 am_cv_prog_cc_stdc=no
1473 ac_save_CC="$CC"
1474 # Don't try gcc -ansi; that turns off useful extensions and
1475 # breaks some systems' header files.
1476 # AIX -qlanglvl=ansi
1477 # Ultrix and OSF/1 -std1
1478 # HP-UX -Aa -D_HPUX_SOURCE
1479 # SVR4 -Xc -D__EXTENSIONS__
1480 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1481 do
1482 CC="$ac_save_CC $ac_arg"
1483 cat > conftest.$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1486 #include <stdarg.h>
1487 #include <stdio.h>
1488 #include <sys/types.h>
1489 #include <sys/stat.h>
1490 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1491 struct buf { int x; };
1492 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1493 static char *e (p, i)
1494 char **p;
1495 int i;
1496 {
1497 return p[i];
1498 }
1499 static char *f (char * (*g) (char **, int), char **p, ...)
1500 {
1501 char *s;
1502 va_list v;
1503 va_start (v,p);
1504 s = g (p, va_arg (v,int));
1505 va_end (v);
1506 return s;
1507 }
1508 int test (int i, double x);
1509 struct s1 {int (*f) (int a);};
1510 struct s2 {int (*f) (double a);};
1511 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1512 int argc;
1513 char **argv;
1514
1515 int main() {
1516
1517 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1518
1519 ; return 0; }
1520 EOF
1521 if { (eval echo configure:1522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1522 rm -rf conftest*
1523 am_cv_prog_cc_stdc="$ac_arg"; break
1524 else
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1527 fi
1528 rm -f conftest*
1529 done
1530 CC="$ac_save_CC"
1531
1532 fi
1533
1534 if test -z "$am_cv_prog_cc_stdc"; then
1535 echo "$ac_t""none needed" 1>&6
1536 else
1537 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1538 fi
1539 case "x$am_cv_prog_cc_stdc" in
1540 x|xno) ;;
1541 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1542 esac
1543
1544
1545 echo $ac_n "checking for working const""... $ac_c" 1>&6
1546 echo "configure:1547: checking for working const" >&5
1547 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549 else
1550 cat > conftest.$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1553
1554 int main() {
1555
1556 /* Ultrix mips cc rejects this. */
1557 typedef int charset[2]; const charset x;
1558 /* SunOS 4.1.1 cc rejects this. */
1559 char const *const *ccp;
1560 char **p;
1561 /* NEC SVR4.0.2 mips cc rejects this. */
1562 struct point {int x, y;};
1563 static struct point const zero = {0,0};
1564 /* AIX XL C 1.02.0.0 rejects this.
1565 It does not let you subtract one const X* pointer from another in an arm
1566 of an if-expression whose if-part is not a constant expression */
1567 const char *g = "string";
1568 ccp = &g + (g ? g-g : 0);
1569 /* HPUX 7.0 cc rejects these. */
1570 ++ccp;
1571 p = (char**) ccp;
1572 ccp = (char const *const *) p;
1573 { /* SCO 3.2v4 cc rejects this. */
1574 char *t;
1575 char const *s = 0 ? (char *) 0 : (char const *) 0;
1576
1577 *t++ = 0;
1578 }
1579 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1580 int x[] = {25, 17};
1581 const int *foo = &x[0];
1582 ++foo;
1583 }
1584 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1585 typedef const int *iptr;
1586 iptr p = 0;
1587 ++p;
1588 }
1589 { /* AIX XL C 1.02.0.0 rejects this saying
1590 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1591 struct s { int j; const int *ap[3]; };
1592 struct s *b; b->j = 5;
1593 }
1594 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1595 const int foo = 10;
1596 }
1597
1598 ; return 0; }
1599 EOF
1600 if { (eval echo configure:1601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1601 rm -rf conftest*
1602 ac_cv_c_const=yes
1603 else
1604 echo "configure: failed program was:" >&5
1605 cat conftest.$ac_ext >&5
1606 rm -rf conftest*
1607 ac_cv_c_const=no
1608 fi
1609 rm -f conftest*
1610 fi
1611
1612 echo "$ac_t""$ac_cv_c_const" 1>&6
1613 if test $ac_cv_c_const = no; then
1614 cat >> confdefs.h <<\EOF
1615 #define const
1616 EOF
1617
1618 fi
1619
1620 echo $ac_n "checking for inline""... $ac_c" 1>&6
1621 echo "configure:1622: checking for inline" >&5
1622 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1624 else
1625 ac_cv_c_inline=no
1626 for ac_kw in inline __inline__ __inline; do
1627 cat > conftest.$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1630
1631 int main() {
1632 } $ac_kw foo() {
1633 ; return 0; }
1634 EOF
1635 if { (eval echo configure:1636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1636 rm -rf conftest*
1637 ac_cv_c_inline=$ac_kw; break
1638 else
1639 echo "configure: failed program was:" >&5
1640 cat conftest.$ac_ext >&5
1641 fi
1642 rm -f conftest*
1643 done
1644
1645 fi
1646
1647 echo "$ac_t""$ac_cv_c_inline" 1>&6
1648 case "$ac_cv_c_inline" in
1649 inline | yes) ;;
1650 no) cat >> confdefs.h <<\EOF
1651 #define inline
1652 EOF
1653 ;;
1654 *) cat >> confdefs.h <<EOF
1655 #define inline $ac_cv_c_inline
1656 EOF
1657 ;;
1658 esac
1659
1660
1661 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1662 echo "configure:1663: checking for ANSI C header files" >&5
1663 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1665 else
1666 cat > conftest.$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1669 #include <stdlib.h>
1670 #include <stdarg.h>
1671 #include <string.h>
1672 #include <float.h>
1673 EOF
1674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1675 { (eval echo configure:1676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1676 ac_err=`grep -v '^ *+' conftest.out`
1677 if test -z "$ac_err"; then
1678 rm -rf conftest*
1679 ac_cv_header_stdc=yes
1680 else
1681 echo "$ac_err" >&5
1682 echo "configure: failed program was:" >&5
1683 cat conftest.$ac_ext >&5
1684 rm -rf conftest*
1685 ac_cv_header_stdc=no
1686 fi
1687 rm -f conftest*
1688
1689 if test $ac_cv_header_stdc = yes; then
1690 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1694 #include <string.h>
1695 EOF
1696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1697 egrep "memchr" >/dev/null 2>&1; then
1698 :
1699 else
1700 rm -rf conftest*
1701 ac_cv_header_stdc=no
1702 fi
1703 rm -f conftest*
1704
1705 fi
1706
1707 if test $ac_cv_header_stdc = yes; then
1708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1709 cat > conftest.$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1712 #include <stdlib.h>
1713 EOF
1714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1715 egrep "free" >/dev/null 2>&1; then
1716 :
1717 else
1718 rm -rf conftest*
1719 ac_cv_header_stdc=no
1720 fi
1721 rm -f conftest*
1722
1723 fi
1724
1725 if test $ac_cv_header_stdc = yes; then
1726 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1727 if test "$cross_compiling" = yes; then
1728 :
1729 else
1730 cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1733 #include <ctype.h>
1734 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1735 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1737 int main () { int i; for (i = 0; i < 256; i++)
1738 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1739 exit (0); }
1740
1741 EOF
1742 if { (eval echo configure:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1743 then
1744 :
1745 else
1746 echo "configure: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1748 rm -fr conftest*
1749 ac_cv_header_stdc=no
1750 fi
1751 rm -fr conftest*
1752 fi
1753
1754 fi
1755 fi
1756
1757 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1758 if test $ac_cv_header_stdc = yes; then
1759 cat >> confdefs.h <<\EOF
1760 #define STDC_HEADERS 1
1761 EOF
1762
1763 fi
1764
1765 ac_header_dirent=no
1766 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1767 do
1768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1769 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1770 echo "configure:1771: checking for $ac_hdr that defines DIR" >&5
1771 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1773 else
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1777 #include <sys/types.h>
1778 #include <$ac_hdr>
1779 int main() {
1780 DIR *dirp = 0;
1781 ; return 0; }
1782 EOF
1783 if { (eval echo configure:1784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1784 rm -rf conftest*
1785 eval "ac_cv_header_dirent_$ac_safe=yes"
1786 else
1787 echo "configure: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1789 rm -rf conftest*
1790 eval "ac_cv_header_dirent_$ac_safe=no"
1791 fi
1792 rm -f conftest*
1793 fi
1794 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1795 echo "$ac_t""yes" 1>&6
1796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1797 cat >> confdefs.h <<EOF
1798 #define $ac_tr_hdr 1
1799 EOF
1800 ac_header_dirent=$ac_hdr; break
1801 else
1802 echo "$ac_t""no" 1>&6
1803 fi
1804 done
1805 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1806 if test $ac_header_dirent = dirent.h; then
1807 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1808 echo "configure:1809: checking for opendir in -ldir" >&5
1809 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1812 else
1813 ac_save_LIBS="$LIBS"
1814 LIBS="-ldir $LIBS"
1815 cat > conftest.$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1818 /* Override any gcc2 internal prototype to avoid an error. */
1819 /* We use char because int might match the return type of a gcc2
1820 builtin and then its argument prototype would still apply. */
1821 char opendir();
1822
1823 int main() {
1824 opendir()
1825 ; return 0; }
1826 EOF
1827 if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1828 rm -rf conftest*
1829 eval "ac_cv_lib_$ac_lib_var=yes"
1830 else
1831 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1833 rm -rf conftest*
1834 eval "ac_cv_lib_$ac_lib_var=no"
1835 fi
1836 rm -f conftest*
1837 LIBS="$ac_save_LIBS"
1838
1839 fi
1840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1841 echo "$ac_t""yes" 1>&6
1842 LIBS="$LIBS -ldir"
1843 else
1844 echo "$ac_t""no" 1>&6
1845 fi
1846
1847 else
1848 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1849 echo "configure:1850: checking for opendir in -lx" >&5
1850 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1853 else
1854 ac_save_LIBS="$LIBS"
1855 LIBS="-lx $LIBS"
1856 cat > conftest.$ac_ext <<EOF
1857 #line 1858 "configure"
1858 #include "confdefs.h"
1859 /* Override any gcc2 internal prototype to avoid an error. */
1860 /* We use char because int might match the return type of a gcc2
1861 builtin and then its argument prototype would still apply. */
1862 char opendir();
1863
1864 int main() {
1865 opendir()
1866 ; return 0; }
1867 EOF
1868 if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1869 rm -rf conftest*
1870 eval "ac_cv_lib_$ac_lib_var=yes"
1871 else
1872 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1874 rm -rf conftest*
1875 eval "ac_cv_lib_$ac_lib_var=no"
1876 fi
1877 rm -f conftest*
1878 LIBS="$ac_save_LIBS"
1879
1880 fi
1881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1882 echo "$ac_t""yes" 1>&6
1883 LIBS="$LIBS -lx"
1884 else
1885 echo "$ac_t""no" 1>&6
1886 fi
1887
1888 fi
1889
1890 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1891 echo "configure:1892: checking whether time.h and sys/time.h may both be included" >&5
1892 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1894 else
1895 cat > conftest.$ac_ext <<EOF
1896 #line 1897 "configure"
1897 #include "confdefs.h"
1898 #include <sys/types.h>
1899 #include <sys/time.h>
1900 #include <time.h>
1901 int main() {
1902 struct tm *tp;
1903 ; return 0; }
1904 EOF
1905 if { (eval echo configure:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1906 rm -rf conftest*
1907 ac_cv_header_time=yes
1908 else
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1911 rm -rf conftest*
1912 ac_cv_header_time=no
1913 fi
1914 rm -f conftest*
1915 fi
1916
1917 echo "$ac_t""$ac_cv_header_time" 1>&6
1918 if test $ac_cv_header_time = yes; then
1919 cat >> confdefs.h <<\EOF
1920 #define TIME_WITH_SYS_TIME 1
1921 EOF
1922
1923 fi
1924
1925 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1926 echo "configure:1927: checking for sys/wait.h that is POSIX.1 compatible" >&5
1927 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1929 else
1930 cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1933 #include <sys/types.h>
1934 #include <sys/wait.h>
1935 #ifndef WEXITSTATUS
1936 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1937 #endif
1938 #ifndef WIFEXITED
1939 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1940 #endif
1941 int main() {
1942 int s;
1943 wait (&s);
1944 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1945 ; return 0; }
1946 EOF
1947 if { (eval echo configure:1948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1948 rm -rf conftest*
1949 ac_cv_header_sys_wait_h=yes
1950 else
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1953 rm -rf conftest*
1954 ac_cv_header_sys_wait_h=no
1955 fi
1956 rm -f conftest*
1957 fi
1958
1959 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1960 if test $ac_cv_header_sys_wait_h = yes; then
1961 cat >> confdefs.h <<\EOF
1962 #define HAVE_SYS_WAIT_H 1
1963 EOF
1964
1965 fi
1966
1967 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
1968 do
1969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1971 echo "configure:1972: checking for $ac_hdr" >&5
1972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1974 else
1975 cat > conftest.$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1978 #include <$ac_hdr>
1979 EOF
1980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1981 { (eval echo configure:1982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1982 ac_err=`grep -v '^ *+' conftest.out`
1983 if test -z "$ac_err"; then
1984 rm -rf conftest*
1985 eval "ac_cv_header_$ac_safe=yes"
1986 else
1987 echo "$ac_err" >&5
1988 echo "configure: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 rm -rf conftest*
1991 eval "ac_cv_header_$ac_safe=no"
1992 fi
1993 rm -f conftest*
1994 fi
1995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1996 echo "$ac_t""yes" 1>&6
1997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1998 cat >> confdefs.h <<EOF
1999 #define $ac_tr_hdr 1
2000 EOF
2001
2002 else
2003 echo "$ac_t""no" 1>&6
2004 fi
2005 done
2006
2007
2008 for ac_hdr in libc.h unistd.h
2009 do
2010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2012 echo "configure:2013: checking for $ac_hdr" >&5
2013 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2015 else
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2019 #include <$ac_hdr>
2020 EOF
2021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2022 { (eval echo configure:2023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2023 ac_err=`grep -v '^ *+' conftest.out`
2024 if test -z "$ac_err"; then
2025 rm -rf conftest*
2026 eval "ac_cv_header_$ac_safe=yes"
2027 else
2028 echo "$ac_err" >&5
2029 echo "configure: failed program was:" >&5
2030 cat conftest.$ac_ext >&5
2031 rm -rf conftest*
2032 eval "ac_cv_header_$ac_safe=no"
2033 fi
2034 rm -f conftest*
2035 fi
2036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2037 echo "$ac_t""yes" 1>&6
2038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2039 cat >> confdefs.h <<EOF
2040 #define $ac_tr_hdr 1
2041 EOF
2042
2043 else
2044 echo "$ac_t""no" 1>&6
2045 fi
2046 done
2047
2048 echo $ac_n "checking "whether libc.h and unistd.h can be included together"""... $ac_c" 1>&6
2049 echo "configure:2050: checking "whether libc.h and unistd.h can be included together"" >&5
2050 if eval "test \"`echo '$''{'guile_cv_header_libc_with_unistd'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2052 else
2053
2054 if test "$ac_cv_header_libc_h" = "no"; then
2055 guile_cv_header_libc_with_unistd="no"
2056 elif test "$ac_cv_header_unistd.h" = "no"; then
2057 guile_cv_header_libc_with_unistd="yes"
2058 else
2059 cat > conftest.$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2062
2063 # include <libc.h>
2064 # include <unistd.h>
2065
2066 int main() {
2067
2068 ; return 0; }
2069 EOF
2070 if { (eval echo configure:2071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2071 rm -rf conftest*
2072 guile_cv_header_libc_with_unistd=yes
2073 else
2074 echo "configure: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2076 rm -rf conftest*
2077 guile_cv_header_libc_with_unistd=no
2078
2079 fi
2080 rm -f conftest*
2081 fi
2082
2083
2084 fi
2085
2086 echo "$ac_t""$guile_cv_header_libc_with_unistd" 1>&6
2087 if test "$guile_cv_header_libc_with_unistd" = yes; then
2088 cat >> confdefs.h <<\EOF
2089 #define LIBC_H_WITH_UNISTD_H 1
2090 EOF
2091
2092 fi
2093
2094
2095
2096 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2097 echo "configure:2098: checking for uid_t in sys/types.h" >&5
2098 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 #include <sys/types.h>
2105 EOF
2106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2107 egrep "uid_t" >/dev/null 2>&1; then
2108 rm -rf conftest*
2109 ac_cv_type_uid_t=yes
2110 else
2111 rm -rf conftest*
2112 ac_cv_type_uid_t=no
2113 fi
2114 rm -f conftest*
2115
2116 fi
2117
2118 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2119 if test $ac_cv_type_uid_t = no; then
2120 cat >> confdefs.h <<\EOF
2121 #define uid_t int
2122 EOF
2123
2124 cat >> confdefs.h <<\EOF
2125 #define gid_t int
2126 EOF
2127
2128 fi
2129
2130 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2131 echo "configure:2132: checking type of array argument to getgroups" >&5
2132 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2134 else
2135 if test "$cross_compiling" = yes; then
2136 ac_cv_type_getgroups=cross
2137 else
2138 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2141
2142 /* Thanks to Mike Rendell for this test. */
2143 #include <sys/types.h>
2144 #define NGID 256
2145 #undef MAX
2146 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2147 main()
2148 {
2149 gid_t gidset[NGID];
2150 int i, n;
2151 union { gid_t gval; long lval; } val;
2152
2153 val.lval = -1;
2154 for (i = 0; i < NGID; i++)
2155 gidset[i] = val.gval;
2156 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2157 gidset);
2158 /* Exit non-zero if getgroups seems to require an array of ints. This
2159 happens when gid_t is short but getgroups modifies an array of ints. */
2160 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2161 }
2162
2163 EOF
2164 if { (eval echo configure:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2165 then
2166 ac_cv_type_getgroups=gid_t
2167 else
2168 echo "configure: failed program was:" >&5
2169 cat conftest.$ac_ext >&5
2170 rm -fr conftest*
2171 ac_cv_type_getgroups=int
2172 fi
2173 rm -fr conftest*
2174 fi
2175
2176 if test $ac_cv_type_getgroups = cross; then
2177 cat > conftest.$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2180 #include <unistd.h>
2181 EOF
2182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2183 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2184 rm -rf conftest*
2185 ac_cv_type_getgroups=gid_t
2186 else
2187 rm -rf conftest*
2188 ac_cv_type_getgroups=int
2189 fi
2190 rm -f conftest*
2191
2192 fi
2193 fi
2194
2195 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2196 cat >> confdefs.h <<EOF
2197 #define GETGROUPS_T $ac_cv_type_getgroups
2198 EOF
2199
2200
2201 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2202 echo "configure:2203: checking return type of signal handlers" >&5
2203 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2205 else
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2209 #include <sys/types.h>
2210 #include <signal.h>
2211 #ifdef signal
2212 #undef signal
2213 #endif
2214 #ifdef __cplusplus
2215 extern "C" void (*signal (int, void (*)(int)))(int);
2216 #else
2217 void (*signal ()) ();
2218 #endif
2219
2220 int main() {
2221 int i;
2222 ; return 0; }
2223 EOF
2224 if { (eval echo configure:2225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2225 rm -rf conftest*
2226 ac_cv_type_signal=void
2227 else
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2230 rm -rf conftest*
2231 ac_cv_type_signal=int
2232 fi
2233 rm -f conftest*
2234 fi
2235
2236 echo "$ac_t""$ac_cv_type_signal" 1>&6
2237 cat >> confdefs.h <<EOF
2238 #define RETSIGTYPE $ac_cv_type_signal
2239 EOF
2240
2241
2242 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2243 echo "configure:2244: checking for mode_t" >&5
2244 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2246 else
2247 cat > conftest.$ac_ext <<EOF
2248 #line 2249 "configure"
2249 #include "confdefs.h"
2250 #include <sys/types.h>
2251 #if STDC_HEADERS
2252 #include <stdlib.h>
2253 #include <stddef.h>
2254 #endif
2255 EOF
2256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2257 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2258 rm -rf conftest*
2259 ac_cv_type_mode_t=yes
2260 else
2261 rm -rf conftest*
2262 ac_cv_type_mode_t=no
2263 fi
2264 rm -f conftest*
2265
2266 fi
2267 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2268 if test $ac_cv_type_mode_t = no; then
2269 cat >> confdefs.h <<\EOF
2270 #define mode_t int
2271 EOF
2272
2273 fi
2274
2275
2276 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2277 echo "configure:2278: checking for main in -lm" >&5
2278 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
2279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2281 else
2282 ac_save_LIBS="$LIBS"
2283 LIBS="-lm $LIBS"
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287
2288 int main() {
2289 main()
2290 ; return 0; }
2291 EOF
2292 if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2293 rm -rf conftest*
2294 eval "ac_cv_lib_$ac_lib_var=yes"
2295 else
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 rm -rf conftest*
2299 eval "ac_cv_lib_$ac_lib_var=no"
2300 fi
2301 rm -f conftest*
2302 LIBS="$ac_save_LIBS"
2303
2304 fi
2305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2306 echo "$ac_t""yes" 1>&6
2307 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2308 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2309 cat >> confdefs.h <<EOF
2310 #define $ac_tr_lib 1
2311 EOF
2312
2313 LIBS="-lm $LIBS"
2314
2315 else
2316 echo "$ac_t""no" 1>&6
2317 fi
2318
2319 for ac_func in gethostbyname
2320 do
2321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2322 echo "configure:2323: checking for $ac_func" >&5
2323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2325 else
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2329 /* System header to define __stub macros and hopefully few prototypes,
2330 which can conflict with char $ac_func(); below. */
2331 #include <assert.h>
2332 /* Override any gcc2 internal prototype to avoid an error. */
2333 /* We use char because int might match the return type of a gcc2
2334 builtin and then its argument prototype would still apply. */
2335 char $ac_func();
2336
2337 int main() {
2338
2339 /* The GNU C library defines this for functions which it implements
2340 to always fail with ENOSYS. Some functions are actually named
2341 something starting with __ and the normal name is an alias. */
2342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2343 choke me
2344 #else
2345 $ac_func();
2346 #endif
2347
2348 ; return 0; }
2349 EOF
2350 if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2351 rm -rf conftest*
2352 eval "ac_cv_func_$ac_func=yes"
2353 else
2354 echo "configure: failed program was:" >&5
2355 cat conftest.$ac_ext >&5
2356 rm -rf conftest*
2357 eval "ac_cv_func_$ac_func=no"
2358 fi
2359 rm -f conftest*
2360 fi
2361
2362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2363 echo "$ac_t""yes" 1>&6
2364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2365 cat >> confdefs.h <<EOF
2366 #define $ac_tr_func 1
2367 EOF
2368
2369 else
2370 echo "$ac_t""no" 1>&6
2371 fi
2372 done
2373
2374 if test $ac_cv_func_gethostbyname = no; then
2375 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2376 echo "configure:2377: checking for gethostbyname in -lnsl" >&5
2377 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2380 else
2381 ac_save_LIBS="$LIBS"
2382 LIBS="-lnsl $LIBS"
2383 cat > conftest.$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2386 /* Override any gcc2 internal prototype to avoid an error. */
2387 /* We use char because int might match the return type of a gcc2
2388 builtin and then its argument prototype would still apply. */
2389 char gethostbyname();
2390
2391 int main() {
2392 gethostbyname()
2393 ; return 0; }
2394 EOF
2395 if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2396 rm -rf conftest*
2397 eval "ac_cv_lib_$ac_lib_var=yes"
2398 else
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2401 rm -rf conftest*
2402 eval "ac_cv_lib_$ac_lib_var=no"
2403 fi
2404 rm -f conftest*
2405 LIBS="$ac_save_LIBS"
2406
2407 fi
2408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2411 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2412 cat >> confdefs.h <<EOF
2413 #define $ac_tr_lib 1
2414 EOF
2415
2416 LIBS="-lnsl $LIBS"
2417
2418 else
2419 echo "$ac_t""no" 1>&6
2420 fi
2421
2422 fi
2423 for ac_func in connect
2424 do
2425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_func" >&5
2427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429 else
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 /* System header to define __stub macros and hopefully few prototypes,
2434 which can conflict with char $ac_func(); below. */
2435 #include <assert.h>
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439 char $ac_func();
2440
2441 int main() {
2442
2443 /* The GNU C library defines this for functions which it implements
2444 to always fail with ENOSYS. Some functions are actually named
2445 something starting with __ and the normal name is an alias. */
2446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2447 choke me
2448 #else
2449 $ac_func();
2450 #endif
2451
2452 ; return 0; }
2453 EOF
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2455 rm -rf conftest*
2456 eval "ac_cv_func_$ac_func=yes"
2457 else
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 rm -rf conftest*
2461 eval "ac_cv_func_$ac_func=no"
2462 fi
2463 rm -f conftest*
2464 fi
2465
2466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2467 echo "$ac_t""yes" 1>&6
2468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2469 cat >> confdefs.h <<EOF
2470 #define $ac_tr_func 1
2471 EOF
2472
2473 else
2474 echo "$ac_t""no" 1>&6
2475 fi
2476 done
2477
2478 if test $ac_cv_func_connect = no; then
2479 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2480 echo "configure:2481: checking for connect in -lsocket" >&5
2481 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2484 else
2485 ac_save_LIBS="$LIBS"
2486 LIBS="-lsocket $LIBS"
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2490 /* Override any gcc2 internal prototype to avoid an error. */
2491 /* We use char because int might match the return type of a gcc2
2492 builtin and then its argument prototype would still apply. */
2493 char connect();
2494
2495 int main() {
2496 connect()
2497 ; return 0; }
2498 EOF
2499 if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2500 rm -rf conftest*
2501 eval "ac_cv_lib_$ac_lib_var=yes"
2502 else
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2505 rm -rf conftest*
2506 eval "ac_cv_lib_$ac_lib_var=no"
2507 fi
2508 rm -f conftest*
2509 LIBS="$ac_save_LIBS"
2510
2511 fi
2512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2513 echo "$ac_t""yes" 1>&6
2514 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2516 cat >> confdefs.h <<EOF
2517 #define $ac_tr_lib 1
2518 EOF
2519
2520 LIBS="-lsocket $LIBS"
2521
2522 else
2523 echo "$ac_t""no" 1>&6
2524 fi
2525
2526 fi
2527
2528 for termlib in ncurses termcap ; do
2529 echo $ac_n "checking for tgoto in -l${termlib}""... $ac_c" 1>&6
2530 echo "configure:2531: checking for tgoto in -l${termlib}" >&5
2531 ac_lib_var=`echo ${termlib}'_'tgoto | sed 'y%./+-%__p_%'`
2532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2534 else
2535 ac_save_LIBS="$LIBS"
2536 LIBS="-l${termlib} $LIBS"
2537 cat > conftest.$ac_ext <<EOF
2538 #line 2539 "configure"
2539 #include "confdefs.h"
2540 /* Override any gcc2 internal prototype to avoid an error. */
2541 /* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2543 char tgoto();
2544
2545 int main() {
2546 tgoto()
2547 ; return 0; }
2548 EOF
2549 if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2550 rm -rf conftest*
2551 eval "ac_cv_lib_$ac_lib_var=yes"
2552 else
2553 echo "configure: failed program was:" >&5
2554 cat conftest.$ac_ext >&5
2555 rm -rf conftest*
2556 eval "ac_cv_lib_$ac_lib_var=no"
2557 fi
2558 rm -f conftest*
2559 LIBS="$ac_save_LIBS"
2560
2561 fi
2562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2563 echo "$ac_t""yes" 1>&6
2564 LIBS="-l${termlib} $LIBS"; break
2565 else
2566 echo "$ac_t""no" 1>&6
2567 fi
2568
2569 done
2570 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
2571 echo "configure:2572: checking for main in -lreadline" >&5
2572 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
2573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2575 else
2576 ac_save_LIBS="$LIBS"
2577 LIBS="-lreadline $LIBS"
2578 cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2581
2582 int main() {
2583 main()
2584 ; return 0; }
2585 EOF
2586 if { (eval echo configure:2587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2587 rm -rf conftest*
2588 eval "ac_cv_lib_$ac_lib_var=yes"
2589 else
2590 echo "configure: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2592 rm -rf conftest*
2593 eval "ac_cv_lib_$ac_lib_var=no"
2594 fi
2595 rm -f conftest*
2596 LIBS="$ac_save_LIBS"
2597
2598 fi
2599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2600 echo "$ac_t""yes" 1>&6
2601 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2602 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2603 cat >> confdefs.h <<EOF
2604 #define $ac_tr_lib 1
2605 EOF
2606
2607 LIBS="-lreadline $LIBS"
2608
2609 else
2610 echo "$ac_t""no" 1>&6
2611 fi
2612
2613 for ac_func in rl_clear_signals rl_cleanup_after_signal
2614 do
2615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2616 echo "configure:2617: checking for $ac_func" >&5
2617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2619 else
2620 cat > conftest.$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2623 /* System header to define __stub macros and hopefully few prototypes,
2624 which can conflict with char $ac_func(); below. */
2625 #include <assert.h>
2626 /* Override any gcc2 internal prototype to avoid an error. */
2627 /* We use char because int might match the return type of a gcc2
2628 builtin and then its argument prototype would still apply. */
2629 char $ac_func();
2630
2631 int main() {
2632
2633 /* The GNU C library defines this for functions which it implements
2634 to always fail with ENOSYS. Some functions are actually named
2635 something starting with __ and the normal name is an alias. */
2636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2637 choke me
2638 #else
2639 $ac_func();
2640 #endif
2641
2642 ; return 0; }
2643 EOF
2644 if { (eval echo configure:2645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2645 rm -rf conftest*
2646 eval "ac_cv_func_$ac_func=yes"
2647 else
2648 echo "configure: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2650 rm -rf conftest*
2651 eval "ac_cv_func_$ac_func=no"
2652 fi
2653 rm -f conftest*
2654 fi
2655
2656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2657 echo "$ac_t""yes" 1>&6
2658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2659 cat >> confdefs.h <<EOF
2660 #define $ac_tr_func 1
2661 EOF
2662
2663 else
2664 echo "$ac_t""no" 1>&6
2665 fi
2666 done
2667
2668
2669 echo $ac_n "checking for rl_getc_function pointer in readline""... $ac_c" 1>&6
2670 echo "configure:2671: checking for rl_getc_function pointer in readline" >&5
2671 if eval "test \"`echo '$''{'ac_cv_var_rl_getc_function'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2673 else
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677
2678 #include <stdio.h>
2679 #include <readline/readline.h>
2680 int main() {
2681 rl_getc_function;
2682 ; return 0; }
2683 EOF
2684 if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2685 rm -rf conftest*
2686 ac_cv_var_rl_getc_function=yes
2687 else
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2690 rm -rf conftest*
2691 ac_cv_var_rl_getc_function=no
2692 fi
2693 rm -f conftest*
2694 fi
2695
2696 echo "$ac_t""$ac_cv_var_rl_getc_function" 1>&6
2697 if test "$ac_cv_var_rl_getc_function" = "yes"; then
2698 cat >> confdefs.h <<\EOF
2699 #define HAVE_RL_GETC_FUNCTION 1
2700 EOF
2701
2702 fi
2703
2704 if test $ac_cv_lib_readline_readline = yes -a $ac_cv_var_rl_getc_function = no; then
2705 echo 'Warning: libreadline is too old on your system. Need >= 2.1.'
2706 fi
2707
2708 # Checks for dynamic linking
2709
2710 if test "$enable_dynamic_linking" = "yes"; then
2711
2712 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2713 echo "configure:2714: checking for dlopen in -ldl" >&5
2714 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2717 else
2718 ac_save_LIBS="$LIBS"
2719 LIBS="-ldl $LIBS"
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2723 /* Override any gcc2 internal prototype to avoid an error. */
2724 /* We use char because int might match the return type of a gcc2
2725 builtin and then its argument prototype would still apply. */
2726 char dlopen();
2727
2728 int main() {
2729 dlopen()
2730 ; return 0; }
2731 EOF
2732 if { (eval echo configure:2733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2733 rm -rf conftest*
2734 eval "ac_cv_lib_$ac_lib_var=yes"
2735 else
2736 echo "configure: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2738 rm -rf conftest*
2739 eval "ac_cv_lib_$ac_lib_var=no"
2740 fi
2741 rm -f conftest*
2742 LIBS="$ac_save_LIBS"
2743
2744 fi
2745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2746 echo "$ac_t""yes" 1>&6
2747 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2748 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2749 cat >> confdefs.h <<EOF
2750 #define $ac_tr_lib 1
2751 EOF
2752
2753 LIBS="-ldl $LIBS"
2754
2755 else
2756 echo "$ac_t""no" 1>&6
2757 fi
2758
2759 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
2760 for ac_func in dlopen
2761 do
2762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2763 echo "configure:2764: checking for $ac_func" >&5
2764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2766 else
2767 cat > conftest.$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2770 /* System header to define __stub macros and hopefully few prototypes,
2771 which can conflict with char $ac_func(); below. */
2772 #include <assert.h>
2773 /* Override any gcc2 internal prototype to avoid an error. */
2774 /* We use char because int might match the return type of a gcc2
2775 builtin and then its argument prototype would still apply. */
2776 char $ac_func();
2777
2778 int main() {
2779
2780 /* The GNU C library defines this for functions which it implements
2781 to always fail with ENOSYS. Some functions are actually named
2782 something starting with __ and the normal name is an alias. */
2783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2784 choke me
2785 #else
2786 $ac_func();
2787 #endif
2788
2789 ; return 0; }
2790 EOF
2791 if { (eval echo configure:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2792 rm -rf conftest*
2793 eval "ac_cv_func_$ac_func=yes"
2794 else
2795 echo "configure: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2797 rm -rf conftest*
2798 eval "ac_cv_func_$ac_func=no"
2799 fi
2800 rm -f conftest*
2801 fi
2802
2803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2804 echo "$ac_t""yes" 1>&6
2805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2806 cat >> confdefs.h <<EOF
2807 #define $ac_tr_func 1
2808 EOF
2809
2810 else
2811 echo "$ac_t""no" 1>&6
2812 fi
2813 done
2814
2815 cat >> confdefs.h <<\EOF
2816 #define DYNAMIC_LINKING 1
2817 EOF
2818
2819 else
2820 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2821 echo "configure:2822: checking for dld_link in -ldld" >&5
2822 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2825 else
2826 ac_save_LIBS="$LIBS"
2827 LIBS="-ldld $LIBS"
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 /* Override any gcc2 internal prototype to avoid an error. */
2832 /* We use char because int might match the return type of a gcc2
2833 builtin and then its argument prototype would still apply. */
2834 char dld_link();
2835
2836 int main() {
2837 dld_link()
2838 ; return 0; }
2839 EOF
2840 if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2841 rm -rf conftest*
2842 eval "ac_cv_lib_$ac_lib_var=yes"
2843 else
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 rm -rf conftest*
2847 eval "ac_cv_lib_$ac_lib_var=no"
2848 fi
2849 rm -f conftest*
2850 LIBS="$ac_save_LIBS"
2851
2852 fi
2853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2855 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2856 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2857 cat >> confdefs.h <<EOF
2858 #define $ac_tr_lib 1
2859 EOF
2860
2861 LIBS="-ldld $LIBS"
2862
2863 else
2864 echo "$ac_t""no" 1>&6
2865 fi
2866
2867 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
2868 cat >> confdefs.h <<\EOF
2869 #define DYNAMIC_LINKING 1
2870 EOF
2871
2872 else
2873 for ac_func in shl_load
2874 do
2875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2876 echo "configure:2877: checking for $ac_func" >&5
2877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2879 else
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2883 /* System header to define __stub macros and hopefully few prototypes,
2884 which can conflict with char $ac_func(); below. */
2885 #include <assert.h>
2886 /* Override any gcc2 internal prototype to avoid an error. */
2887 /* We use char because int might match the return type of a gcc2
2888 builtin and then its argument prototype would still apply. */
2889 char $ac_func();
2890
2891 int main() {
2892
2893 /* The GNU C library defines this for functions which it implements
2894 to always fail with ENOSYS. Some functions are actually named
2895 something starting with __ and the normal name is an alias. */
2896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2897 choke me
2898 #else
2899 $ac_func();
2900 #endif
2901
2902 ; return 0; }
2903 EOF
2904 if { (eval echo configure:2905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2905 rm -rf conftest*
2906 eval "ac_cv_func_$ac_func=yes"
2907 else
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2910 rm -rf conftest*
2911 eval "ac_cv_func_$ac_func=no"
2912 fi
2913 rm -f conftest*
2914 fi
2915
2916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2917 echo "$ac_t""yes" 1>&6
2918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2919 cat >> confdefs.h <<EOF
2920 #define $ac_tr_func 1
2921 EOF
2922
2923 else
2924 echo "$ac_t""no" 1>&6
2925 fi
2926 done
2927
2928 if test "$ac_cv_func_shl_load" = "yes"; then
2929 cat >> confdefs.h <<\EOF
2930 #define DYNAMIC_LINKING 1
2931 EOF
2932
2933 else
2934 for ac_func in dlopen
2935 do
2936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2937 echo "configure:2938: checking for $ac_func" >&5
2938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2940 else
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 /* System header to define __stub macros and hopefully few prototypes,
2945 which can conflict with char $ac_func(); below. */
2946 #include <assert.h>
2947 /* Override any gcc2 internal prototype to avoid an error. */
2948 /* We use char because int might match the return type of a gcc2
2949 builtin and then its argument prototype would still apply. */
2950 char $ac_func();
2951
2952 int main() {
2953
2954 /* The GNU C library defines this for functions which it implements
2955 to always fail with ENOSYS. Some functions are actually named
2956 something starting with __ and the normal name is an alias. */
2957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2958 choke me
2959 #else
2960 $ac_func();
2961 #endif
2962
2963 ; return 0; }
2964 EOF
2965 if { (eval echo configure:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2966 rm -rf conftest*
2967 eval "ac_cv_func_$ac_func=yes"
2968 else
2969 echo "configure: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2971 rm -rf conftest*
2972 eval "ac_cv_func_$ac_func=no"
2973 fi
2974 rm -f conftest*
2975 fi
2976
2977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
2979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2980 cat >> confdefs.h <<EOF
2981 #define $ac_tr_func 1
2982 EOF
2983
2984 else
2985 echo "$ac_t""no" 1>&6
2986 fi
2987 done
2988
2989 if test "$ac_cv_func_dlopen" = "yes"; then
2990 cat >> confdefs.h <<\EOF
2991 #define DYNAMIC_LINKING 1
2992 EOF
2993
2994 fi
2995 fi
2996 fi
2997 fi
2998
2999 fi
3000
3001
3002 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
3003 echo "configure:3004: checking for underscore before symbols" >&5
3004 if eval "test \"`echo '$''{'guile_cv_uscore'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3006 else
3007
3008 echo "main(){int i=1;}
3009 fnord(){int i=23; int ltuae=42;}" > conftest.c
3010 ${CC} conftest.c > /dev/null
3011 if (nm a.out | grep _fnord) > /dev/null; then
3012 guile_cv_uscore=yes
3013 else
3014 guile_cv_uscore=no
3015 fi
3016 fi
3017
3018 echo "$ac_t""$guile_cv_uscore" 1>&6
3019 rm -f conftest.c a.out
3020
3021 if test $guile_cv_uscore = yes; then
3022 cat >> confdefs.h <<\EOF
3023 #define USCORE 1
3024 EOF
3025
3026
3027 if test $ac_cv_func_dlopen = yes -o $ac_cv_lib_dl_dlopen = yes ; then
3028 echo $ac_n "checking whether dlsym always adds an underscore for us""... $ac_c" 1>&6
3029 echo "configure:3030: checking whether dlsym always adds an underscore for us" >&5
3030 if eval "test \"`echo '$''{'guile_cv_dlsym_adds_uscore'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3032 else
3033 if test "$cross_compiling" = yes; then
3034 guile_cv_dlsym_adds_uscore=no
3035 else
3036 cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3039
3040 #include <dlfcn.h>
3041 #include <stdio.h>
3042 fnord() { int i=42;}
3043 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
3044 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
3045 if(ptr1 && !ptr2) exit(0); } exit(1); }
3046
3047 EOF
3048 if { (eval echo configure:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3049 then
3050 guile_cv_dlsym_adds_uscore=yes
3051 cat >> confdefs.h <<\EOF
3052 #define DLSYM_ADDS_USCORE 1
3053 EOF
3054
3055 else
3056 echo "configure: failed program was:" >&5
3057 cat conftest.$ac_ext >&5
3058 rm -fr conftest*
3059 guile_cv_dlsym_adds_uscore=no
3060 fi
3061 rm -fr conftest*
3062 fi
3063
3064 fi
3065
3066
3067 echo "$ac_t""$guile_cv_dlsym_adds_uscore" 1>&6
3068 fi
3069 fi
3070
3071
3072 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
3073 do
3074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3075 echo "configure:3076: checking for $ac_func" >&5
3076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3078 else
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 /* System header to define __stub macros and hopefully few prototypes,
3083 which can conflict with char $ac_func(); below. */
3084 #include <assert.h>
3085 /* Override any gcc2 internal prototype to avoid an error. */
3086 /* We use char because int might match the return type of a gcc2
3087 builtin and then its argument prototype would still apply. */
3088 char $ac_func();
3089
3090 int main() {
3091
3092 /* The GNU C library defines this for functions which it implements
3093 to always fail with ENOSYS. Some functions are actually named
3094 something starting with __ and the normal name is an alias. */
3095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3096 choke me
3097 #else
3098 $ac_func();
3099 #endif
3100
3101 ; return 0; }
3102 EOF
3103 if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3104 rm -rf conftest*
3105 eval "ac_cv_func_$ac_func=yes"
3106 else
3107 echo "configure: failed program was:" >&5
3108 cat conftest.$ac_ext >&5
3109 rm -rf conftest*
3110 eval "ac_cv_func_$ac_func=no"
3111 fi
3112 rm -f conftest*
3113 fi
3114
3115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3116 echo "$ac_t""yes" 1>&6
3117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3118 cat >> confdefs.h <<EOF
3119 #define $ac_tr_func 1
3120 EOF
3121
3122 else
3123 echo "$ac_t""no" 1>&6
3124 fi
3125 done
3126
3127
3128 ### Some systems don't declare some functions. On such systems, we
3129 ### need to at least provide our own K&R-style declarations.
3130
3131 ### GUILE_FUNC_DECLARED(function, headerfile)
3132
3133 ### Check for a declaration of FUNCTION in HEADERFILE; if it is
3134 ### not there, #define MISSING_FUNCTION_DECL.
3135
3136
3137
3138 echo $ac_n "checking for strptime declaration""... $ac_c" 1>&6
3139 echo "configure:3140: checking for strptime declaration" >&5
3140 if eval "test \"`echo '$''{'guile_cv_func_strptime_declared'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3142 else
3143 cat > conftest.$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 #include <time.h>
3147 EOF
3148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3149 egrep "strptime" >/dev/null 2>&1; then
3150 rm -rf conftest*
3151 guile_cv_func_strptime_declared=yes
3152 else
3153 rm -rf conftest*
3154 guile_cv_func_strptime_declared=no
3155 fi
3156 rm -f conftest*
3157
3158 fi
3159
3160 echo "$ac_t""$guile_cv_func_strptime_declared" 1>&6
3161 if test x$guile_cv_func_strptime_declared = xno; then
3162 cat >> confdefs.h <<\EOF
3163 #define MISSING_STRPTIME_DECL 1
3164 EOF
3165
3166 fi
3167
3168
3169 echo $ac_n "checking for bzero declaration""... $ac_c" 1>&6
3170 echo "configure:3171: checking for bzero declaration" >&5
3171 if eval "test \"`echo '$''{'guile_cv_func_bzero_declared'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3173 else
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 #include <string.h>
3178 EOF
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180 egrep "bzero" >/dev/null 2>&1; then
3181 rm -rf conftest*
3182 guile_cv_func_bzero_declared=yes
3183 else
3184 rm -rf conftest*
3185 guile_cv_func_bzero_declared=no
3186 fi
3187 rm -f conftest*
3188
3189 fi
3190
3191 echo "$ac_t""$guile_cv_func_bzero_declared" 1>&6
3192 if test x$guile_cv_func_bzero_declared = xno; then
3193 cat >> confdefs.h <<\EOF
3194 #define MISSING_BZERO_DECL 1
3195 EOF
3196
3197 fi
3198
3199
3200 echo $ac_n "checking for sleep declaration""... $ac_c" 1>&6
3201 echo "configure:3202: checking for sleep declaration" >&5
3202 if eval "test \"`echo '$''{'guile_cv_func_sleep_declared'+set}'`\" = set"; then
3203 echo $ac_n "(cached) $ac_c" 1>&6
3204 else
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3208 #include <unistd.h>
3209 EOF
3210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3211 egrep "sleep" >/dev/null 2>&1; then
3212 rm -rf conftest*
3213 guile_cv_func_sleep_declared=yes
3214 else
3215 rm -rf conftest*
3216 guile_cv_func_sleep_declared=no
3217 fi
3218 rm -f conftest*
3219
3220 fi
3221
3222 echo "$ac_t""$guile_cv_func_sleep_declared" 1>&6
3223 if test x$guile_cv_func_sleep_declared = xno; then
3224 cat >> confdefs.h <<\EOF
3225 #define MISSING_SLEEP_DECL 1
3226 EOF
3227
3228 fi
3229
3230
3231 echo $ac_n "checking for usleep declaration""... $ac_c" 1>&6
3232 echo "configure:3233: checking for usleep declaration" >&5
3233 if eval "test \"`echo '$''{'guile_cv_func_usleep_declared'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3235 else
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 #include <unistd.h>
3240 EOF
3241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3242 egrep "usleep" >/dev/null 2>&1; then
3243 rm -rf conftest*
3244 guile_cv_func_usleep_declared=yes
3245 else
3246 rm -rf conftest*
3247 guile_cv_func_usleep_declared=no
3248 fi
3249 rm -f conftest*
3250
3251 fi
3252
3253 echo "$ac_t""$guile_cv_func_usleep_declared" 1>&6
3254 if test x$guile_cv_func_usleep_declared = xno; then
3255 cat >> confdefs.h <<\EOF
3256 #define MISSING_USLEEP_DECL 1
3257 EOF
3258
3259 fi
3260
3261
3262 ### On some systems usleep has no return value. If it does have one,
3263 ### we'd like to return it; otherwise, we'll fake it.
3264 echo $ac_n "checking return type of usleep""... $ac_c" 1>&6
3265 echo "configure:3266: checking return type of usleep" >&5
3266 if eval "test \"`echo '$''{'guile_cv_func_usleep_return_type'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3268 else
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272 #include </usr/include/unistd.h>
3273 EOF
3274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3275 egrep "void[ ]+usleep" >/dev/null 2>&1; then
3276 rm -rf conftest*
3277 guile_cv_func_usleep_return_type=void
3278 else
3279 rm -rf conftest*
3280 guile_cv_func_usleep_return_type=int
3281 fi
3282 rm -f conftest*
3283
3284 fi
3285
3286 echo "$ac_t""$guile_cv_func_usleep_return_type" 1>&6
3287 case "$guile_cv_func_usleep_return_type" in
3288 "void" )
3289 cat >> confdefs.h <<\EOF
3290 #define USLEEP_RETURNS_VOID 1
3291 EOF
3292
3293 ;;
3294 esac
3295
3296
3297 ac_safe=`echo "sys/un.h" | sed 'y%./+-%__p_%'`
3298 echo $ac_n "checking for sys/un.h""... $ac_c" 1>&6
3299 echo "configure:3300: checking for sys/un.h" >&5
3300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3302 else
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 #include <sys/un.h>
3307 EOF
3308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3309 { (eval echo configure:3310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3310 ac_err=`grep -v '^ *+' conftest.out`
3311 if test -z "$ac_err"; then
3312 rm -rf conftest*
3313 eval "ac_cv_header_$ac_safe=yes"
3314 else
3315 echo "$ac_err" >&5
3316 echo "configure: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3318 rm -rf conftest*
3319 eval "ac_cv_header_$ac_safe=no"
3320 fi
3321 rm -f conftest*
3322 fi
3323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3324 echo "$ac_t""yes" 1>&6
3325 have_sys_un_h=1
3326 else
3327 echo "$ac_t""no" 1>&6
3328 fi
3329
3330 if test -n "$have_sys_un_h" ; then
3331 cat >> confdefs.h <<\EOF
3332 #define HAVE_UNIX_DOMAIN_SOCKETS 1
3333 EOF
3334
3335 fi
3336
3337 for ac_func in socketpair getgroups setpwent pause tzset
3338 do
3339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3340 echo "configure:3341: checking for $ac_func" >&5
3341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3343 else
3344 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 /* System header to define __stub macros and hopefully few prototypes,
3348 which can conflict with char $ac_func(); below. */
3349 #include <assert.h>
3350 /* Override any gcc2 internal prototype to avoid an error. */
3351 /* We use char because int might match the return type of a gcc2
3352 builtin and then its argument prototype would still apply. */
3353 char $ac_func();
3354
3355 int main() {
3356
3357 /* The GNU C library defines this for functions which it implements
3358 to always fail with ENOSYS. Some functions are actually named
3359 something starting with __ and the normal name is an alias. */
3360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3361 choke me
3362 #else
3363 $ac_func();
3364 #endif
3365
3366 ; return 0; }
3367 EOF
3368 if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3369 rm -rf conftest*
3370 eval "ac_cv_func_$ac_func=yes"
3371 else
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3374 rm -rf conftest*
3375 eval "ac_cv_func_$ac_func=no"
3376 fi
3377 rm -f conftest*
3378 fi
3379
3380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3381 echo "$ac_t""yes" 1>&6
3382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3383 cat >> confdefs.h <<EOF
3384 #define $ac_tr_func 1
3385 EOF
3386
3387 else
3388 echo "$ac_t""no" 1>&6
3389 fi
3390 done
3391
3392
3393
3394
3395
3396 for ac_func in sethostent endhostent getnetent setnetent endnetent getprotoent endprotoent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof
3397 do
3398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3399 echo "configure:3400: checking for $ac_func" >&5
3400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3402 else
3403 cat > conftest.$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 /* System header to define __stub macros and hopefully few prototypes,
3407 which can conflict with char $ac_func(); below. */
3408 #include <assert.h>
3409 /* Override any gcc2 internal prototype to avoid an error. */
3410 /* We use char because int might match the return type of a gcc2
3411 builtin and then its argument prototype would still apply. */
3412 char $ac_func();
3413
3414 int main() {
3415
3416 /* The GNU C library defines this for functions which it implements
3417 to always fail with ENOSYS. Some functions are actually named
3418 something starting with __ and the normal name is an alias. */
3419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3420 choke me
3421 #else
3422 $ac_func();
3423 #endif
3424
3425 ; return 0; }
3426 EOF
3427 if { (eval echo configure:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3428 rm -rf conftest*
3429 eval "ac_cv_func_$ac_func=yes"
3430 else
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3433 rm -rf conftest*
3434 eval "ac_cv_func_$ac_func=no"
3435 fi
3436 rm -f conftest*
3437 fi
3438
3439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3440 echo "$ac_t""yes" 1>&6
3441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3442 cat >> confdefs.h <<EOF
3443 #define $ac_tr_func 1
3444 EOF
3445
3446 else
3447 echo "$ac_t""no" 1>&6
3448 fi
3449 done
3450
3451
3452
3453 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
3454 echo "configure:3455: checking for restartable system calls" >&5
3455 if eval "test \"`echo '$''{'scm_cv_restarts'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3457 else
3458 if test $ac_cv_func_sigaction = yes; then
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 #include <signal.h>
3463 int main() {
3464 int a = SA_RESTART
3465 ; return 0; }
3466 EOF
3467 if { (eval echo configure:3468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3468 rm -rf conftest*
3469 scm_cv_restarts=yes
3470 else
3471 echo "configure: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3473 rm -rf conftest*
3474 scm_cv_restarts=no
3475 fi
3476 rm -f conftest*
3477 else
3478 scm_cv_restarts=no
3479 fi
3480 fi
3481
3482 echo "$ac_t""$scm_cv_restarts" 1>&6
3483 if test $scm_cv_restarts = yes; then
3484 cat >> confdefs.h <<\EOF
3485 #define HAVE_RESTARTS 1
3486 EOF
3487
3488 fi
3489
3490 if test "$ac_cv_header_regex_h" = yes ||
3491 test "$ac_cv_header_rxposix_h" = yes ||
3492 test "$ac_cv_header_rx_rxposix_h" = yes; then
3493 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3494 echo "configure:3495: checking for regcomp" >&5
3495 if eval "test \"`echo '$''{'ac_cv_func_regcomp_norx'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3497 else
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 /* System header to define __stub macros and hopefully few prototypes,
3502 which can conflict with char regcomp(); below. */
3503 #include <assert.h>
3504 /* Override any gcc2 internal prototype to avoid an error. */
3505 /* We use char because int might match the return type of a gcc2
3506 builtin and then its argument prototype would still apply. */
3507 char regcomp();
3508
3509 int main() {
3510
3511 /* The GNU C library defines this for functions which it implements
3512 to always fail with ENOSYS. Some functions are actually named
3513 something starting with __ and the normal name is an alias. */
3514 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3515 choke me
3516 #else
3517 regcomp();
3518 #endif
3519
3520 ; return 0; }
3521 EOF
3522 if { (eval echo configure:3523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3523 rm -rf conftest*
3524 eval "ac_cv_func_regcomp_norx=yes"
3525 else
3526 echo "configure: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3528 rm -rf conftest*
3529 eval "ac_cv_func_regcomp_norx=no"
3530 fi
3531 rm -f conftest*
3532 fi
3533
3534 if eval "test \"`echo '$ac_cv_func_'regcomp'_'norx`\" = yes"; then
3535 echo "$ac_t""yes" 1>&6
3536 LIBOBJS="regex-posix.o $LIBOBJS"
3537 else
3538 echo "$ac_t""no" 1>&6
3539 echo $ac_n "checking for main in -lrx""... $ac_c" 1>&6
3540 echo "configure:3541: checking for main in -lrx" >&5
3541 ac_lib_var=`echo rx'_'main | sed 'y%./+-%__p_%'`
3542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3544 else
3545 ac_save_LIBS="$LIBS"
3546 LIBS="-lrx $LIBS"
3547 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550
3551 int main() {
3552 main()
3553 ; return 0; }
3554 EOF
3555 if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3556 rm -rf conftest*
3557 eval "ac_cv_lib_$ac_lib_var=yes"
3558 else
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3561 rm -rf conftest*
3562 eval "ac_cv_lib_$ac_lib_var=no"
3563 fi
3564 rm -f conftest*
3565 LIBS="$ac_save_LIBS"
3566
3567 fi
3568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3569 echo "$ac_t""yes" 1>&6
3570 ac_tr_lib=HAVE_LIB`echo rx | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3571 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3572 cat >> confdefs.h <<EOF
3573 #define $ac_tr_lib 1
3574 EOF
3575
3576 LIBS="-lrx $LIBS"
3577
3578 else
3579 echo "$ac_t""no" 1>&6
3580 fi
3581
3582 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3583 echo "configure:3584: checking for regcomp" >&5
3584 if eval "test \"`echo '$''{'ac_cv_func_regcomp_rx'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3586 else
3587 cat > conftest.$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3590 /* System header to define __stub macros and hopefully few prototypes,
3591 which can conflict with char regcomp(); below. */
3592 #include <assert.h>
3593 /* Override any gcc2 internal prototype to avoid an error. */
3594 /* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3596 char regcomp();
3597
3598 int main() {
3599
3600 /* The GNU C library defines this for functions which it implements
3601 to always fail with ENOSYS. Some functions are actually named
3602 something starting with __ and the normal name is an alias. */
3603 #if defined (__stub_regcomp) || defined (__stub___regcomp)
3604 choke me
3605 #else
3606 regcomp();
3607 #endif
3608
3609 ; return 0; }
3610 EOF
3611 if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3612 rm -rf conftest*
3613 eval "ac_cv_func_regcomp_rx=yes"
3614 else
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3617 rm -rf conftest*
3618 eval "ac_cv_func_regcomp_rx=no"
3619 fi
3620 rm -f conftest*
3621 fi
3622
3623 if eval "test \"`echo '$ac_cv_func_'regcomp'_'rx`\" = yes"; then
3624 echo "$ac_t""yes" 1>&6
3625 LIBOBJS="regex-posix.o $LIBOBJS"
3626 else
3627 echo "$ac_t""no" 1>&6
3628 fi
3629
3630
3631 fi
3632
3633 if test "$ac_cv_func_regcomp_norx" = yes ||
3634 test "$ac_cv_func_regcomp_rx" = yes; then
3635 cat >> confdefs.h <<\EOF
3636 #define HAVE_REGCOMP 1
3637 EOF
3638
3639 fi
3640 fi
3641
3642 for ac_func in inet_aton putenv strerror
3643 do
3644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3645 echo "configure:3646: checking for $ac_func" >&5
3646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3647 echo $ac_n "(cached) $ac_c" 1>&6
3648 else
3649 cat > conftest.$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3652 /* System header to define __stub macros and hopefully few prototypes,
3653 which can conflict with char $ac_func(); below. */
3654 #include <assert.h>
3655 /* Override any gcc2 internal prototype to avoid an error. */
3656 /* We use char because int might match the return type of a gcc2
3657 builtin and then its argument prototype would still apply. */
3658 char $ac_func();
3659
3660 int main() {
3661
3662 /* The GNU C library defines this for functions which it implements
3663 to always fail with ENOSYS. Some functions are actually named
3664 something starting with __ and the normal name is an alias. */
3665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3666 choke me
3667 #else
3668 $ac_func();
3669 #endif
3670
3671 ; return 0; }
3672 EOF
3673 if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3674 rm -rf conftest*
3675 eval "ac_cv_func_$ac_func=yes"
3676 else
3677 echo "configure: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3679 rm -rf conftest*
3680 eval "ac_cv_func_$ac_func=no"
3681 fi
3682 rm -f conftest*
3683 fi
3684
3685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3686 echo "$ac_t""yes" 1>&6
3687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3688 cat >> confdefs.h <<EOF
3689 #define $ac_tr_func 1
3690 EOF
3691
3692 else
3693 echo "$ac_t""no" 1>&6
3694 LIBOBJS="$LIBOBJS ${ac_func}.o"
3695 fi
3696 done
3697
3698
3699
3700 # When testing for the presence of alloca, we need to add alloca.o
3701 # explicitly to LIBOBJS to make sure that it is translated to
3702 # `alloca.lo' for libtool later on. This can and should be done more cleanly.
3703 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3704 # for constant arguments. Useless!
3705 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3706 echo "configure:3707: checking for working alloca.h" >&5
3707 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3709 else
3710 cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 #include <alloca.h>
3714 int main() {
3715 char *p = alloca(2 * sizeof(int));
3716 ; return 0; }
3717 EOF
3718 if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3719 rm -rf conftest*
3720 ac_cv_header_alloca_h=yes
3721 else
3722 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3724 rm -rf conftest*
3725 ac_cv_header_alloca_h=no
3726 fi
3727 rm -f conftest*
3728 fi
3729
3730 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3731 if test $ac_cv_header_alloca_h = yes; then
3732 cat >> confdefs.h <<\EOF
3733 #define HAVE_ALLOCA_H 1
3734 EOF
3735
3736 fi
3737
3738 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3739 echo "configure:3740: checking for alloca" >&5
3740 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3742 else
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746
3747 #ifdef __GNUC__
3748 # define alloca __builtin_alloca
3749 #else
3750 # if HAVE_ALLOCA_H
3751 # include <alloca.h>
3752 # else
3753 # ifdef _AIX
3754 #pragma alloca
3755 # else
3756 # ifndef alloca /* predefined by HP cc +Olibcalls */
3757 char *alloca ();
3758 # endif
3759 # endif
3760 # endif
3761 #endif
3762
3763 int main() {
3764 char *p = (char *) alloca(1);
3765 ; return 0; }
3766 EOF
3767 if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3768 rm -rf conftest*
3769 ac_cv_func_alloca_works=yes
3770 else
3771 echo "configure: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3773 rm -rf conftest*
3774 ac_cv_func_alloca_works=no
3775 fi
3776 rm -f conftest*
3777 fi
3778
3779 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3780 if test $ac_cv_func_alloca_works = yes; then
3781 cat >> confdefs.h <<\EOF
3782 #define HAVE_ALLOCA 1
3783 EOF
3784
3785 fi
3786
3787 if test $ac_cv_func_alloca_works = no; then
3788 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3789 # that cause trouble. Some versions do not even contain alloca or
3790 # contain a buggy version. If you still want to use their alloca,
3791 # use ar to extract alloca.o from them instead of compiling alloca.c.
3792 ALLOCA=alloca.o
3793 cat >> confdefs.h <<\EOF
3794 #define C_ALLOCA 1
3795 EOF
3796
3797
3798 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3799 echo "configure:3800: checking whether alloca needs Cray hooks" >&5
3800 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3802 else
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 #if defined(CRAY) && ! defined(CRAY2)
3807 webecray
3808 #else
3809 wenotbecray
3810 #endif
3811
3812 EOF
3813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3814 egrep "webecray" >/dev/null 2>&1; then
3815 rm -rf conftest*
3816 ac_cv_os_cray=yes
3817 else
3818 rm -rf conftest*
3819 ac_cv_os_cray=no
3820 fi
3821 rm -f conftest*
3822
3823 fi
3824
3825 echo "$ac_t""$ac_cv_os_cray" 1>&6
3826 if test $ac_cv_os_cray = yes; then
3827 for ac_func in _getb67 GETB67 getb67; do
3828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3829 echo "configure:3830: checking for $ac_func" >&5
3830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3832 else
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 /* System header to define __stub macros and hopefully few prototypes,
3837 which can conflict with char $ac_func(); below. */
3838 #include <assert.h>
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3842 char $ac_func();
3843
3844 int main() {
3845
3846 /* The GNU C library defines this for functions which it implements
3847 to always fail with ENOSYS. Some functions are actually named
3848 something starting with __ and the normal name is an alias. */
3849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3850 choke me
3851 #else
3852 $ac_func();
3853 #endif
3854
3855 ; return 0; }
3856 EOF
3857 if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3858 rm -rf conftest*
3859 eval "ac_cv_func_$ac_func=yes"
3860 else
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3863 rm -rf conftest*
3864 eval "ac_cv_func_$ac_func=no"
3865 fi
3866 rm -f conftest*
3867 fi
3868
3869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3870 echo "$ac_t""yes" 1>&6
3871 cat >> confdefs.h <<EOF
3872 #define CRAY_STACKSEG_END $ac_func
3873 EOF
3874
3875 break
3876 else
3877 echo "$ac_t""no" 1>&6
3878 fi
3879
3880 done
3881 fi
3882
3883 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3884 echo "configure:3885: checking stack direction for C alloca" >&5
3885 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3887 else
3888 if test "$cross_compiling" = yes; then
3889 ac_cv_c_stack_direction=0
3890 else
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3894 find_stack_direction ()
3895 {
3896 static char *addr = 0;
3897 auto char dummy;
3898 if (addr == 0)
3899 {
3900 addr = &dummy;
3901 return find_stack_direction ();
3902 }
3903 else
3904 return (&dummy > addr) ? 1 : -1;
3905 }
3906 main ()
3907 {
3908 exit (find_stack_direction() < 0);
3909 }
3910 EOF
3911 if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3912 then
3913 ac_cv_c_stack_direction=1
3914 else
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3917 rm -fr conftest*
3918 ac_cv_c_stack_direction=-1
3919 fi
3920 rm -fr conftest*
3921 fi
3922
3923 fi
3924
3925 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3926 cat >> confdefs.h <<EOF
3927 #define STACK_DIRECTION $ac_cv_c_stack_direction
3928 EOF
3929
3930 fi
3931
3932 if test "$ALLOCA" = "alloca.o"; then LIBOBJS="alloca.o $LIBOBJS"; fi
3933
3934 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3935 echo "configure:3936: checking for st_rdev in struct stat" >&5
3936 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3938 else
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3942 #include <sys/types.h>
3943 #include <sys/stat.h>
3944 int main() {
3945 struct stat s; s.st_rdev;
3946 ; return 0; }
3947 EOF
3948 if { (eval echo configure:3949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3949 rm -rf conftest*
3950 ac_cv_struct_st_rdev=yes
3951 else
3952 echo "configure: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3954 rm -rf conftest*
3955 ac_cv_struct_st_rdev=no
3956 fi
3957 rm -f conftest*
3958 fi
3959
3960 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3961 if test $ac_cv_struct_st_rdev = yes; then
3962 cat >> confdefs.h <<\EOF
3963 #define HAVE_ST_RDEV 1
3964 EOF
3965
3966 fi
3967
3968 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3969 echo "configure:3970: checking for st_blksize in struct stat" >&5
3970 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3972 else
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 #include <sys/types.h>
3977 #include <sys/stat.h>
3978 int main() {
3979 struct stat s; s.st_blksize;
3980 ; return 0; }
3981 EOF
3982 if { (eval echo configure:3983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3983 rm -rf conftest*
3984 ac_cv_struct_st_blksize=yes
3985 else
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3988 rm -rf conftest*
3989 ac_cv_struct_st_blksize=no
3990 fi
3991 rm -f conftest*
3992 fi
3993
3994 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3995 if test $ac_cv_struct_st_blksize = yes; then
3996 cat >> confdefs.h <<\EOF
3997 #define HAVE_ST_BLKSIZE 1
3998 EOF
3999
4000 fi
4001
4002
4003 # We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
4004 # LIBOBJS, which we don't need. This seems more direct.
4005 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
4006 echo "configure:4007: checking for st_blocks in struct stat" >&5
4007 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4009 else
4010 cat > conftest.$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4013 #include <sys/types.h>
4014 #include <sys/stat.h>
4015 int main() {
4016 struct stat s; s.st_blocks;
4017 ; return 0; }
4018 EOF
4019 if { (eval echo configure:4020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4020 rm -rf conftest*
4021 ac_cv_struct_st_blocks=yes
4022 else
4023 echo "configure: failed program was:" >&5
4024 cat conftest.$ac_ext >&5
4025 rm -rf conftest*
4026 ac_cv_struct_st_blocks=no
4027 fi
4028 rm -f conftest*
4029 fi
4030
4031 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
4032 if test $ac_cv_struct_st_blocks = yes; then
4033 cat >> confdefs.h <<\EOF
4034 #define HAVE_ST_BLOCKS 1
4035 EOF
4036
4037 fi
4038
4039 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4040 echo "configure:4041: checking whether struct tm is in sys/time.h or time.h" >&5
4041 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4043 else
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 #include <sys/types.h>
4048 #include <time.h>
4049 int main() {
4050 struct tm *tp; tp->tm_sec;
4051 ; return 0; }
4052 EOF
4053 if { (eval echo configure:4054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4054 rm -rf conftest*
4055 ac_cv_struct_tm=time.h
4056 else
4057 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5
4059 rm -rf conftest*
4060 ac_cv_struct_tm=sys/time.h
4061 fi
4062 rm -f conftest*
4063 fi
4064
4065 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4066 if test $ac_cv_struct_tm = sys/time.h; then
4067 cat >> confdefs.h <<\EOF
4068 #define TM_IN_SYS_TIME 1
4069 EOF
4070
4071 fi
4072
4073 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4074 echo "configure:4075: checking for tm_zone in struct tm" >&5
4075 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4077 else
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4081 #include <sys/types.h>
4082 #include <$ac_cv_struct_tm>
4083 int main() {
4084 struct tm tm; tm.tm_zone;
4085 ; return 0; }
4086 EOF
4087 if { (eval echo configure:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4088 rm -rf conftest*
4089 ac_cv_struct_tm_zone=yes
4090 else
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4093 rm -rf conftest*
4094 ac_cv_struct_tm_zone=no
4095 fi
4096 rm -f conftest*
4097 fi
4098
4099 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4100 if test "$ac_cv_struct_tm_zone" = yes; then
4101 cat >> confdefs.h <<\EOF
4102 #define HAVE_TM_ZONE 1
4103 EOF
4104
4105 else
4106 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4107 echo "configure:4108: checking for tzname" >&5
4108 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4110 else
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4114 #include <time.h>
4115 #ifndef tzname /* For SGI. */
4116 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4117 #endif
4118 int main() {
4119 atoi(*tzname);
4120 ; return 0; }
4121 EOF
4122 if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4123 rm -rf conftest*
4124 ac_cv_var_tzname=yes
4125 else
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4128 rm -rf conftest*
4129 ac_cv_var_tzname=no
4130 fi
4131 rm -f conftest*
4132 fi
4133
4134 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4135 if test $ac_cv_var_tzname = yes; then
4136 cat >> confdefs.h <<\EOF
4137 #define HAVE_TZNAME 1
4138 EOF
4139
4140 fi
4141 fi
4142
4143
4144 echo $ac_n "checking whether we need POSIX to get struct utimbuf""... $ac_c" 1>&6
4145 echo "configure:4146: checking whether we need POSIX to get struct utimbuf" >&5
4146 if eval "test \"`echo '$''{'guile_cv_struct_utimbuf_needs_posix'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4148 else
4149 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152
4153 #ifdef __EMX__
4154 #include <sys/utime.h>
4155 #else
4156 #include <utime.h>
4157 #endif
4158 struct utime blah;
4159
4160 EOF
4161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4162 { (eval echo configure:4163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4163 ac_err=`grep -v '^ *+' conftest.out`
4164 if test -z "$ac_err"; then
4165 rm -rf conftest*
4166 guile_cv_struct_utimbuf_needs_posix=no
4167 else
4168 echo "$ac_err" >&5
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4171 rm -rf conftest*
4172 guile_cv_struct_utimbuf_needs_posix=yes
4173 fi
4174 rm -f conftest*
4175 fi
4176
4177 echo "$ac_t""$guile_cv_struct_utimbuf_needs_posix" 1>&6
4178 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
4179 cat >> confdefs.h <<\EOF
4180 #define UTIMBUF_NEEDS_POSIX 1
4181 EOF
4182
4183 fi
4184
4185 #--------------------------------------------------------------------
4186 #
4187 # Which way does the stack grow?
4188 #
4189 #--------------------------------------------------------------------
4190
4191 if test "$cross_compiling" = yes; then
4192 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
4193 else
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 aux (l) unsigned long l;
4198 { int x; exit (l >= ((unsigned long)&x)); }
4199 main () { int q; aux((unsigned long)&q); }
4200 EOF
4201 if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4202 then
4203 cat >> confdefs.h <<\EOF
4204 #define SCM_STACK_GROWS_UP 1
4205 EOF
4206
4207 else
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4210 fi
4211 rm -fr conftest*
4212 fi
4213
4214
4215 echo $ac_n "checking whether floats fit in longs""... $ac_c" 1>&6
4216 echo "configure:4217: checking whether floats fit in longs" >&5
4217 if eval "test \"`echo '$''{'guile_cv_type_float_fits_long'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4219 else
4220 if test "$cross_compiling" = yes; then
4221 guile_cv_type_float_fits_long=guess-yes
4222 else
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4226 main () { exit (sizeof(float) > sizeof(long)); }
4227 EOF
4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4229 then
4230 guile_cv_type_float_fits_long=yes
4231 else
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 rm -fr conftest*
4235 guile_cv_type_float_fits_long=no
4236 fi
4237 rm -fr conftest*
4238 fi
4239
4240 fi
4241
4242 echo "$ac_t""$guile_cv_type_float_fits_long" 1>&6
4243 case $guile_cv_type_float_fits_long in
4244 "yes" )
4245 cat >> confdefs.h <<\EOF
4246 #define SCM_SINGLES 1
4247 EOF
4248
4249 ;;
4250 "guess-yes" )
4251 cat >> confdefs.h <<\EOF
4252 #define SCM_SINGLES 1
4253 EOF
4254
4255 echo "configure: warning: guessing that sizeof(long) == sizeof(float)" 1>&2
4256 echo "configure: warning: see SCM_SINGLES in scmconfig.h.in" 1>&2
4257 ;;
4258 esac
4259
4260
4261 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
4262 echo "configure:4263: checking for struct linger" >&5
4263 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4265 else
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269
4270 #include <sys/types.h>
4271 #include <sys/socket.h>
4272 int main() {
4273 struct linger lgr; lgr.l_linger = 100
4274 ; return 0; }
4275 EOF
4276 if { (eval echo configure:4277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4277 rm -rf conftest*
4278 scm_cv_struct_linger="yes"
4279 else
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4282 rm -rf conftest*
4283 scm_cv_struct_linger="no"
4284 fi
4285 rm -f conftest*
4286 fi
4287
4288 echo "$ac_t""$scm_cv_struct_linger" 1>&6
4289 if test $scm_cv_struct_linger = yes; then
4290 cat >> confdefs.h <<\EOF
4291 #define HAVE_STRUCT_LINGER 1
4292 EOF
4293
4294 fi
4295
4296 #--------------------------------------------------------------------
4297 #
4298 # How can you violate a stdio abstraction by setting a stream's fd?
4299 #
4300 #--------------------------------------------------------------------
4301
4302 echo $ac_n "checking how to set a stream file descriptor""... $ac_c" 1>&6
4303 echo "configure:4304: checking how to set a stream file descriptor" >&5
4304 if eval "test \"`echo '$''{'scm_cv_fd_setter'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4306 else
4307 cat > conftest.$ac_ext <<EOF
4308 #line 4309 "configure"
4309 #include "confdefs.h"
4310 #include <stdio.h>
4311 int main() {
4312 stdout->_file = 1
4313 ; return 0; }
4314 EOF
4315 if { (eval echo configure:4316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4316 rm -rf conftest*
4317 scm_cv_fd_setter="_file"
4318 else
4319 echo "configure: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4321 rm -rf conftest*
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 #include <stdio.h>
4326 int main() {
4327 stdout->__file = 1
4328 ; return 0; }
4329 EOF
4330 if { (eval echo configure:4331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4331 rm -rf conftest*
4332 scm_cv_fd_setter="__file"
4333 else
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4336 rm -rf conftest*
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4340 #include <stdio.h>
4341 int main() {
4342 stdout->_fileno = 1
4343 ; return 0; }
4344 EOF
4345 if { (eval echo configure:4346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4346 rm -rf conftest*
4347 scm_cv_fd_setter="_fileno"
4348 else
4349 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4351 rm -rf conftest*
4352 scm_cv_fd_setter=""
4353 fi
4354 rm -f conftest*
4355 fi
4356 rm -f conftest*
4357 fi
4358 rm -f conftest*
4359 fi
4360
4361
4362 if test "$scm_cv_fd_setter"; then
4363 echo "$ac_t""$scm_cv_fd_setter" 1>&6
4364 cat >> confdefs.h <<EOF
4365 #define FD_SETTER $scm_cv_fd_setter
4366 EOF
4367
4368 else
4369 echo "$ac_t""we couldn't do it!" 1>&6
4370 fi
4371
4372 #--------------------------------------------------------------------
4373 # How to find out whether a FILE structure contains buffered data.
4374 # From Tk we have the following list:
4375 # _cnt: Most UNIX systems
4376 # __cnt: HPUX and SCO
4377 # _r: BSD
4378 # readCount: Sprite
4379 # Or, in GNU libc there are two fields, _gptr and _egptr, which
4380 # have to be compared.
4381 # These can also be known as _IO_read_ptr and _IO_read_end.
4382 #--------------------------------------------------------------------
4383
4384 echo $ac_n "checking how to get buffer char count from FILE structure""... $ac_c" 1>&6
4385 echo "configure:4386: checking how to get buffer char count from FILE structure" >&5
4386 if eval "test \"`echo '$''{'scm_cv_struct_file_count'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4388 else
4389 cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4392 #include <stdio.h>
4393 int main() {
4394 FILE *f = stdin; f->_cnt = 0
4395 ; return 0; }
4396 EOF
4397 if { (eval echo configure:4398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4398 rm -rf conftest*
4399 scm_cv_struct_file_count="_cnt"
4400 else
4401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4403 rm -rf conftest*
4404 cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4407 #include <stdio.h>
4408 int main() {
4409 FILE *f = stdin; f->__cnt = 0
4410 ; return 0; }
4411 EOF
4412 if { (eval echo configure:4413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4413 rm -rf conftest*
4414 scm_cv_struct_file_count="__cnt"
4415 else
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4418 rm -rf conftest*
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 #include <stdio.h>
4423 int main() {
4424 FILE *f = stdin; f->_r = 0
4425 ; return 0; }
4426 EOF
4427 if { (eval echo configure:4428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4428 rm -rf conftest*
4429 scm_cv_struct_file_count="_r"
4430 else
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4433 rm -rf conftest*
4434 cat > conftest.$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 #include <stdio.h>
4438 int main() {
4439 FILE *f = stdin; f->readCount = 0
4440 ; return 0; }
4441 EOF
4442 if { (eval echo configure:4443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4443 rm -rf conftest*
4444 scm_cv_struct_file_count="readCount"
4445 else
4446 echo "configure: failed program was:" >&5
4447 cat conftest.$ac_ext >&5
4448 rm -rf conftest*
4449 scm_cv_struct_file_count=""
4450 fi
4451 rm -f conftest*
4452 fi
4453 rm -f conftest*
4454 fi
4455 rm -f conftest*
4456 fi
4457 rm -f conftest*
4458 fi
4459
4460 if test "$scm_cv_struct_file_count"; then
4461 echo "$ac_t""$scm_cv_struct_file_count" 1>&6
4462 cat >> confdefs.h <<EOF
4463 #define FILE_CNT_FIELD $scm_cv_struct_file_count
4464 EOF
4465
4466 else
4467 if eval "test \"`echo '$''{'scm_cv_struct_file_gptr'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4469 else
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 #include <stdio.h>
4474 int main() {
4475 FILE *f = stdin; f->_gptr = f->egptr;
4476 ; return 0; }
4477 EOF
4478 if { (eval echo configure:4479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4479 rm -rf conftest*
4480 scm_cv_struct_file_gptr=1
4481 else
4482 echo "configure: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4484 rm -rf conftest*
4485 scm_cv_struct_file_gptr=""
4486 fi
4487 rm -f conftest*
4488 fi
4489
4490 if test "$scm_cv_struct_gptr"; then
4491 echo "$ac_t""gptr" 1>&6
4492 cat >> confdefs.h <<EOF
4493 #define FILE_CNT_GPTR $scm_cv_struct_file_gptr
4494 EOF
4495
4496 else
4497 if eval "test \"`echo '$''{'scm_cv_struct_file_readptr'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4499 else
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4503 #include <stdio.h>
4504 int main() {
4505 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
4506 ; return 0; }
4507 EOF
4508 if { (eval echo configure:4509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4509 rm -rf conftest*
4510 scm_cv_struct_file_readptr=1
4511 else
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4514 fi
4515 rm -f conftest*
4516 fi
4517
4518 if test "$scm_cv_struct_file_readptr"; then
4519 echo "$ac_t""read_ptr" 1>&6
4520 cat >> confdefs.h <<EOF
4521 #define FILE_CNT_READPTR $scm_cv_struct_file_readptr
4522 EOF
4523
4524 else
4525 echo "$ac_t""we couldn't do it!" 1>&6
4526 fi
4527 fi
4528 fi
4529
4530 #--------------------------------------------------------------------
4531 #
4532 # Flags for thread support
4533 #
4534 #--------------------------------------------------------------------
4535
4536 ### What thread package has the user asked for?
4537 # Check whether --with-threads or --without-threads was given.
4538 if test "${with_threads+set}" = set; then
4539 withval="$with_threads"
4540 :
4541 else
4542 with_threads=no
4543 fi
4544
4545
4546 ### Turn $with_threads into either the name of a threads package, like
4547 ### `qt', or `no', meaning that threads should not be supported.
4548 echo $ac_n "checking whether to support threads""... $ac_c" 1>&6
4549 echo "configure:4550: checking whether to support threads" >&5
4550 case "$with_threads" in
4551 "yes" | "qt" | "coop" | "")
4552 with_threads=qt
4553 ;;
4554 "no" )
4555 ;;
4556 * )
4557 { echo "configure: error: invalid value for --with-threads: $with_threads" 1>&2; exit 1; }
4558 ;;
4559 esac
4560 echo "$ac_t""$with_threads" 1>&6
4561
4562 ## Make sure the threads package we've chosen is actually supported on
4563 ## the present platform.
4564 case "${with_threads}" in
4565 "qt" )
4566 ## This configures the QuickThreads package, and sets or clears
4567 ## the THREAD_PACKAGE variable if qthreads don't configure
4568 ## correctly.
4569
4570
4571
4572 echo $ac_n "checking QuickThreads configuration""... $ac_c" 1>&6
4573 echo "configure:4574: checking QuickThreads configuration" >&5
4574 # How can we refer to the qt source directory from within the qt build
4575 # directory? For headers, we can rely on the fact that the qt src
4576 # directory appears in the #include path.
4577 qtsrcdir="`(cd $srcdir; pwd)`/qt"
4578
4579
4580 THREAD_PACKAGE=QT
4581 qthread_asflags=''
4582 case "$host" in
4583 i[3456]86-*-*)
4584 port_name=i386
4585 qtmd_h=md/i386.h
4586 qtmds_s=md/i386.s
4587 qtmdc_c=md/null.c
4588 qtdmdb_s=
4589 case "$host" in
4590 *-*-netbsd* )
4591 ## NetBSD needs to be told to pass the assembly code through
4592 ## the C preprocessor. Other GCC installations seem to do
4593 ## this by default, but NetBSD's doesn't. We could get the
4594 ## same effect by giving the file a name ending with .S
4595 ## instead of .s, but I don't see how to tell automake to do
4596 ## that.
4597 qthread_asflags='-x assembler-with-cpp'
4598 ;;
4599 esac
4600 ;;
4601 mips-sgi-irix[56]*)
4602 port_name=irix
4603 qtmd_h=md/mips.h
4604 qtmds_s=md/mips-irix5.s
4605 qtmdc_c=md/null.c
4606 qtdmdb_s=md/mips_b.s
4607 ;;
4608 mips-*-*)
4609 port_name=mips
4610 qtmd_h=md/mips.h
4611 qtmds_s=md/mips.s
4612 qtmdc_c=md/null.c
4613 qtdmdb_s=md/mips_b.s
4614 ;;
4615 sparc-*-sunos*)
4616 port_name=sparc-sunos
4617 qtmd_h=md/sparc.h
4618 qtmds_s=md/_sparc.s
4619 qtmdc_c=md/null.c
4620 qtdmdb_s=md/_sparc_b.s
4621 ;;
4622 sparc-*-*)
4623 port_name=sparc
4624 qtmd_h=md/sparc.h
4625 qtmds_s=md/sparc.s
4626 qtmdc_c=md/null.c
4627 qtdmdb_s=md/sparc_b.s
4628 ;;
4629 alpha-*-*)
4630 port_name=alpha
4631 qtmd_h=md/axp.h
4632 qtmds_s=md/axp.s
4633 qtmdc_c=md/null.c
4634 qtdmdb_s=md/axp_b.s
4635 ;;
4636 *)
4637 echo "Unknown configuration; threads package disabled"
4638 THREAD_PACKAGE=""
4639 ;;
4640 esac
4641
4642
4643 # Did configuration succeed?
4644 if test -n "$THREAD_PACKAGE"; then
4645 echo "$ac_t""$port_name" 1>&6
4646 QTHREAD_LTLIBS=libqthreads.la
4647 THREAD_CPPFLAGS="-I$qtsrcdir -I../qt"
4648 THREAD_LIBS_LOCAL="../qt/libqthreads.la"
4649 THREAD_LIBS_INSTALLED="-lqthreads"
4650 else
4651 echo "$ac_t""none; disabled" 1>&6
4652 fi
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665 ;;
4666 esac
4667
4668 ## If we're using threads, bring in some other parts of Guile which
4669 ## work with them.
4670 if test "${THREAD_PACKAGE}" != "" ; then
4671 cat >> confdefs.h <<\EOF
4672 #define USE_THREADS 1
4673 EOF
4674
4675
4676 ## Include the Guile thread interface in the library...
4677 LIBOBJS="$LIBOBJS threads.o"
4678
4679 ## ... and tell it which package to talk to.
4680 case "${THREAD_PACKAGE}" in
4681 "QT" )
4682 cat >> confdefs.h <<\EOF
4683 #define USE_COOP_THREADS 1
4684 EOF
4685
4686 ;;
4687 * )
4688 { echo "configure: error: invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE}" 1>&2; exit 1; }
4689 ;;
4690 esac
4691
4692 ## Bring in scm_internal_select, if appropriate.
4693 if test $ac_cv_func_gettimeofday = yes &&
4694 test $ac_cv_func_select = yes; then
4695 LIBOBJS="$LIBOBJS iselect.o"
4696 cat >> confdefs.h <<\EOF
4697 #define GUILE_ISELECT 1
4698 EOF
4699
4700 fi
4701 fi
4702
4703 ## If we're using GCC, ask for aggressive warnings.
4704 case "$GCC" in
4705 yes )
4706 ## We had -Wstrict-prototypes in here for a bit, but Guile does too
4707 ## much stuff with generic function pointers for that to really be
4708 ## less than exasperating.
4709 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wmissing-prototypes" ;;
4710 esac
4711
4712 for ac_prog in mawk gawk nawk awk
4713 do
4714 # Extract the first word of "$ac_prog", so it can be a program name with args.
4715 set dummy $ac_prog; ac_word=$2
4716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4717 echo "configure:4718: checking for $ac_word" >&5
4718 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4720 else
4721 if test -n "$AWK"; then
4722 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4723 else
4724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4725 for ac_dir in $PATH; do
4726 test -z "$ac_dir" && ac_dir=.
4727 if test -f $ac_dir/$ac_word; then
4728 ac_cv_prog_AWK="$ac_prog"
4729 break
4730 fi
4731 done
4732 IFS="$ac_save_ifs"
4733 fi
4734 fi
4735 AWK="$ac_cv_prog_AWK"
4736 if test -n "$AWK"; then
4737 echo "$ac_t""$AWK" 1>&6
4738 else
4739 echo "$ac_t""no" 1>&6
4740 fi
4741
4742 test -n "$AWK" && break
4743 done
4744
4745
4746 ## If we're creating a shared library (using libtool!), then we'll
4747 ## need to generate a list of .lo files corresponding to the .o files
4748 ## given in LIBOBJS. We'll call it LIBLOBJS.
4749 LIBLOBJS="`echo ${LIBOBJS} | sed 's/\.o/.lo/g'`"
4750
4751
4752
4753
4754
4755 GUILE_LIBS="$LDFLAGS $THREAD_LIBS_INSTALLED $LIBS"
4756
4757
4758 GUILE_STAMP="`date`"
4759
4760
4761
4762
4763
4764 trap '' 1 2 15
4765 cat > confcache <<\EOF
4766 # This file is a shell script that caches the results of configure
4767 # tests run on this system so they can be shared between configure
4768 # scripts and configure runs. It is not useful on other systems.
4769 # If it contains results you don't want to keep, you may remove or edit it.
4770 #
4771 # By default, configure uses ./config.cache as the cache file,
4772 # creating it if it does not exist already. You can give configure
4773 # the --cache-file=FILE option to use a different cache file; that is
4774 # what configure does when it calls configure scripts in
4775 # subdirectories, so they share the cache.
4776 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4777 # config.status only pays attention to the cache file if you give it the
4778 # --recheck option to rerun configure.
4779 #
4780 EOF
4781 # The following way of writing the cache mishandles newlines in values,
4782 # but we know of no workaround that is simple, portable, and efficient.
4783 # So, don't put newlines in cache variables' values.
4784 # Ultrix sh set writes to stderr and can't be redirected directly,
4785 # and sets the high bit in the cache file unless we assign to the vars.
4786 (set) 2>&1 |
4787 case `(ac_space=' '; set) 2>&1` in
4788 *ac_space=\ *)
4789 # `set' does not quote correctly, so add quotes (double-quote substitution
4790 # turns \\\\ into \\, and sed turns \\ into \).
4791 sed -n \
4792 -e "s/'/'\\\\''/g" \
4793 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4794 ;;
4795 *)
4796 # `set' quotes correctly as required by POSIX, so do not add quotes.
4797 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4798 ;;
4799 esac >> confcache
4800 if cmp -s $cache_file confcache; then
4801 :
4802 else
4803 if test -w $cache_file; then
4804 echo "updating cache $cache_file"
4805 cat confcache > $cache_file
4806 else
4807 echo "not updating unwritable cache $cache_file"
4808 fi
4809 fi
4810 rm -f confcache
4811
4812 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4813
4814 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4815 # Let make expand exec_prefix.
4816 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4817
4818 # Any assignment to VPATH causes Sun make to only execute
4819 # the first set of double-colon rules, so remove it if not needed.
4820 # If there is a colon in the path, we need to keep it.
4821 if test "x$srcdir" = x.; then
4822 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4823 fi
4824
4825 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4826
4827 DEFS=-DHAVE_CONFIG_H
4828
4829 # Without the "./", some shells look in PATH for config.status.
4830 : ${CONFIG_STATUS=./config.status}
4831
4832 echo creating $CONFIG_STATUS
4833 rm -f $CONFIG_STATUS
4834 cat > $CONFIG_STATUS <<EOF
4835 #! /bin/sh
4836 # Generated automatically by configure.
4837 # Run this file to recreate the current configuration.
4838 # This directory was configured as follows,
4839 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4840 #
4841 # $0 $ac_configure_args
4842 #
4843 # Compiler output produced by configure, useful for debugging
4844 # configure, is in ./config.log if it exists.
4845
4846 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4847 for ac_option
4848 do
4849 case "\$ac_option" in
4850 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4851 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4852 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4853 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4854 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4855 exit 0 ;;
4856 -help | --help | --hel | --he | --h)
4857 echo "\$ac_cs_usage"; exit 0 ;;
4858 *) echo "\$ac_cs_usage"; exit 1 ;;
4859 esac
4860 done
4861
4862 ac_given_srcdir=$srcdir
4863 ac_given_INSTALL="$INSTALL"
4864
4865 trap 'rm -fr `echo "Makefile libguile/Makefile libguile/guile-snarf libguile/versiondat.h 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
4866 EOF
4867 cat >> $CONFIG_STATUS <<EOF
4868
4869 # Protect against being on the right side of a sed subst in config.status.
4870 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4871 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4872 $ac_vpsub
4873 $extrasub
4874 s%@CFLAGS@%$CFLAGS%g
4875 s%@CPPFLAGS@%$CPPFLAGS%g
4876 s%@CXXFLAGS@%$CXXFLAGS%g
4877 s%@DEFS@%$DEFS%g
4878 s%@LDFLAGS@%$LDFLAGS%g
4879 s%@LIBS@%$LIBS%g
4880 s%@exec_prefix@%$exec_prefix%g
4881 s%@prefix@%$prefix%g
4882 s%@program_transform_name@%$program_transform_name%g
4883 s%@bindir@%$bindir%g
4884 s%@sbindir@%$sbindir%g
4885 s%@libexecdir@%$libexecdir%g
4886 s%@datadir@%$datadir%g
4887 s%@sysconfdir@%$sysconfdir%g
4888 s%@sharedstatedir@%$sharedstatedir%g
4889 s%@localstatedir@%$localstatedir%g
4890 s%@libdir@%$libdir%g
4891 s%@includedir@%$includedir%g
4892 s%@oldincludedir@%$oldincludedir%g
4893 s%@infodir@%$infodir%g
4894 s%@mandir@%$mandir%g
4895 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4896 s%@INSTALL_DATA@%$INSTALL_DATA%g
4897 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4898 s%@PACKAGE@%$PACKAGE%g
4899 s%@VERSION@%$VERSION%g
4900 s%@ACLOCAL@%$ACLOCAL%g
4901 s%@AUTOCONF@%$AUTOCONF%g
4902 s%@AUTOMAKE@%$AUTOMAKE%g
4903 s%@AUTOHEADER@%$AUTOHEADER%g
4904 s%@MAKEINFO@%$MAKEINFO%g
4905 s%@SET_MAKE@%$SET_MAKE%g
4906 s%@MAINT@%$MAINT%g
4907 s%@CC@%$CC%g
4908 s%@CPP@%$CPP%g
4909 s%@host@%$host%g
4910 s%@host_alias@%$host_alias%g
4911 s%@host_cpu@%$host_cpu%g
4912 s%@host_vendor@%$host_vendor%g
4913 s%@host_os@%$host_os%g
4914 s%@RANLIB@%$RANLIB%g
4915 s%@LD@%$LD%g
4916 s%@NM@%$NM%g
4917 s%@LN_S@%$LN_S%g
4918 s%@LIBTOOL@%$LIBTOOL%g
4919 s%@LIBOBJS@%$LIBOBJS%g
4920 s%@ALLOCA@%$ALLOCA%g
4921 s%@QTHREAD_LTLIBS@%$QTHREAD_LTLIBS%g
4922 s%@qtmd_h@%$qtmd_h%g
4923 s%@qtmds_s@%$qtmds_s%g
4924 s%@qtmdc_c@%$qtmdc_c%g
4925 s%@qtdmdb_s@%$qtdmdb_s%g
4926 s%@qthread_asflags@%$qthread_asflags%g
4927 s%@THREAD_PACKAGE@%$THREAD_PACKAGE%g
4928 s%@THREAD_CPPFLAGS@%$THREAD_CPPFLAGS%g
4929 s%@THREAD_LIBS_LOCAL@%$THREAD_LIBS_LOCAL%g
4930 s%@THREAD_LIBS_INSTALLED@%$THREAD_LIBS_INSTALLED%g
4931 s%@AWK@%$AWK%g
4932 s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
4933 s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
4934 s%@GUILE_VERSION@%$GUILE_VERSION%g
4935 s%@GUILE_LIBS@%$GUILE_LIBS%g
4936 s%@GUILE_STAMP@%$GUILE_STAMP%g
4937 s%@LIBLOBJS@%$LIBLOBJS%g
4938
4939 CEOF
4940 EOF
4941
4942 cat >> $CONFIG_STATUS <<\EOF
4943
4944 # Split the substitutions into bite-sized pieces for seds with
4945 # small command number limits, like on Digital OSF/1 and HP-UX.
4946 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4947 ac_file=1 # Number of current file.
4948 ac_beg=1 # First line for current file.
4949 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4950 ac_more_lines=:
4951 ac_sed_cmds=""
4952 while $ac_more_lines; do
4953 if test $ac_beg -gt 1; then
4954 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4955 else
4956 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4957 fi
4958 if test ! -s conftest.s$ac_file; then
4959 ac_more_lines=false
4960 rm -f conftest.s$ac_file
4961 else
4962 if test -z "$ac_sed_cmds"; then
4963 ac_sed_cmds="sed -f conftest.s$ac_file"
4964 else
4965 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4966 fi
4967 ac_file=`expr $ac_file + 1`
4968 ac_beg=$ac_end
4969 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4970 fi
4971 done
4972 if test -z "$ac_sed_cmds"; then
4973 ac_sed_cmds=cat
4974 fi
4975 EOF
4976
4977 cat >> $CONFIG_STATUS <<EOF
4978
4979 CONFIG_FILES=\${CONFIG_FILES-"Makefile libguile/Makefile libguile/guile-snarf libguile/versiondat.h ice-9/Makefile ice-9/version.scm qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile"}
4980 EOF
4981 cat >> $CONFIG_STATUS <<\EOF
4982 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4983 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4984 case "$ac_file" in
4985 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4986 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4987 *) ac_file_in="${ac_file}.in" ;;
4988 esac
4989
4990 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4991
4992 # Remove last slash and all that follows it. Not all systems have dirname.
4993 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4994 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4995 # The file is in a subdirectory.
4996 test ! -d "$ac_dir" && mkdir "$ac_dir"
4997 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4998 # A "../" for each directory in $ac_dir_suffix.
4999 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5000 else
5001 ac_dir_suffix= ac_dots=
5002 fi
5003
5004 case "$ac_given_srcdir" in
5005 .) srcdir=.
5006 if test -z "$ac_dots"; then top_srcdir=.
5007 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5008 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5009 *) # Relative path.
5010 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5011 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5012 esac
5013
5014 case "$ac_given_INSTALL" in
5015 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5016 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5017 esac
5018
5019 echo creating "$ac_file"
5020 rm -f "$ac_file"
5021 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5022 case "$ac_file" in
5023 *Makefile*) ac_comsub="1i\\
5024 # $configure_input" ;;
5025 *) ac_comsub= ;;
5026 esac
5027
5028 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5029 sed -e "$ac_comsub
5030 s%@configure_input@%$configure_input%g
5031 s%@srcdir@%$srcdir%g
5032 s%@top_srcdir@%$top_srcdir%g
5033 s%@INSTALL@%$INSTALL%g
5034 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5035 fi; done
5036 rm -f conftest.s*
5037
5038 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5039 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5040 #
5041 # ac_d sets the value in "#define NAME VALUE" lines.
5042 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5043 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5044 ac_dC='\3'
5045 ac_dD='%g'
5046 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5047 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5048 ac_uB='\([ ]\)%\1#\2define\3'
5049 ac_uC=' '
5050 ac_uD='\4%g'
5051 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5052 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5053 ac_eB='$%\1#\2define\3'
5054 ac_eC=' '
5055 ac_eD='%g'
5056
5057 if test "${CONFIG_HEADERS+set}" != set; then
5058 EOF
5059 cat >> $CONFIG_STATUS <<EOF
5060 CONFIG_HEADERS="libguile/scmconfig.h"
5061 EOF
5062 cat >> $CONFIG_STATUS <<\EOF
5063 fi
5064 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5065 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5066 case "$ac_file" in
5067 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5068 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5069 *) ac_file_in="${ac_file}.in" ;;
5070 esac
5071
5072 echo creating $ac_file
5073
5074 rm -f conftest.frag conftest.in conftest.out
5075 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5076 cat $ac_file_inputs > conftest.in
5077
5078 EOF
5079
5080 # Transform confdefs.h into a sed script conftest.vals that substitutes
5081 # the proper values into config.h.in to produce config.h. And first:
5082 # Protect against being on the right side of a sed subst in config.status.
5083 # Protect against being in an unquoted here document in config.status.
5084 rm -f conftest.vals
5085 cat > conftest.hdr <<\EOF
5086 s/[\\&%]/\\&/g
5087 s%[\\$`]%\\&%g
5088 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5089 s%ac_d%ac_u%gp
5090 s%ac_u%ac_e%gp
5091 EOF
5092 sed -n -f conftest.hdr confdefs.h > conftest.vals
5093 rm -f conftest.hdr
5094
5095 # This sed command replaces #undef with comments. This is necessary, for
5096 # example, in the case of _POSIX_SOURCE, which is predefined and required
5097 # on some systems where configure will not decide to define it.
5098 cat >> conftest.vals <<\EOF
5099 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5100 EOF
5101
5102 # Break up conftest.vals because some shells have a limit on
5103 # the size of here documents, and old seds have small limits too.
5104
5105 rm -f conftest.tail
5106 while :
5107 do
5108 ac_lines=`grep -c . conftest.vals`
5109 # grep -c gives empty output for an empty file on some AIX systems.
5110 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5111 # Write a limited-size here document to conftest.frag.
5112 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5113 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5114 echo 'CEOF
5115 sed -f conftest.frag conftest.in > conftest.out
5116 rm -f conftest.in
5117 mv conftest.out conftest.in
5118 ' >> $CONFIG_STATUS
5119 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5120 rm -f conftest.vals
5121 mv conftest.tail conftest.vals
5122 done
5123 rm -f conftest.vals
5124
5125 cat >> $CONFIG_STATUS <<\EOF
5126 rm -f conftest.frag conftest.h
5127 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5128 cat conftest.in >> conftest.h
5129 rm -f conftest.in
5130 if cmp -s $ac_file conftest.h 2>/dev/null; then
5131 echo "$ac_file is unchanged"
5132 rm -f conftest.h
5133 else
5134 # Remove last slash and all that follows it. Not all systems have dirname.
5135 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5136 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5137 # The file is in a subdirectory.
5138 test ! -d "$ac_dir" && mkdir "$ac_dir"
5139 fi
5140 rm -f $ac_file
5141 mv conftest.h $ac_file
5142 fi
5143 fi; done
5144
5145 EOF
5146 cat >> $CONFIG_STATUS <<EOF
5147
5148 EOF
5149 cat >> $CONFIG_STATUS <<\EOF
5150 test -z "$CONFIG_HEADERS" || echo timestamp > libguile/stamp-h
5151 chmod +x libguile/guile-snarf
5152 exit 0
5153 EOF
5154 chmod +x $CONFIG_STATUS
5155 rm -fr confdefs* $ac_clean_files
5156 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5157
5158