1999-04-07 10:01:42 +02:00
|
|
|
# configure.host
|
|
|
|
|
2001-08-18 03:04:43 +02:00
|
|
|
# This shell script handles all host based configuration for the garbage
|
|
|
|
# collector.
|
1999-04-07 10:01:42 +02:00
|
|
|
# It sets various shell variables based on the the host and the
|
|
|
|
# configuration options. You can modify this shell script without
|
|
|
|
# needing to rerun autoconf.
|
|
|
|
|
|
|
|
# This shell script should be invoked as
|
|
|
|
# . configure.host
|
|
|
|
# If it encounters an error, it will exit with a message.
|
|
|
|
|
|
|
|
# It uses the following shell variables:
|
|
|
|
# host The configuration host
|
|
|
|
# host_cpu The configuration host CPU
|
|
|
|
# target_optspace --enable-target-optspace ("yes", "no", "")
|
|
|
|
|
|
|
|
# It sets the following shell variables:
|
2001-08-18 03:04:43 +02:00
|
|
|
# gc_cflags Special CFLAGS to use when building
|
1999-04-07 10:01:42 +02:00
|
|
|
|
2001-08-18 03:04:43 +02:00
|
|
|
# We should set -fexceptions if we are using gcc and might be used
|
|
|
|
# inside something like gcj. This is the zeroth approximation:
|
|
|
|
case "$host" in
|
|
|
|
*-*-linux* )
|
|
|
|
gc_cflags=-fexceptions
|
|
|
|
;;
|
2003-07-25 16:32:55 +02:00
|
|
|
hppa*-*-hpux* )
|
|
|
|
if test $GCC != "yes" ; then
|
|
|
|
gc_cflags=+ESdbgasm
|
|
|
|
fi
|
2001-08-18 03:04:43 +02:00
|
|
|
;;
|
|
|
|
esac
|
1999-04-07 10:01:42 +02:00
|
|
|
|
|
|
|
case "${target_optspace}:${host}" in
|
|
|
|
yes:*)
|
2001-08-18 03:04:43 +02:00
|
|
|
gc_cflags="${gc_cflags} -Os"
|
1999-04-07 10:01:42 +02:00
|
|
|
;;
|
|
|
|
:m32r-* | :d10v-* | :d30v-*)
|
2001-08-18 03:04:43 +02:00
|
|
|
gc_cflags="${gc_cflags} -Os"
|
1999-04-07 10:01:42 +02:00
|
|
|
;;
|
|
|
|
no:* | :*)
|
|
|
|
# Nothing.
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Set any host dependent compiler flags.
|
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
|
|
|
|
|
|
|
case "${host}" in
|
|
|
|
mips-tx39-*|mipstx39-unknown-*)
|
|
|
|
boehm_gc_cflags="${boehm_gc_cflags} -G 0"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|