mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
libapparmor: Require and build libapparmor with C99 mode
This is needed for some of the parser functionality that will be moved to libapparmor. In the short term, only the 'bool' type is needed but it makes sense to simply require a C99 compliant compiler for libapparmor since the parser is being rewritten in C++. The use of C99 will reduce future headaches when moving code between the two code bases. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
parent
2879cf217a
commit
27ac220535
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,11 @@ AM_PROG_CC_C_O
|
|||
AC_C_CONST
|
||||
AM_PROG_LIBTOOL
|
||||
|
||||
AC_PROG_CC_C99
|
||||
if test "$ac_cv_prog_cc_c99" = "no"; then
|
||||
AC_MSG_ERROR([C99 mode is required to build libapparmor])
|
||||
fi
|
||||
|
||||
AC_OUTPUT(
|
||||
Makefile
|
||||
doc/Makefile
|
||||
|
|
Loading…
Add table
Reference in a new issue