OLD | NEW |
1 dnl Process this file with autoconf to produce a configure script. | 1 dnl Process this file with autoconf to produce a configure script. |
2 AC_PREREQ([2.63]) | 2 AC_PREREQ([2.63]) |
3 AC_INIT | 3 AC_INIT |
4 AC_CONFIG_SRCDIR([entities.c]) | 4 AC_CONFIG_SRCDIR([entities.c]) |
5 AC_CONFIG_HEADERS([config.h]) | 5 AC_CONFIG_HEADERS([config.h]) |
6 AM_MAINTAINER_MODE([enable]) | 6 AM_MAINTAINER_MODE([enable]) |
7 AC_CONFIG_MACRO_DIR([m4]) | 7 AC_CONFIG_MACRO_DIR([m4]) |
8 AC_CANONICAL_HOST | 8 AC_CANONICAL_HOST |
9 | 9 |
10 LIBXML_MAJOR_VERSION=2 | 10 LIBXML_MAJOR_VERSION=2 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 AC_ARG_WITH(python_install_dir, | 152 AC_ARG_WITH(python_install_dir, |
153 [ --with-python-install-dir=DIR | 153 [ --with-python-install-dir=DIR |
154 install Python bindings in DIR]) | 154 install Python bindings in DIR]) |
155 AC_ARG_WITH(reader, | 155 AC_ARG_WITH(reader, |
156 [ --with-reader add the xmlReader parsing interface (on)]) | 156 [ --with-reader add the xmlReader parsing interface (on)]) |
157 AC_ARG_WITH(readline, | 157 AC_ARG_WITH(readline, |
158 [ --with-readline=DIR use readline in DIR],[ | 158 [ --with-readline=DIR use readline in DIR],[ |
159 if test "$withval" != "no" -a "$withval" != "yes"; then | 159 if test "$withval" != "no" -a "$withval" != "yes"; then |
160 RDL_DIR=$withval | 160 RDL_DIR=$withval |
161 CPPFLAGS="${CPPFLAGS} -I$withval/include" | 161 CPPFLAGS="${CPPFLAGS} -I$withval/include" |
162 LIBS="${LIBS} -L$withval/lib" | 162 LDFLAGS="${LDFLAGS} -L$withval/lib" |
163 fi | 163 fi |
164 ]) | 164 ]) |
165 AC_ARG_WITH(regexps, | 165 AC_ARG_WITH(regexps, |
166 [ --with-regexps add Regular Expressions support (on)]) | 166 [ --with-regexps add Regular Expressions support (on)]) |
167 AC_ARG_WITH(run_debug, | 167 AC_ARG_WITH(run_debug, |
168 [ --with-run-debug add the runtime debugging module (off)]) | 168 [ --with-run-debug add the runtime debugging module (off)]) |
169 AC_ARG_WITH(sax1, | 169 AC_ARG_WITH(sax1, |
170 [ --with-sax1 add the older SAX1 interface (on)]) | 170 [ --with-sax1 add the older SAX1 interface (on)]) |
171 AC_ARG_WITH(schemas, | 171 AC_ARG_WITH(schemas, |
172 [ --with-schemas add Relax-NG and Schemas support (on)]) | 172 [ --with-schemas add Relax-NG and Schemas support (on)]) |
(...skipping 15 matching lines...) Expand all Loading... |
188 [ --with-xpath add the XPATH support (on)]) | 188 [ --with-xpath add the XPATH support (on)]) |
189 AC_ARG_WITH(xptr, | 189 AC_ARG_WITH(xptr, |
190 [ --with-xptr add the XPointer support (on)]) | 190 [ --with-xptr add the XPointer support (on)]) |
191 AC_ARG_WITH(modules, | 191 AC_ARG_WITH(modules, |
192 [ --with-modules add the dynamic modules support (on)]) | 192 [ --with-modules add the dynamic modules support (on)]) |
193 AC_ARG_WITH(zlib, | 193 AC_ARG_WITH(zlib, |
194 [ --with-zlib[[=DIR]] use libz in DIR],[ | 194 [ --with-zlib[[=DIR]] use libz in DIR],[ |
195 if test "$withval" != "no" -a "$withval" != "yes"; then | 195 if test "$withval" != "no" -a "$withval" != "yes"; then |
196 Z_DIR=$withval | 196 Z_DIR=$withval |
197 CPPFLAGS="${CPPFLAGS} -I$withval/include" | 197 CPPFLAGS="${CPPFLAGS} -I$withval/include" |
198 LIBS="${LIBS} -L$withval/lib" | 198 LDFLAGS="${LDFLAGS} -L$withval/lib" |
199 fi | 199 fi |
200 ]) | 200 ]) |
201 AC_ARG_WITH(lzma, | 201 AC_ARG_WITH(lzma, |
202 [ --with-lzma[[=DIR]] use liblzma in DIR],[ | 202 [ --with-lzma[[=DIR]] use liblzma in DIR],[ |
203 if test "$withval" != "no" -a "$withval" != "yes"; then | 203 if test "$withval" != "no" -a "$withval" != "yes"; then |
204 LZMA_DIR=$withval | 204 LZMA_DIR=$withval |
205 CPPFLAGS="${CPPFLAGS} -I$withval/include" | 205 CPPFLAGS="${CPPFLAGS} -I$withval/include" |
206 LIBS="${LIBS} -L$withval/lib" | 206 LDFLAGS="${LDFLAGS} -L$withval/lib" |
207 fi | 207 fi |
208 ]) | 208 ]) |
209 AC_ARG_WITH(coverage, | 209 AC_ARG_WITH(coverage, |
210 [ --with-coverage build for code coverage with GCC (off)]) | 210 [ --with-coverage build for code coverage with GCC (off)]) |
211 | 211 |
212 AC_ARG_ENABLE(rebuild-docs, | 212 AC_ARG_ENABLE(rebuild-docs, |
213 [ --enable-rebuild-docs[[=yes/no]] rebuild some generated docs [[default=no]]]
) | 213 [ --enable-rebuild-docs[[=yes/no]] rebuild some generated docs [[default=no]]]
) |
214 if test "$enable_rebuild_docs" = "yes" -a "$srcdir" != "."; then | 214 if test "$enable_rebuild_docs" = "yes" -a "$srcdir" != "."; then |
215 AC_MSG_ERROR([cannot rebuild docs when builddir != srcdir]) | 215 AC_MSG_ERROR([cannot rebuild docs when builddir != srcdir]) |
216 fi | 216 fi |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 echo "Disabling compression support" | 392 echo "Disabling compression support" |
393 else | 393 else |
394 # Try pkg-config first so that static linking works. | 394 # Try pkg-config first so that static linking works. |
395 # If this succeeeds, we ignore the WITH_ZLIB directory. | 395 # If this succeeeds, we ignore the WITH_ZLIB directory. |
396 PKG_CHECK_MODULES([Z],[zlib], | 396 PKG_CHECK_MODULES([Z],[zlib], |
397 [have_libz=yes], | 397 [have_libz=yes], |
398 [have_libz=no]) | 398 [have_libz=no]) |
399 | 399 |
400 if test "x$have_libz" = "xno"; then | 400 if test "x$have_libz" = "xno"; then |
401 AC_CHECK_HEADERS(zlib.h, | 401 AC_CHECK_HEADERS(zlib.h, |
402 [SAVE_LDFLAGS="${LDFLAGS}" | |
403 LDFLAGS="-L${Z_DIR}/lib" | |
404 AC_CHECK_LIB(z, gzread,[ | 402 AC_CHECK_LIB(z, gzread,[ |
405 have_libz=yes | 403 have_libz=yes |
406 if test "x${Z_DIR}" != "x"; then | 404 if test "x${Z_DIR}" != "x"; then |
407 Z_CFLAGS="-I${Z_DIR}/include" | 405 Z_CFLAGS="-I${Z_DIR}/include" |
408 Z_LIBS="-L${Z_DIR}/lib -lz" | 406 Z_LIBS="-L${Z_DIR}/lib -lz" |
409 [case ${host} in | 407 [case ${host} in |
410 *-*-solaris*) | 408 *-*-solaris*) |
411 Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz" | 409 Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz" |
412 ;; | 410 ;; |
413 esac] | 411 esac] |
414 else | 412 else |
415 Z_LIBS="-lz" | 413 Z_LIBS="-lz" |
416 fi], | 414 fi], |
417 [have_libz=no]) | 415 [have_libz=no]) |
418 LDFLAGS="${SAVE_LDFLAGS}"]) | 416 ) |
419 else | 417 else |
420 # we still need to check for zlib.h header | 418 # we still need to check for zlib.h header |
421 AC_CHECK_HEADERS([zlib.h]) | 419 AC_CHECK_HEADERS([zlib.h]) |
422 fi | 420 fi |
423 | 421 |
424 # Found the library via either method? | 422 # Found the library via either method? |
425 if test "x$have_libz" = "xyes"; then | 423 if test "x$have_libz" = "xyes"; then |
426 AC_DEFINE([HAVE_LIBZ], [1], [Have compression library]) | 424 AC_DEFINE([HAVE_LIBZ], [1], [Have compression library]) |
427 WITH_ZLIB=1 | 425 WITH_ZLIB=1 |
428 fi | 426 fi |
(...skipping 15 matching lines...) Expand all Loading... |
444 # If this succeeeds, we ignore the WITH_LZMA directory. | 442 # If this succeeeds, we ignore the WITH_LZMA directory. |
445 PKG_CHECK_MODULES([LZMA],[liblzma], | 443 PKG_CHECK_MODULES([LZMA],[liblzma], |
446 [have_liblzma=yes], | 444 [have_liblzma=yes], |
447 [have_liblzma=no]) | 445 [have_liblzma=no]) |
448 | 446 |
449 # If pkg-config failed, fall back to AC_CHECK_LIB. This | 447 # If pkg-config failed, fall back to AC_CHECK_LIB. This |
450 # will not pick up the necessary LIBS flags for liblzma's | 448 # will not pick up the necessary LIBS flags for liblzma's |
451 # private dependencies, though, so static linking may fail. | 449 # private dependencies, though, so static linking may fail. |
452 if test "x$have_liblzma" = "xno"; then | 450 if test "x$have_liblzma" = "xno"; then |
453 AC_CHECK_HEADERS(lzma.h, | 451 AC_CHECK_HEADERS(lzma.h, |
454 [SAVE_LDFLAGS="${LDFLAGS}" | |
455 LDFLAGS="-L${LZMA_DIR}/lib" | |
456 AC_CHECK_LIB(lzma, lzma_code,[ | 452 AC_CHECK_LIB(lzma, lzma_code,[ |
457 have_liblzma=yes | 453 have_liblzma=yes |
458 if test "x${LZMA_DIR}" != "x"; then | 454 if test "x${LZMA_DIR}" != "x"; then |
459 LZMA_CFLAGS="-I${LZMA_DIR}/include" | 455 LZMA_CFLAGS="-I${LZMA_DIR}/include" |
460 LZMA_LIBS="-L${LZMA_DIR}/lib -llzma" | 456 LZMA_LIBS="-L${LZMA_DIR}/lib -llzma" |
461 else | 457 else |
462 LZMA_LIBS="-llzma" | 458 LZMA_LIBS="-llzma" |
463 fi], | 459 fi], |
464 [have_liblzma=no]) | 460 [have_liblzma=no]) |
465 » LDFLAGS="${SAVE_LDFLAGS}"]) | 461 » ) |
466 else | 462 else |
467 # we still need to check for lzma,h header | 463 # we still need to check for lzma,h header |
468 AC_CHECK_HEADERS([lzma.h]) | 464 AC_CHECK_HEADERS([lzma.h]) |
469 fi | 465 fi |
470 | 466 |
471 # Found the library via either method? | 467 # Found the library via either method? |
472 if test "x$have_liblzma" = "xyes"; then | 468 if test "x$have_liblzma" = "xyes"; then |
473 AC_DEFINE([HAVE_LIBLZMA], [1], [Have compression library]) | 469 AC_DEFINE([HAVE_LIBLZMA], [1], [Have compression library]) |
474 WITH_LZMA=1 | 470 WITH_LZMA=1 |
475 fi | 471 fi |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 if test "$with_fexceptions" = "yes" | 784 if test "$with_fexceptions" = "yes" |
789 then | 785 then |
790 # | 786 # |
791 # Not activated by default because this inflates the code size | 787 # Not activated by default because this inflates the code size |
792 # Used to allow propagation of C++ exceptions through the library | 788 # Used to allow propagation of C++ exceptions through the library |
793 # | 789 # |
794 CFLAGS="${CFLAGS} -fexceptions" | 790 CFLAGS="${CFLAGS} -fexceptions" |
795 fi | 791 fi |
796 | 792 |
797 # warnings we'd like to see | 793 # warnings we'd like to see |
798 CFLAGS="${CFLAGS} -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -W
switch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparent
heses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -
Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-de
cls" | 794 CFLAGS="${CFLAGS} -pedantic -W -Wformat -Wno-format-extra-args -Wunused -Wim
plicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wchar-subscripts -Wuninitia
lized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggr
egate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline
-Wredundant-decls" |
799 # warnings we'd like to supress | 795 # warnings we'd like to supress |
800 CFLAGS="${CFLAGS} -Wno-long-long" | 796 CFLAGS="${CFLAGS} -Wno-long-long" |
801 case "${host}" in | 797 case "${host}" in |
802 alpha*-*-linux* ) | 798 alpha*-*-linux* ) |
803 CFLAGS="${CFLAGS} -mieee" | 799 CFLAGS="${CFLAGS} -mieee" |
804 ;; | 800 ;; |
805 alpha*-*-osf* ) | 801 alpha*-*-osf* ) |
806 CFLAGS="${CFLAGS} -mieee" | 802 CFLAGS="${CFLAGS} -mieee" |
807 ;; | 803 ;; |
808 esac | 804 esac |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 if test "${with_mem_debug}" = "" ; then | 1003 if test "${with_mem_debug}" = "" ; then |
1008 echo Activating memory debugging | 1004 echo Activating memory debugging |
1009 with_mem_debug="yes" | 1005 with_mem_debug="yes" |
1010 with_run_debug="yes" | 1006 with_run_debug="yes" |
1011 fi | 1007 fi |
1012 if test "${with_docbook}" = "" ; then | 1008 if test "${with_docbook}" = "" ; then |
1013 with_docbook="yes" | 1009 with_docbook="yes" |
1014 fi | 1010 fi |
1015 fi | 1011 fi |
1016 if test "${GCC}" = "yes" ; then | 1012 if test "${GCC}" = "yes" ; then |
1017 CFLAGS="-g -O -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswit
ch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparenthese
s -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstr
ict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls
-Wall" | 1013 CFLAGS="-g -O -pedantic -W -Wformat -Wno-format-extra-args -Wunused -Wimplic
it -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wchar-subscripts -Wuninitialize
d -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregat
e-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wre
dundant-decls -Wall" |
1018 fi | 1014 fi |
1019 STATIC_BINARIES="-static" | 1015 STATIC_BINARIES="-static" |
1020 dnl -Wcast-qual -ansi | 1016 dnl -Wcast-qual -ansi |
1021 else | 1017 else |
1022 STATIC_BINARIES= | 1018 STATIC_BINARIES= |
1023 fi | 1019 fi |
1024 AC_SUBST(STATIC_BINARIES) | 1020 AC_SUBST(STATIC_BINARIES) |
1025 | 1021 |
1026 dnl | 1022 dnl |
1027 dnl Check for trio string functions | 1023 dnl Check for trio string functions |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 rm -f COPYING.LIB COPYING | 1717 rm -f COPYING.LIB COPYING |
1722 ln -s $srcdir/Copyright COPYING | 1718 ln -s $srcdir/Copyright COPYING |
1723 | 1719 |
1724 # keep on one line for cygwin c.f. #130896 | 1720 # keep on one line for cygwin c.f. #130896 |
1725 AC_CONFIG_FILES([libxml2.spec:libxml.spec.in Makefile include/Makefile include/l
ibxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/M
akefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlve
rsion.h libxml-2.0.pc libxml-2.0-uninstalled.pc libxml2-config.cmake]) | 1721 AC_CONFIG_FILES([libxml2.spec:libxml.spec.in Makefile include/Makefile include/l
ibxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/M
akefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlve
rsion.h libxml-2.0.pc libxml-2.0-uninstalled.pc libxml2-config.cmake]) |
1726 AC_CONFIG_FILES([python/setup.py], [chmod +x python/setup.py]) | 1722 AC_CONFIG_FILES([python/setup.py], [chmod +x python/setup.py]) |
1727 AC_CONFIG_FILES([xml2-config], [chmod +x xml2-config]) | 1723 AC_CONFIG_FILES([xml2-config], [chmod +x xml2-config]) |
1728 AC_OUTPUT | 1724 AC_OUTPUT |
1729 | 1725 |
1730 echo Done configuring | 1726 echo Done configuring |
OLD | NEW |