2018-11-09 11:08:19 +01:00
|
|
|
From 7783d63c87f94797aa134786214b0a84c000be75 Mon Sep 17 00:00:00 2001
|
2016-05-09 13:28:59 +02:00
|
|
|
From: Samuel Martin <s.martin49@gmail.com>
|
|
|
|
Date: Thu, 29 May 2014 19:22:27 +0200
|
2016-05-16 10:47:51 +02:00
|
|
|
Subject: [PATCH] auto/lib/libxslt/conf: use pkg-config
|
2016-05-09 13:28:59 +02:00
|
|
|
|
|
|
|
Change to using pkg-config to find the path to libxslt and its
|
|
|
|
dependencies.
|
|
|
|
|
|
|
|
Signed-off-by: Martin Bark <martin@barkynet.com>
|
2018-11-09 11:08:19 +01:00
|
|
|
[Peter: updated for 1.15.6]
|
|
|
|
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
2016-05-09 13:28:59 +02:00
|
|
|
---
|
2018-11-09 11:08:19 +01:00
|
|
|
auto/lib/libxslt/conf | 5 +++--
|
|
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
2016-05-09 13:28:59 +02:00
|
|
|
|
|
|
|
diff --git a/auto/lib/libxslt/conf b/auto/lib/libxslt/conf
|
2018-11-09 11:08:19 +01:00
|
|
|
index 3063ac7c..3209e364 100644
|
2016-05-09 13:28:59 +02:00
|
|
|
--- a/auto/lib/libxslt/conf
|
|
|
|
+++ b/auto/lib/libxslt/conf
|
2017-12-19 11:10:24 +01:00
|
|
|
@@ -12,8 +12,9 @@
|
2016-05-09 13:28:59 +02:00
|
|
|
#include <libxslt/xsltInternals.h>
|
|
|
|
#include <libxslt/transform.h>
|
|
|
|
#include <libxslt/xsltutils.h>"
|
|
|
|
- ngx_feature_path="/usr/include/libxml2"
|
|
|
|
- ngx_feature_libs="-lxml2 -lxslt"
|
2017-12-19 11:10:24 +01:00
|
|
|
+ ngx_feature_path="$(${PKG_CONFIG:=pkg-config} --cflags-only-I libxslt|
|
|
|
|
+ sed -re 's/(^|\s)-I\s*(\S+)/\1\2/g')"
|
2016-05-09 13:28:59 +02:00
|
|
|
+ ngx_feature_libs="$(${PKG_CONFIG:=pkg-config} --libs libxslt)"
|
|
|
|
ngx_feature_test="xmlParserCtxtPtr ctxt = NULL;
|
|
|
|
xsltStylesheetPtr sheet = NULL;
|
2018-11-09 11:08:19 +01:00
|
|
|
xmlDocPtr doc = NULL;
|
2016-05-09 13:28:59 +02:00
|
|
|
--
|
2018-11-09 11:08:19 +01:00
|
|
|
2.11.0
|
2016-05-09 13:28:59 +02:00
|
|
|
|