m6w6 / ext-http

Extended HTTP Support
BSD 2-Clause "Simplified" License
79 stars 22 forks source link

Replace obsolete AC_TRY_FOO with AC_FOO_IFELSE #80

Closed petk closed 6 years ago

petk commented 6 years ago

Hello,

Autoconf made several macros obsolete including the AC_TRY_COMPILE, AC_TRY_LINK, and AC_TRY_RUN around 2000 since Autoconf 2.50: http://git.savannah.gnu.org/cgit/autoconf.git/tree/ChangeLog.2

These macros should be replaced with the current AC_FOO_IFELSE macros instead.

It is fairly safe to upgrade and take the recommendation advice of autoconf upgrade manual since the upgrade should be compatible at least with PHP versions 5.4 and up, on some systems even with PHP 5.3. PHP versions from 5.4 to 7.1 require Autoconf 2.59+ and PHP 7.2+ require Autoconf 2.64+.

This patch was created with the help of the autoupdate script.

Reference docs:

Thanks for considering adding this or checking it out.