[commit: ghc] master: In FP_GCC_VERSION, test $CC not $GCC (95d8658)

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/95d8658acc946f9a043ef62976d0514c0f1f449e

>---------------------------------------------------------------

commit 95d8658acc946f9a043ef62976d0514c0f1f449e
Author: Ian Lynagh <[email protected]>
Date:   Wed Dec 5 12:37:52 2012 +0000

    In FP_GCC_VERSION, test $CC not $GCC
    
    $GCC is empty when autoreconf 2.56 or 2.59 is used, although it works
    with 2.67. If testing $GCC with 2.5* worked in the past then I'm not
    sure when/why it broke.

>---------------------------------------------------------------

 aclocal.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 78e758e..127f528 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1049,7 +1049,7 @@ fi
 # output variable GccVersion.
 AC_DEFUN([FP_GCC_VERSION],
 [AC_REQUIRE([AC_PROG_CC])
-if test -z "$GCC"
+if test -z "$CC"
 then
   AC_MSG_ERROR([gcc is required])
 fi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.