source: trunk/third/libxml2/configure.in @ 19097

Revision 19097, 16.4 KB checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r19096, which included commits to RCS files with non-trunk default branches.
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.2)
3AC_INIT(entities.c)
4AM_CONFIG_HEADER(config.h)
5AC_CANONICAL_HOST
6
7LIBXML_MAJOR_VERSION=2
8LIBXML_MINOR_VERSION=5
9LIBXML_MICRO_VERSION=4
10LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION
11LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
12
13LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
14
15AC_SUBST(LIBXML_MAJOR_VERSION)
16AC_SUBST(LIBXML_MINOR_VERSION)
17AC_SUBST(LIBXML_MICRO_VERSION)
18AC_SUBST(LIBXML_VERSION)
19AC_SUBST(LIBXML_VERSION_INFO)
20AC_SUBST(LIBXML_VERSION_NUMBER)
21
22VERSION=${LIBXML_VERSION}
23
24AM_INIT_AUTOMAKE(libxml2, $VERSION)
25
26AC_ARG_WITH(html-dir, [  --with-html-dir=PATH path to installed docs ])
27
28dnl Checks for programs.
29AC_PROG_CC
30AC_PROG_INSTALL
31AC_PROG_CPP
32AC_PATH_PROG(RM, rm, /bin/rm)
33AC_PATH_PROG(MV, mv, /bin/mv)
34AC_PATH_PROG(TAR, tar, /bin/tar)
35
36dnl Make sure we have an ANSI compiler
37AM_C_PROTOTYPES
38test "x$U" != "x" && AC_MSG_ERROR(Compiler not ANSI compliant)
39
40AM_PROG_LIBTOOL
41
42AM_MAINTAINER_MODE
43
44dnl Checks for zlib library.
45_cppflags="${CPPFLAGS}"
46_ldflags="${LDFLAGS}"
47
48
49AC_ARG_WITH(zlib,
50[  --with-zlib[=DIR]       use libz in DIR],[
51  if test "$withval" != "no" -a "$withval" != "yes"; then
52    Z_DIR=$withval
53    CPPFLAGS="${CPPFLAGS} -I$withval/include"
54    LDFLAGS="${LDFLAGS} -L$withval/lib"
55  fi
56])
57if test "$with_zlib" = "no"; then
58    echo "Disabling compression support"
59else
60    AC_CHECK_HEADERS(zlib.h,
61        AC_CHECK_LIB(z, gzread,[
62            AC_DEFINE(HAVE_LIBZ)
63            if test "x${Z_DIR}" != "x"; then
64                Z_CFLAGS="-I${Z_DIR}/include"
65                Z_LIBS="-L${Z_DIR}/lib -lz"
66                [case ${host} in
67                    *-*-solaris*)
68                        Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
69                        ;;
70                esac]
71            else
72                Z_LIBS="-lz"
73            fi]))
74fi
75
76AC_SUBST(Z_CFLAGS)
77AC_SUBST(Z_LIBS)
78
79CPPFLAGS=${_cppflags}
80LDFLAGS=${_ldflags}
81
82dnl Checks for header files.
83AC_HEADER_DIRENT
84AC_HEADER_STDC
85AC_CHECK_HEADERS([fcntl.h])
86AC_CHECK_HEADERS([unistd.h])
87AC_CHECK_HEADERS([ctype.h])
88AC_CHECK_HEADERS([dirent.h])
89AC_CHECK_HEADERS([errno.h])
90AC_CHECK_HEADERS([malloc.h])
91AC_CHECK_HEADERS([stdarg.h])
92AC_CHECK_HEADERS([sys/stat.h])
93AC_CHECK_HEADERS([sys/types.h])
94AC_CHECK_HEADERS([time.h])
95AC_CHECK_HEADERS([ansidecl.h])
96AC_CHECK_HEADERS([ieeefp.h])
97AC_CHECK_HEADERS([nan.h])
98AC_CHECK_HEADERS([math.h])
99AC_CHECK_HEADERS([fp_class.h])
100AC_CHECK_HEADERS([float.h])
101AC_CHECK_HEADERS([stdlib.h])
102AC_CHECK_HEADERS([sys/socket.h], [], [],
103[#if HAVE_SYS_TYPES_H
104# include <sys/types.h>
105# endif
106])
107AC_CHECK_HEADERS([netinet/in.h], [], [],
108[#if HAVE_SYS_TYPES_H
109# include <sys/types.h>
110# endif
111])
112AC_CHECK_HEADERS([arpa/inet.h], [], [],
113[#if HAVE_SYS_TYPES_H
114# include <sys/types.h>
115# endif
116#if HAVE_ARPA_INET_H
117# include <arpa/inet.h>
118# endif
119])
120AC_CHECK_HEADERS([netdb.h])
121AC_CHECK_HEADERS([sys/time.h])
122AC_CHECK_HEADERS([sys/select.h])
123AC_CHECK_HEADERS([sys/mman.h])
124AC_CHECK_HEADERS([sys/timeb.h])
125AC_CHECK_HEADERS([signal.h])
126AC_CHECK_HEADERS([arpa/nameser.h], [], [],
127[#if HAVE_SYS_TYPES_H
128# include <sys/types.h>
129# endif
130])
131AC_CHECK_HEADERS([resolv.h], [], [],
132[#if HAVE_SYS_TYPES_H
133# include <sys/types.h>
134# endif
135#if HAVE_NETINET_IN_H
136# include <netinet/in.h>
137# endif
138#if HAVE_ARPA_NAMESER_H
139# include <arpa/nameser.h>
140# endif
141])
142
143dnl Specific dir for HTML output ?
144if test "x$with_html_dir" = "x" ; then
145  HTML_DIR='$(prefix)/doc'
146else
147  HTML_DIR=$with_html_dir
148fi
149
150AC_SUBST(HTML_DIR)
151
152dnl Checks for library functions.
153AC_FUNC_STRFTIME
154AC_CHECK_FUNCS(strdup strndup strerror)
155AC_CHECK_FUNCS(finite isnand fp_class class fpclass)
156AC_CHECK_FUNCS(strftime localtime gettimeofday ftime)
157AC_CHECK_FUNCS(stat _stat signal)
158
159dnl Checking the standard string functions availability
160AC_CHECK_FUNCS(printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf,,
161               NEED_TRIO=1)
162
163dnl Checks for inet libraries:
164AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent))
165AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
166AC_CHECK_FUNC(connect, , AC_CHECK_LIB(inet, connect))
167
168dnl Determine what socket length (socklen_t) data type is
169AC_MSG_CHECKING([for type of socket length (socklen_t)])
170AC_TRY_COMPILE2([
171#include <stddef.h>
172#include <sys/types.h>
173#include <sys/socket.h>],[
174(void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)],[
175  AC_MSG_RESULT(socklen_t *)
176  SOCKLEN_T=socklen_t],[
177  AC_TRY_COMPILE2([
178#include <stddef.h>
179#include <sys/types.h>
180#include <sys/socket.h>],[
181(void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)],[
182    AC_MSG_RESULT(size_t *)
183    SOCKLEN_T=size_t],[
184    AC_TRY_COMPILE2([
185#include <stddef.h>
186#include <sys/types.h>
187#include <sys/socket.h>],[
188(void)getsockopt (1, 1, 1, NULL, (int *)NULL)],[
189      AC_MSG_RESULT(int *)
190      SOCKLEN_T=int],[
191      AC_MSG_WARN(could not determine)])])])
192AC_DEFINE_UNQUOTED(SOCKLEN_T, $SOCKLEN_T)
193
194dnl Checks for isnan in libm if not in libc
195AC_CHECK_FUNC(isnan, , AC_CHECK_LIB(m, isnan,
196  [AC_DEFINE(HAVE_ISNAN)]))
197
198AC_CHECK_FUNC(isinf, AC_DEFINE(HAVE_ISINF) , AC_CHECK_LIB(m, isinf,
199  [AC_DEFINE(HAVE_ISINF)]))
200
201XML_LIBDIR='-L${libdir}'
202XML_INCLUDEDIR='-I${includedir}/libxml2'
203
204dnl
205dnl Extra flags
206dnl
207XML_CFLAGS=""
208RDL_LIBS=""
209
210dnl
211dnl Workaround for native compilers
212dnl  HP  : http://bugs.gnome.org/db/31/3163.html
213dnl  DEC : Enable NaN/Inf
214dnl
215if test "${GCC}" != "yes" ; then
216    case "${host}" in
217          *-*-hpux* )
218               CFLAGS="${CFLAGS} -Wp,-H30000"
219               ;;
220          *-dec-osf* )
221               CFLAGS="${CFLAGS} -ieee"
222               ;;
223    esac
224else
225    CFLAGS="${CFLAGS} -Wall"
226    case "${host}" in
227          alpha*-*-linux* )
228               CFLAGS="${CFLAGS} -mieee"
229               ;;
230          alpha*-*-osf* )
231               CFLAGS="${CFLAGS} -mieee"
232               ;;
233    esac
234fi
235case ${host} in
236    *-*-solaris*)
237        XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
238        ;;
239    hppa*-hp-mpeix)
240        NEED_TRIO=1
241        ;;
242esac
243
244
245dnl
246dnl check for python
247dnl
248
249PYTHON=
250PYTHON_VERSION=
251PYTHON_INCLUDES=
252PYTHON_SITE_PACKAGES=
253AC_ARG_WITH(python, [  --with-python[=DIR]    Build Python bindings if found])
254if test "$with_python" != "no" ; then
255    if test -x "$with_python/bin/python"
256    then
257        echo Found python in $with_python/bin/python
258        PYTHON="$with_python/bin/python"
259    else
260        if test -x "$with_python"
261        then
262            echo Found python in $with_python
263            PYTHON="$with_python"
264        else
265            AC_PATH_PROG(PYTHON, python python2.3 python2.2 python2.1 python2.0 python1.6 python1.5)
266        fi
267    fi
268    if test "$PYTHON" != ""
269    then
270        PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"`
271        echo Found Python version $PYTHON_VERSION
272    fi
273    if test "$PYTHON_VERSION" != ""
274    then
275        if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
276           -d $with_python/lib/python$PYTHON_VERSION/site-packages
277        then
278            PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
279            PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
280        else
281            if test -r $prefix/include/python$PYTHON_VERSION/Python.h
282            then
283                PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)'
284                PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
285            else
286                if test -r /usr/include/python$PYTHON_VERSION/Python.h
287                then
288                    PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
289                    PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
290                else
291                    echo could not find python$PYTHON_VERSION/Python.h
292                fi
293            fi
294            if ! test -d "$PYTHON_SITE_PACKAGES"
295            then
296                    PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
297            fi
298        fi
299    fi
300fi
301AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "")
302if test "$PYTHON_INCLUDES" != ""
303then
304    PYTHON_SUBDIR=python
305else
306    PYTHON_SUBDIR=
307fi
308AC_SUBST(PYTHON_SUBDIR)
309
310dnl
311dnl Tester makes use of readline if present
312dnl
313_cppflags="${CPPFLAGS}"
314_ldflags="${LDFLAGS}"
315
316AC_ARG_WITH(readline,
317[  --with-readline=DIR     use readline in DIR],[
318  if test "$withval" != "no" -a "$withval" != "yes"; then
319    RDL_DIR=$withval
320    CPPFLAGS="${CPPFLAGS} -I$withval/include"
321    LDFLAGS="${LDFLAGS} -L$withval/lib"
322  fi
323])
324
325dnl
326dnl specific tests to setup DV's devel environment with debug etc ...
327dnl (-Wunreachable-code)
328dnl
329if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ; then
330    if test "${with_mem_debug}" = "" ; then
331        with_mem_debug="yes"
332    fi
333    if test "${with_docbook}" = "" ; then
334        with_docbook="yes"
335    fi
336    CFLAGS="-g -O -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls "
337    STATIC_BINARIES="-static"
338dnl -Wcast-qual -ansi
339else
340    STATIC_BINARIES=
341fi
342AC_SUBST(STATIC_BINARIES)
343
344dnl
345dnl Check for trio string functions
346dnl
347
348if test "${NEED_TRIO}" = "1" ; then
349    echo Adding trio library for string functions
350    WITH_TRIO=1
351else   
352    WITH_TRIO=0
353fi
354AM_CONDITIONAL(WITH_TRIO_SOURCES, test "${NEED_TRIO}" = "1")
355AC_SUBST(WITH_TRIO)
356
357dnl
358dnl Aloow to enable/disable various pieces
359dnl
360
361THREAD_LIBS=""
362WITH_THREADS=0
363THREAD_CFLAGS=""
364TEST_THREADS=""
365
366AC_ARG_WITH(threads, [  --with-threads          Add multithread support(off)])
367if test "$with_threads" = "yes" ; then
368    echo Enabling multithreaded support
369
370    AC_CHECK_HEADER(pthread.h,
371        AC_CHECK_LIB(pthread, pthread_join,[
372           THREAD_LIBS="-lpthread"
373           AC_DEFINE(HAVE_LIBPTHREAD)
374           AC_DEFINE(HAVE_PTHREAD_H)
375           WITH_THREADS="1"]))
376
377    if test "$WITH_THREADS" = "1" ; then
378        THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
379        TEST_THREADS="Threadtests"
380    fi
381fi
382AC_ARG_WITH(thread-alloc, [  --with-thread-alloc     Add per-thread memory(off)])
383if test "$with_threads_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
384    THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED"
385fi
386
387AC_SUBST(THREAD_LIBS)
388AC_SUBST(WITH_THREADS)
389AC_SUBST(THREAD_CFLAGS)
390AC_SUBST(TEST_THREADS)
391
392AC_ARG_WITH(history, [  --with-history          Add history support to xmllint shell(off)])
393if test "$with_history" = "yes" ; then
394    echo Enabling xmllint shell history
395    dnl check for terminal library. this is a very cool solution
396    dnl from octave's configure.in
397    unset tcap
398    for termlib in ncurses curses termcap terminfo termlib; do
399        AC_CHECK_LIB(${termlib}, tputs, [tcap="-l$termlib"])
400        test -n "$tcap" && break
401    done
402
403    AC_CHECK_HEADER(readline/history.h,
404        AC_CHECK_LIB(history, append_history,[
405           RDL_LIBS="-lhistory"
406           AC_DEFINE(HAVE_LIBHISTORY)]))
407    AC_CHECK_HEADER(readline/readline.h,
408        AC_CHECK_LIB(readline, readline,[
409           RDL_LIBS="-lreadline $RDL_LIBS $tcap"
410           AC_DEFINE(HAVE_LIBREADLINE)], , $tcap))
411    if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
412        CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
413        RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
414    else
415        CPPFLAGS=${_cppflags}
416    fi
417    LDFLAGS=${_ldflags}
418fi
419
420AC_SUBST(WITH_FTP)
421AC_SUBST(FTP_OBJ)
422AC_ARG_WITH(ftp, [  --with-ftp              Add the FTP support (on)])
423if test "$with_ftp" = "no" ; then
424    echo Disabling FTP support
425    WITH_FTP=0
426    FTP_OBJ=
427else   
428    WITH_FTP=1
429    FTP_OBJ=nanoftp.o
430fi
431AC_SUBST(WITH_FTP)
432AC_SUBST(FTP_OBJ)
433
434AC_ARG_WITH(http, [  --with-http             Add the HTTP support (on)])
435if test "$with_http" = "no" ; then
436    echo Disabling HTTP support
437    WITH_HTTP=0
438    HTTP_OBJ=
439else   
440    WITH_HTTP=1
441    HTTP_OBJ=nanohttp.o
442fi
443AC_SUBST(WITH_HTTP)
444AC_SUBST(HTTP_OBJ)
445
446AC_ARG_WITH(html, [  --with-html             Add the HTML support (on)])
447if test "$with_html" = "no" ; then
448    echo Disabling HTML support
449    WITH_HTML=0
450    HTML_OBJ=
451else   
452    WITH_HTML=1
453    HTML_OBJ="HTMLparser.o HTMLtree.o"
454fi
455AC_SUBST(WITH_HTML)
456AC_SUBST(HTML_OBJ)
457
458AC_ARG_WITH(catalog, [  --with-catalog          Add the Catalog support (on)])
459if test "$with_catalog" = "no" ; then
460    echo Disabling Catalog support
461    WITH_CATALOG=0
462    CATALOG_OBJ=
463else   
464    WITH_CATALOG=1
465    CATALOG_OBJ="catalog.o"
466fi
467AC_SUBST(WITH_CATALOG)
468AC_SUBST(CATALOG_OBJ)
469
470AC_ARG_WITH(docbook, [  --with-docbook          Add Docbook SGML support (on)])
471if test "$with_docbook" = "no" ; then
472    echo Disabling Docbook support
473    WITH_DOCB=0
474    DOCB_OBJ=
475else   
476    WITH_DOCB=1
477    DOCB_OBJ="DOCBparser.o"
478fi
479AC_SUBST(WITH_DOCB)
480AC_SUBST(DOCB_OBJ)
481
482
483AC_ARG_WITH(xpath, [  --with-xpath            Add the XPATH support (on)])
484if test "$with_xpath" = "no" ; then
485    echo Disabling XPATH support
486    with_xptr="no"
487    with_c14n="no"
488    with_xinclude="no"
489    WITH_XPATH=0
490    XPATH_OBJ=
491else   
492    WITH_XPATH=1
493    XPATH_OBJ=xpath.o
494fi
495AC_SUBST(WITH_XPATH)
496AC_SUBST(XPATH_OBJ)
497
498AC_ARG_WITH(xptr, [  --with-xptr             Add the XPointer support (on)])
499if test "$with_xptr" = "no" ; then
500    echo Disabling XPointer support
501    WITH_XPTR=0
502    XPTR_OBJ=
503else   
504    WITH_XPTR=1
505    XPTR_OBJ=xpointer.o
506fi
507AC_SUBST(WITH_XPTR)
508AC_SUBST(XPTR_OBJ)
509
510AC_ARG_WITH(c14n, [  --with-c14n             Add the Canonicalization support (on)])
511if test "$with_c14n" = "no" ; then
512    echo Disabling C14N support
513    WITH_C14N=0
514    C14N_OBJ=
515else   
516    WITH_C14N=1
517    C14N_OBJ="c14n.c"
518fi
519AC_SUBST(WITH_C14N)
520AC_SUBST(C14N_OBJ)
521
522AC_ARG_WITH(xinclude, [  --with-xinclude         Add the XInclude support (on)])
523if test "$with_xinclude" = "no" ; then
524    echo Disabling XInclude support
525    WITH_XINCLUDE=0
526    XINCLUDE_OBJ=
527    with_xinclude="no"
528else   
529    WITH_XINCLUDE=1
530    XINCLUDE_OBJ=xinclude.o
531fi
532AC_SUBST(WITH_XINCLUDE)
533AC_SUBST(XINCLUDE_OBJ)
534
535WITH_ICONV=0
536AC_ARG_WITH(iconv, [  --with-iconv[=DIR]      Add ICONV support (on)])
537if test "$with_iconv" = "no" ; then
538    echo Disabling ICONV support
539else
540    if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
541        CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
542        # Export this since our headers include iconv.h
543        XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
544        ICONV_LIBS="-L$with_iconv/lib"
545    fi
546
547    AC_CHECK_HEADER(iconv.h,
548        AC_MSG_CHECKING(for iconv)
549        AC_TRY_LINK([#include <stdlib.h>
550#include <iconv.h>],[
551iconv_t cd = iconv_open ("","");
552iconv (cd, NULL, NULL, NULL, NULL);],[
553            AC_MSG_RESULT(yes)
554            WITH_ICONV=1],[
555            AC_MSG_RESULT(no)
556            AC_MSG_CHECKING(for iconv in -liconv)
557
558            _ldflags="${LDFLAGS}"
559            _libs="${LIBS}"
560            LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
561            LIBS="${LIBS} -liconv"
562
563            AC_TRY_LINK([#include <stdlib.h>
564#include <iconv.h>],[
565iconv_t cd = iconv_open ("","");
566iconv (cd, NULL, NULL, NULL, NULL);],[
567                AC_MSG_RESULT(yes)
568                WITH_ICONV=1
569                ICONV_LIBS="${ICONV_LIBS} -liconv"
570                LIBS="${_libs}"
571                LDFLAGS="${_ldflags}"],[
572                AC_MSG_RESULT(no)
573                LIBS="${_libs}"
574                LDFLAGS="${_ldflags}"])]))
575fi
576M_LIBS="-lm"
577XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
578AC_SUBST(WITH_ICONV)
579
580AC_ARG_WITH(schemas, [  --with-schemas              Add experimental Schemas/RelaxNG support (on)])
581if test "$with_schemas" = "no" ; then
582    echo "Disabled Schemas/Relax-NG support"
583    WITH_SCHEMAS=0
584    TEST_SCHEMAS=
585else   
586    echo "Enabled Schemas/Relax-NG support"
587    WITH_SCHEMAS=1
588    TEST_SCHEMAS="Schemastests Relaxtests"
589    with_regexps=yes
590fi
591AC_SUBST(WITH_SCHEMAS)
592AC_SUBST(TEST_SCHEMAS)
593
594AC_ARG_WITH(regexps, [  --with-regexps              Add Regular Expressions support (on)])
595if test "$with_regexps" = "no" ; then
596    echo Disabling Regexps support
597    WITH_REGEXPS=0
598    TEST_REGEXPS=
599else   
600    WITH_REGEXPS=1
601    TEST_REGEXPS="Regexptests Automatatests"
602fi
603AC_SUBST(WITH_REGEXPS)
604AC_SUBST(TEST_REGEXPS)
605
606AC_ARG_WITH(debug, [  --with-debug            Add the debugging module (on)])
607if test "$with_debug" = "no" ; then
608    echo Disabling DEBUG support
609    WITH_DEBUG=0
610    DEBUG_OBJ=
611else   
612    WITH_DEBUG=1
613    DEBUG_OBJ=debugXML.o
614fi
615AC_SUBST(WITH_DEBUG)
616AC_SUBST(DEBUG_OBJ)
617
618AC_ARG_WITH(mem_debug, [  --with-mem-debug        Add the memory debugging module (off)])
619if test "$with_mem_debug" = "yes" ; then
620    echo Enabling memory debug support
621    WITH_MEM_DEBUG=1
622else   
623    WITH_MEM_DEBUG=0
624fi
625AC_SUBST(WITH_MEM_DEBUG)
626
627AC_SUBST(CFLAGS)
628AC_SUBST(XML_CFLAGS)
629
630AC_SUBST(XML_LIBDIR)
631AC_SUBST(XML_LIBS)
632AC_SUBST(ICONV_LIBS)
633AC_SUBST(XML_INCLUDEDIR)
634AC_SUBST(HTML_DIR)
635AC_SUBST(HAVE_ISNAN)
636AC_SUBST(HAVE_ISINF)
637AC_SUBST(PYTHON)
638AC_SUBST(PYTHON_VERSION)
639AC_SUBST(PYTHON_INCLUDES)
640AC_SUBST(PYTHON_SITE_PACKAGES)
641
642AC_SUBST(M_LIBS)
643AC_SUBST(RDL_LIBS)
644
645dnl for the spec file
646RELDATE=`date +'%a %b %e %Y'`
647AC_SUBST(RELDATE)
648
649rm -f COPYING.LIB COPYING
650ln -s Copyright COPYING
651
652AC_OUTPUT(libxml.spec Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc xml2Conf.sh python/setup.py)
653
654chmod +x xml2-config xml2Conf.sh python/setup.py
Note: See TracBrowser for help on using the repository browser.