Merge pull request #724 from libexpat/autotools-require-c99

configure.ac: Require C99 compiler
This commit is contained in:
Sebastian Pipping 2023-05-28 22:57:06 +02:00 committed by GitHub
commit 4cfc119a96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,6 +105,9 @@ AC_SUBST(LIBAGE)
AC_LANG([C])
AC_PROG_CC_C99
AS_IF([test "${ac_cv_prog_cc_c99}" = no],
[AC_MSG_ERROR([Expat requires a C99 compiler.])])
AS_IF([test "$GCC" = yes],
[AX_APPEND_COMPILE_FLAGS([-Wall -Wextra], [AM_CFLAGS])
dnl Be careful about adding the -fexceptions option; some versions of