| Summary: | Build fails with autoconf 2.70 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ross Burton <ross> |
| Component: | build | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | 2.0.13 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | configure difference before and after patch from comment #2 | ||
|
Description
Ross Burton
2020-07-16 16:35:00 UTC
Ping. Autoconf 2.70 is coming out soon and libSDL won't build. The following fixes this issue for me. OK to apply?
diff --git a/acinclude/ac_check_define.m4 b/acinclude/ac_check_define.m4
--- a/acinclude/ac_check_define.m4
+++ b/acinclude/ac_check_define.m4
@@ -1,4 +1,4 @@
-AC_DEFUN([AC_CHECK_DEFINE],[dnl
+AC_DEFUN([AC_CHECK_DEFINE],[AC_REQUIRE([AC_PROG_CPP])dnl
AC_CACHE_CHECK(for $1 in $2, ac_cv_define_$1,
AC_EGREP_CPP([YES_IS_DEFINED], [
#include <$2>
The correct fix is to quote the arguments. (In reply to Ross Burton from comment #3) > The correct fix is to quote the arguments. I tried doing that (maybe incompletely or incorrectly) it still failed. I suggest that you give us a working patch. Created attachment 4461 [details] configure difference before and after patch from comment #2 Also see: http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blob;f=NEWS#l43 The issue might be related to optimizations mentioned in there. E.g.: without the patch from comment #2, the CPP environment variable is ignored. So I believe AC_REQUIRE([AC_PROG_CPP]) is is needed there. (Alternatively, AC_PROG_CPP can be added to configure.ac .) Still waiting for your own patch to fix the issue. Since no one else provided a solution, I pushed the patch from comment #2: https://hg.libsdl.org/SDL/rev/2c13b7ca1997 If there is a better solution, attach a proper patch here. |