+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
# 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