diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2015-04-08 12:39:28 -0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-04-08 21:23:52 +0200 |
commit | 4959dabe7dfbe851e1848ff783f1b37a9fb0c0f2 (patch) | |
tree | 01c704c0af9e94fad56ddd2ceec73712e32a5761 /package/php/0001-ditch-unset.patch | |
parent | a48bc40e2d2536a830ecaa9247a1238966a97741 (diff) | |
download | buildroot-4959dabe7dfbe851e1848ff783f1b37a9fb0c0f2.tar.gz buildroot-4959dabe7dfbe851e1848ff783f1b37a9fb0c0f2.zip |
php: cleanup patches
Convert patches from pure configure ones to *.m4/configure.in cleanness.
This allows us to AUTORECONF (well, not quite, but close).
Even though upstream will probably not accept them it's the right way.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/php/0001-ditch-unset.patch')
-rw-r--r-- | package/php/0001-ditch-unset.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/php/0001-ditch-unset.patch b/package/php/0001-ditch-unset.patch new file mode 100644 index 0000000000..b43b40f0c4 --- /dev/null +++ b/package/php/0001-ditch-unset.patch @@ -0,0 +1,26 @@ +Unsetting ac_cv_{func,lib}_* is bad, you can't feed the configure cache. +Terminate them with extreme prejudice. + +Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> + +diff -Nura php-5.6.7.orig/aclocal.m4 php-5.6.7/aclocal.m4 +--- php-5.6.7.orig/aclocal.m4 2015-04-08 11:08:11.208848359 -0300 ++++ php-5.6.7/aclocal.m4 2015-04-08 11:08:49.828160195 -0300 +@@ -1897,8 +1897,6 @@ + dnl + AC_DEFUN([PHP_CHECK_FUNC_LIB],[ + ifelse($2,,:,[ +- unset ac_cv_lib_$2[]_$1 +- unset ac_cv_lib_$2[]___$1 + unset found + AC_CHECK_LIB($2, $1, [found=yes], [ + AC_CHECK_LIB($2, __$1, [found=yes], [found=no]) +@@ -1930,8 +1928,6 @@ + dnl Defines HAVE_func and HAVE_library if found and adds the library to LIBS. + dnl + AC_DEFUN([PHP_CHECK_FUNC],[ +- unset ac_cv_func_$1 +- unset ac_cv_func___$1 + unset found + + AC_CHECK_FUNC($1, [found=yes],[ AC_CHECK_FUNC(__$1,[found=yes],[found=no]) ]) |