1 From a874ba472151c6811018de322a5787d0ca6148c9 Mon Sep 17 00:00:00 2001
2 From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3 Date: Tue, 9 Aug 2016 11:52:51 +0200
4 Subject: [PATCH] ext/fileinfo/config.m4: allow cache answer for strcasestr
7 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
9 ext/fileinfo/config.m4 | 3 ++-
10 1 file changed, 2 insertions(+), 1 deletion(-)
12 diff --git a/ext/fileinfo/config.m4 b/ext/fileinfo/config.m4
13 index 7e98d62..8561962 100644
14 --- a/ext/fileinfo/config.m4
15 +++ b/ext/fileinfo/config.m4
16 @@ -14,6 +14,7 @@ if test "$PHP_FILEINFO" != "no"; then
17 libmagic/readcdf.c libmagic/softmagic.c"
19 AC_MSG_CHECKING([for strcasestr])
20 + AC_CACHE_VAL(ac_cv_func_strcasestr,
24 @@ -46,7 +47,7 @@ int main(void)
26 AC_MSG_NOTICE(using libmagic strcasestr implementation)
27 libmagic_sources="$libmagic_sources libmagic/strcasestr.c"
31 PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic)
32 PHP_ADD_BUILD_DIR($ext_builddir/libmagic)