-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Update autoconf script #8514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update autoconf script #8514
Conversation
libtool.m4 is a bundled file. |
I cloned the latest version of libtools and it seems those issues are fixed, but I'm not sure how I'm meant to upgrade our bundled copy. |
Ugh, looks like we're having a patched libtool.m4 1.5.26 (which was released 14 years ago). |
Fortunately the diff is not huge: https://gist.github.com/arnaud-lb/71a04e27eb3699a534defe0871bfa3cd. Some the changes do not appear to exist in the latest libtool, but others are cosmetic or backports. |
@@ -16,7 +16,7 @@ m4_include([TSRM/tsrm.m4]) | |||
dnl Basic autoconf initialization, generation of config.nice. | |||
dnl ---------------------------------------------------------------------------- | |||
|
|||
AC_PREREQ([2.68]) | |||
AC_PREREQ([2.69]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AC_PREREQ([2.69]) | |
AC_PREREQ([2.68]) |
I'd leave this for now as it is.
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | ||
AC_LANG_RESTORE]) | ||
[AC_LANG_PUSH([C]) | ||
AC_LINK_IFELSE( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AC_LINK_IFELSE( | |
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
In one line it is simpler to compare it with possible upstream version.
I'd also add this one: @@ -271,7 +271,7 @@ $rm -r conftest*
dnl autoconf 2.13 compatibility
dnl _LT_AC_TRY_LINK()
-AC_DEFUN(_LT_AC_TRY_LINK, [
+AC_DEFUN([_LT_AC_TRY_LINK], [
cat > conftest.$ac_ext <<EOF
dnl This sometimes fails to find confdefs.h, for some reason.
dnl [#]line __oline__ "[$]0"
|
For the libtool.m4 file upgrade I'd suggest that PHP stays with a forked Libtool 1.5.26. Upgrade to the latest 2.4.x version is possible but contains so many annoyances and possible breakages that I don't think is worth of trouble. And another issue is that this latest libtool 2.4.x would also need some heavy patching from various places and pull requests. Maintenance at GNU hasn't followed all the requests out there. We've already discussed this in the past, btw. This is how unbundling libtool would look like approximately: And this is how upgrade would look like approximately: |
Used to apply as patch and build on Alpinelinux - all warnings are gone! Meantime when I build apache2 SAPI ( example https://gitlab.alpinelinux.org/andypost/aports/-/jobs/1006143
|
What's left here to make it commitable? |
Everything? I don't understand libtools nor how we should go about updating our built-in libtools. I'm going to close this as I don't know how I can proceed but feel free to open a new PR as you seems to have more expertise in build systems than I do. |
I'll make a patch for this issue: #11207 |
Fixes autoconf warnings