More functions unavailable on some systems.
[bpt/guile.git] / libguile / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.10
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
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
18 build=NONE
19 cache_file=./config.cache
20 exec_prefix=NONE
21 host=NONE
22 no_create=
23 nonopt=NONE
24 no_recursion=
25 prefix=NONE
26 program_prefix=NONE
27 program_suffix=NONE
28 program_transform_name=s,x,x,
29 silent=
30 site=
31 srcdir=
32 target=NONE
33 verbose=
34 x_includes=NONE
35 x_libraries=NONE
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
48
49 # Initialize some other variables.
50 subdirs=
51 MFLAGS= MAKEFLAGS=
52
53 ac_prev=
54 for ac_option
55 do
56
57 # If the previous option needs an argument, assign it.
58 if test -n "$ac_prev"; then
59 eval "$ac_prev=\$ac_option"
60 ac_prev=
61 continue
62 fi
63
64 case "$ac_option" in
65 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
66 *) ac_optarg= ;;
67 esac
68
69 # Accept the important Cygnus configure options, so we can diagnose typos.
70
71 case "$ac_option" in
72
73 -bindir | --bindir | --bindi | --bind | --bin | --bi)
74 ac_prev=bindir ;;
75 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
76 bindir="$ac_optarg" ;;
77
78 -build | --build | --buil | --bui | --bu)
79 ac_prev=build ;;
80 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
81 build="$ac_optarg" ;;
82
83 -cache-file | --cache-file | --cache-fil | --cache-fi \
84 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
85 ac_prev=cache_file ;;
86 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
87 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
88 cache_file="$ac_optarg" ;;
89
90 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
91 ac_prev=datadir ;;
92 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
93 | --da=*)
94 datadir="$ac_optarg" ;;
95
96 -disable-* | --disable-*)
97 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
98 # Reject names that are not valid shell variable names.
99 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
100 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
101 fi
102 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
103 eval "enable_${ac_feature}=no" ;;
104
105 -enable-* | --enable-*)
106 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110 fi
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 case "$ac_option" in
113 *=*) ;;
114 *) ac_optarg=yes ;;
115 esac
116 eval "enable_${ac_feature}='$ac_optarg'" ;;
117
118 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
119 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
120 | --exec | --exe | --ex)
121 ac_prev=exec_prefix ;;
122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
124 | --exec=* | --exe=* | --ex=*)
125 exec_prefix="$ac_optarg" ;;
126
127 -gas | --gas | --ga | --g)
128 # Obsolete; use --with-gas.
129 with_gas=yes ;;
130
131 -help | --help | --hel | --he)
132 # Omit some internal or obsolete options to make the list less imposing.
133 # This message is too long to be a string in the A/UX 3.1 sh.
134 cat << EOF
135 Usage: configure [options] [host]
136 Options: [defaults in brackets after descriptions]
137 Configuration:
138 --cache-file=FILE cache test results in FILE
139 --help print this message
140 --no-create do not create output files
141 --quiet, --silent do not print \`checking...' messages
142 --version print the version of autoconf that created configure
143 Directory and file names:
144 --prefix=PREFIX install architecture-independent files in PREFIX
145 [$ac_default_prefix]
146 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
147 [same as prefix]
148 --bindir=DIR user executables in DIR [EPREFIX/bin]
149 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
150 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
151 --datadir=DIR read-only architecture-independent data in DIR
152 [PREFIX/share]
153 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
154 --sharedstatedir=DIR modifiable architecture-independent data in DIR
155 [PREFIX/com]
156 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
157 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
158 --includedir=DIR C header files in DIR [PREFIX/include]
159 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
160 --infodir=DIR info documentation in DIR [PREFIX/info]
161 --mandir=DIR man documentation in DIR [PREFIX/man]
162 --srcdir=DIR find the sources in DIR [configure dir or ..]
163 --program-prefix=PREFIX prepend PREFIX to installed program names
164 --program-suffix=SUFFIX append SUFFIX to installed program names
165 --program-transform-name=PROGRAM
166 run sed PROGRAM on installed program names
167 EOF
168 cat << EOF
169 Host type:
170 --build=BUILD configure for building on BUILD [BUILD=HOST]
171 --host=HOST configure for HOST [guessed]
172 --target=TARGET configure for TARGET [TARGET=HOST]
173 Features and packages:
174 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
175 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
176 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
177 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
178 --x-includes=DIR X include files are in DIR
179 --x-libraries=DIR X library files are in DIR
180 EOF
181 if test -n "$ac_help"; then
182 echo "--enable and --with options recognized:$ac_help"
183 fi
184 exit 0 ;;
185
186 -host | --host | --hos | --ho)
187 ac_prev=host ;;
188 -host=* | --host=* | --hos=* | --ho=*)
189 host="$ac_optarg" ;;
190
191 -includedir | --includedir | --includedi | --included | --include \
192 | --includ | --inclu | --incl | --inc)
193 ac_prev=includedir ;;
194 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
195 | --includ=* | --inclu=* | --incl=* | --inc=*)
196 includedir="$ac_optarg" ;;
197
198 -infodir | --infodir | --infodi | --infod | --info | --inf)
199 ac_prev=infodir ;;
200 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
201 infodir="$ac_optarg" ;;
202
203 -libdir | --libdir | --libdi | --libd)
204 ac_prev=libdir ;;
205 -libdir=* | --libdir=* | --libdi=* | --libd=*)
206 libdir="$ac_optarg" ;;
207
208 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
209 | --libexe | --libex | --libe)
210 ac_prev=libexecdir ;;
211 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
212 | --libexe=* | --libex=* | --libe=*)
213 libexecdir="$ac_optarg" ;;
214
215 -localstatedir | --localstatedir | --localstatedi | --localstated \
216 | --localstate | --localstat | --localsta | --localst \
217 | --locals | --local | --loca | --loc | --lo)
218 ac_prev=localstatedir ;;
219 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
220 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
221 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
222 localstatedir="$ac_optarg" ;;
223
224 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
225 ac_prev=mandir ;;
226 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
227 mandir="$ac_optarg" ;;
228
229 -nfp | --nfp | --nf)
230 # Obsolete; use --without-fp.
231 with_fp=no ;;
232
233 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
234 | --no-cr | --no-c)
235 no_create=yes ;;
236
237 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
238 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
239 no_recursion=yes ;;
240
241 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
242 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
243 | --oldin | --oldi | --old | --ol | --o)
244 ac_prev=oldincludedir ;;
245 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
246 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
247 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
248 oldincludedir="$ac_optarg" ;;
249
250 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
251 ac_prev=prefix ;;
252 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
253 prefix="$ac_optarg" ;;
254
255 -program-prefix | --program-prefix | --program-prefi | --program-pref \
256 | --program-pre | --program-pr | --program-p)
257 ac_prev=program_prefix ;;
258 -program-prefix=* | --program-prefix=* | --program-prefi=* \
259 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
260 program_prefix="$ac_optarg" ;;
261
262 -program-suffix | --program-suffix | --program-suffi | --program-suff \
263 | --program-suf | --program-su | --program-s)
264 ac_prev=program_suffix ;;
265 -program-suffix=* | --program-suffix=* | --program-suffi=* \
266 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
267 program_suffix="$ac_optarg" ;;
268
269 -program-transform-name | --program-transform-name \
270 | --program-transform-nam | --program-transform-na \
271 | --program-transform-n | --program-transform- \
272 | --program-transform | --program-transfor \
273 | --program-transfo | --program-transf \
274 | --program-trans | --program-tran \
275 | --progr-tra | --program-tr | --program-t)
276 ac_prev=program_transform_name ;;
277 -program-transform-name=* | --program-transform-name=* \
278 | --program-transform-nam=* | --program-transform-na=* \
279 | --program-transform-n=* | --program-transform-=* \
280 | --program-transform=* | --program-transfor=* \
281 | --program-transfo=* | --program-transf=* \
282 | --program-trans=* | --program-tran=* \
283 | --progr-tra=* | --program-tr=* | --program-t=*)
284 program_transform_name="$ac_optarg" ;;
285
286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
287 | -silent | --silent | --silen | --sile | --sil)
288 silent=yes ;;
289
290 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
291 ac_prev=sbindir ;;
292 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
293 | --sbi=* | --sb=*)
294 sbindir="$ac_optarg" ;;
295
296 -sharedstatedir | --sharedstatedir | --sharedstatedi \
297 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
298 | --sharedst | --shareds | --shared | --share | --shar \
299 | --sha | --sh)
300 ac_prev=sharedstatedir ;;
301 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
302 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
303 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
304 | --sha=* | --sh=*)
305 sharedstatedir="$ac_optarg" ;;
306
307 -site | --site | --sit)
308 ac_prev=site ;;
309 -site=* | --site=* | --sit=*)
310 site="$ac_optarg" ;;
311
312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
313 ac_prev=srcdir ;;
314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
315 srcdir="$ac_optarg" ;;
316
317 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
318 | --syscon | --sysco | --sysc | --sys | --sy)
319 ac_prev=sysconfdir ;;
320 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
321 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
322 sysconfdir="$ac_optarg" ;;
323
324 -target | --target | --targe | --targ | --tar | --ta | --t)
325 ac_prev=target ;;
326 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
327 target="$ac_optarg" ;;
328
329 -v | -verbose | --verbose | --verbos | --verbo | --verb)
330 verbose=yes ;;
331
332 -version | --version | --versio | --versi | --vers)
333 echo "configure generated by autoconf version 2.10"
334 exit 0 ;;
335
336 -with-* | --with-*)
337 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
338 # Reject names that are not valid shell variable names.
339 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
340 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
341 fi
342 ac_package=`echo $ac_package| sed 's/-/_/g'`
343 case "$ac_option" in
344 *=*) ;;
345 *) ac_optarg=yes ;;
346 esac
347 eval "with_${ac_package}='$ac_optarg'" ;;
348
349 -without-* | --without-*)
350 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 fi
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}=no" ;;
357
358 --x)
359 # Obsolete; use --with-x.
360 with_x=yes ;;
361
362 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
363 | --x-incl | --x-inc | --x-in | --x-i)
364 ac_prev=x_includes ;;
365 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
366 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
367 x_includes="$ac_optarg" ;;
368
369 -x-libraries | --x-libraries | --x-librarie | --x-librari \
370 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
371 ac_prev=x_libraries ;;
372 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
373 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
374 x_libraries="$ac_optarg" ;;
375
376 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
377 ;;
378
379 *)
380 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
381 echo "configure: warning: $ac_option: invalid host type" 1>&2
382 fi
383 if test "x$nonopt" != xNONE; then
384 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
385 fi
386 nonopt="$ac_option"
387 ;;
388
389 esac
390 done
391
392 if test -n "$ac_prev"; then
393 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
394 fi
395
396 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
397
398 # File descriptor usage:
399 # 0 standard input
400 # 1 file creation
401 # 2 errors and warnings
402 # 3 some systems may open it to /dev/tty
403 # 4 used on the Kubota Titan
404 # 6 checking for... messages and results
405 # 5 compiler messages saved in config.log
406 if test "$silent" = yes; then
407 exec 6>/dev/null
408 else
409 exec 6>&1
410 fi
411 exec 5>./config.log
412
413 echo "\
414 This file contains any messages produced by compilers while
415 running configure, to aid debugging if configure makes a mistake.
416 " 1>&5
417
418 # Strip out --no-create and --no-recursion so they do not pile up.
419 # Also quote any args containing shell metacharacters.
420 ac_configure_args=
421 for ac_arg
422 do
423 case "$ac_arg" in
424 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
425 | --no-cr | --no-c) ;;
426 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
427 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
428 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
429 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
430 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
431 esac
432 done
433
434 # NLS nuisances.
435 # Only set LANG and LC_ALL to C if already set.
436 # These must not be set unconditionally because not all systems understand
437 # e.g. LANG=C (notably SCO).
438 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
439 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
440
441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
442 rm -rf conftest* confdefs.h
443 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
444 echo > confdefs.h
445
446 # A filename unique to this package, relative to the directory that
447 # configure is in, which we can look for to find out if srcdir is correct.
448 ac_unique_file=eval.c
449
450 # Find the source files, if location was not specified.
451 if test -z "$srcdir"; then
452 ac_srcdir_defaulted=yes
453 # Try the directory containing this script, then its parent.
454 ac_prog=$0
455 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
456 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
457 srcdir=$ac_confdir
458 if test ! -r $srcdir/$ac_unique_file; then
459 srcdir=..
460 fi
461 else
462 ac_srcdir_defaulted=no
463 fi
464 if test ! -r $srcdir/$ac_unique_file; then
465 if test "$ac_srcdir_defaulted" = yes; then
466 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
467 else
468 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
469 fi
470 fi
471 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
472
473 # Prefer explicitly selected file to automatically selected ones.
474 if test -z "$CONFIG_SITE"; then
475 if test "x$prefix" != xNONE; then
476 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
477 else
478 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
479 fi
480 fi
481 for ac_site_file in $CONFIG_SITE; do
482 if test -r "$ac_site_file"; then
483 echo "loading site script $ac_site_file"
484 . "$ac_site_file"
485 fi
486 done
487
488 if test -r "$cache_file"; then
489 echo "loading cache $cache_file"
490 . $cache_file
491 else
492 echo "creating cache $cache_file"
493 > $cache_file
494 fi
495
496 ac_ext=c
497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
498 ac_cpp='$CPP $CPPFLAGS'
499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
500 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
501
502 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
503 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
504 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
505 ac_n= ac_c='
506 ' ac_t=' '
507 else
508 ac_n=-n ac_c= ac_t=
509 fi
510 else
511 ac_n= ac_c='\c' ac_t=
512 fi
513
514
515
516
517 . $srcdir/../GUILE-VERSION
518
519 test -z "$CFLAGS" && CFLAGS=-g
520 test -z "$LDFLAGS" && LDFLAGS=-g
521
522 # Extract the first word of "gcc", so it can be a program name with args.
523 set dummy gcc; ac_word=$2
524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
525 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
526 echo $ac_n "(cached) $ac_c" 1>&6
527 else
528 if test -n "$CC"; then
529 ac_cv_prog_CC="$CC" # Let the user override the test.
530 else
531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
532 for ac_dir in $PATH; do
533 test -z "$ac_dir" && ac_dir=.
534 if test -f $ac_dir/$ac_word; then
535 ac_cv_prog_CC="gcc"
536 break
537 fi
538 done
539 IFS="$ac_save_ifs"
540 fi
541 fi
542 CC="$ac_cv_prog_CC"
543 if test -n "$CC"; then
544 echo "$ac_t""$CC" 1>&6
545 else
546 echo "$ac_t""no" 1>&6
547 fi
548
549 if test -z "$CC"; then
550 # Extract the first word of "cc", so it can be a program name with args.
551 set dummy cc; ac_word=$2
552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
553 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
554 echo $ac_n "(cached) $ac_c" 1>&6
555 else
556 if test -n "$CC"; then
557 ac_cv_prog_CC="$CC" # Let the user override the test.
558 else
559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
560 ac_prog_rejected=no
561 for ac_dir in $PATH; do
562 test -z "$ac_dir" && ac_dir=.
563 if test -f $ac_dir/$ac_word; then
564 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
565 ac_prog_rejected=yes
566 continue
567 fi
568 ac_cv_prog_CC="cc"
569 break
570 fi
571 done
572 IFS="$ac_save_ifs"
573 if test $ac_prog_rejected = yes; then
574 # We found a bogon in the path, so make sure we never use it.
575 set dummy $ac_cv_prog_CC
576 shift
577 if test $# -gt 0; then
578 # We chose a different compiler from the bogus one.
579 # However, it has the same basename, so the bogon will be chosen
580 # first if we set CC to just the basename; use the full file name.
581 shift
582 set dummy "$ac_dir/$ac_word" "$@"
583 shift
584 ac_cv_prog_CC="$@"
585 fi
586 fi
587 fi
588 fi
589 CC="$ac_cv_prog_CC"
590 if test -n "$CC"; then
591 echo "$ac_t""$CC" 1>&6
592 else
593 echo "$ac_t""no" 1>&6
594 fi
595
596 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
597 fi
598
599 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
600 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&6
602 else
603 cat > conftest.c <<EOF
604 #ifdef __GNUC__
605 yes;
606 #endif
607 EOF
608 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
609 ac_cv_prog_gcc=yes
610 else
611 ac_cv_prog_gcc=no
612 fi
613 fi
614
615 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
616 if test $ac_cv_prog_gcc = yes; then
617 GCC=yes
618 if test "${CFLAGS+set}" != set; then
619 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
620 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
622 else
623 echo 'void f(){}' > conftest.c
624 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
625 ac_cv_prog_gcc_g=yes
626 else
627 ac_cv_prog_gcc_g=no
628 fi
629 rm -f conftest*
630
631 fi
632
633 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
634 if test $ac_cv_prog_gcc_g = yes; then
635 CFLAGS="-g -O"
636 else
637 CFLAGS="-O"
638 fi
639 fi
640 else
641 GCC=
642 test "${CFLAGS+set}" = set || CFLAGS="-g"
643 fi
644
645 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
646 # On Suns, sometimes $CPP names a directory.
647 if test -n "$CPP" && test -d "$CPP"; then
648 CPP=
649 fi
650 if test -z "$CPP"; then
651 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
652 echo $ac_n "(cached) $ac_c" 1>&6
653 else
654 # This must be in double quotes, not single quotes, because CPP may get
655 # substituted into the Makefile and "${CC-cc}" will confuse make.
656 CPP="${CC-cc} -E"
657 # On the NeXT, cc -E runs the code through the compiler's parser,
658 # not just through cpp.
659 cat > conftest.$ac_ext <<EOF
660 #line 661 "configure"
661 #include "confdefs.h"
662 #include <assert.h>
663 Syntax Error
664 EOF
665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
666 { (eval echo configure:667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
667 ac_err=`grep -v '^ *+' conftest.out`
668 if test -z "$ac_err"; then
669 :
670 else
671 echo "$ac_err" >&5
672 rm -rf conftest*
673 CPP="${CC-cc} -E -traditional-cpp"
674 cat > conftest.$ac_ext <<EOF
675 #line 676 "configure"
676 #include "confdefs.h"
677 #include <assert.h>
678 Syntax Error
679 EOF
680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
681 { (eval echo configure:682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
682 ac_err=`grep -v '^ *+' conftest.out`
683 if test -z "$ac_err"; then
684 :
685 else
686 echo "$ac_err" >&5
687 rm -rf conftest*
688 CPP=/lib/cpp
689 fi
690 rm -f conftest*
691 fi
692 rm -f conftest*
693 ac_cv_prog_CPP="$CPP"
694 fi
695 CPP="$ac_cv_prog_CPP"
696 else
697 ac_cv_prog_CPP="$CPP"
698 fi
699 echo "$ac_t""$CPP" 1>&6
700
701 # Extract the first word of "ranlib", so it can be a program name with args.
702 set dummy ranlib; ac_word=$2
703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
704 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
706 else
707 if test -n "$RANLIB"; then
708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
709 else
710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
711 for ac_dir in $PATH; do
712 test -z "$ac_dir" && ac_dir=.
713 if test -f $ac_dir/$ac_word; then
714 ac_cv_prog_RANLIB="ranlib"
715 break
716 fi
717 done
718 IFS="$ac_save_ifs"
719 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
720 fi
721 fi
722 RANLIB="$ac_cv_prog_RANLIB"
723 if test -n "$RANLIB"; then
724 echo "$ac_t""$RANLIB" 1>&6
725 else
726 echo "$ac_t""no" 1>&6
727 fi
728
729
730 echo $ac_n "checking for AIX""... $ac_c" 1>&6
731 cat > conftest.$ac_ext <<EOF
732 #line 733 "configure"
733 #include "confdefs.h"
734 #ifdef _AIX
735 yes
736 #endif
737
738 EOF
739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
740 egrep "yes" >/dev/null 2>&1; then
741 rm -rf conftest*
742 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
743 #define _ALL_SOURCE 1
744 EOF
745
746 else
747 rm -rf conftest*
748 echo "$ac_t""no" 1>&6
749 fi
750 rm -f conftest*
751
752
753 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
754 if test -d /etc/conf/kconfig.d &&
755 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
756 then
757 echo "$ac_t""yes" 1>&6
758 ISC=yes # If later tests want to check for ISC.
759 cat >> confdefs.h <<\EOF
760 #define _POSIX_SOURCE 1
761 EOF
762
763 if test "$GCC" = yes; then
764 CC="$CC -posix"
765 else
766 CC="$CC -Xp"
767 fi
768 else
769 echo "$ac_t""no" 1>&6
770 ISC=
771 fi
772
773 ac_safe=`echo "minix/config.h" | tr './\055' '___'`
774 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
777 else
778 cat > conftest.$ac_ext <<EOF
779 #line 780 "configure"
780 #include "confdefs.h"
781 #include <minix/config.h>
782 EOF
783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
784 { (eval echo configure:785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
785 ac_err=`grep -v '^ *+' conftest.out`
786 if test -z "$ac_err"; then
787 rm -rf conftest*
788 eval "ac_cv_header_$ac_safe=yes"
789 else
790 echo "$ac_err" >&5
791 rm -rf conftest*
792 eval "ac_cv_header_$ac_safe=no"
793 fi
794 rm -f conftest*
795 fi
796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
797 echo "$ac_t""yes" 1>&6
798 MINIX=yes
799 else
800 echo "$ac_t""no" 1>&6
801 MINIX=
802 fi
803
804 if test "$MINIX" = yes; then
805 cat >> confdefs.h <<\EOF
806 #define _POSIX_SOURCE 1
807 EOF
808
809 cat >> confdefs.h <<\EOF
810 #define _POSIX_1_SOURCE 2
811 EOF
812
813 cat >> confdefs.h <<\EOF
814 #define _MINIX 1
815 EOF
816
817 fi
818
819
820 echo $ac_n "checking for working const""... $ac_c" 1>&6
821 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
823 else
824 cat > conftest.$ac_ext <<EOF
825 #line 826 "configure"
826 #include "confdefs.h"
827
828 int main() { return 0; }
829 int t() {
830
831 /* Ultrix mips cc rejects this. */
832 typedef int charset[2]; const charset x;
833 /* SunOS 4.1.1 cc rejects this. */
834 char const *const *ccp;
835 char **p;
836 /* NEC SVR4.0.2 mips cc rejects this. */
837 struct point {int x, y;};
838 static struct point const zero = {0,0};
839 /* AIX XL C 1.02.0.0 rejects this.
840 It does not let you subtract one const X* pointer from another in an arm
841 of an if-expression whose if-part is not a constant expression */
842 const char *g = "string";
843 ccp = &g + (g ? g-g : 0);
844 /* HPUX 7.0 cc rejects these. */
845 ++ccp;
846 p = (char**) ccp;
847 ccp = (char const *const *) p;
848 { /* SCO 3.2v4 cc rejects this. */
849 char *t;
850 char const *s = 0 ? (char *) 0 : (char const *) 0;
851
852 *t++ = 0;
853 }
854 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
855 int x[] = {25, 17};
856 const int *foo = &x[0];
857 ++foo;
858 }
859 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
860 typedef const int *iptr;
861 iptr p = 0;
862 ++p;
863 }
864 { /* AIX XL C 1.02.0.0 rejects this saying
865 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
866 struct s { int j; const int *ap[3]; };
867 struct s *b; b->j = 5;
868 }
869 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
870 const int foo = 10;
871 }
872
873 ; return 0; }
874 EOF
875 if { (eval echo configure:876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
876 rm -rf conftest*
877 ac_cv_c_const=yes
878 else
879 rm -rf conftest*
880 ac_cv_c_const=no
881 fi
882 rm -f conftest*
883
884 fi
885
886 echo "$ac_t""$ac_cv_c_const" 1>&6
887 if test $ac_cv_c_const = no; then
888 cat >> confdefs.h <<\EOF
889 #define const
890 EOF
891
892 fi
893
894
895 # If we cannot run a trivial program, we must be cross compiling.
896 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
897 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
899 else
900 if test "$cross_compiling" = yes; then
901 ac_cv_c_cross=yes
902 else
903 cat > conftest.$ac_ext <<EOF
904 #line 905 "configure"
905 #include "confdefs.h"
906 main(){return(0);}
907 EOF
908 { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
909 if test -s conftest && (./conftest; exit) 2>/dev/null; then
910 ac_cv_c_cross=no
911 else
912 ac_cv_c_cross=yes
913 fi
914 fi
915 rm -fr conftest*
916 fi
917
918 echo "$ac_t""$ac_cv_c_cross" 1>&6
919 cross_compiling=$ac_cv_c_cross
920
921 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
922 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
924 else
925 cat > conftest.$ac_ext <<EOF
926 #line 927 "configure"
927 #include "confdefs.h"
928 #include <stdlib.h>
929 #include <stdarg.h>
930 #include <string.h>
931 #include <float.h>
932 EOF
933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
934 { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
935 ac_err=`grep -v '^ *+' conftest.out`
936 if test -z "$ac_err"; then
937 rm -rf conftest*
938 ac_cv_header_stdc=yes
939 else
940 echo "$ac_err" >&5
941 rm -rf conftest*
942 ac_cv_header_stdc=no
943 fi
944 rm -f conftest*
945
946 if test $ac_cv_header_stdc = yes; then
947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
948 cat > conftest.$ac_ext <<EOF
949 #line 950 "configure"
950 #include "confdefs.h"
951 #include <string.h>
952 EOF
953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
954 egrep "memchr" >/dev/null 2>&1; then
955 :
956 else
957 rm -rf conftest*
958 ac_cv_header_stdc=no
959 fi
960 rm -f conftest*
961
962 fi
963
964 if test $ac_cv_header_stdc = yes; then
965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
966 cat > conftest.$ac_ext <<EOF
967 #line 968 "configure"
968 #include "confdefs.h"
969 #include <stdlib.h>
970 EOF
971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
972 egrep "free" >/dev/null 2>&1; then
973 :
974 else
975 rm -rf conftest*
976 ac_cv_header_stdc=no
977 fi
978 rm -f conftest*
979
980 fi
981
982 if test $ac_cv_header_stdc = yes; then
983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
984 if test "$cross_compiling" = yes; then
985 :
986 else
987 cat > conftest.$ac_ext <<EOF
988 #line 989 "configure"
989 #include "confdefs.h"
990 #include <ctype.h>
991 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
992 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
994 int main () { int i; for (i = 0; i < 256; i++)
995 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
996 exit (0); }
997
998 EOF
999 { (eval echo configure:1000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1000 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1001 :
1002 else
1003 ac_cv_header_stdc=no
1004 fi
1005 fi
1006 rm -fr conftest*
1007 fi
1008 fi
1009
1010 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1011 if test $ac_cv_header_stdc = yes; then
1012 cat >> confdefs.h <<\EOF
1013 #define STDC_HEADERS 1
1014 EOF
1015
1016 fi
1017
1018 ac_header_dirent=no
1019 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1020 do
1021 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1022 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1023 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1025 else
1026 cat > conftest.$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1029 #include <sys/types.h>
1030 #include <$ac_hdr>
1031 int main() { return 0; }
1032 int t() {
1033 DIR *dirp = 0;
1034 ; return 0; }
1035 EOF
1036 if { (eval echo configure:1037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1037 rm -rf conftest*
1038 eval "ac_cv_header_dirent_$ac_safe=yes"
1039 else
1040 rm -rf conftest*
1041 eval "ac_cv_header_dirent_$ac_safe=no"
1042 fi
1043 rm -f conftest*
1044
1045 fi
1046 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1047 echo "$ac_t""yes" 1>&6
1048 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
1049 cat >> confdefs.h <<EOF
1050 #define $ac_tr_hdr 1
1051 EOF
1052 ac_header_dirent=$ac_hdr; break
1053 else
1054 echo "$ac_t""no" 1>&6
1055 fi
1056 done
1057 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1058 if test $ac_header_dirent = dirent.h; then
1059 echo $ac_n "checking for -ldir""... $ac_c" 1>&6
1060 ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
1061 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1063 else
1064 ac_save_LIBS="$LIBS"
1065 LIBS="-ldir $LIBS"
1066 cat > conftest.$ac_ext <<EOF
1067 #line 1068 "configure"
1068 #include "confdefs.h"
1069 /* Override any gcc2 internal prototype to avoid an error. */
1070 /* We use char because int might match the return type of a gcc2
1071 builtin and then its argument prototype would still apply. */
1072 char opendir();
1073
1074 int main() { return 0; }
1075 int t() {
1076 opendir()
1077 ; return 0; }
1078 EOF
1079 if { (eval echo configure:1080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1080 rm -rf conftest*
1081 eval "ac_cv_lib_$ac_lib_var=yes"
1082 else
1083 rm -rf conftest*
1084 eval "ac_cv_lib_$ac_lib_var=no"
1085 fi
1086 rm -f conftest*
1087 LIBS="$ac_save_LIBS"
1088
1089 fi
1090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1091 echo "$ac_t""yes" 1>&6
1092 LIBS="$LIBS -ldir"
1093 else
1094 echo "$ac_t""no" 1>&6
1095 fi
1096
1097 else
1098 echo $ac_n "checking for -lx""... $ac_c" 1>&6
1099 ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
1100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1102 else
1103 ac_save_LIBS="$LIBS"
1104 LIBS="-lx $LIBS"
1105 cat > conftest.$ac_ext <<EOF
1106 #line 1107 "configure"
1107 #include "confdefs.h"
1108 /* Override any gcc2 internal prototype to avoid an error. */
1109 /* We use char because int might match the return type of a gcc2
1110 builtin and then its argument prototype would still apply. */
1111 char opendir();
1112
1113 int main() { return 0; }
1114 int t() {
1115 opendir()
1116 ; return 0; }
1117 EOF
1118 if { (eval echo configure:1119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1119 rm -rf conftest*
1120 eval "ac_cv_lib_$ac_lib_var=yes"
1121 else
1122 rm -rf conftest*
1123 eval "ac_cv_lib_$ac_lib_var=no"
1124 fi
1125 rm -f conftest*
1126 LIBS="$ac_save_LIBS"
1127
1128 fi
1129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1130 echo "$ac_t""yes" 1>&6
1131 LIBS="$LIBS -lx"
1132 else
1133 echo "$ac_t""no" 1>&6
1134 fi
1135
1136 fi
1137
1138 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1139 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1141 else
1142 cat > conftest.$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1145 #include <sys/types.h>
1146 #include <sys/time.h>
1147 #include <time.h>
1148 int main() { return 0; }
1149 int t() {
1150 struct tm *tp;
1151 ; return 0; }
1152 EOF
1153 if { (eval echo configure:1154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1154 rm -rf conftest*
1155 ac_cv_header_time=yes
1156 else
1157 rm -rf conftest*
1158 ac_cv_header_time=no
1159 fi
1160 rm -f conftest*
1161
1162 fi
1163
1164 echo "$ac_t""$ac_cv_header_time" 1>&6
1165 if test $ac_cv_header_time = yes; then
1166 cat >> confdefs.h <<\EOF
1167 #define TIME_WITH_SYS_TIME 1
1168 EOF
1169
1170 fi
1171
1172 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1173 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1175 else
1176 cat > conftest.$ac_ext <<EOF
1177 #line 1178 "configure"
1178 #include "confdefs.h"
1179 #include <sys/types.h>
1180 #include <sys/wait.h>
1181 #ifndef WEXITSTATUS
1182 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1183 #endif
1184 #ifndef WIFEXITED
1185 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1186 #endif
1187 int main() { return 0; }
1188 int t() {
1189 int s;
1190 wait (&s);
1191 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1192 ; return 0; }
1193 EOF
1194 if { (eval echo configure:1195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1195 rm -rf conftest*
1196 ac_cv_header_sys_wait_h=yes
1197 else
1198 rm -rf conftest*
1199 ac_cv_header_sys_wait_h=no
1200 fi
1201 rm -f conftest*
1202
1203 fi
1204
1205 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1206 if test $ac_cv_header_sys_wait_h = yes; then
1207 cat >> confdefs.h <<\EOF
1208 #define HAVE_SYS_WAIT_H 1
1209 EOF
1210
1211 fi
1212
1213 for ac_hdr in libc.h limits.h malloc.h memory.h string.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/types.h time.h unistd.h
1214 do
1215 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1217 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1219 else
1220 cat > conftest.$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1223 #include <$ac_hdr>
1224 EOF
1225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1226 { (eval echo configure:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1227 ac_err=`grep -v '^ *+' conftest.out`
1228 if test -z "$ac_err"; then
1229 rm -rf conftest*
1230 eval "ac_cv_header_$ac_safe=yes"
1231 else
1232 echo "$ac_err" >&5
1233 rm -rf conftest*
1234 eval "ac_cv_header_$ac_safe=no"
1235 fi
1236 rm -f conftest*
1237 fi
1238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1239 echo "$ac_t""yes" 1>&6
1240 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1241 cat >> confdefs.h <<EOF
1242 #define $ac_tr_hdr 1
1243 EOF
1244
1245 else
1246 echo "$ac_t""no" 1>&6
1247 fi
1248 done
1249
1250
1251 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1252 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255 cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1258 #include <sys/types.h>
1259 EOF
1260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1261 egrep "uid_t" >/dev/null 2>&1; then
1262 rm -rf conftest*
1263 ac_cv_type_uid_t=yes
1264 else
1265 rm -rf conftest*
1266 ac_cv_type_uid_t=no
1267 fi
1268 rm -f conftest*
1269
1270 fi
1271
1272 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1273 if test $ac_cv_type_uid_t = no; then
1274 cat >> confdefs.h <<\EOF
1275 #define uid_t int
1276 EOF
1277
1278 cat >> confdefs.h <<\EOF
1279 #define gid_t int
1280 EOF
1281
1282 fi
1283
1284 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1285 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1287 else
1288 if test "$cross_compiling" = yes; then
1289 ac_cv_type_getgroups=cross
1290 else
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1294
1295 /* Thanks to Mike Rendell for this test. */
1296 #include <sys/types.h>
1297 #define NGID 256
1298 #undef MAX
1299 #define MAX(x, y) ((x) > (y) ? (x) : (y))
1300 main()
1301 {
1302 gid_t gidset[NGID];
1303 int i, n;
1304 union { gid_t gval; long lval; } val;
1305
1306 val.lval = -1;
1307 for (i = 0; i < NGID; i++)
1308 gidset[i] = val.gval;
1309 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1310 gidset);
1311 /* Exit non-zero if getgroups seems to require an array of ints. This
1312 happens when gid_t is short but getgroups modifies an array of ints. */
1313 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1314 }
1315
1316 EOF
1317 { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1318 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1319 ac_cv_type_getgroups=gid_t
1320 else
1321 ac_cv_type_getgroups=int
1322 fi
1323 fi
1324 rm -fr conftest*
1325 if test $ac_cv_type_getgroups = cross; then
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1329 #include <unistd.h>
1330 EOF
1331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1332 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
1333 rm -rf conftest*
1334 ac_cv_type_getgroups=gid_t
1335 else
1336 rm -rf conftest*
1337 ac_cv_type_getgroups=int
1338 fi
1339 rm -f conftest*
1340
1341 fi
1342 fi
1343
1344 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1345 cat >> confdefs.h <<EOF
1346 #define GETGROUPS_T $ac_cv_type_getgroups
1347 EOF
1348
1349
1350 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1351 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 #include <sys/types.h>
1358 #include <signal.h>
1359 #ifdef signal
1360 #undef signal
1361 #endif
1362 #ifdef __cplusplus
1363 extern "C" void (*signal (int, void (*)(int)))(int);
1364 #else
1365 void (*signal ()) ();
1366 #endif
1367
1368 int main() { return 0; }
1369 int t() {
1370 int i;
1371 ; return 0; }
1372 EOF
1373 if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1374 rm -rf conftest*
1375 ac_cv_type_signal=void
1376 else
1377 rm -rf conftest*
1378 ac_cv_type_signal=int
1379 fi
1380 rm -f conftest*
1381
1382 fi
1383
1384 echo "$ac_t""$ac_cv_type_signal" 1>&6
1385 cat >> confdefs.h <<EOF
1386 #define RETSIGTYPE $ac_cv_type_signal
1387 EOF
1388
1389
1390 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1391 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1393 else
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1397 #include <sys/types.h>
1398 #if STDC_HEADERS
1399 #include <stdlib.h>
1400 #endif
1401 EOF
1402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1403 egrep "mode_t" >/dev/null 2>&1; then
1404 rm -rf conftest*
1405 ac_cv_type_mode_t=yes
1406 else
1407 rm -rf conftest*
1408 ac_cv_type_mode_t=no
1409 fi
1410 rm -f conftest*
1411
1412 fi
1413 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1414 if test $ac_cv_type_mode_t = no; then
1415 cat >> confdefs.h <<\EOF
1416 #define mode_t int
1417 EOF
1418
1419 fi
1420
1421
1422 for ac_func in ctermid ftime getcwd geteuid lstat mkdir mknod nice putenv readlink rename rmdir select setegid seteuid setlocale setpgid setsid strftime strptime symlink sync tcgetpgrp tcsetpgrp times uname waitpid
1423 do
1424 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1427 else
1428 cat > conftest.$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1431 /* System header to define __stub macros and hopefully few prototypes,
1432 which can conflict with char $ac_func(); below. */
1433 #include <assert.h>
1434 /* Override any gcc2 internal prototype to avoid an error. */
1435 /* We use char because int might match the return type of a gcc2
1436 builtin and then its argument prototype would still apply. */
1437 char $ac_func();
1438
1439 int main() { return 0; }
1440 int t() {
1441
1442 /* The GNU C library defines this for functions which it implements
1443 to always fail with ENOSYS. Some functions are actually named
1444 something starting with __ and the normal name is an alias. */
1445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1446 choke me
1447 #else
1448 $ac_func();
1449 #endif
1450
1451 ; return 0; }
1452 EOF
1453 if { (eval echo configure:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1454 rm -rf conftest*
1455 eval "ac_cv_func_$ac_func=yes"
1456 else
1457 rm -rf conftest*
1458 eval "ac_cv_func_$ac_func=no"
1459 fi
1460 rm -f conftest*
1461
1462 fi
1463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1466 cat >> confdefs.h <<EOF
1467 #define $ac_tr_func 1
1468 EOF
1469
1470 else
1471 echo "$ac_t""no" 1>&6
1472 fi
1473 done
1474
1475
1476 for ac_func in inet_aton
1477 do
1478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1481 else
1482 cat > conftest.$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.h"
1485 /* System header to define __stub macros and hopefully few prototypes,
1486 which can conflict with char $ac_func(); below. */
1487 #include <assert.h>
1488 /* Override any gcc2 internal prototype to avoid an error. */
1489 /* We use char because int might match the return type of a gcc2
1490 builtin and then its argument prototype would still apply. */
1491 char $ac_func();
1492
1493 int main() { return 0; }
1494 int t() {
1495
1496 /* The GNU C library defines this for functions which it implements
1497 to always fail with ENOSYS. Some functions are actually named
1498 something starting with __ and the normal name is an alias. */
1499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1500 choke me
1501 #else
1502 $ac_func();
1503 #endif
1504
1505 ; return 0; }
1506 EOF
1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1508 rm -rf conftest*
1509 eval "ac_cv_func_$ac_func=yes"
1510 else
1511 rm -rf conftest*
1512 eval "ac_cv_func_$ac_func=no"
1513 fi
1514 rm -f conftest*
1515
1516 fi
1517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1518 echo "$ac_t""yes" 1>&6
1519 :
1520 else
1521 echo "$ac_t""no" 1>&6
1522 LIBOBJS="$LIBOBJS ${ac_func}.o"
1523 fi
1524
1525 done
1526
1527
1528 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
1529 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531 else
1532 cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1535 #include <sys/types.h>
1536 #include <sys/stat.h>
1537 int main() { return 0; }
1538 int t() {
1539 struct stat s; s.st_rdev;
1540 ; return 0; }
1541 EOF
1542 if { (eval echo configure:1543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1543 rm -rf conftest*
1544 ac_cv_struct_st_rdev=yes
1545 else
1546 rm -rf conftest*
1547 ac_cv_struct_st_rdev=no
1548 fi
1549 rm -f conftest*
1550
1551 fi
1552
1553 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1554 if test $ac_cv_struct_st_rdev = yes; then
1555 cat >> confdefs.h <<\EOF
1556 #define HAVE_ST_RDEV 1
1557 EOF
1558
1559 fi
1560
1561 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
1562 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565 cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1568 #include <sys/types.h>
1569 #include <sys/stat.h>
1570 int main() { return 0; }
1571 int t() {
1572 struct stat s; s.st_blksize;
1573 ; return 0; }
1574 EOF
1575 if { (eval echo configure:1576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1576 rm -rf conftest*
1577 ac_cv_struct_st_blksize=yes
1578 else
1579 rm -rf conftest*
1580 ac_cv_struct_st_blksize=no
1581 fi
1582 rm -f conftest*
1583
1584 fi
1585
1586 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
1587 if test $ac_cv_struct_st_blksize = yes; then
1588 cat >> confdefs.h <<\EOF
1589 #define HAVE_ST_BLKSIZE 1
1590 EOF
1591
1592 fi
1593
1594 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1595 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1597 else
1598 cat > conftest.$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1601 #include <sys/types.h>
1602 #include <sys/stat.h>
1603 int main() { return 0; }
1604 int t() {
1605 struct stat s; s.st_blocks;
1606 ; return 0; }
1607 EOF
1608 if { (eval echo configure:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1609 rm -rf conftest*
1610 ac_cv_struct_st_blocks=yes
1611 else
1612 rm -rf conftest*
1613 ac_cv_struct_st_blocks=no
1614 fi
1615 rm -f conftest*
1616
1617 fi
1618
1619 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
1620 if test $ac_cv_struct_st_blocks = yes; then
1621 cat >> confdefs.h <<\EOF
1622 #define HAVE_ST_BLOCKS 1
1623 EOF
1624
1625 else
1626 LIBOBJS="$LIBOBJS fileblocks.o"
1627 fi
1628
1629
1630 #--------------------------------------------------------------------
1631 #
1632 # Which way does the stack grow?
1633 #
1634 #--------------------------------------------------------------------
1635
1636 if test "$cross_compiling" = yes; then
1637 echo "configure: warning: Guessing that stack grows down -- see scmconfig.h.in" 1>&2
1638 else
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 aux (l) unsigned long l;
1643 { int x; exit (l >= ((unsigned long)&x)); }
1644 main () { int q; aux((unsigned long)&q); }
1645 EOF
1646 { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1647 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1648 cat >> confdefs.h <<\EOF
1649 #define SCM_STACK_GROWS_UP 1
1650 EOF
1651
1652 fi
1653 fi
1654 rm -fr conftest*
1655
1656
1657 if test "$cross_compiling" = yes; then
1658 cat >> confdefs.h <<\EOF
1659 #define SCM_SINGLES 1
1660 EOF
1661
1662 echo "configure: warning: Guessing that sizeof(long) == sizeof(float) -- see scmconfig.h.in" 1>&2
1663 else
1664 cat > conftest.$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1667 main () { exit (sizeof(float) != sizeof(long)); }
1668 EOF
1669 { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1670 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1671 cat >> confdefs.h <<\EOF
1672 #define SCM_SINGLES 1
1673 EOF
1674
1675 fi
1676 fi
1677 rm -fr conftest*
1678
1679 echo $ac_n "checking for struct linger""... $ac_c" 1>&6
1680 if eval "test \"`echo '$''{'scm_cv_struct_linger'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1682 else
1683 cat > conftest.$ac_ext <<EOF
1684 #line 1685 "configure"
1685 #include "confdefs.h"
1686 #include <sys/socket.h>
1687 int main() { return 0; }
1688 int t() {
1689 struct linger lgr; lgr.l_linger = 100
1690 ; return 0; }
1691 EOF
1692 if { (eval echo configure:1693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1693 rm -rf conftest*
1694 scm_cv_struct_linger="yes"
1695 else
1696 rm -rf conftest*
1697 scm_cv_struct_linger="no"
1698 fi
1699 rm -f conftest*
1700
1701 fi
1702
1703 echo "$ac_t""$scm_cv_struct_linger" 1>&6
1704 if test $scm_cv_struct_linger = yes; then
1705 cat >> confdefs.h <<\EOF
1706 #define HAVE_STRUCT_LINGER 1
1707 EOF
1708
1709 fi
1710
1711 #--------------------------------------------------------------------
1712 #
1713 # How can you violate a stdio abstraction by setting a stream's fd?
1714 #
1715 #--------------------------------------------------------------------
1716
1717 FD_SETTER=""
1718
1719 if test "x$FD_SETTER" = x; then
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1723 #include <stdio.h>
1724
1725 int main() { return 0; }
1726 int t() {
1727 stdout->_file = 1
1728 ; return 0; }
1729 EOF
1730 if { (eval echo configure:1731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1731 rm -rf conftest*
1732 FD_SETTER="((F)->_file = (D))"
1733 fi
1734 rm -f conftest*
1735
1736 fi
1737
1738 if test "x$FD_SETTER" = x; then
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1742 #include <stdio.h>
1743
1744 int main() { return 0; }
1745 int t() {
1746 stdout->_fileno
1747 ; return 0; }
1748 EOF
1749 if { (eval echo configure:1750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1750 rm -rf conftest*
1751 FD_SETTER="((F)->_fileno = (D))"
1752 fi
1753 rm -f conftest*
1754
1755 fi
1756
1757
1758 test "x$FD_SETTER" != x && cat >> confdefs.h <<\EOF
1759 #define HAVE_FD_SETTER 1
1760 EOF
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775 trap '' 1 2 15
1776 cat > confcache <<\EOF
1777 # This file is a shell script that caches the results of configure
1778 # tests run on this system so they can be shared between configure
1779 # scripts and configure runs. It is not useful on other systems.
1780 # If it contains results you don't want to keep, you may remove or edit it.
1781 #
1782 # By default, configure uses ./config.cache as the cache file,
1783 # creating it if it does not exist already. You can give configure
1784 # the --cache-file=FILE option to use a different cache file; that is
1785 # what configure does when it calls configure scripts in
1786 # subdirectories, so they share the cache.
1787 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1788 # config.status only pays attention to the cache file if you give it the
1789 # --recheck option to rerun configure.
1790 #
1791 EOF
1792 # Ultrix sh set writes to stderr and can't be redirected directly,
1793 # and sets the high bit in the cache file unless we assign to the vars.
1794 (set) 2>&1 |
1795 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1796 >> confcache
1797 if cmp -s $cache_file confcache; then
1798 :
1799 else
1800 if test -w $cache_file; then
1801 echo "updating cache $cache_file"
1802 cat confcache > $cache_file
1803 else
1804 echo "not updating unwritable cache $cache_file"
1805 fi
1806 fi
1807 rm -f confcache
1808
1809 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1810
1811 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1812 # Let make expand exec_prefix.
1813 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1814
1815 # Any assignment to VPATH causes Sun make to only execute
1816 # the first set of double-colon rules, so remove it if not needed.
1817 # If there is a colon in the path, we need to keep it.
1818 if test "x$srcdir" = x.; then
1819 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1820 fi
1821
1822 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1823
1824 DEFS=-DHAVE_CONFIG_H
1825
1826 # Without the "./", some shells look in PATH for config.status.
1827 : ${CONFIG_STATUS=./config.status}
1828
1829 echo creating $CONFIG_STATUS
1830 rm -f $CONFIG_STATUS
1831 cat > $CONFIG_STATUS <<EOF
1832 #! /bin/sh
1833 # Generated automatically by configure.
1834 # Run this file to recreate the current configuration.
1835 # This directory was configured as follows,
1836 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1837 #
1838 # $0 $ac_configure_args
1839 #
1840 # Compiler output produced by configure, useful for debugging
1841 # configure, is in ./config.log if it exists.
1842
1843 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1844 for ac_option
1845 do
1846 case "\$ac_option" in
1847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1848 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1849 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1850 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1851 echo "$CONFIG_STATUS generated by autoconf version 2.10"
1852 exit 0 ;;
1853 -help | --help | --hel | --he | --h)
1854 echo "\$ac_cs_usage"; exit 0 ;;
1855 *) echo "\$ac_cs_usage"; exit 1 ;;
1856 esac
1857 done
1858
1859 ac_given_srcdir=$srcdir
1860
1861 trap 'rm -fr `echo "Makefile fd.h scmconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1862 EOF
1863 cat >> $CONFIG_STATUS <<EOF
1864
1865 # Protect against being on the right side of a sed subst in config.status.
1866 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1867 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1868 $ac_vpsub
1869 $extrasub
1870 s%@CFLAGS@%$CFLAGS%g
1871 s%@CPPFLAGS@%$CPPFLAGS%g
1872 s%@CXXFLAGS@%$CXXFLAGS%g
1873 s%@DEFS@%$DEFS%g
1874 s%@LDFLAGS@%$LDFLAGS%g
1875 s%@LIBS@%$LIBS%g
1876 s%@exec_prefix@%$exec_prefix%g
1877 s%@prefix@%$prefix%g
1878 s%@program_transform_name@%$program_transform_name%g
1879 s%@bindir@%$bindir%g
1880 s%@sbindir@%$sbindir%g
1881 s%@libexecdir@%$libexecdir%g
1882 s%@datadir@%$datadir%g
1883 s%@sysconfdir@%$sysconfdir%g
1884 s%@sharedstatedir@%$sharedstatedir%g
1885 s%@localstatedir@%$localstatedir%g
1886 s%@libdir@%$libdir%g
1887 s%@includedir@%$includedir%g
1888 s%@oldincludedir@%$oldincludedir%g
1889 s%@infodir@%$infodir%g
1890 s%@mandir@%$mandir%g
1891 s%@CC@%$CC%g
1892 s%@CPP@%$CPP%g
1893 s%@RANLIB@%$RANLIB%g
1894 s%@LIBOBJS@%$LIBOBJS%g
1895 s%@FD_SETTER@%$FD_SETTER%g
1896 s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
1897 s%@TK_SRC_DIR@%$TK_SRC_DIR%g
1898 s%@XINCLUDES@%$XINCLUDES%g
1899 s%@GUILE_MAJOR_VERSION@%$GUILE_MAJOR_VERSION%g
1900 s%@GUILE_MINOR_VERSION@%$GUILE_MINOR_VERSION%g
1901 s%@GUILE_VERSION@%$GUILE_VERSION%g
1902
1903 CEOF
1904 EOF
1905 cat >> $CONFIG_STATUS <<EOF
1906
1907 CONFIG_FILES=\${CONFIG_FILES-"Makefile fd.h"}
1908 EOF
1909 cat >> $CONFIG_STATUS <<\EOF
1910 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1911 # Support "outfile[:infile]", defaulting infile="outfile.in".
1912 case "$ac_file" in
1913 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1914 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1915 *) ac_file_in="${ac_file}.in" ;;
1916 esac
1917
1918 # Adjust relative srcdir, etc. for subdirectories.
1919
1920 # Remove last slash and all that follows it. Not all systems have dirname.
1921 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1922 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1923 # The file is in a subdirectory.
1924 test ! -d "$ac_dir" && mkdir "$ac_dir"
1925 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1926 # A "../" for each directory in $ac_dir_suffix.
1927 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1928 else
1929 ac_dir_suffix= ac_dots=
1930 fi
1931
1932 case "$ac_given_srcdir" in
1933 .) srcdir=.
1934 if test -z "$ac_dots"; then top_srcdir=.
1935 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1936 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1937 *) # Relative path.
1938 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1939 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1940 esac
1941
1942 echo creating "$ac_file"
1943 rm -f "$ac_file"
1944 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1945 case "$ac_file" in
1946 *Makefile*) ac_comsub="1i\\
1947 # $configure_input" ;;
1948 *) ac_comsub= ;;
1949 esac
1950 sed -e "$ac_comsub
1951 s%@configure_input@%$configure_input%g
1952 s%@srcdir@%$srcdir%g
1953 s%@top_srcdir@%$top_srcdir%g
1954 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1955 fi; done
1956 rm -f conftest.subs
1957
1958 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1959 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1960 #
1961 # ac_d sets the value in "#define NAME VALUE" lines.
1962 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1963 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1964 ac_dC='\3'
1965 ac_dD='%g'
1966 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1967 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1968 ac_uB='\([ ]\)%\1#\2define\3'
1969 ac_uC=' '
1970 ac_uD='\4%g'
1971 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1972 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1973 ac_eB='$%\1#\2define\3'
1974 ac_eC=' '
1975 ac_eD='%g'
1976
1977 CONFIG_HEADERS=${CONFIG_HEADERS-"scmconfig.h"}
1978 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1979 # Support "outfile[:infile]", defaulting infile="outfile.in".
1980 case "$ac_file" in
1981 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1982 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1983 *) ac_file_in="${ac_file}.in" ;;
1984 esac
1985
1986 echo creating $ac_file
1987
1988 rm -f conftest.frag conftest.in conftest.out
1989 cp $ac_given_srcdir/$ac_file_in conftest.in
1990
1991 EOF
1992
1993 # Transform confdefs.h into a sed script conftest.vals that substitutes
1994 # the proper values into config.h.in to produce config.h. And first:
1995 # Protect against being on the right side of a sed subst in config.status.
1996 # Protect against being in an unquoted here document in config.status.
1997 rm -f conftest.vals
1998 cat > conftest.hdr <<\EOF
1999 s/[\\&%]/\\&/g
2000 s%[\\$`]%\\&%g
2001 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2002 s%ac_d%ac_u%gp
2003 s%ac_u%ac_e%gp
2004 EOF
2005 sed -n -f conftest.hdr confdefs.h > conftest.vals
2006 rm -f conftest.hdr
2007
2008 # This sed command replaces #undef with comments. This is necessary, for
2009 # example, in the case of _POSIX_SOURCE, which is predefined and required
2010 # on some systems where configure will not decide to define it.
2011 cat >> conftest.vals <<\EOF
2012 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2013 EOF
2014
2015 # Break up conftest.vals because some shells have a limit on
2016 # the size of here documents, and old seds have small limits too.
2017 # Maximum number of lines to put in a single here document.
2018 ac_max_here_lines=12
2019
2020 rm -f conftest.tail
2021 while :
2022 do
2023 ac_lines=`grep -c . conftest.vals`
2024 # grep -c gives empty output for an empty file on some AIX systems.
2025 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2026 # Write a limited-size here document to conftest.frag.
2027 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2028 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2029 echo 'CEOF
2030 sed -f conftest.frag conftest.in > conftest.out
2031 rm -f conftest.in
2032 mv conftest.out conftest.in
2033 ' >> $CONFIG_STATUS
2034 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2035 rm -f conftest.vals
2036 mv conftest.tail conftest.vals
2037 done
2038 rm -f conftest.vals
2039
2040 cat >> $CONFIG_STATUS <<\EOF
2041 rm -f conftest.frag conftest.h
2042 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2043 cat conftest.in >> conftest.h
2044 rm -f conftest.in
2045 if cmp -s $ac_file conftest.h 2>/dev/null; then
2046 echo "$ac_file is unchanged"
2047 rm -f conftest.h
2048 else
2049 # Remove last slash and all that follows it. Not all systems have dirname.
2050 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2051 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2052 # The file is in a subdirectory.
2053 test ! -d "$ac_dir" && mkdir "$ac_dir"
2054 fi
2055 rm -f $ac_file
2056 mv conftest.h $ac_file
2057 fi
2058 fi; done
2059
2060
2061
2062 exit 0
2063 EOF
2064 chmod +x $CONFIG_STATUS
2065 rm -fr confdefs* $ac_clean_files
2066 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2067
2068