php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #67219
Patch sphinx_67219.diff revision 2014-05-06 15:54 UTC by tony2001@php.net
Patch sph-rank-const-fix revision 2014-05-06 15:20 UTC by saprykin dot dmitry at gmail dot com

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])
 
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon May 23 03:05:45 2022 UTC