2 # Copyright (C) Igor Sysoev
8 ngx_feature_incs="#include <libxml/parser.h>
9 #include <libxml/tree.h>
10 #include <libxslt/xslt.h>
11 #include <libxslt/xsltInternals.h>
12 #include <libxslt/transform.h>
13 #include <libxslt/xsltutils.h>"
14 ngx_feature_path="/usr/include/libxml2"
15 ngx_feature_libs="-lxml2 -lxslt"
16 ngx_feature_test="xmlParserCtxtPtr ctxt = NULL;
17 xsltStylesheetPtr sheet = NULL;
19 doc = xmlParseChunk(ctxt, NULL, 0, 0);
20 xsltApplyStylesheet(sheet, doc, NULL);"
24 if [ $ngx_found = no ]; then
28 ngx_feature="libxslt in /usr/local/"
29 ngx_feature_path="/usr/local/include/libxml2 /usr/local/include"
31 if [ $NGX_RPATH = YES ]; then
32 ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lxml2 -lxslt"
34 ngx_feature_libs="-L/usr/local/lib -lxml2 -lxslt"
41 if [ $ngx_found = no ]; then
45 ngx_feature="libxslt in /usr/pkg/"
46 ngx_feature_path="/usr/pkg/include/libxml2 /usr/pkg/include"
48 if [ $NGX_RPATH = YES ]; then
49 ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lxml2 -lxslt"
51 ngx_feature_libs="-L/usr/pkg/lib -lxml2 -lxslt"
58 if [ $ngx_found = no ]; then
62 ngx_feature="libxslt in /opt/local/"
63 ngx_feature_path="/opt/local/include/libxml2 /opt/local/include"
65 if [ $NGX_RPATH = YES ]; then
66 ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lxml2 -lxslt"
68 ngx_feature_libs="-L/opt/local/lib -lxml2 -lxslt"
75 if [ $ngx_found = yes ]; then
77 CORE_INCS="$CORE_INCS $ngx_feature_path"
78 CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
84 $0: error: the HTTP XSLT module requires the libxml2/libxslt
85 libraries. You can either do not enable the module or install the libraries.
93 ngx_feature="libexslt"
94 ngx_feature_name=NGX_HAVE_EXSLT
96 ngx_feature_incs="#include <libexslt/exslt.h>"
97 ngx_feature_path="/usr/include/libxml2"
98 ngx_feature_libs="-lexslt"
99 ngx_feature_test="exsltRegisterAll();"
102 if [ $ngx_found = no ]; then
106 ngx_feature="libexslt in /usr/local/"
107 ngx_feature_path="/usr/local/include/libxml2 /usr/local/include"
109 if [ $NGX_RPATH = YES ]; then
110 ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lexslt"
112 ngx_feature_libs="-L/usr/local/lib -lexslt"
119 if [ $ngx_found = no ]; then
123 ngx_feature="libexslt in /usr/pkg/"
124 ngx_feature_path="/usr/pkg/include/libxml2 /usr/local/include"
126 if [ $NGX_RPATH = YES ]; then
127 ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lexslt"
129 ngx_feature_libs="-L/usr/pkg/lib -lexslt"
136 if [ $ngx_found = no ]; then
140 ngx_feature="libexslt in /opt/local/"
141 ngx_feature_path="/opt/local/include/libxml2 /opt/local/include"
143 if [ $NGX_RPATH = YES ]; then
144 ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lexslt"
146 ngx_feature_libs="-L/opt/local/lib -lexslt"
153 if [ $ngx_found = yes ]; then
154 CORE_LIBS="$CORE_LIBS -lexslt"