summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-04-03 22:46:44 +0200
committerKevin Ryde <user42@zip.com.au>2001-04-03 22:46:44 +0200
commit4a094bc9c2b58dfeec1f030fe1eab274d364543a (patch)
tree1007bec190cf6f91f5927907b1ef3cfe7875a823 /acinclude.m4
parent800c93b4394c70aa23ba0ad37d39eaecec9582c8 (diff)
downloadgmp-4a094bc9c2b58dfeec1f030fe1eab274d364543a.tar.gz
More of:
* acinclude.m4 (GMP_GCC_M68K_OPTIMIZE): New macro. Want to check $host is m68k, in case some other processor gets a similar -O wind-back.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m412
1 files changed, 8 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 4960459c2..1be8b88d7 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -440,11 +440,15 @@ dnl gets rearranged or rewritten so the ICE doesn't happen then this can be
dnl removed.
AC_DEFUN(GMP_GCC_M68K_OPTIMIZE,
-[if test $1 = gcc; then
- case `$2 --version` in
+[case $host in
+m68*-*-*)
+ if test $1 = gcc; then
+ case `$2 --version` in
2.95*) $3=-O ;;
- esac
-fi
+ esac
+ fi
+ ;;
+esac
])