[Spice-devel] [PATCH 2/9] build: require c99

Marc-André Lureau marcandre.lureau at redhat.com
Tue Jan 25 10:17:21 PST 2011


---
 configure.ac |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 02ec331..2af3647 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,10 @@ SPICE_COMMON_SRCDIR='$(top_srcdir)'/common
 
 AS_IF([test "$CFLAGS" = ""], [], [_cflags_is_set=yes])
 AC_PROG_CC
+AC_PROG_CC_C99
+if test x"$ac_cv_prog_cc_c99" = xno; then
+    AC_MSG_ERROR([C99 compiler is required.])
+fi
 AS_IF([test "$CXXFLAGS" = ""], [], [_cxxflags_is_set=yes])
 AC_PROG_CXX
 AC_PROG_INSTALL
-- 
1.7.3.4



More information about the Spice-devel mailing list