From: goshhhy <37872995+goshhhy@users.noreply.github.com> Date: Sun, 24 May 2020 23:17:44 +0000 (-0900) Subject: configure.ac: check if flags are needed for c99 X-Git-Tag: v3.5.0~35^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4394d8b2b8032594ef7256cc233c0a49ecd78485;p=thirdparty%2Flibarchive.git configure.ac: check if flags are needed for c99 some older and more obscure compilers (e.g. mipspro on irix) default to the strictest standard they know instead of the most permissive. since libarchive uses c99 features in several places throughout, but does not pass appropriate cflags to parse c99 code, it will fail to compile from the configure script on these systems. this change will have autoconf check if any flags are needed for the c compiler to accept c99 code, and add them to cflags. --- diff --git a/configure.ac b/configure.ac index 7744365a5..41ba5a49b 100644 --- a/configure.ac +++ b/configure.ac @@ -103,6 +103,7 @@ AC_SUBST(PLATFORMCPPFLAGS) # Checks for programs. AC_PROG_CC +AC_PROG_CC_C99 AM_PROG_CC_C_O AC_USE_SYSTEM_EXTENSIONS AC_LIBTOOL_WIN32_DLL