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
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
#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
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)
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)
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`"
-/*
-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
# include "expat.h"
# undef XMLPARSEAPI
#else
-#include <config.h>
+#include <expat_config.h>
#ifdef __declspec
# define XMLPARSEAPI(type) __declspec(dllexport) type __cdecl
/* 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"
-/*
-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"
#ifdef COMPILED_FROM_DSP
# include "winconfig.h"
#else
-# include <config.h>
+# include <expat_config.h>
#endif /* ndef COMPILED_FROM_DSP */
#include "xmltok.h"