Patch sphinx_67219.diff for sphinx Bug #67219
Patch version 2014-05-06 15:54 UTC
Return to Bug #67219 |
Download this patch
Patch Revisions:
Developer: tony2001@php.net
diff --git a/config.m4 b/config.m4
index 24fe082..48b1e51 100644
--- a/config.m4
+++ b/config.m4
@@ -1,16 +1,16 @@
dnl $Id$
AC_DEFUN([SPHINX_CHECK_ENUM], [
- AC_MSG_CHECKING(for $1 in sphinxclient.h)
- AC_EGREP_HEADER($1,
- [sphinxclient.h],
- AC_DEFINE([HAVE_]$1, [], [Define if $1 is available])
- AC_MSG_RESULT([found]),
- AC_MSG_RESULT([not found])
- )
+ AC_MSG_CHECKING([for $1 in sphinxclient.h])
+ AC_TRY_COMPILE([#include <sphinxclient.h>], [int i = $1],
+ [
+ AC_DEFINE([HAVE_]$1, [], [Define if $1 is available])
+ AC_MSG_RESULT([found])
+ ], [
+ AC_MSG_RESULT([not found])
+ ])
])
-
PHP_ARG_WITH(sphinx, for sphinx support,
[ --with-sphinx Include sphinx support])
|