summaryrefslogtreecommitdiff
path: root/libgfortran/configure.host
diff options
context:
space:
mode:
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-28 20:13:20 +0000
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-28 20:13:20 +0000
commitaaa798baf3b5979cdf852a3ff923a5cef965f9ec (patch)
tree63c0066d3282fbbc40206a8f80b8a22b789be2f8 /libgfortran/configure.host
parent442ca76b4d87b6a74afb85398f3f68aede0b41e4 (diff)
downloadgcc-aaa798baf3b5979cdf852a3ff923a5cef965f9ec.tar.gz
* acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): New check.
* configure.ac: Check for floatingpoint.h, fptrap.h and float.h headers. Use LIBGFOR_CHECK_FPSETMASK. Check for fp_trap and fp_enable functions. * configure.host: Add case for systems with fpsetmask and systems with fp_trap/fp_enable. * config/fpu-sysv.h: New file, FPU code using fpsetmask. * config/fpu-aix.h: New file, FPU code for AIX using fp_trap and fp_enable. * aclocal.m4: Regenerate. * configure: Regenerate. * config.h.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105956 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/configure.host')
-rw-r--r--libgfortran/configure.host10
1 files changed, 9 insertions, 1 deletions
diff --git a/libgfortran/configure.host b/libgfortran/configure.host
index c7cc16e17d2..73da57172d6 100644
--- a/libgfortran/configure.host
+++ b/libgfortran/configure.host
@@ -18,7 +18,7 @@
# DEFAULTS
-fpu_host=fpu-generic
+fpu_host='fpu-generic'
# HOST-SPECIFIC OVERRIDES
case "${host_cpu}" in
@@ -30,3 +30,11 @@ esac
if test "x${have_feenableexcept}" = "xyes"; then
fpu_host='fpu-glibc'
fi
+
+if test "x${have_fpsetmask}" = "xyes"; then
+ fpu_host='fpu-sysv'
+fi
+
+if test "x${have_fp_enable}" = "xyes" && test "x${have_fp_trap}" = "xyes"; then
+ fpu_host='fpu-aix'
+fi