guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 11/86: Require C99 to build Guile


From: Andy Wingo
Subject: [Guile-commits] 11/86: Require C99 to build Guile
Date: Wed, 20 Jun 2018 14:09:28 -0400 (EDT)

wingo pushed a commit to branch master
in repository guile.

commit 08fd826d0c655e8445c0fbc80ee4132347f82718
Author: Andy Wingo <address@hidden>
Date:   Sun Jun 17 20:51:27 2018 +0200

    Require C99 to build Guile
    
    * configure.ac: Refactor check to require C99, not just try to get C99.
---
 configure.ac | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index d0ae4d7..7966803 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,7 +74,11 @@ if test "$GCC" = yes; then
   AC_MSG_RESULT([-std=gnu11])
   CC="$CC -std=gnu11"
 else
-  AC_MSG_RESULT([assuming $CC supports C11 by default])
+  dnl Guile requires C99 or later.
+  AC_PROG_CC_C99
+  if test "$ac_cv_prog_cc_c99" = "xno"; then
+    AC_MSG_ERROR([Support for C99 required but not found.])
+  fi
 fi
 
 gl_EARLY
@@ -94,9 +98,6 @@ AC_DEFINE([GNULIB_LOCK], [1],
   [Define to allow Gnulib modules to use Guile's locks.])
 
 
-dnl Guile needs C99 or later.
-gl_PROG_CC_C99
-
 # for per-target cflags in the libguile subdir
 AM_PROG_CC_C_O
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]