From 10634545f2faf10699a1a8214ded2da3a6ea3d52 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Thu, 2 Jun 2011 02:02:49 +0000 Subject: * config/open-axiom.m4 (OPENAXIOM_HOST_COMPILERS): Set oa_gnu_compiler right after test for C and C++ compilers. --- config/open-axiom.m4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config/open-axiom.m4') diff --git a/config/open-axiom.m4 b/config/open-axiom.m4 index 8e47aeb2..9ce055e7 100644 --- a/config/open-axiom.m4 +++ b/config/open-axiom.m4 @@ -207,14 +207,17 @@ OPENAXIOM_PROG_LISP OPENAXIOM_LISP_FLAVOR OPENAXIOM_REJECT_ROTTED_LISP OPENAXIOM_HOST_LISP_CPU_PRECISION +## Are we using compilers from GNU? oa_gnu_compiler=no AC_PROG_CC AC_PROG_CXX +if test x$GCC = xyes || test x$GXX = xyes; then + oa_gnu_compiler=yes +fi ## Augment C and C++ compiler flags with ABI directives as appropriate ## before we proceed to infer other host datatype properties. if test -n "$openaxiom_host_lisp_precision"; then - if test x$GCC = xyes || test x$GXX = xyes; then - oa_gnu_compiler=yes + if test x$oa_gnu_compiler = xyes; then CPPFLAGS="$CPPFLAGS -m$openaxiom_host_lisp_precision" LDFLAGS="$LDFLAGS -m$openaxiom_host_lisp_precision" ## else, cross fingers and pray. -- cgit v1.2.3