summaryrefslogtreecommitdiff
path: root/configure.host
diff options
context:
space:
mode:
Diffstat (limited to 'configure.host')
-rw-r--r--configure.host22
1 files changed, 14 insertions, 8 deletions
diff --git a/configure.host b/configure.host
index da2b5b3..068ee39 100644
--- a/configure.host
+++ b/configure.host
@@ -14,20 +14,26 @@
# host The configuration host
# host_cpu The configuration host CPU
# target_optspace --enable-target-optspace ("yes", "no", "")
+# GCC should be "yes" if using gcc
# It sets the following shell variables:
# gc_cflags Special CFLAGS to use when building
+gc_cflags=""
+
# 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
- ;;
- *-*-hpux* )
- gc_cflags=+ESdbgasm
- ;;
-esac
+if test :"$GCC": = :yes: ; then
+ gc_cflags="${gc_cflags} -fexceptions"
+else
+ case "$host" in
+ *-*-hpux* )
+ gc_cflags="${gc_flags} +ESdbgasm"
+ # :TODO: actaully we should check using Autoconf if
+ # the compiler supports this option.
+ ;;
+ esac
+fi
case "${target_optspace}:${host}" in
yes:*)