debianutils: bump to version 4.8.1
[buildroot-gz.git] / package / nginx / 0004-auto-lib-libxslt-conf-use-pkg-config.patch
blobb315909c3480854a15fe6d345e4ab7882ac3d3ae
1 From 211b9f19a3a62826fadef55d2f89d6f66fbf4aa6 Mon Sep 17 00:00:00 2001
2 From: Samuel Martin <s.martin49@gmail.com>
3 Date: Thu, 29 May 2014 19:22:27 +0200
4 Subject: [PATCH] auto/lib/libxslt/conf: use pkg-config
6 Change to using pkg-config to find the path to libxslt and its
7 dependencies.
9 Signed-off-by: Martin Bark <martin@barkynet.com>
10 ---
11 auto/lib/libxslt/conf | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
14 diff --git a/auto/lib/libxslt/conf b/auto/lib/libxslt/conf
15 index 3a0f37b..3c2a60e 100644
16 --- a/auto/lib/libxslt/conf
17 +++ b/auto/lib/libxslt/conf
18 @@ -12,8 +12,8 @@
19 #include <libxslt/xsltInternals.h>
20 #include <libxslt/transform.h>
21 #include <libxslt/xsltutils.h>"
22 - ngx_feature_path="/usr/include/libxml2"
23 - ngx_feature_libs="-lxml2 -lxslt"
24 + ngx_feature_path="$(${PKG_CONFIG:=pkg-config} --cflags-only-I libxslt|sed 's/-I//g')"
25 + ngx_feature_libs="$(${PKG_CONFIG:=pkg-config} --libs libxslt)"
26 ngx_feature_test="xmlParserCtxtPtr ctxt = NULL;
27 xsltStylesheetPtr sheet = NULL;
28 xmlDocPtr doc;
29 --
30 2.8.2