php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch config.patch for leveldb Bug #65539

Patch version 2013-08-24 15:21 UTC

Return to Bug #65539 | Download this patch
Patch Revisions:

Developer: remi

--- config.m4.old	2013-08-24 17:02:04.000000000 +0200
+++ config.m4	2013-08-24 17:19:06.000000000 +0200
@@ -9,7 +9,7 @@
   # --with-leveldb -> check with-path
   SEARCH_PATH="/usr/local /usr"
   SEARCH_FOR="include/leveldb/c.h"
-  SEARCH_LIB="libleveldb.a"
+  SEARCH_LIB="libleveldb"
 
   dnl search leveldb
   AC_MSG_CHECKING([for leveldb location])
@@ -20,13 +20,13 @@
 	  AC_MSG_RESULT(leveldb headers found in $i)
     fi
 
-    if test -r $i/lib/$SEARCH_LIB; then
-	  LEVELDB_LIB_DIR=$i/lib
+    if test -r $i/$PHP_LIBDIR/$SEARCH_LIB.a || test -r $i/$PHP_LIBDIR/$SEARCH_LIB.$SHLIB_SUFFIX_NAME; then
+	  LEVELDB_LIB_DIR=$i/$PHP_LIBDIR
 	  AC_MSG_RESULT(leveldb lib found in $i/lib)
     fi
 
 	dnl from Leveldb build dir
-    if test -r $i/$SEARCH_LIB; then
+    if test -r $i/$SEARCH_LIB.a || test -r $i/$SEARCH_LIB.$SHLIB_SUFFIX_NAME; then
 	  LEVELDB_LIB_DIR=$i
 	  AC_MSG_RESULT(leveldb lib found in $i)
     fi
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 05 15:01:31 2024 UTC