diff options
author | 2021-11-05 21:00:57 -0400 | |
---|---|---|
committer | 2021-11-05 21:00:57 -0400 | |
commit | 05aa21138340e1e47fdc1221fe28f91c56069efd (patch) | |
tree | 4a3b3e448a6565351adbf7f7afd561ddb43e50d0 | |
parent | build: slim down autoconf-archive macro search (diff) | |
download | sandbox-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.ac | 3 |
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 |