]> granicus.if.org Git - libexpat/commitdiff
configure.ac: Add --without-xmlwf
authorSebastian Pipping <sebastian@pipping.org>
Fri, 11 Aug 2017 20:22:59 +0000 (22:22 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Fri, 11 Aug 2017 20:44:47 +0000 (22:44 +0200)
expat/Changes
expat/Makefile.in
expat/README.md
expat/configure.ac

index f32ea970958dab221ddd245eef29a197db20987d..a3a6f626062b1f184b65a65cf4c28af0adfbf88e 100644 (file)
@@ -10,6 +10,7 @@ Release 2.?.? ?????????????????
             #109  Fix "make check" for non-x86 architectures that default
                     to unsigned type char (-128..127 rather than 0..255)
             #109  coverage.sh: Cover -funsigned-char
+                  Autotools: Introduce --without-xmlwf argument
              #43  CMake: Auto-detect high quality entropy extractors, add new
                     option USE_libbsd=ON to use arc4random_buf of libbsd
              #74  CMake: Add -fno-strict-aliasing only where supported
index 418de268362d57c59ea8c60667676acbe31c6711..f0acfe72c0ef525e1773d74f45bb5fc9b4f07b59 100644 (file)
@@ -47,11 +47,16 @@ LIBRARY = libexpat.la
 
 DESTDIR = $(INSTALL_ROOT)
 
-default:  buildlib xmlwf/xmlwf@EXEEXT@
+XMLWF_ENABLED = test @with_xmlwf@ = yes
+
+
+default:  buildlib
+       if $(XMLWF_ENABLED) ; then $(MAKE) xmlwf/xmlwf@EXEEXT@ ; fi
 
 buildlib: $(LIBRARY) expat.pc
 
-all: $(LIBRARY) expat.pc xmlwf/xmlwf@EXEEXT@ examples/elements examples/outline $(MANFILE)
+all: $(LIBRARY) expat.pc examples/elements examples/outline $(MANFILE)
+       if $(XMLWF_ENABLED) ; then $(MAKE) xmlwf/xmlwf@EXEEXT@ ; fi
 
 clean:
        cd lib && rm -f $(LIBRARY) *.@OBJEXT@ *.lo && rm -rf .libs _libs
@@ -80,7 +85,8 @@ check: tests/runtests@EXEEXT@ tests/runtestspp@EXEEXT@
 $(MANFILE):
        $(MAKE) -C doc xmlwf.1
 
-install: installlib installman installxmlwf
+install: installlib
+       if $(XMLWF_ENABLED) ; then $(MAKE) installman installxmlwf ; fi
 
 .PHONY: installman
 installman: $(MANFILE)
index 0a1777e7eac820a6a2f6b1db34213e485fae2d78..61677e28cf9b1d76ad6e265f3044ce6f38bacf50 100644 (file)
@@ -72,13 +72,16 @@ the directories into which things will be installed.
 
 If you are interested in building Expat to provide document
 information in UTF-16 encoding rather than the default UTF-8, follow
-these instructions (after having run `make distclean`):
+these instructions (after having run `make distclean`).
+Please note that we configure with `--without-xmlwf` as xmlwf does not
+support this mode of compilation (yet):
 
 1. For UTF-16 output as unsigned short (and version/error strings as char),
    run:<br/>
-   `./configure CPPFLAGS=-DXML_UNICODE`<br/>
+   `./configure CPPFLAGS=-DXML_UNICODE --without-xmlwf`<br/>
    For UTF-16 output as `wchar_t` (incl. version/error strings), run:<br/>
-   `./configure CFLAGS="-g -O2 -fshort-wchar" CPPFLAGS=-DXML_UNICODE_WCHAR_T`
+   `./configure CFLAGS="-g -O2 -fshort-wchar" CPPFLAGS=-DXML_UNICODE_WCHAR_T
+       --without-xmlwf`
    <br/>Note: The latter requires libc compiled with `-fshort-wchar`, as well.
 
 1. Edit `Makefile`, changing:<br/>
@@ -87,11 +90,11 @@ these instructions (after having run `make distclean`):
    `LIBRARY = libexpatw.la`<br/>
    (Note the additional "w" in the library name.)
 
-1. Run `make buildlib` (which builds the library only).
-   Or, to save step 2, run `make buildlib LIBRARY=libexpatw.la`.
+1. Run `make` (which excludes xmlwf).
+   Or, to save step 2, run `make LIBRARY=libexpatw.la`.
 
-1. Run `make installlib` (which installs the library only).
-   Or, if step 2 was omitted, run `make installlib LIBRARY=libexpatw.la`.
+1. Run `make install` (again, excludes xmlwf).
+   Or, if step 2 was omitted, run `make install LIBRARY=libexpatw.la`.
 
 Using `DESTDIR` or `INSTALL_ROOT` is enabled, with `INSTALL_ROOT` being the
 default value for `DESTDIR`, and the rest of the make file using only
index 6198707f054ab71fd676a83e1f61cdb43e0a4b7a..b9a0000483117d24d7b2fd8a947e30eb03c53c8f 100644 (file)
@@ -100,6 +100,11 @@ AC_TYPE_SIZE_T
 AC_CHECK_FUNCS(memmove bcopy)
 
 
+AC_ARG_WITH([xmlwf], [
+AS_HELP_STRING([--without-xmlwf], [do not build xmlwf])], [], [with_xmlwf=yes])
+AC_SUBST(with_xmlwf)
+
+
 AC_ARG_WITH([libbsd], [
 AS_HELP_STRING([--with-libbsd], [utilize libbsd (for arc4random_buf)])
 ], [], [with_libbsd=no])