summaryrefslogtreecommitdiffstats
path: root/11.patch
blob: be346f28efd22ac5d100357b06e5a7fb8280fa7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From e73c4c546dc7845cd161e51ffe339acb5421c39b Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 24 Sep 2020 11:37:49 +0200
Subject: [PATCH] remove remaining hardcoded /lib

---
 config.m4 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/config.m4 b/config.m4
index 5abb4fa..b8041bc 100644
--- a/config.m4
+++ b/config.m4
@@ -9,7 +9,7 @@ dnl Make sure that the comment is aligned:
 if test "$PHP_IP2LOCATION" != "no"; then
 
   # --with-ip2location -> check with-path
-  SEARCH_PATH="/usr/local /usr /opt/local /lib"
+  SEARCH_PATH="/usr/local /usr /opt/local"
   SEARCH_FOR="/include/IP2Location.h"
   if test -r $PHP_IP2LOCATION/$SEARCH_FOR; then
     IP2LOCATION_DIR=$PHP_IP2LOCATION
@@ -43,12 +43,12 @@ if test "$PHP_IP2LOCATION" != "no"; then
 
   PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOLNEW,
   [
-    PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $IP2LOCATION_DIR/lib, IP2LOCATION_SHARED_LIBADD)
+    PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $IP2LOCATION_DIR/$PHP_LIBDIR, IP2LOCATION_SHARED_LIBADD)
     AC_DEFINE(HAVE_IPLOCATIONLIB,1,[ ])
   ],[
     PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOLOLD,
     [
-      PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $IP2LOCATION_DIR/lib, IP2LOCATION_SHARED_LIBADD)
+      PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $IP2LOCATION_DIR/$PHP_LIBDIR, IP2LOCATION_SHARED_LIBADD)
       AC_DEFINE(HAVE_IPLOCATIONLIB,1,[ ])
     ],[
       AC_MSG_ERROR([wrong ip2location, lib version >= 6.x.x is required or library not found])