summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-16 00:56:54 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-16 00:56:54 +0000
commit106476e5a11a7259514123830437ebf6d118bfb3 (patch)
tree119db29efa51e8cd38e46bdb0447e11dfd130865 /acinclude.m4
parent52d8a66ca849d3b30571f0b25d52f7e6242c96bc (diff)
downloadmpfr-106476e5a11a7259514123830437ebf6d118bfb3.tar.gz
Use AC_CANONICAL_HOST and $host instead of $OS_TYPE and $MACHTYPE
(patch suggested by Kevin Ryde). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1890 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m49
1 files changed, 5 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 5c94fcb4f..2c740d3d2 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -47,8 +47,8 @@ dnl ------------------------------------------------------------
AC_DEFUN(MPFR_CONFIGS,
[
-case $OS_TYPE in
- SunOS*)
+case $host in
+ *-*-solaris*)
LM9X="-lm9x"
;;
esac
@@ -56,7 +56,8 @@ esac
AC_REPLACE_FUNCS(strcasecmp)
dnl Check for IEEE-754 switches on Alpha
-if test "$MACHTYPE" = "alpha"; then
+case $host in
+alpha*-*-*)
saved_CFLAGS="$CFLAGS"
AC_CACHE_CHECK([for IEEE-754 switches], mpfr_cv_ieee_switches, [
if test -n "$GCC"; then
@@ -72,7 +73,7 @@ if test "$MACHTYPE" = "alpha"; then
else
CFLAGS="$saved_CFLAGS $mpfr_cv_ieee_switches"
fi
-fi
+esac
AC_CHECK_HEADERS(fpu_control.h)