diff options
author | Greg Stein <gstein@users.sourceforge.net> | 2002-05-17 21:30:07 +0000 |
---|---|---|
committer | Greg Stein <gstein@users.sourceforge.net> | 2002-05-17 21:30:07 +0000 |
commit | 9fcff4a9eb14184d58cd579cab0befb4db6aaec9 (patch) | |
tree | 55604734f39adb26308073e5fa6a318fd8fb1b23 | |
parent | d3947b2fef3c8e6a84c0b0a6775ba333a948dd99 (diff) | |
download | libexpat-git-9fcff4a9eb14184d58cd579cab0befb4db6aaec9.tar.gz |
Various configuration fixes, focused primarily around expat_config.h
(which used to be called config.h)
* configure.in:
- change the header name to expat_config.h to prevent any possible
conflict with some other packages 'config.h'
- add a prerequisite on autoconf 2.50 or newer
- shift some acconfig.h values to AC_DEFINE() values
* MANIFEST:
- rename config.h.in to expat_config.h.in
* Makefile.in:
- clean out expat_config.h* instead of config.h*
* acconfig.h:
- remove the XML_NS, XML_DTD, and XML_CONTEXT_BYTES symbols; they
are now defined directly by configure.in
- shift the memmove() compatibility to xmlparse.c, its only consumer
- remove the @BOTTOM@ part since there are no more values to put at
the bottom of expat_config.h.in via acconfig.h
* xmlparse.c:
- switch from config.h to expat_config.h
- insert macro to define memmove() if it isn't available, but
bcopy() is available. also, changed one branch to #error rather
than insert bogus code.
* xmlrole.c:
- tweak the copyright header, per Fred-ism
- remove the unused RCSId[] variable (no other file has these)
- switch from config.h to expat_config.h
* xmltok.c:
- switch from config.h to expat_config.h
-rw-r--r-- | expat/MANIFEST | 2 | ||||
-rw-r--r-- | expat/Makefile.in | 4 | ||||
-rw-r--r-- | expat/acconfig.h | 16 | ||||
-rw-r--r-- | expat/configure.in | 13 | ||||
-rw-r--r-- | expat/lib/xmlparse.c | 16 | ||||
-rw-r--r-- | expat/lib/xmlrole.c | 10 | ||||
-rw-r--r-- | expat/lib/xmltok.c | 2 |
7 files changed, 31 insertions, 32 deletions
diff --git a/expat/MANIFEST b/expat/MANIFEST index 7e52184a..5107dbd4 100644 --- a/expat/MANIFEST +++ b/expat/MANIFEST @@ -3,9 +3,9 @@ COPYING MANIFEST Makefile.in README -config.h.in configure configure.in +expat_config.h.in conftools/PrintPath conftools/ac_c_bigendian_cross.m4 conftools/config.guess diff --git a/expat/Makefile.in b/expat/Makefile.in index 2c5765e8..c6061a6b 100644 --- a/expat/Makefile.in +++ b/expat/Makefile.in @@ -66,11 +66,11 @@ clean: find . -name core | xargs rm -f distclean: clean - rm -f config.h config.status config.log config.cache libtool + rm -f expat_config.h config.status config.log config.cache libtool rm -f Makefile extraclean: distclean - rm -f config.h.in configure + rm -f expat_config.h.in configure rm -f conftools/config.guess conftools/config.sub rm -f conftools/ltconfig conftools/ltmain.sh diff --git a/expat/acconfig.h b/expat/acconfig.h index 1283ad61..ce186c40 100644 --- a/expat/acconfig.h +++ b/expat/acconfig.h @@ -5,19 +5,3 @@ #else #define XML_BYTE_ORDER 12 #endif - -@BOTTOM@ - -#define XML_NS -#define XML_DTD - -#define XML_CONTEXT_BYTES 1024 - -#ifndef HAVE_MEMMOVE -#ifdef HAVE_BCOPY -#define memmove(d,s,l) bcopy((s),(d),(l)) -#else -#define memmove(d,s,l) ;punting on memmove; -#endif - -#endif diff --git a/expat/configure.in b/expat/configure.in index 12ab407a..1cd9e7a2 100644 --- a/expat/configure.in +++ b/expat/configure.in @@ -10,6 +10,9 @@ dnl under the terms of the License (based on the MIT/X license) contained dnl in the file COPYING that comes with this distribution. dnl +dnl Ensure that subversion is configured with autoconf 2.50 or newer +AC_PREREQ(2.50) + AC_INIT(Makefile.in) AC_CONFIG_AUX_DIR(conftools) @@ -29,7 +32,7 @@ LIBCURRENT=1 LIBREVISION=0 LIBAGE=1 -AC_CONFIG_HEADER(config.h) +AC_CONFIG_HEADER(expat_config.h) sinclude(conftools/libtool.m4) sinclude(conftools/ac_c_bigendian_cross.m4) @@ -87,6 +90,14 @@ AC_SUBST(FILEMAP) AC_CHECK_FUNCS(memmove bcopy) +dnl some basic configuration +AC_DEFINE([XML_NS], 1, + [Define to make XML Namespaces functionality available.]) +AC_DEFINE([XML_DTD], 1, + [Define to make parameter entity parsing functionality available.]) +AC_DEFINE([XML_CONTEXT_BYTES], 1024, + [Define to specify how much context to retain around the current parse point.]) + AC_OUTPUT(Makefile) abs_srcdir="`cd $srcdir && pwd`" diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 16f49215..23b48a6c 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -1,6 +1,5 @@ -/* -Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd -See the file COPYING for copying permission. +/* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd + See the file COPYING for copying permission. */ #ifdef COMPILED_FROM_DSP @@ -9,7 +8,7 @@ See the file COPYING for copying permission. # include "expat.h" # undef XMLPARSEAPI #else -#include <config.h> +#include <expat_config.h> #ifdef __declspec # define XMLPARSEAPI(type) __declspec(dllexport) type __cdecl @@ -74,6 +73,15 @@ typedef char ICHAR; /* Round up n to be a multiple of sz, where sz is a power of 2. */ #define ROUND_UP(n, sz) (((n) + ((sz) - 1)) & ~((sz) - 1)) +/* Handle the case where memmove() doesn't exist. */ +#ifndef HAVE_MEMMOVE +#ifdef HAVE_BCOPY +#define memmove(d,s,l) bcopy((s),(d),(l)) +#else +#error memmove does not exist on this platform, nor is a substitute available +#endif /* HAVE_BCOPY */ +#endif /* HAVE_MEMMOVE */ + #include "xmltok.h" #include "xmlrole.h" diff --git a/expat/lib/xmlrole.c b/expat/lib/xmlrole.c index c263b895..55cf3aed 100644 --- a/expat/lib/xmlrole.c +++ b/expat/lib/xmlrole.c @@ -1,15 +1,11 @@ -/* -Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd -See the file COPYING for copying permission. +/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd + See the file COPYING for copying permission. */ -static char RCSId[] - = "$Header: /cvsroot/expat/expat/lib/xmlrole.c,v 1.4 2000/09/29 14:57:45 coopercc Exp $"; - #ifdef COMPILED_FROM_DSP # include "winconfig.h" #else -# include <config.h> +# include <expat_config.h> #endif /* ndef COMPILED_FROM_DSP */ #include "xmlrole.h" diff --git a/expat/lib/xmltok.c b/expat/lib/xmltok.c index 9995556c..5d632363 100644 --- a/expat/lib/xmltok.c +++ b/expat/lib/xmltok.c @@ -5,7 +5,7 @@ #ifdef COMPILED_FROM_DSP # include "winconfig.h" #else -# include <config.h> +# include <expat_config.h> #endif /* ndef COMPILED_FROM_DSP */ #include "xmltok.h" |