version 1.1, 2002/07/24 08:00:08 |
version 1.2, 2003/06/24 05:11:32 |
|
|
# host The configuration host |
# host The configuration host |
# host_cpu The configuration host CPU |
# host_cpu The configuration host CPU |
# target_optspace --enable-target-optspace ("yes", "no", "") |
# target_optspace --enable-target-optspace ("yes", "no", "") |
|
# GCC should be "yes" if using gcc |
|
|
# It sets the following shell variables: |
# It sets the following shell variables: |
# gc_cflags Special CFLAGS to use when building |
# gc_cflags Special CFLAGS to use when building |
|
|
|
gc_cflags="" |
|
|
# We should set -fexceptions if we are using gcc and might be used |
# We should set -fexceptions if we are using gcc and might be used |
# inside something like gcj. This is the zeroth approximation: |
# inside something like gcj. This is the zeroth approximation: |
case "$host" in |
if test :"$GCC": = :yes: ; then |
*-*-linux* ) |
gc_cflags="${gc_cflags} -fexceptions" |
gc_cflags=-fexceptions |
else |
;; |
case "$host" in |
*-*-hpux* ) |
*-*-hpux* ) |
gc_cflags=+ESdbgasm |
gc_cflags="${gc_flags} +ESdbgasm" |
;; |
# :TODO: actaully we should check using Autoconf if |
esac |
# the compiler supports this option. |
|
;; |
|
esac |
|
fi |
|
|
case "${target_optspace}:${host}" in |
case "${target_optspace}:${host}" in |
yes:*) |
yes:*) |