2
1

0004-auto-lib-libxslt-conf-use-pkg-config.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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
  5. Change to using pkg-config to find the path to libxslt and its
  6. dependencies.
  7. Signed-off-by: Martin Bark <martin@barkynet.com>
  8. ---
  9. auto/lib/libxslt/conf | 4 ++--
  10. 1 file changed, 2 insertions(+), 2 deletions(-)
  11. diff --git a/auto/lib/libxslt/conf b/auto/lib/libxslt/conf
  12. index 3a0f37b..3c2a60e 100644
  13. --- a/auto/lib/libxslt/conf
  14. +++ b/auto/lib/libxslt/conf
  15. @@ -12,8 +12,9 @@
  16. #include <libxslt/xsltInternals.h>
  17. #include <libxslt/transform.h>
  18. #include <libxslt/xsltutils.h>"
  19. - ngx_feature_path="/usr/include/libxml2"
  20. - ngx_feature_libs="-lxml2 -lxslt"
  21. + ngx_feature_path="$(${PKG_CONFIG:=pkg-config} --cflags-only-I libxslt|
  22. + sed -re 's/(^|\s)-I\s*(\S+)/\1\2/g')"
  23. + ngx_feature_libs="$(${PKG_CONFIG:=pkg-config} --libs libxslt)"
  24. ngx_feature_test="xmlParserCtxtPtr ctxt = NULL;
  25. xsltStylesheetPtr sheet = NULL;
  26. xmlDocPtr doc;
  27. --
  28. 2.8.2