File:
[gforth] /
gforth /
Attic /
configure
Revision
1.11:
download - view:
text,
annotated -
select for diffs
Thu Jan 19 17:47:57 1995 UTC (28 years, 8 months ago) by
pazsan
Branches:
MAIN
CVS tags:
HEAD
float.fs: Added f~ (f-proximate)
wordsets.fs: Added missing float words
Added 16 bit and 64 bit support in cross.fs
Fixed some bugs which asume sizeof(int)=sizeof(Cell)
1: #!/bin/sh
2:
3: # Guess values for system-dependent variables and create Makefiles.
4: # Generated automatically using autoconf version 2.1
5: # Copyright (C) 1992, 1993, 1994 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-force-reg Use explicit register declarations if they appear in
16: the machine.h file. This can cause a good speedup,
17: but also incorrect code with some gcc versions on
18: some processors (default disabled)."
19: ac_help="$ac_help
20: --enable-direct-threaded Force direct threading. This may not work on
21: some machines and may cause slowdown on others.
22: (default processor-dependent)"
23: ac_help="$ac_help
24: --enable-indirect-threaded Force indirect threading. This can cause a
25: slowdown on some machines.
26: (default processor-dependent)"
27:
28: # Initialize some variables set by options.
29: # The variables have the same names as the options, with
30: # dashes changed to underlines.
31: build=NONE
32: cache_file=./config.cache
33: exec_prefix=NONE
34: host=NONE
35: no_create=
36: nonopt=NONE
37: no_recursion=
38: prefix=NONE
39: program_prefix=NONE
40: program_suffix=NONE
41: program_transform_name=s,x,x,
42: silent=
43: site=
44: srcdir=
45: target=NONE
46: verbose=
47: x_includes=NONE
48: x_libraries=NONE
49:
50: # Initialize some other variables.
51: subdirs=
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: -build | --build | --buil | --bui | --bu | --b)
74: ac_prev=build ;;
75: -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
76: build="$ac_optarg" ;;
77:
78: -cache-file | --cache-file | --cache-fil | --cache-fi \
79: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
80: ac_prev=cache_file ;;
81: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
82: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
83: cache_file="$ac_optarg" ;;
84:
85: -disable-* | --disable-*)
86: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
87: # Reject names that are not valid shell variable names.
88: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
89: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
90: fi
91: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
92: eval "enable_${ac_feature}=no" ;;
93:
94: -enable-* | --enable-*)
95: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
96: # Reject names that are not valid shell variable names.
97: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
98: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
99: fi
100: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
101: case "$ac_option" in
102: *=*) ;;
103: *) ac_optarg=yes ;;
104: esac
105: eval "enable_${ac_feature}='$ac_optarg'" ;;
106:
107: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
108: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
109: | --exec | --exe | --ex)
110: ac_prev=exec_prefix ;;
111: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
112: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
113: | --exec=* | --exe=* | --ex=*)
114: exec_prefix="$ac_optarg" ;;
115:
116: -gas | --gas | --ga | --g)
117: # Obsolete; use --with-gas.
118: with_gas=yes ;;
119:
120: -help | --help | --hel | --he)
121: # Omit some internal or obsolete options to make the list less imposing.
122: # This message is too long to be a string in the A/UX 3.1 sh.
123: cat << EOF
124: Usage: configure [options] [host]
125: Options: [defaults in brackets after descriptions]
126: Configuration:
127: --cache-file=FILE cache test results in FILE
128: --help print this message
129: --no-create do not create output files
130: --quiet, --silent do not print \`checking...' messages
131: --version print the version of autoconf that created configure
132: Directory and file names:
133: --prefix=PREFIX install architecture-independent files in PREFIX
134: [$ac_default_prefix]
135: --exec-prefix=PREFIX install architecture-dependent files in PREFIX
136: [same as prefix]
137: --srcdir=DIR find the sources in DIR [configure dir or ..]
138: --program-prefix=PREFIX prepend PREFIX to installed program names
139: --program-suffix=SUFFIX append SUFFIX to installed program names
140: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
141: Host type:
142: --build=BUILD configure for building on BUILD [BUILD=HOST]
143: --host=HOST configure for HOST [guessed]
144: --target=TARGET configure for TARGET [TARGET=HOST]
145: Features and packages:
146: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
147: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
148: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
149: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
150: --x-includes=DIR X include files are in DIR
151: --x-libraries=DIR X library files are in DIR
152: --enable and --with options recognized:$ac_help
153: EOF
154: exit 0 ;;
155:
156: -host | --host | --hos | --ho)
157: ac_prev=host ;;
158: -host=* | --host=* | --hos=* | --ho=*)
159: host="$ac_optarg" ;;
160:
161: -nfp | --nfp | --nf)
162: # Obsolete; use --without-fp.
163: with_fp=no ;;
164:
165: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
166: | --no-cr | --no-c)
167: no_create=yes ;;
168:
169: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
170: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
171: no_recursion=yes ;;
172:
173: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
174: ac_prev=prefix ;;
175: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
176: prefix="$ac_optarg" ;;
177:
178: -program-prefix | --program-prefix | --program-prefi | --program-pref \
179: | --program-pre | --program-pr | --program-p)
180: ac_prev=program_prefix ;;
181: -program-prefix=* | --program-prefix=* | --program-prefi=* \
182: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
183: program_prefix="$ac_optarg" ;;
184:
185: -program-suffix | --program-suffix | --program-suffi | --program-suff \
186: | --program-suf | --program-su | --program-s)
187: ac_prev=program_suffix ;;
188: -program-suffix=* | --program-suffix=* | --program-suffi=* \
189: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
190: program_suffix="$ac_optarg" ;;
191:
192: -program-transform-name | --program-transform-name \
193: | --program-transform-nam | --program-transform-na \
194: | --program-transform-n | --program-transform- \
195: | --program-transform | --program-transfor \
196: | --program-transfo | --program-transf \
197: | --program-trans | --program-tran \
198: | --progr-tra | --program-tr | --program-t)
199: ac_prev=program_transform_name ;;
200: -program-transform-name=* | --program-transform-name=* \
201: | --program-transform-nam=* | --program-transform-na=* \
202: | --program-transform-n=* | --program-transform-=* \
203: | --program-transform=* | --program-transfor=* \
204: | --program-transfo=* | --program-transf=* \
205: | --program-trans=* | --program-tran=* \
206: | --progr-tra=* | --program-tr=* | --program-t=*)
207: program_transform_name="$ac_optarg" ;;
208:
209: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
210: | -silent | --silent | --silen | --sile | --sil)
211: silent=yes ;;
212:
213: -site | --site | --sit)
214: ac_prev=site ;;
215: -site=* | --site=* | --sit=*)
216: site="$ac_optarg" ;;
217:
218: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
219: ac_prev=srcdir ;;
220: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
221: srcdir="$ac_optarg" ;;
222:
223: -target | --target | --targe | --targ | --tar | --ta | --t)
224: ac_prev=target ;;
225: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
226: target="$ac_optarg" ;;
227:
228: -v | -verbose | --verbose | --verbos | --verbo | --verb)
229: verbose=yes ;;
230:
231: -version | --version | --versio | --versi | --vers)
232: echo "configure generated by autoconf version 2.1"
233: exit 0 ;;
234:
235: -with-* | --with-*)
236: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
237: # Reject names that are not valid shell variable names.
238: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
239: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
240: fi
241: ac_package=`echo $ac_package| sed 's/-/_/g'`
242: case "$ac_option" in
243: *=*) ;;
244: *) ac_optarg=yes ;;
245: esac
246: eval "with_${ac_package}='$ac_optarg'" ;;
247:
248: -without-* | --without-*)
249: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
250: # Reject names that are not valid shell variable names.
251: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
252: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
253: fi
254: ac_package=`echo $ac_package| sed 's/-/_/g'`
255: eval "with_${ac_package}=no" ;;
256:
257: --x)
258: # Obsolete; use --with-x.
259: with_x=yes ;;
260:
261: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
262: | --x-incl | --x-inc | --x-in | --x-i)
263: ac_prev=x_includes ;;
264: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
265: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
266: x_includes="$ac_optarg" ;;
267:
268: -x-libraries | --x-libraries | --x-librarie | --x-librari \
269: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
270: ac_prev=x_libraries ;;
271: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
272: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
273: x_libraries="$ac_optarg" ;;
274:
275: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
276: ;;
277:
278: *)
279: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
280: echo "configure: warning: $ac_option: invalid host type" 1>&2
281: fi
282: if test "x$nonopt" != xNONE; then
283: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
284: fi
285: nonopt="$ac_option"
286: ;;
287:
288: esac
289: done
290:
291: if test -n "$ac_prev"; then
292: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
293: fi
294:
295: trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
296:
297: # File descriptor usage:
298: # 0 unused; standard input
299: # 1 file creation
300: # 2 errors and warnings
301: # 3 unused; some systems may open it to /dev/tty
302: # 4 checking for... messages and results
303: # 5 compiler messages saved in config.log
304: if test "$silent" = yes; then
305: exec 4>/dev/null
306: else
307: exec 4>&1
308: fi
309: exec 5>./config.log
310:
311: echo "\
312: This file contains any messages produced by compilers while
313: running configure, to aid debugging if configure makes a mistake.
314: " 1>&5
315:
316: # Strip out --no-create and --no-recursion so they do not pile up.
317: # Also quote any args containing shell metacharacters.
318: ac_configure_args=
319: for ac_arg
320: do
321: case "$ac_arg" in
322: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323: | --no-cr | --no-c) ;;
324: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
325: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
326: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
327: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
328: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
329: esac
330: done
331:
332: # NLS nuisances.
333: # Only set LANG and LC_ALL to C if already set.
334: # These must not be set unconditionally because not all systems understand
335: # e.g. LANG=C (notably SCO).
336: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
337: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
338:
339: # confdefs.h avoids OS command line length limits that DEFS can exceed.
340: rm -rf conftest* confdefs.h
341: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
342: echo > confdefs.h
343:
344: # A filename unique to this package, relative to the directory that
345: # configure is in, which we can look for to find out if srcdir is correct.
346: ac_unique_file=engine.c
347:
348: # Find the source files, if location was not specified.
349: if test -z "$srcdir"; then
350: ac_srcdir_defaulted=yes
351: # Try the directory containing this script, then its parent.
352: ac_prog=$0
353: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
354: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
355: srcdir=$ac_confdir
356: if test ! -r $srcdir/$ac_unique_file; then
357: srcdir=..
358: fi
359: else
360: ac_srcdir_defaulted=no
361: fi
362: if test ! -r $srcdir/$ac_unique_file; then
363: if test "$ac_srcdir_defaulted" = yes; then
364: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
365: else
366: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
367: fi
368: fi
369: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
370:
371: # Prefer explicitly selected file to automatically selected ones.
372: if test -z "$CONFIG_SITE"; then
373: if test "x$prefix" != xNONE; then
374: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
375: else
376: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
377: fi
378: fi
379: for ac_site_file in $CONFIG_SITE; do
380: if test -r "$ac_site_file"; then
381: echo "loading site script $ac_site_file"
382: . "$ac_site_file"
383: fi
384: done
385:
386: if test -r "$cache_file"; then
387: echo "loading cache $cache_file"
388: . $cache_file
389: else
390: echo "creating cache $cache_file"
391: > $cache_file
392: fi
393:
394: ac_ext=c
395: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
396: ac_cpp='$CPP $CPPFLAGS'
397: ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
398: ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
399:
400: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
401: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
402: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
403: ac_n= ac_c='
404: ' ac_t=' '
405: else
406: ac_n=-n ac_c= ac_t=
407: fi
408: else
409: ac_n= ac_c='\c' ac_t=
410: fi
411:
412:
413:
414: # Check whether --enable-force-reg or --disable-force-reg was given.
415: enableval="$enable_force_reg"
416: if test -n "$enableval"; then
417: cat >> confdefs.h <<\EOF
418: #define FORCE_REG 1
419: EOF
420:
421: fi
422:
423: # Check whether --enable-direct-threaded or --disable-direct-threaded was given.
424: enableval="$enable_direct_threaded"
425: if test -n "$enableval"; then
426: cat >> confdefs.h <<\EOF
427: #define DIRECT_THREADED 1
428: EOF
429:
430: fi
431:
432: # Check whether --enable-indirect-threaded or --disable-indirect-threaded was given.
433: enableval="$enable_indirect_threaded"
434: if test -n "$enableval"; then
435: cat >> confdefs.h <<\EOF
436: #define INDIRECT_THREADED 1
437: EOF
438:
439: fi
440:
441:
442: #terminology is a bit unusual here: The host is the system on which
443: #gforth will run; the system on which configure will run is the `build'
444: ac_aux_dir=
445: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
446: if test -f $ac_dir/install-sh; then
447: ac_aux_dir=$ac_dir
448: ac_install_sh="$ac_aux_dir/install-sh -c"
449: break
450: elif test -f $ac_dir/install.sh; then
451: ac_aux_dir=$ac_dir
452: ac_install_sh="$ac_aux_dir/install.sh -c"
453: break
454: fi
455: done
456: if test -z "$ac_aux_dir"; then
457: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
458: fi
459: ac_config_guess=$ac_aux_dir/config.guess
460: ac_config_sub=$ac_aux_dir/config.sub
461: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
462:
463:
464: # Make sure we can run config.sub.
465: if $ac_config_sub sun4 >/dev/null 2>&1; then :
466: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
467: fi
468:
469: echo $ac_n "checking host system type""... $ac_c" 1>&4
470:
471: host_alias=$host
472: case "$host_alias" in
473: NONE)
474: case $nonopt in
475: NONE)
476: if host_alias=`$ac_config_guess`; then :
477: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
478: fi ;;
479: *) host_alias=$nonopt ;;
480: esac ;;
481: esac
482:
483: host=`$ac_config_sub $host_alias`
484: host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
485: host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
486: host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
487: echo "$ac_t""$host" 1>&4
488:
489: case "$host_cpu" in
490: hppa*)
491: mach_h=hppa
492: LIBOBJS="cache.o"
493: LDFLAGS="-Xlinker -N"
494: LIBS="-L/lib/pa1.1/ $LIBS"
495: ;;
496: sparc*)
497: mach_h=sparc
498: ;;
499: i386|i486|i586)
500: mach_h=386
501: #!! direct/indirect threading switch
502: #!! -m486 flag
503: ;;
504: m68*)
505: mach_h=m68k
506: ;;
507: mips*)
508: mach_h=mips
509: LDFLAGS="-Xlinker -N"
510: #!! link text and data segment into the same 256M region!
511: #!! does cacheflush work on OSs other than Ultrix?
512: ;;
513: *)
514: echo "No direct threading support for $host_cpu, using indirect threading."
515: echo "Using a generic 32-bit machine description. It will only work if char * AND"
516: echo "long values have 32 bits."
517: echo "I'll assume that C floats and doubles are represented by IEEE single and"
518: echo "double numbers. If this is not so, SF@ etc. will not work correctly."
519: mach_h=32bit
520: esac
521:
522:
523: MAKE_EXE=""
524:
525:
526: LINK_KERNL16L=""
527:
528: LINK_KERNL16B=""
529:
530: LINK_KERNL32L=""
531:
532: LINK_KERNL32B=""
533:
534: LINK_KERNL64L=""
535:
536: LINK_KERNL64B=""
537:
538: #if test $host_os=dos
539: #then
540: # echo Configuring for DOS!!!
541: # MAKE_EXE="coff2exe gforth"
542: # LINK_KERNL32L='$(CP) kernl32l.fi gforth.fi'
543: #fi
544:
545: # If we cannot run a trivial program, we must be cross compiling.
546: echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
547: if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
548: echo $ac_n "(cached) $ac_c" 1>&4
549: else
550: if test "$cross_compiling" = yes; then
551: ac_cv_cross=yes
552: else
553: cat > conftest.$ac_ext <<EOF
554: #line 555 "configure"
555: #include "confdefs.h"
556: main(){return(0);}
557: EOF
558: eval $ac_link
559: if test -s conftest && (./conftest; exit) 2>/dev/null; then
560: ac_cv_c_cross=no
561: else
562: ac_cv_c_cross=yes
563: fi
564: fi
565: rm -fr conftest*
566: fi
567: cross_compiling=$ac_cv_c_cross
568: echo "$ac_t""$ac_cv_c_cross" 1>&4
569:
570: echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&4
571: if eval "test \"`echo '${'ac_cv_c_bigendian'+set}'`\" = set"; then
572: echo $ac_n "(cached) $ac_c" 1>&4
573: else
574: if test "$cross_compiling" = yes; then
575: { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
576: else
577: cat > conftest.$ac_ext <<EOF
578: #line 579 "configure"
579: #include "confdefs.h"
580: main () {
581: /* Are we little or big endian? From Harbison&Steele. */
582: union
583: {
584: long l;
585: char c[sizeof (long)];
586: } u;
587: u.l = 1;
588: exit (u.c[sizeof (long) - 1] == 1);
589: }
590: EOF
591: eval $ac_link
592: if test -s conftest && (./conftest; exit) 2>/dev/null; then
593: ac_cv_c_bigendian=no
594: else
595: ac_cv_c_bigendian=yes
596: fi
597: fi
598: rm -fr conftest*
599: fi
600: echo "$ac_t""$ac_cv_c_bigendian" 1>&4
601: if test $ac_cv_c_bigendian = yes; then
602: cat >> confdefs.h <<\EOF
603: #define WORDS_BIGENDIAN 1
604: EOF
605:
606: fi
607:
608:
609: if test $ac_cv_c_bigendian = yes; then
610: bytesex=b
611: KERNAL="kernl16b.fi kernl16l.fi kernl32b.fi kernl32l.fi kernl64b.fi kernl64l.fi"
612: else
613: bytesex=l
614: KERNAL="kernl16l.fi kernl16b.fi kernl32l.fi kernl32b.fi kernl64l.fi kernl64b.fi"
615: fi
616:
617: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&4
618: if eval "test \"`echo '${'ac_cv_prog_LN_S'+set}'`\" = set"; then
619: echo $ac_n "(cached) $ac_c" 1>&4
620: else
621: rm -f conftestdata
622: if ln -s X conftestdata 2>/dev/null
623: then
624: rm -f conftestdata
625: ac_cv_prog_LN_S="ln -s"
626: else
627: ac_cv_prog_LN_S=ln
628: fi
629: fi
630: LN_S="$ac_cv_prog_LN_S"
631: if test "$ac_cv_prog_LN_S" = "ln -s"; then
632: echo "$ac_t""yes" 1>&4
633: else
634: echo "$ac_t""no" 1>&4
635: fi
636:
637: # Find a good install program. We prefer a C program (faster),
638: # so one script is as good as another. But avoid the broken or
639: # incompatible versions:
640: # SysV /etc/install, /usr/sbin/install
641: # SunOS /usr/etc/install
642: # IRIX /sbin/install
643: # AIX /bin/install
644: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
645: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
646: # ./install, which can be erroneously created by make from ./install.sh.
647: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
648: if test -z "$INSTALL"; then
649: if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
650: echo $ac_n "(cached) $ac_c" 1>&4
651: else
652: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
653: for ac_dir in $PATH; do
654: case "$ac_dir" in
655: ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
656: *)
657: # OSF1 and SCO ODT 3.0 have their own names for install.
658: for ac_prog in ginstall installbsd scoinst install; do
659: if test -f $ac_dir/$ac_prog; then
660: if test $ac_prog = install &&
661: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
662: # AIX install. It has an incompatible calling convention.
663: # OSF/1 installbsd also uses dspmsg, but is usable.
664: :
665: else
666: ac_cv_path_install="$ac_dir/$ac_prog -c"
667: break 2
668: fi
669: fi
670: done
671: ;;
672: esac
673: done
674: IFS="$ac_save_ifs"
675: # As a last resort, use the slow shell script.
676: test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
677: fi
678: INSTALL="$ac_cv_path_install"
679: fi
680: echo "$ac_t""$INSTALL" 1>&4
681:
682: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
683: # It thinks the first close brace ends the variable substitution.
684: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
685:
686: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
687:
688:
689: echo $ac_n "checking for -lm""... $ac_c" 1>&4
690: if eval "test \"`echo '${'ac_cv_lib_m'+set}'`\" = set"; then
691: echo $ac_n "(cached) $ac_c" 1>&4
692: else
693: ac_save_LIBS="$LIBS"
694: LIBS="$LIBS -lm "
695: cat > conftest.$ac_ext <<EOF
696: #line 697 "configure"
697: #include "confdefs.h"
698:
699: int main() { return 0; }
700: int t() {
701: asin()
702: ; return 0; }
703: EOF
704: if eval $ac_link; then
705: rm -rf conftest*
706: eval "ac_cv_lib_m=yes"
707: else
708: rm -rf conftest*
709: eval "ac_cv_lib_m=no"
710: fi
711: rm -f conftest*
712: LIBS="$ac_save_LIBS"
713:
714: fi
715: if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
716: echo "$ac_t""yes" 1>&4
717: ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'`
718: cat >> confdefs.h <<EOF
719: #define $ac_tr_lib 1
720: EOF
721:
722: LIBS="$LIBS -lm"
723:
724: else
725: echo "$ac_t""no" 1>&4
726: fi
727:
728: echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&4
729: if eval "test \"`echo '${'ac_cv_func_memcmp'+set}'`\" = set"; then
730: echo $ac_n "(cached) $ac_c" 1>&4
731: else
732: if test "$cross_compiling" = yes; then
733: ac_cv_func_memcmp=no
734: else
735: cat > conftest.$ac_ext <<EOF
736: #line 737 "configure"
737: #include "confdefs.h"
738:
739: main()
740: {
741: char c0 = 0x40, c1 = 0x80, c2 = 0x81;
742: exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
743: }
744:
745: EOF
746: eval $ac_link
747: if test -s conftest && (./conftest; exit) 2>/dev/null; then
748: ac_cv_func_memcmp=yes
749: else
750: ac_cv_func_memcmp=no
751: fi
752: fi
753: rm -fr conftest*
754: fi
755: echo "$ac_t""$ac_cv_func_memcmp" 1>&4
756: test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
757:
758: for ac_func in memmove strtoul
759: do
760: echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
761: if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
762: echo $ac_n "(cached) $ac_c" 1>&4
763: else
764: cat > conftest.$ac_ext <<EOF
765: #line 766 "configure"
766: #include "confdefs.h"
767: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
768: /* Override any gcc2 internal prototype to avoid an error. */
769: char $ac_func();
770:
771: int main() { return 0; }
772: int t() {
773:
774: /* The GNU C library defines this for functions which it implements
775: to always fail with ENOSYS. Some functions are actually named
776: something starting with __ and the normal name is an alias. */
777: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
778: choke me
779: #else
780: $ac_func();
781: #endif
782:
783: ; return 0; }
784: EOF
785: if eval $ac_link; then
786: rm -rf conftest*
787: eval "ac_cv_func_$ac_func=yes"
788: else
789: rm -rf conftest*
790: eval "ac_cv_func_$ac_func=no"
791: fi
792: rm -f conftest*
793:
794: fi
795: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
796: echo "$ac_t""yes" 1>&4
797: :
798: else
799: echo "$ac_t""no" 1>&4
800: LIBOBJS="$LIBOBJS ${ac_func}.o"
801: fi
802:
803: done
804:
805: echo $ac_n "checking for getopt_long""... $ac_c" 1>&4
806: if eval "test \"`echo '${'ac_cv_func_getopt_long'+set}'`\" = set"; then
807: echo $ac_n "(cached) $ac_c" 1>&4
808: else
809: cat > conftest.$ac_ext <<EOF
810: #line 811 "configure"
811: #include "confdefs.h"
812: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
813: /* Override any gcc2 internal prototype to avoid an error. */
814: char getopt_long();
815:
816: int main() { return 0; }
817: int t() {
818:
819: /* The GNU C library defines this for functions which it implements
820: to always fail with ENOSYS. Some functions are actually named
821: something starting with __ and the normal name is an alias. */
822: #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
823: choke me
824: #else
825: getopt_long();
826: #endif
827:
828: ; return 0; }
829: EOF
830: if eval $ac_link; then
831: rm -rf conftest*
832: eval "ac_cv_func_getopt_long=yes"
833: else
834: rm -rf conftest*
835: eval "ac_cv_func_getopt_long=no"
836: fi
837: rm -f conftest*
838:
839: fi
840: if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
841: echo "$ac_t""yes" 1>&4
842: getop_long=""
843: else
844: echo "$ac_t""no" 1>&4
845: getopt_long="getopt.o getopt1.o"
846: fi
847:
848:
849: for ac_func in rint expm1 log1p pow10
850: do
851: echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
852: if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
853: echo $ac_n "(cached) $ac_c" 1>&4
854: else
855: cat > conftest.$ac_ext <<EOF
856: #line 857 "configure"
857: #include "confdefs.h"
858: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
859: /* Override any gcc2 internal prototype to avoid an error. */
860: char $ac_func();
861:
862: int main() { return 0; }
863: int t() {
864:
865: /* The GNU C library defines this for functions which it implements
866: to always fail with ENOSYS. Some functions are actually named
867: something starting with __ and the normal name is an alias. */
868: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
869: choke me
870: #else
871: $ac_func();
872: #endif
873:
874: ; return 0; }
875: EOF
876: if eval $ac_link; then
877: rm -rf conftest*
878: eval "ac_cv_func_$ac_func=yes"
879: else
880: rm -rf conftest*
881: eval "ac_cv_func_$ac_func=no"
882: fi
883: rm -f conftest*
884:
885: fi
886: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
887: echo "$ac_t""yes" 1>&4
888: ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
889: cat >> confdefs.h <<EOF
890: #define $ac_tr_func 1
891: EOF
892:
893: else
894: echo "$ac_t""no" 1>&4
895: fi
896: done
897:
898: for ac_func in ecvt
899: do
900: echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
901: if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
902: echo $ac_n "(cached) $ac_c" 1>&4
903: else
904: cat > conftest.$ac_ext <<EOF
905: #line 906 "configure"
906: #include "confdefs.h"
907: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
908: /* Override any gcc2 internal prototype to avoid an error. */
909: char $ac_func();
910:
911: int main() { return 0; }
912: int t() {
913:
914: /* The GNU C library defines this for functions which it implements
915: to always fail with ENOSYS. Some functions are actually named
916: something starting with __ and the normal name is an alias. */
917: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
918: choke me
919: #else
920: $ac_func();
921: #endif
922:
923: ; return 0; }
924: EOF
925: if eval $ac_link; then
926: rm -rf conftest*
927: eval "ac_cv_func_$ac_func=yes"
928: else
929: rm -rf conftest*
930: eval "ac_cv_func_$ac_func=no"
931: fi
932: rm -f conftest*
933:
934: fi
935: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
936: echo "$ac_t""yes" 1>&4
937: :
938: else
939: echo "$ac_t""no" 1>&4
940: LIBOBJS="$LIBOBJS ${ac_func}.o"
941: fi
942:
943: done
944:
945:
946:
947: trap '' 1 2 15
948: if test -w $cache_file; then
949: echo "updating cache $cache_file"
950: cat > $cache_file <<\EOF
951: # This file is a shell script that caches the results of configure
952: # tests run on this system so they can be shared between configure
953: # scripts and configure runs. It is not useful on other systems.
954: # If it contains results you don't want to keep, you may remove or edit it.
955: #
956: # By default, configure uses ./config.cache as the cache file,
957: # creating it if it does not exist already. You can give configure
958: # the --cache-file=FILE option to use a different cache file; that is
959: # what configure does when it calls configure scripts in
960: # subdirectories, so they share the cache.
961: # Giving --cache-file=/dev/null disables caching, for debugging configure.
962: # config.status only pays attention to the cache file if you give it the
963: # --recheck option to rerun configure.
964: #
965: EOF
966: # Ultrix sh set writes to stderr and can't be redirected directly.
967: (set) 2>&1 |
968: sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
969: >> $cache_file
970: else
971: echo "not updating unwritable cache $cache_file"
972: fi
973:
974: trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
975:
976: test "x$prefix" = xNONE && prefix=$ac_default_prefix
977: # Let make expand exec_prefix.
978: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
979:
980: # Any assignment to VPATH causes Sun make to only execute
981: # the first set of double-colon rules, so remove it if not needed.
982: # If there is a colon in the path, we need to keep it.
983: if test "x$srcdir" = x.; then
984: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
985: fi
986:
987: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
988:
989: # Transform confdefs.h into DEFS.
990: # Protect against shell expansion while executing Makefile rules.
991: # Protect against Makefile macro expansion.
992: cat > conftest.defs <<\EOF
993: s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
994: s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
995: s%\[%\\&%g
996: s%\]%\\&%g
997: s%\$%$$%g
998: EOF
999: DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1000: rm -f conftest.defs
1001:
1002:
1003: # Without the "./", some shells look in PATH for config.status.
1004: : ${CONFIG_STATUS=./config.status}
1005:
1006: echo creating $CONFIG_STATUS
1007: rm -f $CONFIG_STATUS
1008: cat > $CONFIG_STATUS <<EOF
1009: #!/bin/sh
1010: # Generated automatically by configure.
1011: # Run this file to recreate the current configuration.
1012: # This directory was configured as follows,
1013: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1014: #
1015: # $0 $ac_configure_args
1016: #
1017: # Compiler output produced by configure, useful for debugging
1018: # configure, is in ./config.log if it exists.
1019:
1020: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1021: for ac_option
1022: do
1023: case "\$ac_option" in
1024: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1025: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1026: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1027: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1028: echo "$CONFIG_STATUS generated by autoconf version 2.1"
1029: exit 0 ;;
1030: -help | --help | --hel | --he | --h)
1031: echo "\$ac_cs_usage"; exit 0 ;;
1032: *) echo "\$ac_cs_usage"; exit 1 ;;
1033: esac
1034: done
1035:
1036: ac_given_srcdir=$srcdir
1037: ac_given_INSTALL="$INSTALL"
1038:
1039: trap 'rm -f Makefile; exit 1' 1 2 15
1040:
1041: # Protect against being on the right side of a sed subst in config.status.
1042: sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1043: s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1044: $ac_vpsub
1045: $extrasub
1046: s%@CFLAGS@%$CFLAGS%g
1047: s%@CPPFLAGS@%$CPPFLAGS%g
1048: s%@CXXFLAGS@%$CXXFLAGS%g
1049: s%@DEFS@%$DEFS%g
1050: s%@LDFLAGS@%$LDFLAGS%g
1051: s%@LIBS@%$LIBS%g
1052: s%@exec_prefix@%$exec_prefix%g
1053: s%@prefix@%$prefix%g
1054: s%@program_transform_name@%$program_transform_name%g
1055: s%@host@%$host%g
1056: s%@host_alias@%$host_alias%g
1057: s%@host_cpu@%$host_cpu%g
1058: s%@host_vendor@%$host_vendor%g
1059: s%@host_os@%$host_os%g
1060: s%@MAKE_EXE@%$MAKE_EXE%g
1061: s%@LINK_KERNL16L@%$LINK_KERNL16L%g
1062: s%@LINK_KERNL16B@%$LINK_KERNL16B%g
1063: s%@LINK_KERNL32L@%$LINK_KERNL32L%g
1064: s%@LINK_KERNL32B@%$LINK_KERNL32B%g
1065: s%@LINK_KERNL64L@%$LINK_KERNL64L%g
1066: s%@LINK_KERNL64B@%$LINK_KERNL64B%g
1067: s%@KERNAL@%$KERNAL%g
1068: s%@LN_S@%$LN_S%g
1069: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1070: s%@INSTALL_DATA@%$INSTALL_DATA%g
1071: s%@LIBOBJS@%$LIBOBJS%g
1072: s%@getopt_long@%$getopt_long%g
1073:
1074: CEOF
1075: EOF
1076: cat >> $CONFIG_STATUS <<EOF
1077:
1078: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1079: EOF
1080: cat >> $CONFIG_STATUS <<\EOF
1081: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1082: # Support "outfile[:infile]", defaulting infile="outfile.in".
1083: case "$ac_file" in
1084: *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1085: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1086: *) ac_file_in="${ac_file}.in" ;;
1087: esac
1088:
1089: # Adjust relative srcdir, etc. for subdirectories.
1090:
1091: # Remove last slash and all that follows it. Not all systems have dirname.
1092: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1093: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1094: # The file is in a subdirectory.
1095: test ! -d "$ac_dir" && mkdir "$ac_dir"
1096: ac_dir_suffix="/$ac_dir"
1097: # A "../" for each directory in $ac_dir_suffix.
1098: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1099: else
1100: ac_dir_suffix= ac_dots=
1101: fi
1102:
1103: case "$ac_given_srcdir" in
1104: .) srcdir=.
1105: if test -z "$ac_dots"; then top_srcdir=.
1106: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1107: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1108: *) # Relative path.
1109: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1110: top_srcdir="$ac_dots$ac_given_srcdir" ;;
1111: esac
1112:
1113: case "$ac_given_INSTALL" in
1114: [/$]*) INSTALL="$ac_given_INSTALL" ;;
1115: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1116: esac
1117: echo creating "$ac_file"
1118: rm -f "$ac_file"
1119: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1120: case "$ac_file" in
1121: *Makefile*) ac_comsub="1i\\
1122: # $configure_input" ;;
1123: *) ac_comsub= ;;
1124: esac
1125: sed -e "$ac_comsub
1126: s%@configure_input@%$configure_input%g
1127: s%@srcdir@%$srcdir%g
1128: s%@top_srcdir@%$top_srcdir%g
1129: s%@INSTALL@%$INSTALL%g
1130: " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1131: fi; done
1132: rm -f conftest.subs
1133:
1134: EOF
1135:
1136: cat >> $CONFIG_STATUS <<EOF
1137: ac_sources="${mach_h}.h kernl32${bytesex}.fi"
1138: ac_dests="machine.h gforth.fi"
1139: EOF
1140:
1141: cat >> $CONFIG_STATUS <<\EOF
1142: srcdir=$ac_given_srcdir
1143: while test -n "$ac_sources"; do
1144: set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1145: set $ac_sources; ac_source=$1; shift; ac_sources=$*
1146:
1147: echo "linking $srcdir/$ac_source to $ac_dest"
1148:
1149: if test ! -r $srcdir/$ac_source; then
1150: { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1151: fi
1152: rm -f $ac_dest
1153:
1154: # Make relative symlinks.
1155: # Remove last slash and all that follows it. Not all systems have dirname.
1156: ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1157: if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1158: # The dest file is in a subdirectory.
1159: test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1160: ac_dest_dir_suffix="/$ac_dest_dir"
1161: # A "../" for each directory in $ac_dest_dir_suffix.
1162: ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1163: else
1164: ac_dest_dir_suffix= ac_dots=
1165: fi
1166:
1167: case "$srcdir" in
1168: [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1169: *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1170: esac
1171:
1172: # Make a symlink if possible; otherwise try a hard link.
1173: if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1174: ln $srcdir/$ac_source $ac_dest; then :
1175: else
1176: { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1177: fi
1178: done
1179:
1180:
1181: exit 0
1182: EOF
1183: chmod +x $CONFIG_STATUS
1184: rm -fr confdefs* $ac_clean_files
1185: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
1186:
1187:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>