From d04e4578cc3e101380f78d48de8d0f059a7ee8f5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 24 Aug 2013 17:34:44 +0200 Subject: php-pecl-leveldb: new package (not yet ready... experimental) --- leveldb-config.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 leveldb-config.patch (limited to 'leveldb-config.patch') diff --git a/leveldb-config.patch b/leveldb-config.patch new file mode 100644 index 0000000..a531717 --- /dev/null +++ b/leveldb-config.patch @@ -0,0 +1,28 @@ +--- 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 -- cgit