aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-05 21:00:57 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-05 21:00:57 -0400
commit05aa21138340e1e47fdc1221fe28f91c56069efd (patch)
tree4a3b3e448a6565351adbf7f7afd561ddb43e50d0
parentbuild: slim down autoconf-archive macro search (diff)
downloadsandbox-05aa21138340e1e47fdc1221fe28f91c56069efd.tar.gz
sandbox-05aa21138340e1e47fdc1221fe28f91c56069efd.tar.bz2
sandbox-05aa21138340e1e47fdc1221fe28f91c56069efd.zip
build: require at least a C99 compiler
Realistically we aren't even testing with older than C11 compilers, but one thing at a time. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a353e0a..56ca87f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,7 +20,8 @@ env 1>&AS_MESSAGE_LOG_FD
AC_MSG_RESULT([ok])
dnl Check for compiler and features first.
-AC_PROG_CC
+AC_PROG_CC_C99
+AS_IF([test "$ac_cv_prog_cc_c99" = "no"], [AC_MSG_ERROR([A C99+ compiler is required])])
AM_PROG_CC_C_O
AC_ISC_POSIX
AC_USE_SYSTEM_EXTENSIONS