- added libcurl deps.
(cherry picked from commit 881e3e1e195858d36d863a32f3c40f1cb83c8d9d)
... | ... |
@@ -16,6 +16,12 @@ XML2CFG=$(shell \ |
16 | 16 |
echo 'pkg-config libxml-2.0'; \ |
17 | 17 |
fi) |
18 | 18 |
endif |
19 |
+CURL_BUILDER=$(shell \ |
|
20 |
+ if pkg-config --exists libcurl; then \ |
|
21 |
+ echo 'pkg-config libcurl'; \ |
|
22 |
+ else \ |
|
23 |
+ which curl-config; \ |
|
24 |
+ fi) |
|
19 | 25 |
endif |
20 | 26 |
|
21 | 27 |
ifneq ($(XML2CFG),) |
... | ... |
@@ -26,4 +32,12 @@ else |
26 | 32 |
LIBS+=-L$(LOCALBASE)/lib -lxml2 |
27 | 33 |
endif |
28 | 34 |
|
35 |
+ifneq ($(CURL_BUILDER),) |
|
36 |
+ DEFS += $(shell $(CURL_BUILDER) --cflags ) |
|
37 |
+ LIBS += $(shell $(CURL_BUILDER) --libs) |
|
38 |
+else |
|
39 |
+ DEFS+=-I$(LOCALBASE)/include |
|
40 |
+ LIBS+=-L$(LOCALBASE)/lib -lcurl |
|
41 |
+endif |
|
42 |
+ |
|
29 | 43 |
include ../../Makefile.modules |