summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-03-26 00:28:46 +0000
committerBruno Haible <bruno@clisp.org>2007-03-26 00:28:46 +0000
commitc2a27af8e00b5f7d0b6fcdea066daecae3d50d30 (patch)
tree93601d99e869613614d30b14fae6fedde86658f5 /m4
parent7722c4bb409ec03d876a7debf74f38ea49287d53 (diff)
downloadgnulib-c2a27af8e00b5f7d0b6fcdea066daecae3d50d30.tar.gz
Add support for the SH CPU. Reported by Ben Pfaff.
Diffstat (limited to 'm4')
-rw-r--r--m4/fpieee.m411
1 files changed, 9 insertions, 2 deletions
diff --git a/m4/fpieee.m4 b/m4/fpieee.m4
index c1155ee287..746e35eca2 100644
--- a/m4/fpieee.m4
+++ b/m4/fpieee.m4
@@ -26,8 +26,9 @@ AC_DEFUN([gl_FP_IEEE],
[
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([AC_CANONICAL_HOST])
- # IEEE behaviour is the default on all CPUs except Alpha
- # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4).
+ # IEEE behaviour is the default on all CPUs except Alpha and SH
+ # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
+ # and the GCC 4.1.2 manual).
case "$host_cpu" in
alpha*)
# On Alpha systems, a compiler option provides the behaviour.
@@ -41,5 +42,11 @@ AC_DEFUN([gl_FP_IEEE],
CPPFLAGS="$CPPFLAGS -ieee"
fi
;;
+ sh*)
+ if test -n "$GCC"; then
+ # GCC has the option -mieee.
+ CPPFLAGS="$CPPFLAGS -mieee"
+ fi
+ ;;
esac
])