summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDavid Schleef <ds@ginger.bigkitten.com>2008-02-18 18:12:09 -0800
committerDavid Schleef <ds@ginger.bigkitten.com>2008-02-18 18:12:09 -0800
commit280df4174f03a36a8682384063577e18e67e9890 (patch)
treea55737567d531492a2013f0f96d4e56b3a52237d /m4
parent93dc60204a12d24e197715e09e1b25c03dd067a1 (diff)
downloadliboil-280df4174f03a36a8682384063577e18e67e9890.tar.gz
[build] Check for GCC before checking for gcc assembly
Diffstat (limited to 'm4')
-rw-r--r--m4/as-gcc-inline-assembly.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/as-gcc-inline-assembly.m4 b/m4/as-gcc-inline-assembly.m4
index fe4736f..1211dde 100644
--- a/m4/as-gcc-inline-assembly.m4
+++ b/m4/as-gcc-inline-assembly.m4
@@ -16,6 +16,9 @@ AC_DEFUN([AS_GCC_INLINE_ASSEMBLY],
AC_MSG_CHECKING([if compiler supports gcc-style inline assembly])
AC_TRY_COMPILE([], [
+#ifndef __GNUC__
+#error Not GCC
+#endif
#ifdef __GNUC_MINOR__
#if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
#error GCC before 3.4 has critical bugs compiling inline assembly