2 # Copyright (C) Igor Sysoev
3 # Copyright (C) Nginx, Inc.
9 ngx_feature_incs="#include <libxml/parser.h>
10 #include <libxml/tree.h>
11 #include <libxslt/xslt.h>
12 #include <libxslt/xsltInternals.h>
13 #include <libxslt/transform.h>
14 #include <libxslt/xsltutils.h>"
15 ngx_feature_path="/usr/include/libxml2"
16 ngx_feature_libs="-lxml2 -lxslt"
17 ngx_feature_test="xmlParserCtxtPtr ctxt = NULL;
18 xsltStylesheetPtr sheet = NULL;
20 doc = xmlParseChunk(ctxt, NULL, 0, 0);
21 xsltApplyStylesheet(sheet, doc, NULL);"
25 if [ $ngx_found = no ]; then
29 ngx_feature="libxslt in /usr/local/"
30 ngx_feature_path="/usr/local/include/libxml2 /usr/local/include"
32 if [ $NGX_RPATH = YES ]; then
33 ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lxml2 -lxslt"
35 ngx_feature_libs="-L/usr/local/lib -lxml2 -lxslt"
42 if [ $ngx_found = no ]; then
46 ngx_feature="libxslt in /usr/pkg/"
47 ngx_feature_path="/usr/pkg/include/libxml2 /usr/pkg/include"
49 if [ $NGX_RPATH = YES ]; then
50 ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lxml2 -lxslt"
52 ngx_feature_libs="-L/usr/pkg/lib -lxml2 -lxslt"
59 if [ $ngx_found = no ]; then
63 ngx_feature="libxslt in /opt/local/"
64 ngx_feature_path="/opt/local/include/libxml2 /opt/local/include"
66 if [ $NGX_RPATH = YES ]; then
67 ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lxml2 -lxslt"
69 ngx_feature_libs="-L/opt/local/lib -lxml2 -lxslt"
76 if [ $ngx_found = yes ]; then
78 CORE_INCS="$CORE_INCS $ngx_feature_path"
79 CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
85 $0: error: the HTTP XSLT module requires the libxml2/libxslt
86 libraries. You can either do not enable the module or install the libraries.
94 ngx_feature="libexslt"
95 ngx_feature_name=NGX_HAVE_EXSLT
97 ngx_feature_incs="#include <libexslt/exslt.h>"
98 ngx_feature_path="/usr/include/libxml2"
99 ngx_feature_libs="-lexslt"
100 ngx_feature_test="exsltRegisterAll();"
103 if [ $ngx_found = no ]; then
107 ngx_feature="libexslt in /usr/local/"
108 ngx_feature_path="/usr/local/include/libxml2 /usr/local/include"
110 if [ $NGX_RPATH = YES ]; then
111 ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lexslt"
113 ngx_feature_libs="-L/usr/local/lib -lexslt"
120 if [ $ngx_found = no ]; then
124 ngx_feature="libexslt in /usr/pkg/"
125 ngx_feature_path="/usr/pkg/include/libxml2 /usr/local/include"
127 if [ $NGX_RPATH = YES ]; then
128 ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lexslt"
130 ngx_feature_libs="-L/usr/pkg/lib -lexslt"
137 if [ $ngx_found = no ]; then
141 ngx_feature="libexslt in /opt/local/"
142 ngx_feature_path="/opt/local/include/libxml2 /opt/local/include"
144 if [ $NGX_RPATH = YES ]; then
145 ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lexslt"
147 ngx_feature_libs="-L/opt/local/lib -lexslt"
154 if [ $ngx_found = yes ]; then
155 CORE_LIBS="$CORE_LIBS -lexslt"