]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* configure.ac: Error if no $BUILD_CC could be found.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 14 Aug 2013 08:54:20 +0000 (10:54 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 14 Aug 2013 08:54:20 +0000 (10:54 +0200)
Reported by: DevHC.

ChangeLog
configure.ac

index 04edc7138f93496c46adea3348d0442ede2681da..0a1aa516e5c4e7917a0cb9828c701be3c7187f2d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * configure.ac: Error if no $BUILD_CC could be found.
+       Reported by: DevHC.
+
 2013-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/i386/coreboot/init.c: Fix compilation on
index 4fe20a3e970397dd77b5ba36eefab659801e78af..eb9c9fd3d530d0b2b06821357eae06fdc0ed93db 100644 (file)
@@ -406,8 +406,8 @@ fi
 # Check for host and build compilers.
 #
 HOST_CC=$CC
-AC_CHECK_PROGS(BUILD_CC, [gcc egcs cc],
-                 [AC_MSG_ERROR([none of gcc, egcs and cc is found. set BUILD_CC manually.])])
+AC_CHECK_PROGS(BUILD_CC, [gcc egcs cc])
+test -z "$BUILD_CC" && AC_MSG_ERROR([none of gcc, egcs and cc is found. set BUILD_CC manually.])
 
 # For gnulib.
 gl_INIT