diff options
author | Sergey 'Jin' Bostandzhyan <jin at mediatomb dot cc> | 2017-01-10 09:55:21 +0100 |
---|---|---|
committer | Sergey 'Jin' Bostandzhyan <jin at mediatomb dot cc> | 2017-01-10 09:55:21 +0100 |
commit | 2d7507314a00737a08b777b20a4807994a3bd3e2 (patch) | |
tree | 4694afd326d8d73353a84863cb9247c8dd885813 /configure.ac | |
parent | 6ec23c98bd5e6b6ca3dad9d5da5a46e83419f5bb (diff) |
Explicitly check if compiler supports C99
c-tocxocre will start using C99 code, so check if the compiler supports
it and abort in configure with an error if it does not.
closes #413
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index dbbda824..8d59882c 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -295,7 +295,12 @@ if test "x$WANT_NACL" = "xyes"; then | |||
295 | fi | 295 | fi |
296 | 296 | ||
297 | # Checks for programs. | 297 | # Checks for programs. |
298 | AC_PROG_CC | 298 | AC_PROG_CC_C99 |
299 | |||
300 | if test "x$ac_cv_prog_cc_c99" = "xno" ; then | ||
301 | AC_MSG_ERROR([c-toxcore requires a C99 compatible compiler]) | ||
302 | fi | ||
303 | |||
299 | AM_PROG_CC_C_O | 304 | AM_PROG_CC_C_O |
300 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) | 305 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
301 | AC_LIBTOOL_WIN32_DLL | 306 | AC_LIBTOOL_WIN32_DLL |