package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / php / 0005-ac-cache-strcasestr.patch
blob8a8c5d86ffb0e13d16a18027c6e22dc89076c357
1 Allow cache answer for strcasestr discovery.
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
5 diff -Nura php-5.6.7.orig/ext/fileinfo/config.m4 php-5.6.7/ext/fileinfo/config.m4
6 --- php-5.6.7.orig/ext/fileinfo/config.m4 2015-04-08 22:19:45.798770792 -0300
7 +++ php-5.6.7/ext/fileinfo/config.m4 2015-04-08 22:26:33.110654338 -0300
8 @@ -14,6 +14,7 @@
9 libmagic/readcdf.c libmagic/softmagic.c"
11 AC_MSG_CHECKING([for strcasestr])
12 + AC_CACHE_VAL(ac_cv_func_strcasestr,
13 AC_TRY_RUN([
14 #include <string.h>
15 #include <strings.h>
16 @@ -46,7 +47,7 @@
17 AC_MSG_RESULT(no)
18 AC_MSG_NOTICE(using libmagic strcasestr implementation)
19 libmagic_sources="$libmagic_sources libmagic/strcasestr.c"
20 - ])
21 + ]))
23 PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic)
24 PHP_ADD_BUILD_DIR($ext_builddir/libmagic)