]> granicus.if.org Git - libexpat/commitdiff
Add Karl's instructions for building the UTF-16 version on Unix.
authorFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Mon, 3 Jun 2002 18:46:36 +0000 (18:46 +0000)
committerFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Mon, 3 Jun 2002 18:46:36 +0000 (18:46 +0000)
expat/README

index 41a6d7d25fbd6322b5576435f579e5acf0bcf102..1fb12d0470083c94d93d0fa0510956ff3825383f 100644 (file)
@@ -43,6 +43,35 @@ things and "make install" will install things into their proper
 location.  Note that you need to have write permission into the
 directories into which things will be installed.
 
+If you are interested in building Expat to provide document
+information in UTF-16 rather than the default UTF-8, following these
+instructions:
+
+       1. For UTF-16 output as unsigned short (and version/error
+          strings as char), run:
+
+              ./configure CPPFLAGS=-DXML_UNICODE
+
+          For UTF-16 output as wchar_t (incl. version/error strings),
+          run:
+
+              ./configure CFLAGS="-g -O2 -fshort-wchar" \
+                          PPFLAGS=-DXML_UNICODE_WCHAR_T
+
+       2. Edit the MakeFile, changing:
+
+              LIBRARY = libexpat.la
+
+          to:
+
+              LIBRARY = libexpatw.la
+
+          (Note the additional "w" in the library name.)
+
+       3. Run "make buildlib" (which builds the library only).
+
+       4. Run "make installlib" (which installs the library only).
+
 Note for Solaris users:  The "ar" command is usually located in
 "/usr/ccs/bin", which is not in the default PATH.  You will need to
 add this to your path for the "make" command, and probably also switch