OLD | NEW |
| (Empty) |
1 dnl Process this file with autoconf to produce a configuration script. | |
2 AC_PREREQ(2.2) | |
3 AC_INIT(libxslt/xslt.c) | |
4 AM_CONFIG_HEADER(config.h) | |
5 AC_CANONICAL_HOST | |
6 | |
7 dnl | |
8 dnl libxslt is the main part of the package | |
9 dnl libexslt is an extension | |
10 dnl | |
11 LIBXSLT_MAJOR_VERSION=1 | |
12 LIBXSLT_MINOR_VERSION=1 | |
13 LIBXSLT_MICRO_VERSION=24 | |
14 PACKAGE=libxslt | |
15 LIBEXSLT_MAJOR_VERSION=0 | |
16 LIBEXSLT_MINOR_VERSION=8 | |
17 LIBEXSLT_MICRO_VERSION=13 | |
18 LIBXML_REQUIRED_VERSION=2.6.27 | |
19 | |
20 | |
21 LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VER
SION | |
22 LIBXSLT_VERSION_INFO=`expr $LIBXSLT_MAJOR_VERSION + $LIBXSLT_MINOR_VERSION`:$LIB
XSLT_MICRO_VERSION:$LIBXSLT_MINOR_VERSION | |
23 | |
24 LIBXSLT_VERSION_NUMBER=`expr $LIBXSLT_MAJOR_VERSION \* 10000 + $LIBXSLT_MINOR_VE
RSION \* 100 + $LIBXSLT_MICRO_VERSION` | |
25 LIBXSLT_MAJOR_MINOR_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION | |
26 | |
27 if test -f CVS/Entries; then | |
28 extra=`grep ChangeLog CVS/Entries | grep -v LIBXSLT | sed -e s\%/ChangeLog/1\.
%% -e s\%/.*$%%` | |
29 echo extra=$extra | |
30 if test "$extra" != "" | |
31 then | |
32 LIBXSLT_VERSION_EXTRA="-CVS$extra" | |
33 fi | |
34 else if test -d .svn ; then | |
35 extra=`svn info | grep Revision | sed 's+Revision: ++'` | |
36 echo extra=$extra | |
37 if test "$extra" != "" | |
38 then | |
39 LIBXSLT_VERSION_EXTRA="-SVN$extra" | |
40 fi | |
41 fi | |
42 fi | |
43 | |
44 AC_SUBST(LIBXSLT_MAJOR_VERSION) | |
45 AC_SUBST(LIBXSLT_MINOR_VERSION) | |
46 AC_SUBST(LIBXSLT_MICRO_VERSION) | |
47 AC_SUBST(LIBXSLT_VERSION) | |
48 AC_SUBST(LIBXSLT_VERSION_INFO) | |
49 AC_SUBST(LIBXSLT_VERSION_NUMBER) | |
50 AC_SUBST(LIBXSLT_VERSION_EXTRA) | |
51 AC_SUBST(LIBXSLT_MAJOR_MINOR_VERSION) | |
52 | |
53 dnl | |
54 dnl libexslt is an extension library | |
55 dnl | |
56 | |
57 LIBEXSLT_VERSION=$LIBEXSLT_MAJOR_VERSION.$LIBEXSLT_MINOR_VERSION.$LIBEXSLT_MICRO
_VERSION | |
58 LIBEXSLT_VERSION_INFO=`expr $LIBEXSLT_MAJOR_VERSION + $LIBEXSLT_MINOR_VERSION`:$
LIBEXSLT_MICRO_VERSION:$LIBEXSLT_MINOR_VERSION | |
59 | |
60 LIBEXSLT_VERSION_NUMBER=`expr $LIBEXSLT_MAJOR_VERSION \* 10000 + $LIBEXSLT_MINOR
_VERSION \* 100 + $LIBEXSLT_MICRO_VERSION` | |
61 | |
62 if test -f CVS/Entries; then | |
63 LIBEXSLT_VERSION_EXTRA=-CVS`grep ChangeLog CVS/Entries | sed -e s\%/ChangeLog/
1\.%% -e s\%/.*$%%` | |
64 fi | |
65 | |
66 AC_SUBST(LIBEXSLT_MAJOR_VERSION) | |
67 AC_SUBST(LIBEXSLT_MINOR_VERSION) | |
68 AC_SUBST(LIBEXSLT_MICRO_VERSION) | |
69 AC_SUBST(LIBEXSLT_VERSION) | |
70 AC_SUBST(LIBEXSLT_VERSION_INFO) | |
71 AC_SUBST(LIBEXSLT_VERSION_NUMBER) | |
72 AC_SUBST(LIBEXSLT_VERSION_EXTRA) | |
73 | |
74 VERSION=${LIBXSLT_VERSION} | |
75 | |
76 AM_INIT_AUTOMAKE($PACKAGE, $VERSION) | |
77 | |
78 # AM_MAINTAINER_MODE | |
79 | |
80 AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ]) | |
81 | |
82 dnl | |
83 dnl Specific dir for HTML output ? | |
84 dnl | |
85 | |
86 if test "x$with_html_dir" = "x" ; then | |
87 HTML_DIR='$(prefix)/doc' | |
88 else | |
89 HTML_DIR=$with_html_dir | |
90 fi | |
91 AC_SUBST(HTML_DIR) | |
92 | |
93 dnl | |
94 dnl Check the environment | |
95 dnl | |
96 | |
97 AC_ISC_POSIX | |
98 AC_PROG_CC | |
99 AC_PROG_INSTALL | |
100 AC_PROG_CPP | |
101 AC_PATH_PROG(RM, rm, /bin/rm) | |
102 AC_PATH_PROG(MV, mv, /bin/mv) | |
103 AC_PATH_PROG(TAR, tar, /bin/tar) | |
104 | |
105 AC_STDC_HEADERS | |
106 AM_PROG_LIBTOOL | |
107 | |
108 dnl | |
109 dnl Math detection | |
110 dnl | |
111 | |
112 AC_CHECK_HEADERS(sys/types.h sys/time.h stdlib.h unistd.h string.h) | |
113 AC_CHECK_HEADERS(ieeefp.h nan.h math.h fp_class.h float.h ansidecl.h) | |
114 AC_CHECK_HEADERS(sys/timeb.h time.h sys/stat.h sys/select.h stdarg.h) | |
115 AC_CHECK_FUNCS(stat _stat) | |
116 AC_CHECK_FUNC(isnan, , AC_CHECK_LIB(m, isnan, | |
117 [M_LIBS="-lm"; AC_DEFINE(HAVE_ISNAN)])) | |
118 | |
119 AC_CHECK_FUNC(isinf, , AC_CHECK_LIB(m, isinf, | |
120 [M_LIBS="-lm"; AC_DEFINE(HAVE_ISINF)])) | |
121 | |
122 AC_CHECK_FUNC(pow, , AC_CHECK_LIB(m, pow, | |
123 [M_LIBS="-lm"; AC_DEFINE(HAVE_POW)])) | |
124 | |
125 AC_CHECK_FUNC(floor, , AC_CHECK_LIB(m, floor, | |
126 [M_LIBS="-lm"; AC_DEFINE(HAVE_FLOOR)])) | |
127 | |
128 AC_CHECK_FUNC(fabs, , AC_CHECK_LIB(m, fabs, | |
129 [M_LIBS="-lm"; AC_DEFINE(HAVE_FABS)])) | |
130 AC_CHECK_FUNCS(gettimeofday) | |
131 AC_CHECK_FUNCS(mktime localtime localtime_r asctime time gmtime_r ftime) | |
132 | |
133 dnl Checking the standard string functions availability | |
134 AC_CHECK_FUNCS(printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscan
f,, | |
135 NEED_TRIO=1) | |
136 | |
137 dnl | |
138 dnl Check for trio string functions | |
139 dnl | |
140 | |
141 if test "${NEED_TRIO}" = "1" ; then | |
142 echo Reusing trio library for string functions | |
143 WITH_TRIO=1 | |
144 else | |
145 WITH_TRIO=0 | |
146 fi | |
147 AC_SUBST(WITH_TRIO) | |
148 | |
149 dnl | |
150 dnl Some packages need to be checked against version numbers so we | |
151 dnl define a function here for later use | |
152 dnl | |
153 AC_DEFUN([VERSION_TO_NUMBER], | |
154 [`$1 | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 10
00 + [$]2) * 1000 + [$]3;}'`]) | |
155 | |
156 dnl | |
157 dnl Perl is just needed for generating some data for XSLtmark | |
158 dnl | |
159 | |
160 AC_CHECK_PROG(PERL, perl, perl, false) | |
161 AM_CONDITIONAL(WITH_PERL, test "$PERL" != "false") | |
162 | |
163 dnl | |
164 dnl check for python | |
165 dnl | |
166 | |
167 PYTHON_VERSION= | |
168 PYTHON_INCLUDES= | |
169 PYTHON_SITE_PACKAGES= | |
170 pythondir= | |
171 AC_ARG_WITH(python, [ --with-python[=DIR] Build Python bindings if found]) | |
172 if test "$with_python" != "no" ; then | |
173 if test -x "$with_python/bin/python" | |
174 then | |
175 echo Found python in $with_python/bin/python | |
176 PYTHON="$with_python/bin/python" | |
177 else | |
178 if test -x "$with_python" | |
179 then | |
180 echo Found python in $with_python | |
181 PYTHON="$with_python" | |
182 else | |
183 if test -x "$PYTHON" | |
184 then | |
185 echo Found python in environment PYTHON=$PYTHON | |
186 with_python=`$PYTHON -c "import sys; print sys.exec_prefix"` | |
187 else | |
188 AC_PATH_PROG(PYTHON, python python2.4 python2.3 python2.2 python
2.1 python2.0 python1.6 python1.5) | |
189 fi | |
190 fi | |
191 fi | |
192 if test "$PYTHON" != "" | |
193 then | |
194 echo "PYTHON is pointing at $PYTHON" | |
195 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"` | |
196 echo Found Python version $PYTHON_VERSION | |
197 LIBXML2_PYTHON=`$PYTHON -c "try : import libxml2 ; print 1 | |
198 except: print 0"` | |
199 if test "$LIBXML2_PYTHON" = "1" | |
200 then | |
201 echo Found libxml2-python module | |
202 else | |
203 echo Warning: Missing libxml2-python | |
204 fi | |
205 fi | |
206 if test "$PYTHON_VERSION" != "" | |
207 then | |
208 if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \ | |
209 -d $with_python/lib/python$PYTHON_VERSION/site-packages | |
210 then | |
211 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION | |
212 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-package
s' | |
213 else | |
214 if test -r $prefix/include/python$PYTHON_VERSION/Python.h | |
215 then | |
216 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION | |
217 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-pac
kages' | |
218 else | |
219 if test -r /usr/include/python$PYTHON_VERSION/Python.h | |
220 then | |
221 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION | |
222 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site
-packages' | |
223 else | |
224 echo could not find python$PYTHON_VERSION/Python.h | |
225 fi | |
226 fi | |
227 if test ! -d "$PYTHON_SITE_PACKAGES" | |
228 then | |
229 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysc
onfig; print sysconfig.get_python_lib()"` | |
230 fi | |
231 fi | |
232 fi | |
233 if test "$with_python" != "" | |
234 then | |
235 pythondir='$(PYTHON_SITE_PACKAGES)' | |
236 else | |
237 pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages' | |
238 fi | |
239 fi | |
240 AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "") | |
241 if test "$PYTHON_INCLUDES" != "" | |
242 then | |
243 PYTHON_SUBDIR=python | |
244 else | |
245 PYTHON_SUBDIR= | |
246 fi | |
247 AC_SUBST(pythondir) | |
248 AC_SUBST(PYTHON_SUBDIR) | |
249 | |
250 AC_ARG_WITH(crypto, [ --with-crypto Add crypto support to exslt (on)]
) | |
251 WITH_CRYPTO=0 | |
252 if test "$with_crypto" = "no" ; then | |
253 echo Disabling crypto support | |
254 LIBGCRYPT_CFLAGS="" | |
255 LIBGCRYPT_LIBS="" | |
256 else | |
257 AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no) | |
258 if test "$LIBGCRYPT_CONFIG" != "no" ; then | |
259 LIBGCRYPT_VERSION=`$LIBGCRYPT_CONFIG --version` | |
260 if test VERSION_TO_NUMBER(echo $LIBGCRYPT_VERSION) -lt VERSION_TO_NUMBER(e
cho "1.1.42") | |
261 then | |
262 LIBGCRYPT_CFLAGS="" | |
263 LIBGCRYPT_LIBS="" | |
264 echo 'gcrypt library version < 1.1.42 - Crypto extensions will not be av
ailable.' | |
265 else | |
266 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags` | |
267 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs` | |
268 AC_DEFINE(HAVE_GCRYPT, 1, [Define if gcrypt library is available.]) | |
269 echo 'Crypto extensions will be available.' | |
270 WITH_CRYPTO=1 | |
271 fi | |
272 else | |
273 LIBGCRYPT_CFLAGS="" | |
274 LIBGCRYPT_LIBS="" | |
275 echo 'Crypto extensions will not be available. Install libgcrypt and recon
figure to make available.' | |
276 fi | |
277 fi | |
278 AC_SUBST(WITH_CRYPTO) | |
279 AC_SUBST(LIBGCRYPT_CFLAGS) | |
280 AC_SUBST(LIBGCRYPT_LIBS) | |
281 | |
282 dnl | |
283 dnl Debug for DV (-Wunreachable-code) | |
284 dnl | |
285 if [[ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ]] || \ | |
286 [[ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxslt" ]] | |
287 then | |
288 if test "${with_mem_debug}" = "" ; | |
289 then | |
290 with_mem_debug="yes" | |
291 fi | |
292 CFLAGS="-Wall -g -O -ansi -pedantic -W -Wunused -Wimplicit -Wreturn-type -Ws
witch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparenth
eses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -W
strict-prototypes -Wmissing-prototypes -Wnested-externs -Winline " | |
293 if test "`uname -m`" != "x86_64" ; | |
294 then | |
295 STATIC_BINARIES="-static" | |
296 else | |
297 STATIC_BINARIES= | |
298 fi | |
299 if test "$LOGNAME" = "veillard" | |
300 then | |
301 LIBXML_SRC="/u/veillard/XML" | |
302 EXTRA_LIBS="$EXTRA_LIBS -ldl" | |
303 fi | |
304 else | |
305 STATIC_BINARIES= | |
306 fi | |
307 AC_SUBST(STATIC_BINARIES) | |
308 | |
309 AC_ARG_WITH(debug, [ --with-debug Add the debugging code (on)]) | |
310 if test "$with_debug" = "no" ; then | |
311 echo Disabling debug support | |
312 WITH_XSLT_DEBUG=0 | |
313 else | |
314 WITH_XSLT_DEBUG=1 | |
315 fi | |
316 AC_SUBST(WITH_XSLT_DEBUG) | |
317 | |
318 AC_ARG_WITH(mem_debug, [ --with-mem-debug Add the memory debugging modul
e (off)]) | |
319 if test "$with_mem_debug" = "yes" ; then | |
320 echo Enabling memory debug support | |
321 WITH_MEM_DEBUG=1 | |
322 else | |
323 WITH_MEM_DEBUG=0 | |
324 fi | |
325 AC_SUBST(WITH_MEM_DEBUG) | |
326 | |
327 dnl | |
328 dnl Is debugger support requested | |
329 dnl | |
330 AC_ARG_WITH(with_debugger, [ --with-debugger Add the debugging support (
on)]) | |
331 if test "$with_debugger" = "no" ; then | |
332 echo Disabling debugger | |
333 WITH_DEBUGGER=0 | |
334 else | |
335 echo Enabling debugger | |
336 WITH_DEBUGGER=1 | |
337 AC_DEFINE(WITH_DEBUGGER) | |
338 fi | |
339 AC_SUBST(WITH_DEBUGGER) | |
340 | |
341 dnl | |
342 dnl The following new parameters were added to offer | |
343 dnl the ability to specify the location of the libxml | |
344 dnl library during linking and compilation. | |
345 dnl | |
346 dnl original work - Mathieu Lacage 30/03/2000 | |
347 dnl some tweaking - David Härdeman 30/10/2001 | |
348 dnl | |
349 | |
350 LIBXML_CONFIG_PREFIX="" | |
351 LIBXML_SRC="" | |
352 | |
353 AC_ARG_WITH(libxml-prefix, | |
354 [ --with-libxml-prefix=[PFX] Specify location of libxml confi
g], | |
355 LIBXML_CONFIG_PREFIX=$withval | |
356 ) | |
357 | |
358 AC_ARG_WITH(libxml-include-prefix, | |
359 [ --with-libxml-include-prefix=[PFX] Specify location of libxml heade
rs], | |
360 LIBXML_CFLAGS="-I$withval" | |
361 ) | |
362 | |
363 AC_ARG_WITH(libxml-libs-prefix, | |
364 [ --with-libxml-libs-prefix=[PFX] Specify location of libxml libs]
, | |
365 LIBXML_LIBS="-L$withval" | |
366 ) | |
367 | |
368 AC_ARG_WITH(libxml-src, | |
369 [ --with-libxml-src=[DIR] For libxml thats not installed y
et (sets all three above)], | |
370 LIBXML_SRC="$withval" | |
371 ) | |
372 AC_SUBST(LIBXML_SRC) | |
373 | |
374 dnl | |
375 dnl where is xml2-config | |
376 dnl | |
377 | |
378 AC_SUBST(LIBXML_REQUIRED_VERSION) | |
379 AC_MSG_CHECKING(for libxml libraries >= $LIBXML_REQUIRED_VERSION) | |
380 if test "x$LIBXML_CONFIG_PREFIX" != "x" | |
381 then | |
382 XML_CONFIG=${LIBXML_CONFIG_PREFIX}/bin/xml2-config | |
383 else | |
384 XML_CONFIG=xml2-config | |
385 fi | |
386 | |
387 dnl | |
388 dnl imported from libxml2, c.f. #77827 | |
389 dnl | |
390 if test "${GCC}" != "yes" ; then | |
391 case "${host}" in | |
392 *-*-hpux* ) | |
393 CFLAGS="${CFLAGS} -Wp,-H30000" | |
394 ;; | |
395 *-dec-osf* ) | |
396 CFLAGS="${CFLAGS} -ieee" | |
397 ;; | |
398 esac | |
399 else | |
400 CFLAGS="${CFLAGS} -Wall" | |
401 case "${host}" in | |
402 alpha*-*-linux* ) | |
403 CFLAGS="${CFLAGS} -mieee" | |
404 ;; | |
405 alpha*-*-osf* ) | |
406 CFLAGS="${CFLAGS} -mieee" | |
407 ;; | |
408 esac | |
409 fi | |
410 | |
411 dnl | |
412 dnl Override other variables if LIBXML_SRC is set | |
413 dnl | |
414 | |
415 if test "x$LIBXML_SRC" != "x" | |
416 then | |
417 CWD=`pwd` | |
418 if cd $LIBXML_SRC | |
419 then | |
420 SRC_DIR=`pwd` | |
421 XML_CONFIG=${SRC_DIR}/xml2-config | |
422 LIBXML_CFLAGS="-I${SRC_DIR}/include" | |
423 LIBXML_LIBS="-L${SRC_DIR}" | |
424 cd $CWD | |
425 else | |
426 AC_MSG_ERROR([libxml source dir not found (${LIBXML_SRC}), typo?
]) | |
427 fi | |
428 fi | |
429 | |
430 dnl | |
431 dnl make sure xml2-config is executable, | |
432 dnl test version and init our variables | |
433 dnl | |
434 | |
435 if ${XML_CONFIG} --libs print > /dev/null 2>&1 | |
436 then | |
437 XMLVERS=`$XML_CONFIG --version` | |
438 if test VERSION_TO_NUMBER(echo $XMLVERS) -ge VERSION_TO_NUMBER(echo $LIB
XML_REQUIRED_VERSION) | |
439 then | |
440 LIBXML_LIBS="$LIBXML_LIBS `$XML_CONFIG --libs`" | |
441 LIBXML_CFLAGS="$LIBXML_CFLAGS `$XML_CONFIG --cflags`" | |
442 AC_MSG_RESULT($XMLVERS found) | |
443 else | |
444 AC_MSG_ERROR(Version $XMLVERS found. You need at least libxml2 $
LIBXML_REQUIRED_VERSION for this version of libxslt) | |
445 fi | |
446 else | |
447 AC_MSG_ERROR([Could not find libxml2 anywhere, check ftp://xmlsoft.org/.
]) | |
448 fi | |
449 | |
450 | |
451 AC_SUBST(CFLAGS) | |
452 AC_SUBST(CPPFLAGS) | |
453 AC_SUBST(LDFLAGS) | |
454 | |
455 AC_ARG_WITH(plugins, | |
456 [ --with-plugins Add plugin extension support (on)]) | |
457 if test "$with_plugins" = "" | |
458 then | |
459 with_plugins=yes | |
460 fi | |
461 | |
462 AC_MSG_CHECKING([whether shared libraries will be built (required for plugins)]) | |
463 if test "$enable_shared" = "no" -a "$with_plugins" = "yes"; then | |
464 AC_MSG_RESULT(no) | |
465 AC_MSG_WARN([Disabling plugin support.]) | |
466 AC_MSG_WARN([Plugins require that shared libraries be built.]) | |
467 with_plugins=no | |
468 else | |
469 AC_MSG_RESULT(yes) | |
470 fi | |
471 | |
472 if test "$with_plugins" = "yes" ; then | |
473 AC_MSG_CHECKING([libxml2 module support]) | |
474 WITH_MODULES="`$XML_CONFIG --modules`" | |
475 if test "${WITH_MODULES}" = "1"; then | |
476 AC_MSG_RESULT(yes) | |
477 else | |
478 AC_MSG_RESULT(no) | |
479 WITH_MODULES="0" | |
480 fi | |
481 else | |
482 WITH_MODULES="0" | |
483 fi | |
484 | |
485 AC_SUBST(WITH_MODULES) | |
486 AM_CONDITIONAL(WITH_MODULES, test "$WITH_MODULES" = "1") | |
487 | |
488 dnl | |
489 dnl setup default module path | |
490 dnl | |
491 module_prefix=$prefix | |
492 test "x$module_prefix" = xNONE && module_prefix=$ac_default_prefix | |
493 LIBXSLT_DEFAULT_PLUGINS_PATH="$module_prefix/lib/libxslt-plugins" | |
494 AC_SUBST(LIBXSLT_DEFAULT_PLUGINS_PATH) | |
495 | |
496 dnl | |
497 dnl In build tree I use a static version with memory debug enabled | |
498 dnl | |
499 if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ; then | |
500 if test "`uname -i`" != "x86_64" -a -e $HOME/XML/.libs/libxml2.a ; | |
501 then | |
502 LIBXML_LIBS="$HOME/XML/.libs/libxml2.a -lpthread -lz" | |
503 fi | |
504 DV_LINK="1" | |
505 XSLTPROCDV="xsltproc.dv" | |
506 INSTALLED_XSLT_LIB="" | |
507 LIBXML_SRC="$HOME/XML/" | |
508 fi | |
509 | |
510 WIN32_EXTRA_LIBADD= | |
511 WIN32_EXTRA_LDFLAGS= | |
512 case "$host" in | |
513 *-*-mingw*) | |
514 WIN32_EXTRA_LIBADD="-lwsock32" | |
515 WIN32_EXTRA_LDFLAGS="-no-undefined" | |
516 AC_DEFINE([_WINSOCKAPI_],1,[Using the Win32 Socket implementation]) | |
517 AC_DEFINE([snprintf],[_snprintf],[Win32 Std C name mangling work-around]) | |
518 AC_DEFINE([vsnprintf],[_vsnprintf],[Win32 Std C name mangling work-around]) | |
519 ;; | |
520 esac | |
521 AC_SUBST(WIN32_EXTRA_LIBADD) | |
522 AC_SUBST(WIN32_EXTRA_LDFLAGS) | |
523 | |
524 | |
525 AC_SUBST(XSLTPROCDV) | |
526 AC_SUBST(PYTHONSODV) | |
527 AC_SUBST(XML_CONFIG) | |
528 AC_SUBST(LIBXML_LIBS) | |
529 AC_SUBST(LIBXML_CFLAGS) | |
530 AC_SUBST(PYTHON) | |
531 AC_SUBST(PYTHON_VERSION) | |
532 AC_SUBST(PYTHON_INCLUDES) | |
533 AC_SUBST(PYTHON_SITE_PACKAGES) | |
534 | |
535 XSLT_LIBDIR='-L${libdir}' | |
536 XSLT_INCLUDEDIR='-I${includedir}' | |
537 XSLT_LIBS="-lxslt $LIBXML_LIBS $M_LIBS" | |
538 AC_SUBST(XSLT_LIBDIR) | |
539 AC_SUBST(XSLT_INCLUDEDIR) | |
540 AC_SUBST(XSLT_LIBS) | |
541 | |
542 EXSLT_LIBDIR='-L${libdir}' | |
543 EXSLT_INCLUDEDIR='-I${includedir}' | |
544 EXSLT_LIBS="-lexslt $XSLT_LIBS $LIBGCRYPT_LIBS" | |
545 AC_SUBST(EXSLT_LIBDIR) | |
546 AC_SUBST(EXSLT_INCLUDEDIR) | |
547 AC_SUBST(EXSLT_LIBS) | |
548 | |
549 EXTRA_LIBS="$EXTRA_LIBS $LIBXML_LIBS $M_LIBS" | |
550 AC_SUBST(EXTRA_LIBS) | |
551 | |
552 AC_SUBST(M_LIBS) | |
553 | |
554 dnl for the spec file | |
555 RELDATE=`date +'%a %b %e %Y'` | |
556 AC_SUBST(RELDATE) | |
557 | |
558 ( cd $srcdir | |
559 rm -f COPYING.LIB COPYING | |
560 $LN_S Copyright COPYING | |
561 ) | |
562 | |
563 | |
564 AC_OUTPUT([ | |
565 Makefile | |
566 libxslt.pc | |
567 libexslt.pc | |
568 libxslt/Makefile | |
569 libxslt/xsltconfig.h | |
570 libxslt/xsltwin32config.h | |
571 libexslt/Makefile | |
572 libexslt/exsltconfig.h | |
573 xsltproc/Makefile | |
574 python/Makefile | |
575 python/tests/Makefile | |
576 tests/Makefile | |
577 tests/docs/Makefile | |
578 tests/REC1/Makefile | |
579 tests/REC2/Makefile | |
580 tests/REC/Makefile | |
581 tests/general/Makefile | |
582 tests/reports/Makefile | |
583 tests/extensions/Makefile | |
584 tests/namespaces/Makefile | |
585 tests/keys/Makefile | |
586 tests/numbers/Makefile | |
587 tests/documents/Makefile | |
588 tests/xmlspec/Makefile | |
589 tests/multiple/Makefile | |
590 tests/xinclude/Makefile | |
591 tests/XSLTMark/Makefile | |
592 tests/docbook/Makefile | |
593 tests/exslt/Makefile | |
594 tests/exslt/common/Makefile | |
595 tests/exslt/functions/Makefile | |
596 tests/exslt/math/Makefile | |
597 tests/exslt/sets/Makefile | |
598 tests/exslt/strings/Makefile | |
599 tests/exslt/date/Makefile | |
600 tests/exslt/dynamic/Makefile | |
601 tests/plugins/Makefile | |
602 doc/Makefile | |
603 xslt-config | |
604 libxslt.spec | |
605 ]) | |
OLD | NEW |