comparison m4/fpieee.m4 @ 8553:3f0f39084236

Add support for the SH CPU. Reported by Ben Pfaff.
author Bruno Haible <bruno@clisp.org>
date Mon, 26 Mar 2007 00:28:46 +0000
parents d527c6045eaf
children 3b533f98ba19
comparison
equal deleted inserted replaced
8552:d527c6045eaf 8553:3f0f39084236
24 24
25 AC_DEFUN([gl_FP_IEEE], 25 AC_DEFUN([gl_FP_IEEE],
26 [ 26 [
27 AC_REQUIRE([AC_PROG_CC]) 27 AC_REQUIRE([AC_PROG_CC])
28 AC_REQUIRE([AC_CANONICAL_HOST]) 28 AC_REQUIRE([AC_CANONICAL_HOST])
29 # IEEE behaviour is the default on all CPUs except Alpha 29 # IEEE behaviour is the default on all CPUs except Alpha and SH
30 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4). 30 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
31 # and the GCC 4.1.2 manual).
31 case "$host_cpu" in 32 case "$host_cpu" in
32 alpha*) 33 alpha*)
33 # On Alpha systems, a compiler option provides the behaviour. 34 # On Alpha systems, a compiler option provides the behaviour.
34 # See the ieee(3) manual page, also available at 35 # See the ieee(3) manual page, also available at
35 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM> 36 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
39 else 40 else
40 # Compaq (ex-DEC) C has the option -ieee. 41 # Compaq (ex-DEC) C has the option -ieee.
41 CPPFLAGS="$CPPFLAGS -ieee" 42 CPPFLAGS="$CPPFLAGS -ieee"
42 fi 43 fi
43 ;; 44 ;;
45 sh*)
46 if test -n "$GCC"; then
47 # GCC has the option -mieee.
48 CPPFLAGS="$CPPFLAGS -mieee"
49 fi
50 ;;
44 esac 51 esac
45 ]) 52 ])