]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Build: Add a comment that AC_PROG_CC_C99 is needed for Autoconf 2.69.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 21 Mar 2023 12:07:51 +0000 (14:07 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 21 Mar 2023 12:24:43 +0000 (14:24 +0200)
It's obsolete in Autoconf >= 2.70 and just an alias for AC_PROG_CC
but Autoconf 2.69 requires AC_PROG_CC_C99 to get a C99 compiler.

configure.ac

index 440ec990d679968622d8b858af41572a4ab55548..9dfe80987afd8687e83b00b7a7e85f647c5a7d9d 100644 (file)
@@ -550,6 +550,9 @@ echo "Initializing Automake:"
 AM_INIT_AUTOMAKE([1.12 foreign tar-v7 filename-length-max=99 serial-tests -Wno-unsupported])
 AC_PROG_LN_S
 
+dnl # Autoconf >= 2.70 warns that AC_PROG_CC_C99 is obsolete. However,
+dnl # we have to keep using AC_PROG_CC_C99 instead of AC_PROG_CC
+dnl # as long as we try to be compatible with Autoconf 2.69.
 AC_PROG_CC_C99
 if test x$ac_cv_prog_cc_c99 = xno ; then
        AC_MSG_ERROR([No C99 compiler was found.])