diff --git a/ChangeLog b/ChangeLog index 04edc7138..0a1aa516e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-08-14 Vladimir Serbinenko + + * configure.ac: Error if no $BUILD_CC could be found. + Reported by: DevHC. + 2013-08-14 Vladimir Serbinenko * grub-core/kern/i386/coreboot/init.c: Fix compilation on diff --git a/configure.ac b/configure.ac index 4fe20a3e9..eb9c9fd3d 100644 --- a/configure.ac +++ b/configure.ac @@ -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