4 # The make-config.sh script uses information about the target machine
5 # to set things up for compilation. It's vaguely like a stripped-down
6 # version of autoconf. It's intended to be run as part of make.sh. The
7 # only time you'd want to run it by itself is if you're trying to
8 # cross-compile the system or if you're doing some kind of
11 # This software is part of the SBCL system. See the README file for
14 # This software is derived from the CMU CL system, which was
15 # written at Carnegie Mellon University and released into the
16 # public domain. The software is in the public domain and is
17 # provided with absolutely no warranty. See the COPYING and CREDITS
18 # files for more information.
22 # The classic form here was to use --userinit $DEVNULL --sysinit
23 # $DEVNULL, but that doesn't work on Win32 because SBCL doesn't handle
24 # device names properly. We still need $DEVNULL to be NUL on Win32
25 # because it's used elsewhere (such as canonicalize-whitespace), so we
26 # need an alternate solution for the init file overrides. --no-foos
27 # have now been available long enough that this should not stop anyone
29 if [ "$OSTYPE" = "cygwin" -o "$OSTYPE" = "msys" ]
31 SBCL_PREFIX
="$PROGRAMFILES/sbcl"
33 SBCL_PREFIX
="/usr/local"
35 SBCL_XC_HOST
="sbcl --disable-debugger --no-userinit --no-sysinit"
38 # Parse command-line options.
41 echo "Enter \"$0 --help\" for list of valid options."
47 FANCY_FEATURES
=":sb-core-compression :sb-xref-for-internals :sb-after-xc-core"
54 # Split --foo=bar into --foo and bar.
57 # For ease of scripting skip valued options with empty
59 optarg
=`expr "X$option" : '[^=]*=\(.*\)'` || optarg_ok
=false
60 option
=`expr "X$option" : 'X\([^=]*=\).*'`
63 optarg
=`expr "X$option" : 'X--[^-]*-\(.*\)'` \
64 || bad_option
"Malformed feature toggle: $option"
65 option
=`expr "X$option" : 'X\(--[^-]*\).*'`
76 $optarg_ok && SBCL_PREFIX
=$optarg
79 $oparg_ok && SBCL_ARCH
=$optarg
82 $optarg_ok && SBCL_XC_HOST
=$optarg
85 $optarg_ok && SBCL_HOST_LOCATION
=$optarg
88 $optarg_ok && SBCL_TARGET_LOCATION
=$optarg
90 --dynamic-space-size=)
91 $optarg_ok && SBCL_DYNAMIC_SPACE_SIZE
=$optarg
94 WITH_FEATURES
="$WITH_FEATURES :$optarg"
97 WITHOUT_FEATURES
="$WITHOUT_FEATURES :$optarg"
100 WITH_FEATURES
="$WITH_FEATURES $FANCY_FEATURES"
101 # Lower down we add :sb-thread for platforms where it can be built.
105 bad_option
"Unknown command-line option to $0: \"$option\""
110 bad_option
"Unknown command-line option to $0: \"$option\""
112 legacy_xc_spec
=$option
119 if (test -f customize-target-features.lisp
&& \
120 (test -n "$WITH_FEATURES" ||
test -n "$WITHOUT_FEATURES"))
122 # Actually there's no reason why it would not work, but it would
123 # be confusing to say --with-thread only to have it turned off by
124 # customize-target-features.lisp...
125 echo "ERROR: Both customize-target-features.lisp, and feature-options"
126 echo "to make.sh present -- cannot use both at the same time."
130 # Previously XC host was provided as a positional argument.
131 if test -n "$legacy_xc_spec"
133 SBCL_XC_HOST
="$legacy_xc_spec"
136 if test "$print_help" = "yes"
139 \`make.sh' drives the SBCL build.
141 Usage: $0 [OPTION]...
143 Important: make.sh does not currently control the entirety of the
144 build: configuration file customize-target-features.lisp and certain
145 environment variables play a role as well. see file INSTALL for
149 -h, --help Display this help and exit.
151 --prefix=<path> Specify the install location.
153 Script install.sh installs SBCL under the specified prefix
154 path: runtime as prefix/bin/sbcl, additional files under
155 prefix/lib/sbcl, and documentation under prefix/share.
157 This option also affects the binaries: built-in default for
158 SBCL_HOME is: prefix/lib/sbcl/
160 Default prefix is: /usr/local
162 --dynamic-space-size=<size> Default dynamic-space size for target.
164 This specifies the default dynamic-space size for the SBCL
165 being built. If you need to control the dynamic-space size
166 of the host SBCL, use the --xc-host option.
168 If not provided, the default is platform-specific. <size> is
169 taken to be megabytes unless explicitly suffixed with Gb in
170 order to specify the size in gigabytes.
172 --with-<feature> Build with specified feature.
173 --without-<feature> Build wihout the specfied feature.
175 --fancy Build with several optional features:
179 Plus threading on platforms which support it.
181 --arch=<string> Specify the architecture to build for.
183 Mainly for doing x86 builds on x86-64.
185 --xc-host=<string> Specify the Common Lisp compilation host.
187 The string provided should be a command to invoke the
188 cross-compilation Lisp system in such a way, that it reads
189 commands from standard input, and terminates when it reaches end
190 of file on standard input.
194 "sbcl --disable-debugger --no-sysinit --no-userinit"
195 Use an existing SBCL binary as a cross-compilation
196 host even though you have stuff in your
197 initialization files which makes it behave in such a
198 non-standard way that it keeps the build from
199 working. Also disable the debugger instead of
200 waiting endlessly for a programmer to help it out
201 with input on *DEBUG-IO*. (This is the default.)
204 Use an existing SBCL binary as a cross-compilation
205 host, including your initialization files and
206 building with the debugger enabled. Not recommended
209 "lisp -noinit -batch"
210 Use an existing CMU CL binary as a cross-compilation
211 host when you have weird things in your .cmucl-init
217 # Running make.sh with different options without clean.sh in the middle
222 # Save prefix for make and install.sh.
223 echo "SBCL_PREFIX='$SBCL_PREFIX'" > output
/prefix.def
224 echo "$SBCL_DYNAMIC_SPACE_SIZE" > output
/dynamic-space-size.txt
226 # FIXME: Tweak this script, and the rest of the system, to support
227 # a second bootstrapping pass in which the cross-compilation host is
228 # known to be SBCL itself, so that the cross-compiler can do some
229 # optimizations (especially specializable arrays) that it doesn't
230 # know how to implement how in a portable way. (Or maybe that wouldn't
231 # require a second pass, just testing at build-the-cross-compiler time
232 # whether the cross-compilation host returns suitable values from
233 # UPGRADED-ARRAY-ELEMENT-TYPE?)
235 if [ "$OSTYPE" = "cygwin" -o "$OSTYPE" = "msys" ] ; then
245 . .
/generate-version.sh
248 # Now that we've done our option parsing and found various
249 # dependencies, write them out to a file to be sourced by other
252 echo "DEVNULL=\"$DEVNULL\"; export DEVNULL" > output
/build-config
253 echo "GNUMAKE=\"$GNUMAKE\"; export GNUMAKE" >> output
/build-config
254 echo "SBCL_XC_HOST=\"$SBCL_XC_HOST\"; export SBCL_XC_HOST" >> output
/build-config
255 echo "legacy_xc_spec=\"$legacy_xc_spec\"; export legacy_xc_spec" >> output
/build-config
256 if [ -n "$SBCL_HOST_LOCATION" ]; then
257 echo "SBCL_HOST_LOCATION=\"$SBCL_HOST_LOCATION\"; export SBCL_HOST_LOCATION" >> output
/build-config
259 if [ -n "$SBCL_TARGET_LOCATION" ]; then
260 echo "SBCL_TARGET_LOCATION=\"$SBCL_TARGET_LOCATION\"; export SBCL_TARGET_LOCATION" >> output
/build-config
263 # And now, sorting out the per-target dependencies...
270 # it's changed name twice since it was called OSF/1: clearly
271 # the marketers forgot to tell the engineers about Digital Unix
281 sbcl_os
="gnu-kfreebsd"
290 echo unsupported BSD variant
: `uname`
304 CYGWIN
* | WindowsNT | MINGW
*)
311 echo unsupported OS
type: `uname`
317 if [ "$sbcl_os" = "win32" ] ; then
318 # Use preprocessor or makefile includes instead of copying if
319 # possible, to avoid unexpected use of the original, unchanged
320 # files when re-running only make-target-1 during development.
321 if echo "$1" |
egrep '[.][ch]$'; then
322 echo "#include \"$1\"" >"$2"
323 elif echo "$1" |
egrep '^Config[.]'; then
324 echo "include $1" >"$2"
333 remove_dir_safely
() {
334 if [ "$sbcl_os" = "win32" ] ; then
335 if [ -d "$1" ] ; then
337 elif [ -e "$1" ] ; then
338 echo "I'm afraid to remove non-directory $1."
342 if [ -h "$1" ] ; then
344 elif [ -w "$1" ] ; then
345 echo "I'm afraid to replace non-symlink $1 with a symlink."
351 echo //entering make-config.sh
353 echo //ensuring the existence of output
/ directory
354 if [ ! -d output
] ; then mkdir output
; fi
356 echo //guessing default target CPU architecture from
host architecture
358 *86) guessed_sbcl_arch
=x86
;;
359 i86pc
) guessed_sbcl_arch
=x86
;;
360 *x86_64
) guessed_sbcl_arch
=x86-64
;;
361 amd64
) guessed_sbcl_arch
=x86-64
;;
362 [Aa
]lpha
) guessed_sbcl_arch
=alpha
;;
363 sparc
*) guessed_sbcl_arch
=sparc
;;
364 sun
*) guessed_sbcl_arch
=sparc
;;
365 *ppc
) guessed_sbcl_arch
=ppc
;;
366 ppc64
) guessed_sbcl_arch
=ppc
;;
367 Power
*Macintosh
) guessed_sbcl_arch
=ppc
;;
368 ibmnws
) guessed_sbcl_arch
=ppc
;;
369 parisc
) guessed_sbcl_arch
=hppa
;;
370 9000/800) guessed_sbcl_arch
=hppa
;;
371 mips
*) guessed_sbcl_arch
=mips
;;
372 arm
*) guessed_sbcl_arch
=arm
;;
374 # If we're not building on a supported target architecture, we
375 # we have no guess, but it's not an error yet, since maybe
376 # target architecture will be specified explicitly below.
381 # Under Solaris, uname -m returns "i86pc" even if CPU is amd64.
382 if [ "$sbcl_os" = "sunos" ] && [ `isainfo -k` = "amd64" ]; then
383 guessed_sbcl_arch
=x86-64
386 # Under Darwin, uname -m returns "i386" even if CPU is x86_64.
387 if [ "$sbcl_os" = "darwin" ] && [ "`/usr/sbin/sysctl -n hw.optional.x86_64`" = "1" ]; then
388 guessed_sbcl_arch
=x86-64
391 echo //setting up CPU-architecture-dependent information
392 if test -n "$SBCL_ARCH"
395 SBCL_ARCH
=`echo $SBCL_ARCH | tr '[A-Z]' '[a-z]' | tr _ -`
397 sbcl_arch
=${SBCL_ARCH:-$guessed_sbcl_arch}
398 echo sbcl_arch
=\"$sbcl_arch\"
399 if [ "$sbcl_arch" = "" ] ; then
400 echo "can't guess target SBCL architecture, please specify --arch=<name>"
405 # If --fancy, enable threads on platforms where they can be built.
408 if ([ "$sbcl_os" = "sunos" ] && [ "$sbcl_arch" = "x86-64" ]) || \
409 [ "$sbcl_os" = "dragonfly" ]
411 echo "No threads on this platform."
413 WITH_FEATURES
="$WITH_FEATURES :sb-thread"
414 echo "Enabling threads due to --fancy."
418 echo "No threads on this platform."
423 ltf
=`pwd`/local-target-features.lisp-expr
424 echo //initializing
$ltf
425 echo ';;;; This is a machine-generated file.' > $ltf
426 echo ';;;; Please do not edit it by hand.' >> $ltf
427 echo ';;;; See make-config.sh.' >> $ltf
428 echo "(lambda (features) (union (set-difference features (list$WITHOUT_FEATURES))" >> $ltf
429 printf " (union (list$WITH_FEATURES) (list " >> $ltf
431 printf ":%s" "$sbcl_arch" >> $ltf
433 echo //setting up OS-dependent information
434 # Under Darwin x86-64, guess whether Darwin 9+ or below.
435 if [ "$sbcl_os" = "darwin" ] && [ "$sbcl_arch" = "x86-64" ]; then
436 darwin_version
=`uname -r`
437 darwin_version_major
=${DARWIN_VERSION_MAJOR:-${darwin_version%%.*}}
438 if (( 8 < $darwin_version_major )); then
439 printf ' :inode64 :darwin9-or-better' >> $ltf
445 rm -f Config target-arch-os.h target-arch.h target-os.h target-lispregs.h
446 # KLUDGE: these two logically belong in the previous section
447 # ("architecture-dependent"); it seems silly to enforce this in terms
448 # of the shell script, though. -- CSR, 2002-02-03
449 link_or_copy
$sbcl_arch-arch.h target-arch.h
450 link_or_copy
$sbcl_arch-lispregs.h target-lispregs.h
453 printf ' :unix' >> $ltf
454 printf ' :elf' >> $ltf
455 printf ' :linux' >> $ltf
457 # If you add other platforms here, don't forget to edit
458 # src/runtime/Config.foo-linux too.
461 printf ' :largefile' >> $ltf
464 printf ' :sb-thread :sb-futex :largefile' >> $ltf
467 printf ' :sb-futex' >> $ltf
472 link_or_copy Config.
$sbcl_arch-linux Config
473 link_or_copy
$sbcl_arch-linux-os.h target-arch-os.h
474 link_or_copy linux-os.h target-os.h
477 printf ' :unix' >> $ltf
478 printf ' :elf' >> $ltf
479 printf ' :osf1' >> $ltf
480 link_or_copy Config.
$sbcl_arch-osf1 Config
481 link_or_copy
$sbcl_arch-osf1-os.h target-arch-os.h
482 link_or_copy osf1-os.h target-os.h
485 printf ' :unix' >> $ltf
486 printf ' :elf' >> $ltf
487 printf ' :hpux' >> $ltf
488 link_or_copy Config.
$sbcl_arch-hpux Config
489 link_or_copy
$sbcl_arch-hpux-os.h target-arch-os.h
490 link_or_copy hpux-os.h target-os.h
493 printf ' :unix' >> $ltf
494 printf ' :bsd' >> $ltf
495 link_or_copy
$sbcl_arch-bsd-os.h target-arch-os.h
496 link_or_copy bsd-os.h target-os.h
499 printf ' :elf' >> $ltf
500 printf ' :freebsd' >> $ltf
501 printf ' :gcc-tls' >> $ltf
502 if [ $sbcl_os = "gnu-kfreebsd" ]; then
503 printf ' :gnu-kfreebsd' >> $ltf
506 if [ $sbcl_arch = "x86" ]; then
507 printf ' :restore-fs-segment-register-from-tls' >> $ltf
509 link_or_copy Config.
$sbcl_arch-$sbcl_os Config
512 printf ' :elf' >> $ltf
513 printf ' :openbsd' >> $ltf
514 link_or_copy Config.
$sbcl_arch-openbsd Config
517 printf ' :netbsd' >> $ltf
518 printf ' :elf' >> $ltf
519 link_or_copy Config.
$sbcl_arch-netbsd Config
522 echo unsupported BSD variant
: `uname`
528 printf ' :unix' >> $ltf
529 printf ' :bsd' >> $ltf
530 printf ' :elf' >> $ltf
531 printf ' :dragonfly' >> $ltf
532 printf ' :sb-qshow' >> $ltf
533 if [ $sbcl_arch = "x86" ]; then
534 printf ' :restore-fs-segment-register-from-tls' >> $ltf
536 link_or_copy
$sbcl_arch-bsd-os.h target-arch-os.h
537 link_or_copy bsd-os.h target-os.h
538 link_or_copy Config.
$sbcl_arch-dragonfly Config
541 printf ' :unix' >> $ltf
542 printf ' :mach-o' >> $ltf
543 printf ' :bsd' >> $ltf
544 printf ' :darwin' >> $ltf
545 if [ $sbcl_arch = "x86" ]; then
546 printf ' :mach-exception-handler :restore-fs-segment-register-from-tls :ud2-breakpoints' >> $ltf
548 if [ $sbcl_arch = "x86-64" ]; then
549 printf ' :mach-exception-handler :ud2-breakpoints' >> $ltf
551 link_or_copy
$sbcl_arch-darwin-os.h target-arch-os.h
552 link_or_copy bsd-os.h target-os.h
553 link_or_copy Config.
$sbcl_arch-darwin Config
556 printf ' :unix' >> $ltf
557 printf ' :elf' >> $ltf
558 printf ' :sunos' >> $ltf
559 if [ $sbcl_arch = "x86-64" ]; then
560 printf ' :largefile' >> $ltf
562 link_or_copy Config.
$sbcl_arch-sunos Config
563 link_or_copy
$sbcl_arch-sunos-os.h target-arch-os.h
564 link_or_copy sunos-os.h target-os.h
567 printf ' :win32' >> $ltf
569 # Optional features -- We enable them by default, but the build
570 # ought to work perfectly without them:
572 printf ' :sb-futex' >> $ltf
573 printf ' :sb-qshow' >> $ltf
575 # Required features -- Some of these used to be optional, but
576 # building without them is no longer considered supported:
578 # (Of course it doesn't provide dlopen, but there is
579 # roughly-equivalent magic nevertheless:)
580 printf ' :sb-dynamic-core :os-provides-dlopen' >> $ltf
581 printf ' :sb-thread :sb-safepoint :sb-thruption :sb-wtimer' >> $ltf
582 printf ' :sb-safepoint-strictly' >> $ltf
584 link_or_copy Config.
$sbcl_arch-win32 Config
585 link_or_copy
$sbcl_arch-win32-os.h target-arch-os.h
586 link_or_copy win32-os.h target-os.h
589 echo unsupported OS
type: `uname`
595 # FIXME: Things like :c-stack-grows-..., etc, should be
596 # *derived-target-features* or equivalent, so that there was a nicer
597 # way to specify them then sprinkling them in this file. They should
598 # still be tweakable by advanced users, though, but probably not
599 # appear in *features* of target. #!+/- should be adjusted to take
600 # them in account as well. At minimum the nicer specification stuff,
603 # (define-feature :dlopen (features)
604 # (union '(:bsd :linux :darwin :sunos) features))
606 # (define-feature :c-stack-grows-downwards-not-upwards (features)
607 # (member :x86 features))
609 # KLUDGE: currently the x86 only works with the generational garbage
610 # collector (indicated by the presence of :GENCGC in *FEATURES*) and
611 # alpha, sparc and ppc with the stop'n'copy collector (indicated by
612 # the absence of :GENCGC in *FEATURES*). This isn't a great
613 # separation, but for now, rather than have :GENCGC in
614 # base-target-features.lisp-expr, we add it into local-target-features
615 # if we're building for x86. -- CSR, 2002-02-21 Then we do something
616 # similar with :STACK-GROWS-FOOWARD, too. -- WHN 2002-03-03
617 if [ "$sbcl_arch" = "x86" ]; then
618 printf ' :gencgc :stack-grows-downward-not-upward :c-stack-is-control-stack' >> $ltf
619 printf ' :compare-and-swap-vops :unwind-to-frame-and-call-vop :raw-instance-init-vops' >> $ltf
620 printf ' :stack-allocatable-closures :stack-allocatable-vectors' >> $ltf
621 printf ' :stack-allocatable-lists :stack-allocatable-fixed-objects' >> $ltf
622 printf ' :alien-callbacks :cycle-counter :inline-constants ' >> $ltf
623 printf ' :memory-barrier-vops :multiply-high-vops :ash-right-vops :symbol-info-vops' >> $ltf
625 linux | freebsd | gnu-kfreebsd | netbsd | openbsd | sunos | darwin | win32 | dragonfly
)
626 printf ' :linkage-table' >> $ltf
628 if [ "$sbcl_os" = "win32" ]; then
629 # of course it doesn't provide dlopen, but there is
630 # roughly-equivalent magic nevertheless.
631 printf ' :os-provides-dlopen' >> $ltf
633 if [ "$sbcl_os" = "openbsd" ]; then
634 rm -f src
/runtime
/openbsd-sigcontext.h
635 sh tools-for-build
/openbsd-sigcontext.sh
> src
/runtime
/openbsd-sigcontext.h
637 elif [ "$sbcl_arch" = "x86-64" ]; then
638 printf ' :gencgc :stack-grows-downward-not-upward :c-stack-is-control-stack :linkage-table' >> $ltf
639 printf ' :compare-and-swap-vops :unwind-to-frame-and-call-vop :raw-instance-init-vops' >> $ltf
640 printf ' :stack-allocatable-closures :stack-allocatable-vectors' >> $ltf
641 printf ' :stack-allocatable-lists :stack-allocatable-fixed-objects' >> $ltf
642 printf ' :alien-callbacks :cycle-counter :complex-float-vops' >> $ltf
643 printf ' :float-eql-vops :inline-constants :memory-barrier-vops' >> $ltf
644 printf ' :multiply-high-vops :sb-simd-pack :ash-right-vops :symbol-info-vops' >> $ltf
645 elif [ "$sbcl_arch" = "mips" ]; then
646 printf ' :cheneygc :linkage-table' >> $ltf
647 printf ' :stack-allocatable-closures :stack-allocatable-vectors' >> $ltf
648 printf ' :stack-allocatable-lists :stack-allocatable-fixed-objects' >> $ltf
649 printf ' :alien-callbacks' >> $ltf
650 elif [ "$sbcl_arch" = "ppc" ]; then
651 printf ' :gencgc :stack-allocatable-closures :stack-allocatable-vectors' >> $ltf
652 printf ' :stack-allocatable-lists :stack-allocatable-fixed-objects' >> $ltf
653 printf ' :linkage-table :raw-instance-init-vops :memory-barrier-vops' >> $ltf
654 printf ' :compare-and-swap-vops :multiply-high-vops :alien-callbacks' >> $ltf
655 if [ "$sbcl_os" = "linux" ]; then
656 # Use a C program to detect which kind of glibc we're building on,
657 # to bandage across the break in source compatibility between
658 # versions 2.3.1 and 2.3.2
660 # FIXME: integrate to grovel-features, mayhaps
661 $GNUMAKE -C tools-for-build where-is-mcontext
-I ..
/src
/runtime
662 tools-for-build
/where-is-mcontext
> src
/runtime
/ppc-linux-mcontext.h ||
(echo "error running where-is-mcontext"; exit 1)
663 elif [ "$sbcl_os" = "darwin" ]; then
664 # We provide a dlopen shim, so a little lie won't hurt
665 printf ' :os-provides-dlopen' >> $ltf
666 # The default stack ulimit under darwin is too small to run PURIFY.
667 # Best we can do is complain and exit at this stage
668 if [ "`ulimit -s`" = "512" ]; then
669 echo "Your stack size limit is too small to build SBCL."
670 echo "See the limit(1) or ulimit(1) commands and the README file."
674 elif [ "$sbcl_arch" = "sparc" ]; then
675 # Test the compiler in order to see if we are building on Sun
676 # toolchain as opposed to GNU binutils, and write the appropriate
677 # FUNCDEF macro for assembler. No harm in running this on sparc-linux
679 sh tools-for-build
/sparc-funcdef.sh
> src
/runtime
/sparc-funcdef.h
680 if [ "$sbcl_os" = "sunos" ] ||
[ "$sbcl_os" = "linux" ]; then
681 printf ' :gencgc' >> $ltf
684 echo '*** You are running SPARC on non-SunOS, non-Linux. Since'
685 echo '*** GENCGC is untested on this combination, make-config.sh'
686 echo '*** is falling back to CHENEYGC. Please consider adjusting'
687 echo '*** parms.lisp to build with GENCGC instead.'
689 printf ' :cheneygc' >> $ltf
691 if [ "$sbcl_os" = "sunos" ] ||
[ "$sbcl_os" = "linux" ]; then
692 printf ' :linkage-table' >> $ltf
694 printf ' :stack-allocatable-closures :stack-allocatable-lists' >> $ltf
695 elif [ "$sbcl_arch" = "alpha" ]; then
696 printf ' :cheneygc' >> $ltf
697 printf ' :stack-allocatable-closures :stack-allocatable-lists' >> $ltf
698 elif [ "$sbcl_arch" = "hppa" ]; then
699 printf ' :cheneygc' >> $ltf
700 printf ' :stack-allocatable-vectors :stack-allocatable-fixed-objects' >> $ltf
701 printf ' :stack-allocatable-lists' >> $ltf
702 elif [ "$sbcl_arch" = "arm" ]; then
703 printf ' :gencgc :linkage-table :alien-callbacks' >> $ltf
704 # As opposed to soft-float or FPA, we support VFP only (and
705 # possibly VFPv2 and higher only), but we'll leave the obvious
706 # hooks in for someone to add the support later.
707 printf ' :arm-vfp :arm-vfpv2' >> $ltf
708 printf ' :ash-right-vops :multiply-high-vops :symbol-info-vops' >> $ltf
709 printf ' :stack-allocatable-lists :stack-allocatable-fixed-objects' >> $ltf
710 printf ' :stack-allocatable-vectors :stack-allocatable-closures' >> $ltf
712 # Nothing need be done in this case, but sh syntax wants a placeholder.
716 # Use a little C program to try to guess the endianness. Ware
719 # FIXME: integrate to grovel-features, mayhaps
720 $GNUMAKE -C tools-for-build determine-endianness
-I ..
/src
/runtime
721 tools-for-build
/determine-endianness
>> $ltf
723 export sbcl_os sbcl_arch
724 sh tools-for-build
/grovel-features.sh
>> $ltf
726 echo //finishing
$ltf
729 # FIXME: The version system should probably be redone along these lines:
731 # echo //setting up version information.
732 # versionfile=version.txt
733 # cp base-version.txt $versionfile
734 # echo " (built `date -u` by `whoami`@`hostname`)" >> $versionfile
735 # echo 'This is a machine-generated file and should not be edited by hand.' >> $versionfile
737 # Make a unique ID for this build (to discourage people from
738 # mismatching sbcl and *.core files).
739 if [ `uname` = "SunOS" ] ; then
740 # use /usr/xpg4/bin/id instead of /usr/bin/id
741 PATH
=/usr
/xpg
4/bin
:$PATH
743 echo '"'`hostname`-`id -un`-`date +%Y-%m-%d-%H-%M-%S`'"' > output
/build-id.tmp
745 if [ -n "$SBCL_HOST_LOCATION" ]; then
746 echo //setting up
host configuration
747 rsync
--delete-after -a output
/ "$SBCL_HOST_LOCATION/output/"
748 rsync
-a local-target-features.lisp-expr version.lisp-expr
"$SBCL_HOST_LOCATION/"