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